diff --git a/clients/client-elasticsearch-service/src/ElasticsearchService.ts b/clients/client-elasticsearch-service/src/ElasticsearchService.ts index e315a29026cc7..798e627f86c9c 100644 --- a/clients/client-elasticsearch-service/src/ElasticsearchService.ts +++ b/clients/client-elasticsearch-service/src/ElasticsearchService.ts @@ -12,6 +12,11 @@ import { AssociatePackageCommandInput, AssociatePackageCommandOutput, } from "./commands/AssociatePackageCommand"; +import { + AuthorizeVpcEndpointAccessCommand, + AuthorizeVpcEndpointAccessCommandInput, + AuthorizeVpcEndpointAccessCommandOutput, +} from "./commands/AuthorizeVpcEndpointAccessCommand"; import { CancelElasticsearchServiceSoftwareUpdateCommand, CancelElasticsearchServiceSoftwareUpdateCommandInput, @@ -32,6 +37,11 @@ import { CreatePackageCommandInput, CreatePackageCommandOutput, } from "./commands/CreatePackageCommand"; +import { + CreateVpcEndpointCommand, + CreateVpcEndpointCommandInput, + CreateVpcEndpointCommandOutput, +} from "./commands/CreateVpcEndpointCommand"; import { DeleteElasticsearchDomainCommand, DeleteElasticsearchDomainCommandInput, @@ -57,6 +67,11 @@ import { DeletePackageCommandInput, DeletePackageCommandOutput, } from "./commands/DeletePackageCommand"; +import { + DeleteVpcEndpointCommand, + DeleteVpcEndpointCommandInput, + DeleteVpcEndpointCommandOutput, +} from "./commands/DeleteVpcEndpointCommand"; import { DescribeDomainAutoTunesCommand, DescribeDomainAutoTunesCommandInput, @@ -112,6 +127,11 @@ import { DescribeReservedElasticsearchInstancesCommandInput, DescribeReservedElasticsearchInstancesCommandOutput, } from "./commands/DescribeReservedElasticsearchInstancesCommand"; +import { + DescribeVpcEndpointsCommand, + DescribeVpcEndpointsCommandInput, + DescribeVpcEndpointsCommandOutput, +} from "./commands/DescribeVpcEndpointsCommand"; import { DissociatePackageCommand, DissociatePackageCommandInput, @@ -163,6 +183,21 @@ import { ListPackagesForDomainCommandOutput, } from "./commands/ListPackagesForDomainCommand"; import { ListTagsCommand, ListTagsCommandInput, ListTagsCommandOutput } from "./commands/ListTagsCommand"; +import { + ListVpcEndpointAccessCommand, + ListVpcEndpointAccessCommandInput, + ListVpcEndpointAccessCommandOutput, +} from "./commands/ListVpcEndpointAccessCommand"; +import { + ListVpcEndpointsCommand, + ListVpcEndpointsCommandInput, + ListVpcEndpointsCommandOutput, +} from "./commands/ListVpcEndpointsCommand"; +import { + ListVpcEndpointsForDomainCommand, + ListVpcEndpointsForDomainCommandInput, + ListVpcEndpointsForDomainCommandOutput, +} from "./commands/ListVpcEndpointsForDomainCommand"; import { PurchaseReservedElasticsearchInstanceOfferingCommand, PurchaseReservedElasticsearchInstanceOfferingCommandInput, @@ -174,6 +209,11 @@ import { RejectInboundCrossClusterSearchConnectionCommandOutput, } from "./commands/RejectInboundCrossClusterSearchConnectionCommand"; import { RemoveTagsCommand, RemoveTagsCommandInput, RemoveTagsCommandOutput } from "./commands/RemoveTagsCommand"; +import { + RevokeVpcEndpointAccessCommand, + RevokeVpcEndpointAccessCommandInput, + RevokeVpcEndpointAccessCommandOutput, +} from "./commands/RevokeVpcEndpointAccessCommand"; import { StartElasticsearchServiceSoftwareUpdateCommand, StartElasticsearchServiceSoftwareUpdateCommandInput, @@ -189,6 +229,11 @@ import { UpdatePackageCommandInput, UpdatePackageCommandOutput, } from "./commands/UpdatePackageCommand"; +import { + UpdateVpcEndpointCommand, + UpdateVpcEndpointCommandInput, + UpdateVpcEndpointCommandOutput, +} from "./commands/UpdateVpcEndpointCommand"; import { UpgradeElasticsearchDomainCommand, UpgradeElasticsearchDomainCommandInput, @@ -299,6 +344,38 @@ export class ElasticsearchService extends ElasticsearchServiceClient { } } + /** + *
Provides access to an Amazon OpenSearch Service domain through the use of an interface VPC endpoint.
+ */ + public authorizeVpcEndpointAccess( + args: AuthorizeVpcEndpointAccessCommandInput, + options?: __HttpHandlerOptions + ): PromiseCancels a scheduled service software update for an Amazon ES domain. You can only perform this operation before the AutomatedUpdateDate
and when the UpdateStatus
is in the PENDING_UPDATE
state.
Creates an Amazon OpenSearch Service-managed VPC endpoint.
+ */ + public createVpcEndpoint( + args: CreateVpcEndpointCommandInput, + options?: __HttpHandlerOptions + ): PromisePermanently deletes the specified Elasticsearch domain and all of its data. Once a domain is deleted, it cannot be recovered.
*/ @@ -596,6 +705,38 @@ export class ElasticsearchService extends ElasticsearchServiceClient { } } + /** + *Deletes an Amazon OpenSearch Service-managed interface VPC endpoint.
+ */ + public deleteVpcEndpoint( + args: DeleteVpcEndpointCommandInput, + options?: __HttpHandlerOptions + ): PromiseProvides scheduled Auto-Tune action details for the Elasticsearch domain, such as Auto-Tune action type, description, severity, and scheduled date.
*/ @@ -966,6 +1107,38 @@ export class ElasticsearchService extends ElasticsearchServiceClient { } } + /** + *Describes one or more Amazon OpenSearch Service-managed VPC endpoints.
+ */ + public describeVpcEndpoints( + args: DescribeVpcEndpointsCommandInput, + options?: __HttpHandlerOptions + ): PromiseDissociates a package from the Amazon ES domain.
*/ @@ -1319,6 +1492,103 @@ export class ElasticsearchService extends ElasticsearchServiceClient { } } + /** + *Retrieves information about each principal that is allowed to access a + * given Amazon OpenSearch Service domain through the use of an interface VPC endpoint.
+ */ + public listVpcEndpointAccess( + args: ListVpcEndpointAccessCommandInput, + options?: __HttpHandlerOptions + ): PromiseRetrieves all Amazon OpenSearch Service-managed VPC endpoints in the current account and Region.
+ */ + public listVpcEndpoints( + args: ListVpcEndpointsCommandInput, + options?: __HttpHandlerOptions + ): PromiseRetrieves all Amazon OpenSearch Service-managed VPC endpoints associated with a particular domain.
+ */ + public listVpcEndpointsForDomain( + args: ListVpcEndpointsForDomainCommandInput, + options?: __HttpHandlerOptions + ): PromiseAllows you to purchase reserved Elasticsearch instances.
*/ @@ -1413,6 +1683,39 @@ export class ElasticsearchService extends ElasticsearchServiceClient { } } + /** + *Revokes access to an Amazon OpenSearch Service domain that was provided through an interface + * VPC endpoint.
+ */ + public revokeVpcEndpointAccess( + args: RevokeVpcEndpointAccessCommandInput, + options?: __HttpHandlerOptions + ): PromiseSchedules a service software update for an Amazon ES domain.
*/ @@ -1511,6 +1814,38 @@ export class ElasticsearchService extends ElasticsearchServiceClient { } } + /** + *Modifies an Amazon OpenSearch Service-managed interface VPC endpoint.
+ */ + public updateVpcEndpoint( + args: UpdateVpcEndpointCommandInput, + options?: __HttpHandlerOptions + ): PromiseAllows you to either upgrade your domain or perform an Upgrade eligibility check to a compatible Elasticsearch version.
*/ diff --git a/clients/client-elasticsearch-service/src/ElasticsearchServiceClient.ts b/clients/client-elasticsearch-service/src/ElasticsearchServiceClient.ts index 664405dcac075..624d73e8c3f8f 100644 --- a/clients/client-elasticsearch-service/src/ElasticsearchServiceClient.ts +++ b/clients/client-elasticsearch-service/src/ElasticsearchServiceClient.ts @@ -53,6 +53,10 @@ import { } from "./commands/AcceptInboundCrossClusterSearchConnectionCommand"; import { AddTagsCommandInput, AddTagsCommandOutput } from "./commands/AddTagsCommand"; import { AssociatePackageCommandInput, AssociatePackageCommandOutput } from "./commands/AssociatePackageCommand"; +import { + AuthorizeVpcEndpointAccessCommandInput, + AuthorizeVpcEndpointAccessCommandOutput, +} from "./commands/AuthorizeVpcEndpointAccessCommand"; import { CancelElasticsearchServiceSoftwareUpdateCommandInput, CancelElasticsearchServiceSoftwareUpdateCommandOutput, @@ -66,6 +70,7 @@ import { CreateOutboundCrossClusterSearchConnectionCommandOutput, } from "./commands/CreateOutboundCrossClusterSearchConnectionCommand"; import { CreatePackageCommandInput, CreatePackageCommandOutput } from "./commands/CreatePackageCommand"; +import { CreateVpcEndpointCommandInput, CreateVpcEndpointCommandOutput } from "./commands/CreateVpcEndpointCommand"; import { DeleteElasticsearchDomainCommandInput, DeleteElasticsearchDomainCommandOutput, @@ -83,6 +88,7 @@ import { DeleteOutboundCrossClusterSearchConnectionCommandOutput, } from "./commands/DeleteOutboundCrossClusterSearchConnectionCommand"; import { DeletePackageCommandInput, DeletePackageCommandOutput } from "./commands/DeletePackageCommand"; +import { DeleteVpcEndpointCommandInput, DeleteVpcEndpointCommandOutput } from "./commands/DeleteVpcEndpointCommand"; import { DescribeDomainAutoTunesCommandInput, DescribeDomainAutoTunesCommandOutput, @@ -124,6 +130,10 @@ import { DescribeReservedElasticsearchInstancesCommandInput, DescribeReservedElasticsearchInstancesCommandOutput, } from "./commands/DescribeReservedElasticsearchInstancesCommand"; +import { + DescribeVpcEndpointsCommandInput, + DescribeVpcEndpointsCommandOutput, +} from "./commands/DescribeVpcEndpointsCommand"; import { DissociatePackageCommandInput, DissociatePackageCommandOutput } from "./commands/DissociatePackageCommand"; import { GetCompatibleElasticsearchVersionsCommandInput, @@ -153,6 +163,15 @@ import { ListPackagesForDomainCommandOutput, } from "./commands/ListPackagesForDomainCommand"; import { ListTagsCommandInput, ListTagsCommandOutput } from "./commands/ListTagsCommand"; +import { + ListVpcEndpointAccessCommandInput, + ListVpcEndpointAccessCommandOutput, +} from "./commands/ListVpcEndpointAccessCommand"; +import { ListVpcEndpointsCommandInput, ListVpcEndpointsCommandOutput } from "./commands/ListVpcEndpointsCommand"; +import { + ListVpcEndpointsForDomainCommandInput, + ListVpcEndpointsForDomainCommandOutput, +} from "./commands/ListVpcEndpointsForDomainCommand"; import { PurchaseReservedElasticsearchInstanceOfferingCommandInput, PurchaseReservedElasticsearchInstanceOfferingCommandOutput, @@ -162,6 +181,10 @@ import { RejectInboundCrossClusterSearchConnectionCommandOutput, } from "./commands/RejectInboundCrossClusterSearchConnectionCommand"; import { RemoveTagsCommandInput, RemoveTagsCommandOutput } from "./commands/RemoveTagsCommand"; +import { + RevokeVpcEndpointAccessCommandInput, + RevokeVpcEndpointAccessCommandOutput, +} from "./commands/RevokeVpcEndpointAccessCommand"; import { StartElasticsearchServiceSoftwareUpdateCommandInput, StartElasticsearchServiceSoftwareUpdateCommandOutput, @@ -171,6 +194,7 @@ import { UpdateElasticsearchDomainConfigCommandOutput, } from "./commands/UpdateElasticsearchDomainConfigCommand"; import { UpdatePackageCommandInput, UpdatePackageCommandOutput } from "./commands/UpdatePackageCommand"; +import { UpdateVpcEndpointCommandInput, UpdateVpcEndpointCommandOutput } from "./commands/UpdateVpcEndpointCommand"; import { UpgradeElasticsearchDomainCommandInput, UpgradeElasticsearchDomainCommandOutput, @@ -187,15 +211,18 @@ export type ServiceInputTypes = | AcceptInboundCrossClusterSearchConnectionCommandInput | AddTagsCommandInput | AssociatePackageCommandInput + | AuthorizeVpcEndpointAccessCommandInput | CancelElasticsearchServiceSoftwareUpdateCommandInput | CreateElasticsearchDomainCommandInput | CreateOutboundCrossClusterSearchConnectionCommandInput | CreatePackageCommandInput + | CreateVpcEndpointCommandInput | DeleteElasticsearchDomainCommandInput | DeleteElasticsearchServiceRoleCommandInput | DeleteInboundCrossClusterSearchConnectionCommandInput | DeleteOutboundCrossClusterSearchConnectionCommandInput | DeletePackageCommandInput + | DeleteVpcEndpointCommandInput | DescribeDomainAutoTunesCommandInput | DescribeDomainChangeProgressCommandInput | DescribeElasticsearchDomainCommandInput @@ -207,6 +234,7 @@ export type ServiceInputTypes = | DescribePackagesCommandInput | DescribeReservedElasticsearchInstanceOfferingsCommandInput | DescribeReservedElasticsearchInstancesCommandInput + | DescribeVpcEndpointsCommandInput | DissociatePackageCommandInput | GetCompatibleElasticsearchVersionsCommandInput | GetPackageVersionHistoryCommandInput @@ -218,27 +246,35 @@ export type ServiceInputTypes = | ListElasticsearchVersionsCommandInput | ListPackagesForDomainCommandInput | ListTagsCommandInput + | ListVpcEndpointAccessCommandInput + | ListVpcEndpointsCommandInput + | ListVpcEndpointsForDomainCommandInput | PurchaseReservedElasticsearchInstanceOfferingCommandInput | RejectInboundCrossClusterSearchConnectionCommandInput | RemoveTagsCommandInput + | RevokeVpcEndpointAccessCommandInput | StartElasticsearchServiceSoftwareUpdateCommandInput | UpdateElasticsearchDomainConfigCommandInput | UpdatePackageCommandInput + | UpdateVpcEndpointCommandInput | UpgradeElasticsearchDomainCommandInput; export type ServiceOutputTypes = | AcceptInboundCrossClusterSearchConnectionCommandOutput | AddTagsCommandOutput | AssociatePackageCommandOutput + | AuthorizeVpcEndpointAccessCommandOutput | CancelElasticsearchServiceSoftwareUpdateCommandOutput | CreateElasticsearchDomainCommandOutput | CreateOutboundCrossClusterSearchConnectionCommandOutput | CreatePackageCommandOutput + | CreateVpcEndpointCommandOutput | DeleteElasticsearchDomainCommandOutput | DeleteElasticsearchServiceRoleCommandOutput | DeleteInboundCrossClusterSearchConnectionCommandOutput | DeleteOutboundCrossClusterSearchConnectionCommandOutput | DeletePackageCommandOutput + | DeleteVpcEndpointCommandOutput | DescribeDomainAutoTunesCommandOutput | DescribeDomainChangeProgressCommandOutput | DescribeElasticsearchDomainCommandOutput @@ -250,6 +286,7 @@ export type ServiceOutputTypes = | DescribePackagesCommandOutput | DescribeReservedElasticsearchInstanceOfferingsCommandOutput | DescribeReservedElasticsearchInstancesCommandOutput + | DescribeVpcEndpointsCommandOutput | DissociatePackageCommandOutput | GetCompatibleElasticsearchVersionsCommandOutput | GetPackageVersionHistoryCommandOutput @@ -261,12 +298,17 @@ export type ServiceOutputTypes = | ListElasticsearchVersionsCommandOutput | ListPackagesForDomainCommandOutput | ListTagsCommandOutput + | ListVpcEndpointAccessCommandOutput + | ListVpcEndpointsCommandOutput + | ListVpcEndpointsForDomainCommandOutput | PurchaseReservedElasticsearchInstanceOfferingCommandOutput | RejectInboundCrossClusterSearchConnectionCommandOutput | RemoveTagsCommandOutput + | RevokeVpcEndpointAccessCommandOutput | StartElasticsearchServiceSoftwareUpdateCommandOutput | UpdateElasticsearchDomainConfigCommandOutput | UpdatePackageCommandOutput + | UpdateVpcEndpointCommandOutput | UpgradeElasticsearchDomainCommandOutput; export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__HttpHandlerOptions>> { diff --git a/clients/client-elasticsearch-service/src/commands/AuthorizeVpcEndpointAccessCommand.ts b/clients/client-elasticsearch-service/src/commands/AuthorizeVpcEndpointAccessCommand.ts new file mode 100644 index 0000000000000..286f1ac12ed38 --- /dev/null +++ b/clients/client-elasticsearch-service/src/commands/AuthorizeVpcEndpointAccessCommand.ts @@ -0,0 +1,121 @@ +// smithy-typescript generated code +import { EndpointParameterInstructions, getEndpointPlugin } from "@aws-sdk/middleware-endpoint"; +import { getSerdePlugin } from "@aws-sdk/middleware-serde"; +import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; +import { Command as $Command } from "@aws-sdk/smithy-client"; +import { + FinalizeHandlerArguments, + Handler, + HandlerExecutionContext, + HttpHandlerOptions as __HttpHandlerOptions, + MetadataBearer as __MetadataBearer, + MiddlewareStack, + SerdeContext as __SerdeContext, +} from "@aws-sdk/types"; + +import { + ElasticsearchServiceClientResolvedConfig, + ServiceInputTypes, + ServiceOutputTypes, +} from "../ElasticsearchServiceClient"; +import { + AuthorizeVpcEndpointAccessRequest, + AuthorizeVpcEndpointAccessRequestFilterSensitiveLog, + AuthorizeVpcEndpointAccessResponse, + AuthorizeVpcEndpointAccessResponseFilterSensitiveLog, +} from "../models/models_0"; +import { + deserializeAws_restJson1AuthorizeVpcEndpointAccessCommand, + serializeAws_restJson1AuthorizeVpcEndpointAccessCommand, +} from "../protocols/Aws_restJson1"; + +export interface AuthorizeVpcEndpointAccessCommandInput extends AuthorizeVpcEndpointAccessRequest {} +export interface AuthorizeVpcEndpointAccessCommandOutput extends AuthorizeVpcEndpointAccessResponse, __MetadataBearer {} + +/** + *Provides access to an Amazon OpenSearch Service domain through the use of an interface VPC endpoint.
+ * @example + * Use a bare-bones client and the command you need to make an API call. + * ```javascript + * import { ElasticsearchServiceClient, AuthorizeVpcEndpointAccessCommand } from "@aws-sdk/client-elasticsearch-service"; // ES Modules import + * // const { ElasticsearchServiceClient, AuthorizeVpcEndpointAccessCommand } = require("@aws-sdk/client-elasticsearch-service"); // CommonJS import + * const client = new ElasticsearchServiceClient(config); + * const command = new AuthorizeVpcEndpointAccessCommand(input); + * const response = await client.send(command); + * ``` + * + * @see {@link AuthorizeVpcEndpointAccessCommandInput} for command's `input` shape. + * @see {@link AuthorizeVpcEndpointAccessCommandOutput} for command's `response` shape. + * @see {@link ElasticsearchServiceClientResolvedConfig | config} for ElasticsearchServiceClient's `config` shape. + * + */ +export class AuthorizeVpcEndpointAccessCommand extends $Command< + AuthorizeVpcEndpointAccessCommandInput, + AuthorizeVpcEndpointAccessCommandOutput, + ElasticsearchServiceClientResolvedConfig +> { + // Start section: command_properties + // End section: command_properties + + public static getEndpointParameterInstructions(): EndpointParameterInstructions { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + + constructor(readonly input: AuthorizeVpcEndpointAccessCommandInput) { + // Start section: command_constructor + super(); + // End section: command_constructor + } + + /** + * @internal + */ + resolveMiddleware( + clientStack: MiddlewareStackCreates an Amazon OpenSearch Service-managed VPC endpoint.
+ * @example + * Use a bare-bones client and the command you need to make an API call. + * ```javascript + * import { ElasticsearchServiceClient, CreateVpcEndpointCommand } from "@aws-sdk/client-elasticsearch-service"; // ES Modules import + * // const { ElasticsearchServiceClient, CreateVpcEndpointCommand } = require("@aws-sdk/client-elasticsearch-service"); // CommonJS import + * const client = new ElasticsearchServiceClient(config); + * const command = new CreateVpcEndpointCommand(input); + * const response = await client.send(command); + * ``` + * + * @see {@link CreateVpcEndpointCommandInput} for command's `input` shape. + * @see {@link CreateVpcEndpointCommandOutput} for command's `response` shape. + * @see {@link ElasticsearchServiceClientResolvedConfig | config} for ElasticsearchServiceClient's `config` shape. + * + */ +export class CreateVpcEndpointCommand extends $Command< + CreateVpcEndpointCommandInput, + CreateVpcEndpointCommandOutput, + ElasticsearchServiceClientResolvedConfig +> { + // Start section: command_properties + // End section: command_properties + + public static getEndpointParameterInstructions(): EndpointParameterInstructions { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + + constructor(readonly input: CreateVpcEndpointCommandInput) { + // Start section: command_constructor + super(); + // End section: command_constructor + } + + /** + * @internal + */ + resolveMiddleware( + clientStack: MiddlewareStackDeletes an Amazon OpenSearch Service-managed interface VPC endpoint.
+ * @example + * Use a bare-bones client and the command you need to make an API call. + * ```javascript + * import { ElasticsearchServiceClient, DeleteVpcEndpointCommand } from "@aws-sdk/client-elasticsearch-service"; // ES Modules import + * // const { ElasticsearchServiceClient, DeleteVpcEndpointCommand } = require("@aws-sdk/client-elasticsearch-service"); // CommonJS import + * const client = new ElasticsearchServiceClient(config); + * const command = new DeleteVpcEndpointCommand(input); + * const response = await client.send(command); + * ``` + * + * @see {@link DeleteVpcEndpointCommandInput} for command's `input` shape. + * @see {@link DeleteVpcEndpointCommandOutput} for command's `response` shape. + * @see {@link ElasticsearchServiceClientResolvedConfig | config} for ElasticsearchServiceClient's `config` shape. + * + */ +export class DeleteVpcEndpointCommand extends $Command< + DeleteVpcEndpointCommandInput, + DeleteVpcEndpointCommandOutput, + ElasticsearchServiceClientResolvedConfig +> { + // Start section: command_properties + // End section: command_properties + + public static getEndpointParameterInstructions(): EndpointParameterInstructions { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + + constructor(readonly input: DeleteVpcEndpointCommandInput) { + // Start section: command_constructor + super(); + // End section: command_constructor + } + + /** + * @internal + */ + resolveMiddleware( + clientStack: MiddlewareStackDescribes one or more Amazon OpenSearch Service-managed VPC endpoints.
+ * @example + * Use a bare-bones client and the command you need to make an API call. + * ```javascript + * import { ElasticsearchServiceClient, DescribeVpcEndpointsCommand } from "@aws-sdk/client-elasticsearch-service"; // ES Modules import + * // const { ElasticsearchServiceClient, DescribeVpcEndpointsCommand } = require("@aws-sdk/client-elasticsearch-service"); // CommonJS import + * const client = new ElasticsearchServiceClient(config); + * const command = new DescribeVpcEndpointsCommand(input); + * const response = await client.send(command); + * ``` + * + * @see {@link DescribeVpcEndpointsCommandInput} for command's `input` shape. + * @see {@link DescribeVpcEndpointsCommandOutput} for command's `response` shape. + * @see {@link ElasticsearchServiceClientResolvedConfig | config} for ElasticsearchServiceClient's `config` shape. + * + */ +export class DescribeVpcEndpointsCommand extends $Command< + DescribeVpcEndpointsCommandInput, + DescribeVpcEndpointsCommandOutput, + ElasticsearchServiceClientResolvedConfig +> { + // Start section: command_properties + // End section: command_properties + + public static getEndpointParameterInstructions(): EndpointParameterInstructions { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + + constructor(readonly input: DescribeVpcEndpointsCommandInput) { + // Start section: command_constructor + super(); + // End section: command_constructor + } + + /** + * @internal + */ + resolveMiddleware( + clientStack: MiddlewareStackRetrieves information about each principal that is allowed to access a + * given Amazon OpenSearch Service domain through the use of an interface VPC endpoint.
+ * @example + * Use a bare-bones client and the command you need to make an API call. + * ```javascript + * import { ElasticsearchServiceClient, ListVpcEndpointAccessCommand } from "@aws-sdk/client-elasticsearch-service"; // ES Modules import + * // const { ElasticsearchServiceClient, ListVpcEndpointAccessCommand } = require("@aws-sdk/client-elasticsearch-service"); // CommonJS import + * const client = new ElasticsearchServiceClient(config); + * const command = new ListVpcEndpointAccessCommand(input); + * const response = await client.send(command); + * ``` + * + * @see {@link ListVpcEndpointAccessCommandInput} for command's `input` shape. + * @see {@link ListVpcEndpointAccessCommandOutput} for command's `response` shape. + * @see {@link ElasticsearchServiceClientResolvedConfig | config} for ElasticsearchServiceClient's `config` shape. + * + */ +export class ListVpcEndpointAccessCommand extends $Command< + ListVpcEndpointAccessCommandInput, + ListVpcEndpointAccessCommandOutput, + ElasticsearchServiceClientResolvedConfig +> { + // Start section: command_properties + // End section: command_properties + + public static getEndpointParameterInstructions(): EndpointParameterInstructions { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + + constructor(readonly input: ListVpcEndpointAccessCommandInput) { + // Start section: command_constructor + super(); + // End section: command_constructor + } + + /** + * @internal + */ + resolveMiddleware( + clientStack: MiddlewareStackRetrieves all Amazon OpenSearch Service-managed VPC endpoints in the current account and Region.
+ * @example + * Use a bare-bones client and the command you need to make an API call. + * ```javascript + * import { ElasticsearchServiceClient, ListVpcEndpointsCommand } from "@aws-sdk/client-elasticsearch-service"; // ES Modules import + * // const { ElasticsearchServiceClient, ListVpcEndpointsCommand } = require("@aws-sdk/client-elasticsearch-service"); // CommonJS import + * const client = new ElasticsearchServiceClient(config); + * const command = new ListVpcEndpointsCommand(input); + * const response = await client.send(command); + * ``` + * + * @see {@link ListVpcEndpointsCommandInput} for command's `input` shape. + * @see {@link ListVpcEndpointsCommandOutput} for command's `response` shape. + * @see {@link ElasticsearchServiceClientResolvedConfig | config} for ElasticsearchServiceClient's `config` shape. + * + */ +export class ListVpcEndpointsCommand extends $Command< + ListVpcEndpointsCommandInput, + ListVpcEndpointsCommandOutput, + ElasticsearchServiceClientResolvedConfig +> { + // Start section: command_properties + // End section: command_properties + + public static getEndpointParameterInstructions(): EndpointParameterInstructions { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + + constructor(readonly input: ListVpcEndpointsCommandInput) { + // Start section: command_constructor + super(); + // End section: command_constructor + } + + /** + * @internal + */ + resolveMiddleware( + clientStack: MiddlewareStackRetrieves all Amazon OpenSearch Service-managed VPC endpoints associated with a particular domain.
+ * @example + * Use a bare-bones client and the command you need to make an API call. + * ```javascript + * import { ElasticsearchServiceClient, ListVpcEndpointsForDomainCommand } from "@aws-sdk/client-elasticsearch-service"; // ES Modules import + * // const { ElasticsearchServiceClient, ListVpcEndpointsForDomainCommand } = require("@aws-sdk/client-elasticsearch-service"); // CommonJS import + * const client = new ElasticsearchServiceClient(config); + * const command = new ListVpcEndpointsForDomainCommand(input); + * const response = await client.send(command); + * ``` + * + * @see {@link ListVpcEndpointsForDomainCommandInput} for command's `input` shape. + * @see {@link ListVpcEndpointsForDomainCommandOutput} for command's `response` shape. + * @see {@link ElasticsearchServiceClientResolvedConfig | config} for ElasticsearchServiceClient's `config` shape. + * + */ +export class ListVpcEndpointsForDomainCommand extends $Command< + ListVpcEndpointsForDomainCommandInput, + ListVpcEndpointsForDomainCommandOutput, + ElasticsearchServiceClientResolvedConfig +> { + // Start section: command_properties + // End section: command_properties + + public static getEndpointParameterInstructions(): EndpointParameterInstructions { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + + constructor(readonly input: ListVpcEndpointsForDomainCommandInput) { + // Start section: command_constructor + super(); + // End section: command_constructor + } + + /** + * @internal + */ + resolveMiddleware( + clientStack: MiddlewareStackRevokes access to an Amazon OpenSearch Service domain that was provided through an interface + * VPC endpoint.
+ * @example + * Use a bare-bones client and the command you need to make an API call. + * ```javascript + * import { ElasticsearchServiceClient, RevokeVpcEndpointAccessCommand } from "@aws-sdk/client-elasticsearch-service"; // ES Modules import + * // const { ElasticsearchServiceClient, RevokeVpcEndpointAccessCommand } = require("@aws-sdk/client-elasticsearch-service"); // CommonJS import + * const client = new ElasticsearchServiceClient(config); + * const command = new RevokeVpcEndpointAccessCommand(input); + * const response = await client.send(command); + * ``` + * + * @see {@link RevokeVpcEndpointAccessCommandInput} for command's `input` shape. + * @see {@link RevokeVpcEndpointAccessCommandOutput} for command's `response` shape. + * @see {@link ElasticsearchServiceClientResolvedConfig | config} for ElasticsearchServiceClient's `config` shape. + * + */ +export class RevokeVpcEndpointAccessCommand extends $Command< + RevokeVpcEndpointAccessCommandInput, + RevokeVpcEndpointAccessCommandOutput, + ElasticsearchServiceClientResolvedConfig +> { + // Start section: command_properties + // End section: command_properties + + public static getEndpointParameterInstructions(): EndpointParameterInstructions { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + + constructor(readonly input: RevokeVpcEndpointAccessCommandInput) { + // Start section: command_constructor + super(); + // End section: command_constructor + } + + /** + * @internal + */ + resolveMiddleware( + clientStack: MiddlewareStackModifies an Amazon OpenSearch Service-managed interface VPC endpoint.
+ * @example + * Use a bare-bones client and the command you need to make an API call. + * ```javascript + * import { ElasticsearchServiceClient, UpdateVpcEndpointCommand } from "@aws-sdk/client-elasticsearch-service"; // ES Modules import + * // const { ElasticsearchServiceClient, UpdateVpcEndpointCommand } = require("@aws-sdk/client-elasticsearch-service"); // CommonJS import + * const client = new ElasticsearchServiceClient(config); + * const command = new UpdateVpcEndpointCommand(input); + * const response = await client.send(command); + * ``` + * + * @see {@link UpdateVpcEndpointCommandInput} for command's `input` shape. + * @see {@link UpdateVpcEndpointCommandOutput} for command's `response` shape. + * @see {@link ElasticsearchServiceClientResolvedConfig | config} for ElasticsearchServiceClient's `config` shape. + * + */ +export class UpdateVpcEndpointCommand extends $Command< + UpdateVpcEndpointCommandInput, + UpdateVpcEndpointCommandOutput, + ElasticsearchServiceClientResolvedConfig +> { + // Start section: command_properties + // End section: command_properties + + public static getEndpointParameterInstructions(): EndpointParameterInstructions { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + + constructor(readonly input: UpdateVpcEndpointCommandInput) { + // Start section: command_constructor + super(); + // End section: command_constructor + } + + /** + * @internal + */ + resolveMiddleware( + clientStack: MiddlewareStackProvides the current status of the entity.
@@ -576,19 +580,22 @@ export interface AssociatePackageRequest { DomainName: string | undefined; } -export type DomainPackageStatus = - | "ACTIVE" - | "ASSOCIATING" - | "ASSOCIATION_FAILED" - | "DISSOCIATING" - | "DISSOCIATION_FAILED"; +export enum DomainPackageStatus { + ACTIVE = "ACTIVE", + ASSOCIATING = "ASSOCIATING", + ASSOCIATION_FAILED = "ASSOCIATION_FAILED", + DISSOCIATING = "DISSOCIATING", + DISSOCIATION_FAILED = "DISSOCIATION_FAILED", +} export interface ErrorDetails { ErrorType?: string; ErrorMessage?: string; } -export type PackageType = "TXT-DICTIONARY"; +export enum PackageType { + TXT_DICTIONARY = "TXT-DICTIONARY", +} /** *Information on a package that is associated with a domain.
@@ -671,6 +678,55 @@ export class ConflictException extends __BaseException { } } +/** + *Container for request parameters to the AuthorizeVpcEndpointAccess
operation.
+ * Specifies the account to be permitted to manage VPC endpoints against the domain.
The name of the OpenSearch Service domain to provide access to.
+ */ + DomainName: string | undefined; + + /** + *The account ID to grant access to.
+ */ + Account: string | undefined; +} + +export enum PrincipalType { + AWS_ACCOUNT = "AWS_ACCOUNT", + AWS_SERVICE = "AWS_SERVICE", +} + +/** + *Information about an account or service that has access to an Amazon + * OpenSearch Service domain through the use of an interface VPC endpoint.
+ */ +export interface AuthorizedPrincipal { + /** + *The type of principal.
+ */ + PrincipalType?: PrincipalType | string; + + /** + *The IAM principal that is allowed access to the domain.
+ */ + Principal?: string; +} + +/** + *Container for response parameters to the AuthorizeVpcEndpointAccess
operation.
+ * Contains the account ID and the type of the account being authorized to access the VPC endpoint.
Information about the account or service that was provided access to the + * domain.
+ */ + AuthorizedPrincipal: AuthorizedPrincipal | undefined; +} + /** *Container for the parameters to the CancelElasticsearchServiceSoftwareUpdate
operation. Specifies the name of the Elasticsearch domain that you wish to cancel a service software update on.
The current options of an Elasticsearch domain service software options.
@@ -863,7 +925,12 @@ export interface DomainEndpointOptions { CustomEndpointCertificateArn?: string; } -export type VolumeType = "gp2" | "gp3" | "io1" | "standard"; +export enum VolumeType { + gp2 = "gp2", + gp3 = "gp3", + io1 = "io1", + standard = "standard", +} /** *Options to enable, disable, and specify the properties of EBS storage volumes. For more information, see Configuring EBS-based Storage.
@@ -905,67 +972,71 @@ export interface ColdStorageOptions { Enabled: boolean | undefined; } -export type ESPartitionInstanceType = - | "c4.2xlarge.elasticsearch" - | "c4.4xlarge.elasticsearch" - | "c4.8xlarge.elasticsearch" - | "c4.large.elasticsearch" - | "c4.xlarge.elasticsearch" - | "c5.18xlarge.elasticsearch" - | "c5.2xlarge.elasticsearch" - | "c5.4xlarge.elasticsearch" - | "c5.9xlarge.elasticsearch" - | "c5.large.elasticsearch" - | "c5.xlarge.elasticsearch" - | "d2.2xlarge.elasticsearch" - | "d2.4xlarge.elasticsearch" - | "d2.8xlarge.elasticsearch" - | "d2.xlarge.elasticsearch" - | "i2.2xlarge.elasticsearch" - | "i2.xlarge.elasticsearch" - | "i3.16xlarge.elasticsearch" - | "i3.2xlarge.elasticsearch" - | "i3.4xlarge.elasticsearch" - | "i3.8xlarge.elasticsearch" - | "i3.large.elasticsearch" - | "i3.xlarge.elasticsearch" - | "m3.2xlarge.elasticsearch" - | "m3.large.elasticsearch" - | "m3.medium.elasticsearch" - | "m3.xlarge.elasticsearch" - | "m4.10xlarge.elasticsearch" - | "m4.2xlarge.elasticsearch" - | "m4.4xlarge.elasticsearch" - | "m4.large.elasticsearch" - | "m4.xlarge.elasticsearch" - | "m5.12xlarge.elasticsearch" - | "m5.2xlarge.elasticsearch" - | "m5.4xlarge.elasticsearch" - | "m5.large.elasticsearch" - | "m5.xlarge.elasticsearch" - | "r3.2xlarge.elasticsearch" - | "r3.4xlarge.elasticsearch" - | "r3.8xlarge.elasticsearch" - | "r3.large.elasticsearch" - | "r3.xlarge.elasticsearch" - | "r4.16xlarge.elasticsearch" - | "r4.2xlarge.elasticsearch" - | "r4.4xlarge.elasticsearch" - | "r4.8xlarge.elasticsearch" - | "r4.large.elasticsearch" - | "r4.xlarge.elasticsearch" - | "r5.12xlarge.elasticsearch" - | "r5.2xlarge.elasticsearch" - | "r5.4xlarge.elasticsearch" - | "r5.large.elasticsearch" - | "r5.xlarge.elasticsearch" - | "t2.medium.elasticsearch" - | "t2.micro.elasticsearch" - | "t2.small.elasticsearch" - | "ultrawarm1.large.elasticsearch" - | "ultrawarm1.medium.elasticsearch"; - -export type ESWarmPartitionInstanceType = "ultrawarm1.large.elasticsearch" | "ultrawarm1.medium.elasticsearch"; +export enum ESPartitionInstanceType { + c4_2xlarge_elasticsearch = "c4.2xlarge.elasticsearch", + c4_4xlarge_elasticsearch = "c4.4xlarge.elasticsearch", + c4_8xlarge_elasticsearch = "c4.8xlarge.elasticsearch", + c4_large_elasticsearch = "c4.large.elasticsearch", + c4_xlarge_elasticsearch = "c4.xlarge.elasticsearch", + c5_18xlarge_elasticsearch = "c5.18xlarge.elasticsearch", + c5_2xlarge_elasticsearch = "c5.2xlarge.elasticsearch", + c5_4xlarge_elasticsearch = "c5.4xlarge.elasticsearch", + c5_9xlarge_elasticsearch = "c5.9xlarge.elasticsearch", + c5_large_elasticsearch = "c5.large.elasticsearch", + c5_xlarge_elasticsearch = "c5.xlarge.elasticsearch", + d2_2xlarge_elasticsearch = "d2.2xlarge.elasticsearch", + d2_4xlarge_elasticsearch = "d2.4xlarge.elasticsearch", + d2_8xlarge_elasticsearch = "d2.8xlarge.elasticsearch", + d2_xlarge_elasticsearch = "d2.xlarge.elasticsearch", + i2_2xlarge_elasticsearch = "i2.2xlarge.elasticsearch", + i2_xlarge_elasticsearch = "i2.xlarge.elasticsearch", + i3_16xlarge_elasticsearch = "i3.16xlarge.elasticsearch", + i3_2xlarge_elasticsearch = "i3.2xlarge.elasticsearch", + i3_4xlarge_elasticsearch = "i3.4xlarge.elasticsearch", + i3_8xlarge_elasticsearch = "i3.8xlarge.elasticsearch", + i3_large_elasticsearch = "i3.large.elasticsearch", + i3_xlarge_elasticsearch = "i3.xlarge.elasticsearch", + m3_2xlarge_elasticsearch = "m3.2xlarge.elasticsearch", + m3_large_elasticsearch = "m3.large.elasticsearch", + m3_medium_elasticsearch = "m3.medium.elasticsearch", + m3_xlarge_elasticsearch = "m3.xlarge.elasticsearch", + m4_10xlarge_elasticsearch = "m4.10xlarge.elasticsearch", + m4_2xlarge_elasticsearch = "m4.2xlarge.elasticsearch", + m4_4xlarge_elasticsearch = "m4.4xlarge.elasticsearch", + m4_large_elasticsearch = "m4.large.elasticsearch", + m4_xlarge_elasticsearch = "m4.xlarge.elasticsearch", + m5_12xlarge_elasticsearch = "m5.12xlarge.elasticsearch", + m5_2xlarge_elasticsearch = "m5.2xlarge.elasticsearch", + m5_4xlarge_elasticsearch = "m5.4xlarge.elasticsearch", + m5_large_elasticsearch = "m5.large.elasticsearch", + m5_xlarge_elasticsearch = "m5.xlarge.elasticsearch", + r3_2xlarge_elasticsearch = "r3.2xlarge.elasticsearch", + r3_4xlarge_elasticsearch = "r3.4xlarge.elasticsearch", + r3_8xlarge_elasticsearch = "r3.8xlarge.elasticsearch", + r3_large_elasticsearch = "r3.large.elasticsearch", + r3_xlarge_elasticsearch = "r3.xlarge.elasticsearch", + r4_16xlarge_elasticsearch = "r4.16xlarge.elasticsearch", + r4_2xlarge_elasticsearch = "r4.2xlarge.elasticsearch", + r4_4xlarge_elasticsearch = "r4.4xlarge.elasticsearch", + r4_8xlarge_elasticsearch = "r4.8xlarge.elasticsearch", + r4_large_elasticsearch = "r4.large.elasticsearch", + r4_xlarge_elasticsearch = "r4.xlarge.elasticsearch", + r5_12xlarge_elasticsearch = "r5.12xlarge.elasticsearch", + r5_2xlarge_elasticsearch = "r5.2xlarge.elasticsearch", + r5_4xlarge_elasticsearch = "r5.4xlarge.elasticsearch", + r5_large_elasticsearch = "r5.large.elasticsearch", + r5_xlarge_elasticsearch = "r5.xlarge.elasticsearch", + t2_medium_elasticsearch = "t2.medium.elasticsearch", + t2_micro_elasticsearch = "t2.micro.elasticsearch", + t2_small_elasticsearch = "t2.small.elasticsearch", + ultrawarm1_large_elasticsearch = "ultrawarm1.large.elasticsearch", + ultrawarm1_medium_elasticsearch = "ultrawarm1.medium.elasticsearch", +} + +export enum ESWarmPartitionInstanceType { + ultrawarm1_large_elasticsearch = "ultrawarm1.large.elasticsearch", + ultrawarm1_medium_elasticsearch = "ultrawarm1.medium.elasticsearch", +} /** *Specifies the zone awareness configuration for the domain cluster, such as the number of availability zones.
@@ -1052,7 +1123,12 @@ export interface EncryptionAtRestOptions { KmsKeyId?: string; } -export type LogType = "AUDIT_LOGS" | "ES_APPLICATION_LOGS" | "INDEX_SLOW_LOGS" | "SEARCH_SLOW_LOGS"; +export enum LogType { + AUDIT_LOGS = "AUDIT_LOGS", + ES_APPLICATION_LOGS = "ES_APPLICATION_LOGS", + INDEX_SLOW_LOGS = "INDEX_SLOW_LOGS", + SEARCH_SLOW_LOGS = "SEARCH_SLOW_LOGS", +} /** *Log Publishing option that is set for given domain. @@ -1567,15 +1643,16 @@ export interface CreatePackageRequest { PackageSource: PackageSource | undefined; } -export type PackageStatus = - | "AVAILABLE" - | "COPYING" - | "COPY_FAILED" - | "DELETED" - | "DELETE_FAILED" - | "DELETING" - | "VALIDATING" - | "VALIDATION_FAILED"; +export enum PackageStatus { + AVAILABLE = "AVAILABLE", + COPYING = "COPYING", + COPY_FAILED = "COPY_FAILED", + DELETED = "DELETED", + DELETE_FAILED = "DELETE_FAILED", + DELETING = "DELETING", + VALIDATING = "VALIDATING", + VALIDATION_FAILED = "VALIDATION_FAILED", +} /** *
Basic information about a package.
@@ -1635,6 +1712,83 @@ export interface CreatePackageResponse { PackageDetails?: PackageDetails; } +/** + *Container for the parameters to the CreateVpcEndpointRequest
operation.
The Amazon Resource Name (ARN) of the domain to grant access to.
+ */ + DomainArn: string | undefined; + + /** + *Options to specify the subnets and security groups for the endpoint.
+ */ + VpcOptions: VPCOptions | undefined; + + /** + *Unique, case-sensitive identifier to ensure idempotency of the request.
+ */ + ClientToken?: string; +} + +export enum VpcEndpointStatus { + ACTIVE = "ACTIVE", + CREATE_FAILED = "CREATE_FAILED", + CREATING = "CREATING", + DELETE_FAILED = "DELETE_FAILED", + DELETING = "DELETING", + UPDATE_FAILED = "UPDATE_FAILED", + UPDATING = "UPDATING", +} + +/** + *The connection endpoint for connecting to an Amazon OpenSearch Service domain through a + * proxy.
+ */ +export interface VpcEndpoint { + /** + *The unique identifier of the endpoint.
+ */ + VpcEndpointId?: string; + + /** + *The creator of the endpoint.
+ */ + VpcEndpointOwner?: string; + + /** + *The Amazon Resource Name (ARN) of the domain associated with the endpoint.
+ */ + DomainArn?: string; + + /** + *Options to specify the subnets and security groups for an Amazon OpenSearch Service VPC + * endpoint.
+ */ + VpcOptions?: VPCDerivedInfo; + + /** + *The current status of the endpoint.
+ */ + Status?: VpcEndpointStatus | string; + + /** + *The connection endpoint ID for connecting to the domain.
+ */ + Endpoint?: string; +} + +/** + *Container for response parameters to the CreateVpcEndpoint
operation. Contains the configuration and status of the VPC Endpoint being created.
Information about the newly created VPC endpoint.
+ */ + VpcEndpoint: VpcEndpoint | undefined; +} + /** *Container for the parameters to the DeleteElasticsearchDomain
operation. Specifies the name of the Elasticsearch domain that you want to delete.
Deletes an Amazon OpenSearch Service-managed interface VPC endpoint.
+ */ +export interface DeleteVpcEndpointRequest { + /** + *The unique identifier of the endpoint to be deleted.
+ */ + VpcEndpointId: string | undefined; +} + +/** + *Summary information for an Amazon OpenSearch Service-managed VPC endpoint.
+ */ +export interface VpcEndpointSummary { + /** + *The unique identifier of the endpoint.
+ */ + VpcEndpointId?: string; + + /** + *The creator of the endpoint.
+ */ + VpcEndpointOwner?: string; + + /** + *The Amazon Resource Name (ARN) of the domain associated with the endpoint.
+ */ + DomainArn?: string; + + /** + *The current status of the endpoint.
+ */ + Status?: VpcEndpointStatus | string; +} + +/** + *Container for response parameters to the DeleteVpcEndpoint
operation. Contains the summarized detail of the VPC Endpoint being deleted.
Information about the deleted endpoint, including its current status (DELETING
+ * or DELETE_FAILED
).
Container for the parameters to the DescribeDomainAutoTunes
operation.
Contains the specific price and frequency of a recurring charges for a reserved Elasticsearch instance, or for a reserved Elasticsearch instance offering.
@@ -2965,6 +3169,58 @@ export interface DescribeReservedElasticsearchInstancesResponse { ReservedElasticsearchInstances?: ReservedElasticsearchInstance[]; } +/** + *Container for request parameters to the DescribeVpcEndpoints
operation. Specifies the list of VPC endpoints to be described.
The unique identifiers of the endpoints to get information about.
+ */ + VpcEndpointIds: string[] | undefined; +} + +export enum VpcEndpointErrorCode { + ENDPOINT_NOT_FOUND = "ENDPOINT_NOT_FOUND", + SERVER_ERROR = "SERVER_ERROR", +} + +/** + *Error information when attempting to describe an Amazon OpenSearch Service-managed VPC + * endpoint.
+ */ +export interface VpcEndpointError { + /** + *The unique identifier of the endpoint.
+ */ + VpcEndpointId?: string; + + /** + *The code associated with the error.
+ */ + ErrorCode?: VpcEndpointErrorCode | string; + + /** + *A message describing the error.
+ */ + ErrorMessage?: string; +} + +/** + *Container for response parameters to the DescribeVpcEndpoints
operation. Returns a list containing configuration details and
+ * status of the VPC Endpoints as well as a list containing error responses of the endpoints that could not be described
Information about each requested VPC endpoint.
+ */ + VpcEndpoints: VpcEndpoint[] | undefined; + + /** + *Any errors associated with the request.
+ */ + VpcEndpointErrors: VpcEndpointError[] | undefined; +} + /** ** Container for request parameters to @@ -3162,9 +3418,18 @@ export interface GetUpgradeHistoryRequest { NextToken?: string; } -export type UpgradeStep = "PRE_UPGRADE_CHECK" | "SNAPSHOT" | "UPGRADE"; +export enum UpgradeStep { + PRE_UPGRADE_CHECK = "PRE_UPGRADE_CHECK", + SNAPSHOT = "SNAPSHOT", + UPGRADE = "UPGRADE", +} -export type UpgradeStatus = "FAILED" | "IN_PROGRESS" | "SUCCEEDED" | "SUCCEEDED_WITH_ISSUES"; +export enum UpgradeStatus { + FAILED = "FAILED", + IN_PROGRESS = "IN_PROGRESS", + SUCCEEDED = "SUCCEEDED", + SUCCEEDED_WITH_ISSUES = "SUCCEEDED_WITH_ISSUES", +} /** *
Represents a single step of the Upgrade or Upgrade Eligibility Check workflow.
@@ -3623,6 +3888,93 @@ export interface ListTagsResponse { TagList?: Tag[]; } +/** + *Retrieves information about each principal that is allowed to access a + * given Amazon OpenSearch Service domain through the use of an interface VPC endpoint
+ */ +export interface ListVpcEndpointAccessRequest { + /** + *The name of the OpenSearch Service domain to retrieve access information for.
+ */ + DomainName: string | undefined; + + /** + *Provides an identifier to allow retrieval of paginated results.
+ */ + NextToken?: string; +} + +/** + *Container for response parameters to the ListVpcEndpointAccess
operation.
+ * Returns a list of accounts id and account type authorized to manage VPC endpoints.
List of AuthorizedPrincipal
describing the details of the permissions to manage VPC endpoints against the specified domain.
Provides an identifier to allow retrieval of paginated results.
+ */ + NextToken: string | undefined; +} + +/** + *Container for request parameters to the ListVpcEndpoints
operation.
Identifier to allow retrieval of paginated results.
+ */ + NextToken?: string; +} + +/** + *Container for response parameters to the ListVpcEndpoints
operation. Returns a list containing summarized details of the VPC endpoints.
Information about each endpoint.
+ */ + VpcEndpointSummaryList: VpcEndpointSummary[] | undefined; + + /** + *Provides an identifier to allow retrieval of paginated results.
+ */ + NextToken: string | undefined; +} + +/** + *Container for request parameters to the ListVpcEndpointsForDomain
operation. Specifies the domain whose VPC endpoints will be listed.
Name of the ElasticSearch domain whose VPC endpoints are to be listed.
+ */ + DomainName: string | undefined; + + /** + *Provides an identifier to allow retrieval of paginated results.
+ */ + NextToken?: string; +} + +/** + *Container for response parameters to the ListVpcEndpointsForDomain
operation. Returns a list containing summarized details of the VPC endpoints.
Provides list of VpcEndpointSummary
summarizing details of the VPC endpoints.
Information about each endpoint associated with the domain.
+ */ + NextToken: string | undefined; +} + /** *Container for parameters to PurchaseReservedElasticsearchInstanceOffering
Revokes access to an Amazon OpenSearch Service domain that was provided through an interface + * VPC endpoint.
+ */ +export interface RevokeVpcEndpointAccessRequest { + /** + *The name of the OpenSearch Service domain.
+ */ + DomainName: string | undefined; + + /** + *The account ID to revoke access from.
+ */ + Account: string | undefined; +} + +/** + *Container for response parameters to the RevokeVpcEndpointAccess
operation. The response body for this operation is empty.
Container for the parameters to the StartElasticsearchServiceSoftwareUpdate
operation. Specifies the name of the Elasticsearch domain that you wish to schedule a service software update on.
Modifies an Amazon OpenSearch Service-managed interface VPC endpoint.
+ */ +export interface UpdateVpcEndpointRequest { + /** + *Unique identifier of the VPC endpoint to be updated.
+ */ + VpcEndpointId: string | undefined; + + /** + *The security groups and/or subnets to add, remove, or modify.
+ */ + VpcOptions: VPCOptions | undefined; +} + +/** + *Contains the configuration and status of the VPC endpoint being updated.
+ */ +export interface UpdateVpcEndpointResponse { + /** + *The endpoint to be updated.
+ */ + VpcEndpoint: VpcEndpoint | undefined; +} + /** *
* Container for request parameters to
@@ -4109,6 +4507,27 @@ export const AssociatePackageResponseFilterSensitiveLog = (obj: AssociatePackage
...obj,
});
+/**
+ * @internal
+ */
+export const AuthorizeVpcEndpointAccessRequestFilterSensitiveLog = (obj: AuthorizeVpcEndpointAccessRequest): any => ({
+ ...obj,
+});
+
+/**
+ * @internal
+ */
+export const AuthorizedPrincipalFilterSensitiveLog = (obj: AuthorizedPrincipal): any => ({
+ ...obj,
+});
+
+/**
+ * @internal
+ */
+export const AuthorizeVpcEndpointAccessResponseFilterSensitiveLog = (obj: AuthorizeVpcEndpointAccessResponse): any => ({
+ ...obj,
+});
+
/**
* @internal
*/
@@ -4332,6 +4751,27 @@ export const CreatePackageResponseFilterSensitiveLog = (obj: CreatePackageRespon
...obj,
});
+/**
+ * @internal
+ */
+export const CreateVpcEndpointRequestFilterSensitiveLog = (obj: CreateVpcEndpointRequest): any => ({
+ ...obj,
+});
+
+/**
+ * @internal
+ */
+export const VpcEndpointFilterSensitiveLog = (obj: VpcEndpoint): any => ({
+ ...obj,
+});
+
+/**
+ * @internal
+ */
+export const CreateVpcEndpointResponseFilterSensitiveLog = (obj: CreateVpcEndpointResponse): any => ({
+ ...obj,
+});
+
/**
* @internal
*/
@@ -4405,6 +4845,27 @@ export const DeletePackageResponseFilterSensitiveLog = (obj: DeletePackageRespon
...obj,
});
+/**
+ * @internal
+ */
+export const DeleteVpcEndpointRequestFilterSensitiveLog = (obj: DeleteVpcEndpointRequest): any => ({
+ ...obj,
+});
+
+/**
+ * @internal
+ */
+export const VpcEndpointSummaryFilterSensitiveLog = (obj: VpcEndpointSummary): any => ({
+ ...obj,
+});
+
+/**
+ * @internal
+ */
+export const DeleteVpcEndpointResponseFilterSensitiveLog = (obj: DeleteVpcEndpointResponse): any => ({
+ ...obj,
+});
+
/**
* @internal
*/
@@ -4798,6 +5259,27 @@ export const DescribeReservedElasticsearchInstancesResponseFilterSensitiveLog =
...obj,
});
+/**
+ * @internal
+ */
+export const DescribeVpcEndpointsRequestFilterSensitiveLog = (obj: DescribeVpcEndpointsRequest): any => ({
+ ...obj,
+});
+
+/**
+ * @internal
+ */
+export const VpcEndpointErrorFilterSensitiveLog = (obj: VpcEndpointError): any => ({
+ ...obj,
+});
+
+/**
+ * @internal
+ */
+export const DescribeVpcEndpointsResponseFilterSensitiveLog = (obj: DescribeVpcEndpointsResponse): any => ({
+ ...obj,
+});
+
/**
* @internal
*/
@@ -4995,6 +5477,48 @@ export const ListTagsResponseFilterSensitiveLog = (obj: ListTagsResponse): any =
...obj,
});
+/**
+ * @internal
+ */
+export const ListVpcEndpointAccessRequestFilterSensitiveLog = (obj: ListVpcEndpointAccessRequest): any => ({
+ ...obj,
+});
+
+/**
+ * @internal
+ */
+export const ListVpcEndpointAccessResponseFilterSensitiveLog = (obj: ListVpcEndpointAccessResponse): any => ({
+ ...obj,
+});
+
+/**
+ * @internal
+ */
+export const ListVpcEndpointsRequestFilterSensitiveLog = (obj: ListVpcEndpointsRequest): any => ({
+ ...obj,
+});
+
+/**
+ * @internal
+ */
+export const ListVpcEndpointsResponseFilterSensitiveLog = (obj: ListVpcEndpointsResponse): any => ({
+ ...obj,
+});
+
+/**
+ * @internal
+ */
+export const ListVpcEndpointsForDomainRequestFilterSensitiveLog = (obj: ListVpcEndpointsForDomainRequest): any => ({
+ ...obj,
+});
+
+/**
+ * @internal
+ */
+export const ListVpcEndpointsForDomainResponseFilterSensitiveLog = (obj: ListVpcEndpointsForDomainResponse): any => ({
+ ...obj,
+});
+
/**
* @internal
*/
@@ -5038,6 +5562,20 @@ export const RemoveTagsRequestFilterSensitiveLog = (obj: RemoveTagsRequest): any
...obj,
});
+/**
+ * @internal
+ */
+export const RevokeVpcEndpointAccessRequestFilterSensitiveLog = (obj: RevokeVpcEndpointAccessRequest): any => ({
+ ...obj,
+});
+
+/**
+ * @internal
+ */
+export const RevokeVpcEndpointAccessResponseFilterSensitiveLog = (obj: RevokeVpcEndpointAccessResponse): any => ({
+ ...obj,
+});
+
/**
* @internal
*/
@@ -5098,6 +5636,20 @@ export const UpdatePackageResponseFilterSensitiveLog = (obj: UpdatePackageRespon
...obj,
});
+/**
+ * @internal
+ */
+export const UpdateVpcEndpointRequestFilterSensitiveLog = (obj: UpdateVpcEndpointRequest): any => ({
+ ...obj,
+});
+
+/**
+ * @internal
+ */
+export const UpdateVpcEndpointResponseFilterSensitiveLog = (obj: UpdateVpcEndpointResponse): any => ({
+ ...obj,
+});
+
/**
* @internal
*/
diff --git a/clients/client-elasticsearch-service/src/protocols/Aws_restJson1.ts b/clients/client-elasticsearch-service/src/protocols/Aws_restJson1.ts
index d9ffdaabeca3f..e960dbd4d2426 100644
--- a/clients/client-elasticsearch-service/src/protocols/Aws_restJson1.ts
+++ b/clients/client-elasticsearch-service/src/protocols/Aws_restJson1.ts
@@ -28,6 +28,10 @@ import {
} from "../commands/AcceptInboundCrossClusterSearchConnectionCommand";
import { AddTagsCommandInput, AddTagsCommandOutput } from "../commands/AddTagsCommand";
import { AssociatePackageCommandInput, AssociatePackageCommandOutput } from "../commands/AssociatePackageCommand";
+import {
+ AuthorizeVpcEndpointAccessCommandInput,
+ AuthorizeVpcEndpointAccessCommandOutput,
+} from "../commands/AuthorizeVpcEndpointAccessCommand";
import {
CancelElasticsearchServiceSoftwareUpdateCommandInput,
CancelElasticsearchServiceSoftwareUpdateCommandOutput,
@@ -41,6 +45,7 @@ import {
CreateOutboundCrossClusterSearchConnectionCommandOutput,
} from "../commands/CreateOutboundCrossClusterSearchConnectionCommand";
import { CreatePackageCommandInput, CreatePackageCommandOutput } from "../commands/CreatePackageCommand";
+import { CreateVpcEndpointCommandInput, CreateVpcEndpointCommandOutput } from "../commands/CreateVpcEndpointCommand";
import {
DeleteElasticsearchDomainCommandInput,
DeleteElasticsearchDomainCommandOutput,
@@ -58,6 +63,7 @@ import {
DeleteOutboundCrossClusterSearchConnectionCommandOutput,
} from "../commands/DeleteOutboundCrossClusterSearchConnectionCommand";
import { DeletePackageCommandInput, DeletePackageCommandOutput } from "../commands/DeletePackageCommand";
+import { DeleteVpcEndpointCommandInput, DeleteVpcEndpointCommandOutput } from "../commands/DeleteVpcEndpointCommand";
import {
DescribeDomainAutoTunesCommandInput,
DescribeDomainAutoTunesCommandOutput,
@@ -99,6 +105,10 @@ import {
DescribeReservedElasticsearchInstancesCommandInput,
DescribeReservedElasticsearchInstancesCommandOutput,
} from "../commands/DescribeReservedElasticsearchInstancesCommand";
+import {
+ DescribeVpcEndpointsCommandInput,
+ DescribeVpcEndpointsCommandOutput,
+} from "../commands/DescribeVpcEndpointsCommand";
import { DissociatePackageCommandInput, DissociatePackageCommandOutput } from "../commands/DissociatePackageCommand";
import {
GetCompatibleElasticsearchVersionsCommandInput,
@@ -128,6 +138,15 @@ import {
ListPackagesForDomainCommandOutput,
} from "../commands/ListPackagesForDomainCommand";
import { ListTagsCommandInput, ListTagsCommandOutput } from "../commands/ListTagsCommand";
+import {
+ ListVpcEndpointAccessCommandInput,
+ ListVpcEndpointAccessCommandOutput,
+} from "../commands/ListVpcEndpointAccessCommand";
+import { ListVpcEndpointsCommandInput, ListVpcEndpointsCommandOutput } from "../commands/ListVpcEndpointsCommand";
+import {
+ ListVpcEndpointsForDomainCommandInput,
+ ListVpcEndpointsForDomainCommandOutput,
+} from "../commands/ListVpcEndpointsForDomainCommand";
import {
PurchaseReservedElasticsearchInstanceOfferingCommandInput,
PurchaseReservedElasticsearchInstanceOfferingCommandOutput,
@@ -137,6 +156,10 @@ import {
RejectInboundCrossClusterSearchConnectionCommandOutput,
} from "../commands/RejectInboundCrossClusterSearchConnectionCommand";
import { RemoveTagsCommandInput, RemoveTagsCommandOutput } from "../commands/RemoveTagsCommand";
+import {
+ RevokeVpcEndpointAccessCommandInput,
+ RevokeVpcEndpointAccessCommandOutput,
+} from "../commands/RevokeVpcEndpointAccessCommand";
import {
StartElasticsearchServiceSoftwareUpdateCommandInput,
StartElasticsearchServiceSoftwareUpdateCommandOutput,
@@ -146,6 +169,7 @@ import {
UpdateElasticsearchDomainConfigCommandOutput,
} from "../commands/UpdateElasticsearchDomainConfigCommand";
import { UpdatePackageCommandInput, UpdatePackageCommandOutput } from "../commands/UpdatePackageCommand";
+import { UpdateVpcEndpointCommandInput, UpdateVpcEndpointCommandOutput } from "../commands/UpdateVpcEndpointCommand";
import {
UpgradeElasticsearchDomainCommandInput,
UpgradeElasticsearchDomainCommandOutput,
@@ -159,6 +183,7 @@ import {
AdvancedSecurityOptions,
AdvancedSecurityOptionsInput,
AdvancedSecurityOptionsStatus,
+ AuthorizedPrincipal,
AutoTune,
AutoTuneDetails,
AutoTuneMaintenanceSchedule,
@@ -238,6 +263,9 @@ import {
ValidationException,
VPCDerivedInfo,
VPCDerivedInfoStatus,
+ VpcEndpoint,
+ VpcEndpointError,
+ VpcEndpointSummary,
VPCOptions,
ZoneAwarenessConfig,
} from "../models/models_0";
@@ -319,6 +347,33 @@ export const serializeAws_restJson1AssociatePackageCommand = async (
});
};
+export const serializeAws_restJson1AuthorizeVpcEndpointAccessCommand = async (
+ input: AuthorizeVpcEndpointAccessCommandInput,
+ context: __SerdeContext
+): Promise<__HttpRequest> => {
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
+ const headers: any = {
+ "content-type": "application/json",
+ };
+ let resolvedPath =
+ `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
+ "/2015-01-01/es/domain/{DomainName}/authorizeVpcEndpointAccess";
+ resolvedPath = __resolvedPath(resolvedPath, input, "DomainName", () => input.DomainName!, "{DomainName}", false);
+ let body: any;
+ body = JSON.stringify({
+ ...(input.Account != null && { Account: input.Account }),
+ });
+ return new __HttpRequest({
+ protocol,
+ hostname,
+ port,
+ method: "POST",
+ headers,
+ path: resolvedPath,
+ body,
+ });
+};
+
export const serializeAws_restJson1CancelElasticsearchServiceSoftwareUpdateCommand = async (
input: CancelElasticsearchServiceSoftwareUpdateCommandInput,
context: __SerdeContext
@@ -473,6 +528,33 @@ export const serializeAws_restJson1CreatePackageCommand = async (
});
};
+export const serializeAws_restJson1CreateVpcEndpointCommand = async (
+ input: CreateVpcEndpointCommandInput,
+ context: __SerdeContext
+): Promise<__HttpRequest> => {
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
+ const headers: any = {
+ "content-type": "application/json",
+ };
+ const resolvedPath =
+ `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2015-01-01/es/vpcEndpoints";
+ let body: any;
+ body = JSON.stringify({
+ ...(input.ClientToken != null && { ClientToken: input.ClientToken }),
+ ...(input.DomainArn != null && { DomainArn: input.DomainArn }),
+ ...(input.VpcOptions != null && { VpcOptions: serializeAws_restJson1VPCOptions(input.VpcOptions, context) }),
+ });
+ return new __HttpRequest({
+ protocol,
+ hostname,
+ port,
+ method: "POST",
+ headers,
+ path: resolvedPath,
+ body,
+ });
+};
+
export const serializeAws_restJson1DeleteElasticsearchDomainCommand = async (
input: DeleteElasticsearchDomainCommandInput,
context: __SerdeContext
@@ -595,6 +677,35 @@ export const serializeAws_restJson1DeletePackageCommand = async (
});
};
+export const serializeAws_restJson1DeleteVpcEndpointCommand = async (
+ input: DeleteVpcEndpointCommandInput,
+ context: __SerdeContext
+): Promise<__HttpRequest> => {
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
+ const headers: any = {};
+ let resolvedPath =
+ `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
+ "/2015-01-01/es/vpcEndpoints/{VpcEndpointId}";
+ resolvedPath = __resolvedPath(
+ resolvedPath,
+ input,
+ "VpcEndpointId",
+ () => input.VpcEndpointId!,
+ "{VpcEndpointId}",
+ false
+ );
+ let body: any;
+ return new __HttpRequest({
+ protocol,
+ hostname,
+ port,
+ method: "DELETE",
+ headers,
+ path: resolvedPath,
+ body,
+ });
+};
+
export const serializeAws_restJson1DescribeDomainAutoTunesCommand = async (
input: DescribeDomainAutoTunesCommandInput,
context: __SerdeContext
@@ -892,6 +1003,33 @@ export const serializeAws_restJson1DescribeReservedElasticsearchInstancesCommand
});
};
+export const serializeAws_restJson1DescribeVpcEndpointsCommand = async (
+ input: DescribeVpcEndpointsCommandInput,
+ context: __SerdeContext
+): Promise<__HttpRequest> => {
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
+ const headers: any = {
+ "content-type": "application/json",
+ };
+ const resolvedPath =
+ `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2015-01-01/es/vpcEndpoints/describe";
+ let body: any;
+ body = JSON.stringify({
+ ...(input.VpcEndpointIds != null && {
+ VpcEndpointIds: serializeAws_restJson1VpcEndpointIdList(input.VpcEndpointIds, context),
+ }),
+ });
+ return new __HttpRequest({
+ protocol,
+ hostname,
+ port,
+ method: "POST",
+ headers,
+ path: resolvedPath,
+ body,
+ });
+};
+
export const serializeAws_restJson1DissociatePackageCommand = async (
input: DissociatePackageCommandInput,
context: __SerdeContext
@@ -1172,6 +1310,82 @@ export const serializeAws_restJson1ListTagsCommand = async (
});
};
+export const serializeAws_restJson1ListVpcEndpointAccessCommand = async (
+ input: ListVpcEndpointAccessCommandInput,
+ context: __SerdeContext
+): Promise<__HttpRequest> => {
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
+ const headers: any = {};
+ let resolvedPath =
+ `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
+ "/2015-01-01/es/domain/{DomainName}/listVpcEndpointAccess";
+ resolvedPath = __resolvedPath(resolvedPath, input, "DomainName", () => input.DomainName!, "{DomainName}", false);
+ const query: any = map({
+ nextToken: [, input.NextToken!],
+ });
+ let body: any;
+ return new __HttpRequest({
+ protocol,
+ hostname,
+ port,
+ method: "GET",
+ headers,
+ path: resolvedPath,
+ query,
+ body,
+ });
+};
+
+export const serializeAws_restJson1ListVpcEndpointsCommand = async (
+ input: ListVpcEndpointsCommandInput,
+ context: __SerdeContext
+): Promise<__HttpRequest> => {
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
+ const headers: any = {};
+ const resolvedPath =
+ `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2015-01-01/es/vpcEndpoints";
+ const query: any = map({
+ nextToken: [, input.NextToken!],
+ });
+ let body: any;
+ return new __HttpRequest({
+ protocol,
+ hostname,
+ port,
+ method: "GET",
+ headers,
+ path: resolvedPath,
+ query,
+ body,
+ });
+};
+
+export const serializeAws_restJson1ListVpcEndpointsForDomainCommand = async (
+ input: ListVpcEndpointsForDomainCommandInput,
+ context: __SerdeContext
+): Promise<__HttpRequest> => {
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
+ const headers: any = {};
+ let resolvedPath =
+ `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
+ "/2015-01-01/es/domain/{DomainName}/vpcEndpoints";
+ resolvedPath = __resolvedPath(resolvedPath, input, "DomainName", () => input.DomainName!, "{DomainName}", false);
+ const query: any = map({
+ nextToken: [, input.NextToken!],
+ });
+ let body: any;
+ return new __HttpRequest({
+ protocol,
+ hostname,
+ port,
+ method: "GET",
+ headers,
+ path: resolvedPath,
+ query,
+ body,
+ });
+};
+
export const serializeAws_restJson1PurchaseReservedElasticsearchInstanceOfferingCommand = async (
input: PurchaseReservedElasticsearchInstanceOfferingCommandInput,
context: __SerdeContext
@@ -1257,6 +1471,33 @@ export const serializeAws_restJson1RemoveTagsCommand = async (
});
};
+export const serializeAws_restJson1RevokeVpcEndpointAccessCommand = async (
+ input: RevokeVpcEndpointAccessCommandInput,
+ context: __SerdeContext
+): Promise<__HttpRequest> => {
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
+ const headers: any = {
+ "content-type": "application/json",
+ };
+ let resolvedPath =
+ `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
+ "/2015-01-01/es/domain/{DomainName}/revokeVpcEndpointAccess";
+ resolvedPath = __resolvedPath(resolvedPath, input, "DomainName", () => input.DomainName!, "{DomainName}", false);
+ let body: any;
+ body = JSON.stringify({
+ ...(input.Account != null && { Account: input.Account }),
+ });
+ return new __HttpRequest({
+ protocol,
+ hostname,
+ port,
+ method: "POST",
+ headers,
+ path: resolvedPath,
+ body,
+ });
+};
+
export const serializeAws_restJson1StartElasticsearchServiceSoftwareUpdateCommand = async (
input: StartElasticsearchServiceSoftwareUpdateCommandInput,
context: __SerdeContext
@@ -1381,6 +1622,32 @@ export const serializeAws_restJson1UpdatePackageCommand = async (
});
};
+export const serializeAws_restJson1UpdateVpcEndpointCommand = async (
+ input: UpdateVpcEndpointCommandInput,
+ context: __SerdeContext
+): Promise<__HttpRequest> => {
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
+ const headers: any = {
+ "content-type": "application/json",
+ };
+ const resolvedPath =
+ `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2015-01-01/es/vpcEndpoints/update";
+ let body: any;
+ body = JSON.stringify({
+ ...(input.VpcEndpointId != null && { VpcEndpointId: input.VpcEndpointId }),
+ ...(input.VpcOptions != null && { VpcOptions: serializeAws_restJson1VPCOptions(input.VpcOptions, context) }),
+ });
+ return new __HttpRequest({
+ protocol,
+ hostname,
+ port,
+ method: "POST",
+ headers,
+ path: resolvedPath,
+ body,
+ });
+};
+
export const serializeAws_restJson1UpgradeElasticsearchDomainCommand = async (
input: UpgradeElasticsearchDomainCommandInput,
context: __SerdeContext
@@ -1561,6 +1828,62 @@ const deserializeAws_restJson1AssociatePackageCommandError = async (
}
};
+export const deserializeAws_restJson1AuthorizeVpcEndpointAccessCommand = async (
+ output: __HttpResponse,
+ context: __SerdeContext
+): Promise The Amazon Resource Name (ARN) of the Elasticsearch domain. See Identifiers for IAM Entities in Using AWS Identity and Access Management for more information. \n Container for response returned by\n Provides access to an Amazon OpenSearch Service domain through the use of an interface VPC endpoint. The name of the OpenSearch Service domain to provide access to. The account ID to grant access to. Container for request parameters to the Information about the account or service that was provided access to the\n domain. Container for response parameters to the The type of principal. The IAM principal that is allowed access to the domain. Information about an account or service that has access to an Amazon\n OpenSearch Service domain through the use of an interface VPC endpoint. Specifies the Auto-Tune desired state. Valid values are ENABLED, DISABLED. Specifies the Auto-Tune desired state. Valid values are ENABLED, DISABLED. Specifies the Auto-Tune state for the Elasticsearch domain. For valid states see the Developer Guide. Specifies the Auto-Tune state for the Elasticsearch domain. For valid states see the Developer Guide. Specifies Auto-Tune type. Valid value is SCHEDULED_ACTION. Specifies Auto-Tune type. Valid value is SCHEDULED_ACTION. The progress details of a specific domain configuration change. \n Container for response returned by\n Creates an Amazon OpenSearch Service-managed VPC endpoint. The Amazon Resource Name (ARN) of the domain to grant access to. Options to specify the subnets and security groups for the endpoint. Unique, case-sensitive identifier to ensure idempotency of the request. Container for the parameters to the Information about the newly created VPC endpoint. Container for response parameters to the \n Container for response parameters to\n Deletes an Amazon OpenSearch Service-managed interface VPC endpoint. The unique identifier of the endpoint to be deleted. Deletes an Amazon OpenSearch Service-managed interface VPC endpoint. Information about the deleted endpoint, including its current status ( Container for response parameters to the Container for results from Describes one or more Amazon OpenSearch Service-managed VPC endpoints. The unique identifiers of the endpoints to get information about. Container for request parameters to the Information about each requested VPC endpoint. Any errors associated with the request. Container for response parameters to the \n Container for response returned by\n The instance type for an Elasticsearch cluster. UltraWarm instance types are not supported for data instances. The number of instances in the specified domain cluster. A boolean value to indicate whether a dedicated master node is enabled. See About Dedicated Master Nodes for more information. A boolean value to indicate whether zone awareness is enabled. See About Zone Awareness for more information. Specifies the zone awareness configuration for a domain when zone awareness is enabled. The instance type for a dedicated master node. Total number of dedicated master nodes, active and on standby, for the cluster. The instance type for an Elasticsearch cluster. UltraWarm instance types are not supported for data instances. The number of instances in the specified domain cluster. A boolean value to indicate whether a dedicated master node is enabled. See About Dedicated Master Nodes for more information. A boolean value to indicate whether zone awareness is enabled. See About Zone Awareness for more information. Specifies the zone awareness configuration for a domain when zone awareness is enabled. The instance type for a dedicated master node. Total number of dedicated master nodes, active and on standby, for the cluster. True to enable warm storage. Status of the Encryption At Rest options for the specified Elasticsearch domain. The result of a Retrieves information about each principal that is allowed to access a\n given Amazon OpenSearch Service domain through the use of an interface VPC endpoint. The name of the OpenSearch Service domain to retrieve access information for. Provides an identifier to allow retrieval of paginated results. Retrieves information about each principal that is allowed to access a\n given Amazon OpenSearch Service domain through the use of an interface VPC endpoint List of Provides an identifier to allow retrieval of paginated results. Container for response parameters to the Retrieves all Amazon OpenSearch Service-managed VPC endpoints in the current account and Region. Retrieves all Amazon OpenSearch Service-managed VPC endpoints associated with a particular domain. Name of the ElasticSearch domain whose VPC endpoints are to be listed. Provides an identifier to allow retrieval of paginated results. Container for request parameters to the Provides list of Information about each endpoint associated with the domain. Container for response parameters to the Identifier to allow retrieval of paginated results. Container for request parameters to the Information about each endpoint. Provides an identifier to allow retrieval of paginated results. Container for response parameters to the Type of Log File, it can be one of the following:\n \n AssociatePackage\n
\n operation.\n AuthorizeVpcEndpointAccess
operation.\n Specifies the account to be permitted to manage VPC endpoints against the domain.AuthorizeVpcEndpointAccess
operation.\n Contains the account ID and the type of the account being authorized to access the VPC endpoint.\n CreatePackage\n
\n operation.\n CreateVpcEndpointRequest
operation.CreateVpcEndpoint
operation. Contains the configuration and status of the VPC Endpoint being created.\n DeletePackage\n
\n operation.\n DELETING
\n or DELETE_FAILED
).DeleteVpcEndpoint
operation. Contains the summarized detail of the VPC Endpoint being deleted.DescribeReservedElasticsearchInstances
DescribeVpcEndpoints
operation. Specifies the list of VPC endpoints to be described.DescribeVpcEndpoints
operation. Returns a list containing configuration details and\n status of the VPC Endpoints as well as a list containing error responses of the endpoints that could not be described\n DissociatePackage\n
\n operation.\n ListTags
operation. Contains tags for all requested Elasticsearch domains.AuthorizedPrincipal
describing the details of the permissions to manage VPC endpoints against the specified domain.ListVpcEndpointAccess
operation.\n Returns a list of accounts id and account type authorized to manage VPC endpoints.ListVpcEndpointsForDomain
operation. Specifies the domain whose VPC endpoints will be listed.VpcEndpointSummary
summarizing details of the VPC endpoints.ListVpcEndpointsForDomain
operation. Returns a list containing summarized details of the VPC endpoints.ListVpcEndpoints
operation.ListVpcEndpoints
operation. Returns a list containing summarized details of the VPC endpoints.\n
\n
Type of Log File, it can be one of the following:\n
The state of a requested change. One of the following:
\nThe state of a requested change. One of the following:
\nThe overall status value of the domain configuration change.
", - "smithy.api#enum": [ - { - "value": "PENDING", - "name": "PENDING" - }, - { - "value": "PROCESSING", - "name": "PROCESSING" - }, - { - "value": "COMPLETED", - "name": "COMPLETED" - }, - { - "value": "FAILED", - "name": "FAILED" + "type": "enum", + "members": { + "PENDING": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "PENDING" + } + }, + "PROCESSING": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "PROCESSING" + } + }, + "COMPLETED": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "COMPLETED" + } + }, + "FAILED": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "FAILED" } - ] + } + }, + "traits": { + "smithy.api#documentation": "The overall status value of the domain configuration change.
" } }, "com.amazonaws.elasticsearchservice#OwnerId": { @@ -7616,53 +8410,67 @@ } }, "com.amazonaws.elasticsearchservice#PackageStatus": { - "type": "string", - "traits": { - "smithy.api#enum": [ - { - "value": "COPYING", - "name": "COPYING" - }, - { - "value": "COPY_FAILED", - "name": "COPY_FAILED" - }, - { - "value": "VALIDATING", - "name": "VALIDATING" - }, - { - "value": "VALIDATION_FAILED", - "name": "VALIDATION_FAILED" - }, - { - "value": "AVAILABLE", - "name": "AVAILABLE" - }, - { - "value": "DELETING", - "name": "DELETING" - }, - { - "value": "DELETED", - "name": "DELETED" - }, - { - "value": "DELETE_FAILED", - "name": "DELETE_FAILED" + "type": "enum", + "members": { + "COPYING": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "COPYING" + } + }, + "COPY_FAILED": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "COPY_FAILED" + } + }, + "VALIDATING": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "VALIDATING" + } + }, + "VALIDATION_FAILED": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "VALIDATION_FAILED" + } + }, + "AVAILABLE": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "AVAILABLE" } - ] + }, + "DELETING": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "DELETING" + } + }, + "DELETED": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "DELETED" + } + }, + "DELETE_FAILED": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "DELETE_FAILED" + } + } } }, "com.amazonaws.elasticsearchservice#PackageType": { - "type": "string", - "traits": { - "smithy.api#enum": [ - { - "value": "TXT-DICTIONARY", - "name": "TXT_DICTIONARY" + "type": "enum", + "members": { + "TXT_DICTIONARY": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "TXT-DICTIONARY" } - ] + } } }, "com.amazonaws.elasticsearchservice#PackageVersion": { @@ -7715,6 +8523,26 @@ "smithy.api#documentation": "Access policy rules for an Elasticsearch domain service endpoints. For more information, see Configuring Access Policies in the Amazon Elasticsearch Service Developer Guide. The maximum size of a policy document is 100 KB.
" } }, + "com.amazonaws.elasticsearchservice#PrincipalType": { + "type": "enum", + "members": { + "AWS_ACCOUNT": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "AWS_ACCOUNT" + } + }, + "AWS_SERVICE": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "AWS_SERVICE" + } + } + }, + "traits": { + "smithy.api#documentation": "Specifies the type of AWS account permitted to manage VPC endpoints.:\n
Revokes access to an Amazon OpenSearch Service domain that was provided through an interface\n VPC endpoint.
", + "smithy.api#http": { + "method": "POST", + "uri": "/2015-01-01/es/domain/{DomainName}/revokeVpcEndpointAccess", + "code": 200 + } + } + }, + "com.amazonaws.elasticsearchservice#RevokeVpcEndpointAccessRequest": { + "type": "structure", + "members": { + "DomainName": { + "target": "com.amazonaws.elasticsearchservice#DomainName", + "traits": { + "smithy.api#documentation": "The name of the OpenSearch Service domain.
", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "Account": { + "target": "com.amazonaws.elasticsearchservice#AWSAccount", + "traits": { + "smithy.api#documentation": "The account ID to revoke access from.
", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "Revokes access to an Amazon OpenSearch Service domain that was provided through an interface\n VPC endpoint.
" + } + }, + "com.amazonaws.elasticsearchservice#RevokeVpcEndpointAccessResponse": { + "type": "structure", + "members": {}, + "traits": { + "smithy.api#documentation": "Container for response parameters to the RevokeVpcEndpointAccess
operation. The response body for this operation is empty.
Specifies the rollback state while disabling Auto-Tune for the domain. Valid values are NO_ROLLBACK, DEFAULT_ROLLBACK.
", - "smithy.api#enum": [ - { - "value": "NO_ROLLBACK", - "name": "NO_ROLLBACK" - }, - { - "value": "DEFAULT_ROLLBACK", - "name": "DEFAULT_ROLLBACK" + "type": "enum", + "members": { + "NO_ROLLBACK": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "NO_ROLLBACK" } - ] + }, + "DEFAULT_ROLLBACK": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "DEFAULT_ROLLBACK" + } + } + }, + "traits": { + "smithy.api#documentation": "Specifies the rollback state while disabling Auto-Tune for the domain. Valid values are NO_ROLLBACK, DEFAULT_ROLLBACK.
" } }, "com.amazonaws.elasticsearchservice#S3BucketName": { @@ -8327,19 +9227,23 @@ } }, "com.amazonaws.elasticsearchservice#ScheduledAutoTuneActionType": { - "type": "string", - "traits": { - "smithy.api#documentation": "Specifies Auto-Tune action type. Valid values are JVM_HEAP_SIZE_TUNING and JVM_YOUNG_GEN_TUNING.
", - "smithy.api#enum": [ - { - "value": "JVM_HEAP_SIZE_TUNING", - "name": "JVM_HEAP_SIZE_TUNING" - }, - { - "value": "JVM_YOUNG_GEN_TUNING", - "name": "JVM_YOUNG_GEN_TUNING" + "type": "enum", + "members": { + "JVM_HEAP_SIZE_TUNING": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "JVM_HEAP_SIZE_TUNING" } - ] + }, + "JVM_YOUNG_GEN_TUNING": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "JVM_YOUNG_GEN_TUNING" + } + } + }, + "traits": { + "smithy.api#documentation": "Specifies Auto-Tune action type. Valid values are JVM_HEAP_SIZE_TUNING and JVM_YOUNG_GEN_TUNING.
" } }, "com.amazonaws.elasticsearchservice#ScheduledAutoTuneDescription": { @@ -8366,38 +9270,44 @@ "Action": { "target": "com.amazonaws.elasticsearchservice#ScheduledAutoTuneDescription", "traits": { - "smithy.api#documentation": "Specifies Auto-Tune action description.
" + "smithy.api#documentation": "Specifies Auto-Tune action description.
" + } + }, + "Severity": { + "target": "com.amazonaws.elasticsearchservice#ScheduledAutoTuneSeverityType", + "traits": { + "smithy.api#documentation": "Specifies Auto-Tune action severity. Valid values are LOW, MEDIUM and HIGH.
" + } + } + }, + "traits": { + "smithy.api#documentation": "Specifies details of the scheduled Auto-Tune action. See the Developer Guide for more information.
" + } + }, + "com.amazonaws.elasticsearchservice#ScheduledAutoTuneSeverityType": { + "type": "enum", + "members": { + "LOW": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "LOW" + } + }, + "MEDIUM": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "MEDIUM" } }, - "Severity": { - "target": "com.amazonaws.elasticsearchservice#ScheduledAutoTuneSeverityType", + "HIGH": { + "target": "smithy.api#Unit", "traits": { - "smithy.api#documentation": "Specifies Auto-Tune action severity. Valid values are LOW, MEDIUM and HIGH.
" + "smithy.api#enumValue": "HIGH" } } }, "traits": { - "smithy.api#documentation": "Specifies details of the scheduled Auto-Tune action. See the Developer Guide for more information.
" - } - }, - "com.amazonaws.elasticsearchservice#ScheduledAutoTuneSeverityType": { - "type": "string", - "traits": { - "smithy.api#documentation": "Specifies Auto-Tune action severity. Valid values are LOW, MEDIUM and HIGH.
", - "smithy.api#enum": [ - { - "value": "LOW", - "name": "LOW" - }, - { - "value": "MEDIUM", - "name": "MEDIUM" - }, - { - "value": "HIGH", - "name": "HIGH" - } - ] + "smithy.api#documentation": "Specifies Auto-Tune action severity. Valid values are LOW, MEDIUM and HIGH.
" } }, "com.amazonaws.elasticsearchservice#ServiceSoftwareOptions": { @@ -8638,18 +9548,20 @@ } }, "com.amazonaws.elasticsearchservice#TLSSecurityPolicy": { - "type": "string", - "traits": { - "smithy.api#enum": [ - { - "value": "Policy-Min-TLS-1-0-2019-07", - "name": "POLICY_MIN_TLS_1_0_2019_07" - }, - { - "value": "Policy-Min-TLS-1-2-2019-07", - "name": "POLICY_MIN_TLS_1_2_2019_07" + "type": "enum", + "members": { + "POLICY_MIN_TLS_1_0_2019_07": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "Policy-Min-TLS-1-0-2019-07" + } + }, + "POLICY_MIN_TLS_1_2_2019_07": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "Policy-Min-TLS-1-2-2019-07" } - ] + } } }, "com.amazonaws.elasticsearchservice#Tag": { @@ -8704,15 +9616,17 @@ } }, "com.amazonaws.elasticsearchservice#TimeUnit": { - "type": "string", - "traits": { - "smithy.api#documentation": "Specifies the unit of a maintenance schedule duration. Valid value is HOUR. See the Developer Guide for more information.
", - "smithy.api#enum": [ - { - "value": "HOURS", - "name": "HOURS" + "type": "enum", + "members": { + "HOURS": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "HOURS" } - ] + } + }, + "traits": { + "smithy.api#documentation": "Specifies the unit of a maintenance schedule duration. Valid value is HOUR. See the Developer Guide for more information.
" } }, "com.amazonaws.elasticsearchservice#TotalNumberOfStages": { @@ -8975,6 +9889,80 @@ "com.amazonaws.elasticsearchservice#UpdateTimestamp": { "type": "timestamp" }, + "com.amazonaws.elasticsearchservice#UpdateVpcEndpoint": { + "type": "operation", + "input": { + "target": "com.amazonaws.elasticsearchservice#UpdateVpcEndpointRequest" + }, + "output": { + "target": "com.amazonaws.elasticsearchservice#UpdateVpcEndpointResponse" + }, + "errors": [ + { + "target": "com.amazonaws.elasticsearchservice#BaseException" + }, + { + "target": "com.amazonaws.elasticsearchservice#ConflictException" + }, + { + "target": "com.amazonaws.elasticsearchservice#DisabledOperationException" + }, + { + "target": "com.amazonaws.elasticsearchservice#InternalException" + }, + { + "target": "com.amazonaws.elasticsearchservice#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.elasticsearchservice#ValidationException" + } + ], + "traits": { + "smithy.api#documentation": "Modifies an Amazon OpenSearch Service-managed interface VPC endpoint.
", + "smithy.api#http": { + "method": "POST", + "uri": "/2015-01-01/es/vpcEndpoints/update", + "code": 200 + } + } + }, + "com.amazonaws.elasticsearchservice#UpdateVpcEndpointRequest": { + "type": "structure", + "members": { + "VpcEndpointId": { + "target": "com.amazonaws.elasticsearchservice#VpcEndpointId", + "traits": { + "smithy.api#documentation": "Unique identifier of the VPC endpoint to be updated.
", + "smithy.api#required": {} + } + }, + "VpcOptions": { + "target": "com.amazonaws.elasticsearchservice#VPCOptions", + "traits": { + "smithy.api#documentation": "The security groups and/or subnets to add, remove, or modify.
", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "Modifies an Amazon OpenSearch Service-managed interface VPC endpoint.
" + } + }, + "com.amazonaws.elasticsearchservice#UpdateVpcEndpointResponse": { + "type": "structure", + "members": { + "VpcEndpoint": { + "target": "com.amazonaws.elasticsearchservice#VpcEndpoint", + "traits": { + "smithy.api#documentation": "The endpoint to be updated.
", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "Contains the configuration and status of the VPC endpoint being updated.
" + } + }, "com.amazonaws.elasticsearchservice#UpgradeElasticsearchDomain": { "type": "operation", "input": { @@ -9107,45 +10095,55 @@ "type": "string" }, "com.amazonaws.elasticsearchservice#UpgradeStatus": { - "type": "string", - "traits": { - "smithy.api#enum": [ - { - "value": "IN_PROGRESS", - "name": "IN_PROGRESS" - }, - { - "value": "SUCCEEDED", - "name": "SUCCEEDED" - }, - { - "value": "SUCCEEDED_WITH_ISSUES", - "name": "SUCCEEDED_WITH_ISSUES" - }, - { - "value": "FAILED", - "name": "FAILED" + "type": "enum", + "members": { + "IN_PROGRESS": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "IN_PROGRESS" + } + }, + "SUCCEEDED": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "SUCCEEDED" } - ] + }, + "SUCCEEDED_WITH_ISSUES": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "SUCCEEDED_WITH_ISSUES" + } + }, + "FAILED": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "FAILED" + } + } } }, "com.amazonaws.elasticsearchservice#UpgradeStep": { - "type": "string", - "traits": { - "smithy.api#enum": [ - { - "value": "PRE_UPGRADE_CHECK", - "name": "PRE_UPGRADE_CHECK" - }, - { - "value": "SNAPSHOT", - "name": "SNAPSHOT" - }, - { - "value": "UPGRADE", - "name": "UPGRADE" + "type": "enum", + "members": { + "PRE_UPGRADE_CHECK": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "PRE_UPGRADE_CHECK" + } + }, + "SNAPSHOT": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "SNAPSHOT" } - ] + }, + "UPGRADE": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "UPGRADE" + } + } } }, "com.amazonaws.elasticsearchservice#UpgradeStepItem": { @@ -9307,27 +10305,241 @@ } }, "com.amazonaws.elasticsearchservice#VolumeType": { + "type": "enum", + "members": { + "standard": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "standard" + } + }, + "gp2": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "gp2" + } + }, + "io1": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "io1" + } + }, + "gp3": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "gp3" + } + } + }, + "traits": { + "smithy.api#documentation": "The type of EBS volume, standard, gp2, gp3 or io1. See Configuring EBS-based Storagefor more information.
" + } + }, + "com.amazonaws.elasticsearchservice#VpcEndpoint": { + "type": "structure", + "members": { + "VpcEndpointId": { + "target": "com.amazonaws.elasticsearchservice#VpcEndpointId", + "traits": { + "smithy.api#documentation": "The unique identifier of the endpoint.
" + } + }, + "VpcEndpointOwner": { + "target": "com.amazonaws.elasticsearchservice#AWSAccount", + "traits": { + "smithy.api#documentation": "The creator of the endpoint.
" + } + }, + "DomainArn": { + "target": "com.amazonaws.elasticsearchservice#DomainArn", + "traits": { + "smithy.api#documentation": "The Amazon Resource Name (ARN) of the domain associated with the endpoint.
" + } + }, + "VpcOptions": { + "target": "com.amazonaws.elasticsearchservice#VPCDerivedInfo", + "traits": { + "smithy.api#documentation": "Options to specify the subnets and security groups for an Amazon OpenSearch Service VPC\n endpoint.
" + } + }, + "Status": { + "target": "com.amazonaws.elasticsearchservice#VpcEndpointStatus", + "traits": { + "smithy.api#documentation": "The current status of the endpoint.
" + } + }, + "Endpoint": { + "target": "com.amazonaws.elasticsearchservice#Endpoint", + "traits": { + "smithy.api#documentation": "The connection endpoint ID for connecting to the domain.
" + } + } + }, + "traits": { + "smithy.api#documentation": "The connection endpoint for connecting to an Amazon OpenSearch Service domain through a\n proxy.
" + } + }, + "com.amazonaws.elasticsearchservice#VpcEndpointError": { + "type": "structure", + "members": { + "VpcEndpointId": { + "target": "com.amazonaws.elasticsearchservice#VpcEndpointId", + "traits": { + "smithy.api#documentation": "The unique identifier of the endpoint.
" + } + }, + "ErrorCode": { + "target": "com.amazonaws.elasticsearchservice#VpcEndpointErrorCode", + "traits": { + "smithy.api#documentation": "The code associated with the error.
" + } + }, + "ErrorMessage": { + "target": "com.amazonaws.elasticsearchservice#String", + "traits": { + "smithy.api#documentation": "A message describing the error.
" + } + } + }, + "traits": { + "smithy.api#documentation": "Error information when attempting to describe an Amazon OpenSearch Service-managed VPC\n endpoint.
" + } + }, + "com.amazonaws.elasticsearchservice#VpcEndpointErrorCode": { + "type": "enum", + "members": { + "ENDPOINT_NOT_FOUND": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "ENDPOINT_NOT_FOUND" + } + }, + "SERVER_ERROR": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "SERVER_ERROR" + } + } + }, + "traits": { + "smithy.api#documentation": "Specifies the error code of the failure encountered while describing the VPC endpoint:\n
The type of EBS volume, standard, gp2, gp3 or io1. See Configuring EBS-based Storagefor more information.
", - "smithy.api#enum": [ - { - "value": "standard", - "name": "standard" - }, - { - "value": "gp2", - "name": "gp2" - }, - { - "value": "io1", - "name": "io1" - }, - { - "value": "gp3", - "name": "gp3" + "smithy.api#length": { + "min": 5, + "max": 256 + }, + "smithy.api#pattern": "^aos-[a-zA-Z0-9]*$" + } + }, + "com.amazonaws.elasticsearchservice#VpcEndpointIdList": { + "type": "list", + "member": { + "target": "com.amazonaws.elasticsearchservice#VpcEndpointId" + } + }, + "com.amazonaws.elasticsearchservice#VpcEndpointStatus": { + "type": "enum", + "members": { + "CREATING": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "CREATING" + } + }, + "CREATE_FAILED": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "CREATE_FAILED" + } + }, + "ACTIVE": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "ACTIVE" + } + }, + "UPDATING": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "UPDATING" + } + }, + "UPDATE_FAILED": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "UPDATE_FAILED" + } + }, + "DELETING": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "DELETING" + } + }, + "DELETE_FAILED": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "DELETE_FAILED" + } + } + }, + "traits": { + "smithy.api#documentation": "Specifies the current status of the VPC endpoint:\n
The unique identifier of the endpoint.
" + } + }, + "VpcEndpointOwner": { + "target": "com.amazonaws.elasticsearchservice#String", + "traits": { + "smithy.api#documentation": "The creator of the endpoint.
" + } + }, + "DomainArn": { + "target": "com.amazonaws.elasticsearchservice#DomainArn", + "traits": { + "smithy.api#documentation": "The Amazon Resource Name (ARN) of the domain associated with the endpoint.
" + } + }, + "Status": { + "target": "com.amazonaws.elasticsearchservice#VpcEndpointStatus", + "traits": { + "smithy.api#documentation": "The current status of the endpoint.
" } - ] + } + }, + "traits": { + "smithy.api#documentation": "Summary information for an Amazon OpenSearch Service-managed VPC endpoint.
" + } + }, + "com.amazonaws.elasticsearchservice#VpcEndpointSummaryList": { + "type": "list", + "member": { + "target": "com.amazonaws.elasticsearchservice#VpcEndpointSummary" + } + }, + "com.amazonaws.elasticsearchservice#VpcEndpoints": { + "type": "list", + "member": { + "target": "com.amazonaws.elasticsearchservice#VpcEndpoint" } }, "com.amazonaws.elasticsearchservice#ZoneAwarenessConfig": { @@ -9345,4 +10557,4 @@ } } } -} \ No newline at end of file +}