From 0d8cad306b15646f0e67e0d54197d031377065fd Mon Sep 17 00:00:00 2001 From: awstools Date: Tue, 30 Apr 2024 18:17:36 +0000 Subject: [PATCH] feat(client-opensearch): This release enables customers to create Route53 A and AAAA alias record types to point custom endpoint domain to OpenSearch domain's dualstack search endpoint. --- .../src/commands/AddTagsCommand.ts | 3 ++- .../src/commands/CreateDomainCommand.ts | 1 + .../src/commands/DeleteDomainCommand.ts | 1 + .../src/commands/DescribeDomainCommand.ts | 1 + .../src/commands/DescribeDomainsCommand.ts | 1 + .../commands/DescribeDryRunProgressCommand.ts | 1 + .../client-opensearch/src/models/models_0.ts | 24 ++++++++++++++++--- .../src/protocols/Aws_restJson1.ts | 1 + .../sdk-codegen/aws-models/opensearch.json | 13 ++++++++-- 9 files changed, 40 insertions(+), 6 deletions(-) diff --git a/clients/client-opensearch/src/commands/AddTagsCommand.ts b/clients/client-opensearch/src/commands/AddTagsCommand.ts index b801ee88bb28..b5b63f794471 100644 --- a/clients/client-opensearch/src/commands/AddTagsCommand.ts +++ b/clients/client-opensearch/src/commands/AddTagsCommand.ts @@ -29,7 +29,8 @@ export interface AddTagsCommandOutput extends __MetadataBearer {} /** *

Attaches tags to an existing Amazon OpenSearch Service domain. Tags are a set of * case-sensitive key-value pairs. A domain can have up to 10 tags. For more information, see - * Tagging Amazon OpenSearch Service domains.

+ * Tagging Amazon OpenSearch Service domains. + *

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript diff --git a/clients/client-opensearch/src/commands/CreateDomainCommand.ts b/clients/client-opensearch/src/commands/CreateDomainCommand.ts index 12117ec95de0..10cdd895c23b 100644 --- a/clients/client-opensearch/src/commands/CreateDomainCommand.ts +++ b/clients/client-opensearch/src/commands/CreateDomainCommand.ts @@ -173,6 +173,7 @@ export interface CreateDomainCommandOutput extends CreateDomainResponse, __Metad * // Endpoints: { // EndpointsMap * // "": "STRING_VALUE", * // }, + * // DomainEndpointV2HostedZoneId: "STRING_VALUE", * // Processing: true || false, * // UpgradeProcessing: true || false, * // EngineVersion: "STRING_VALUE", diff --git a/clients/client-opensearch/src/commands/DeleteDomainCommand.ts b/clients/client-opensearch/src/commands/DeleteDomainCommand.ts index 163de9e8b5b3..71634d0852b4 100644 --- a/clients/client-opensearch/src/commands/DeleteDomainCommand.ts +++ b/clients/client-opensearch/src/commands/DeleteDomainCommand.ts @@ -52,6 +52,7 @@ export interface DeleteDomainCommandOutput extends DeleteDomainResponse, __Metad * // Endpoints: { // EndpointsMap * // "": "STRING_VALUE", * // }, + * // DomainEndpointV2HostedZoneId: "STRING_VALUE", * // Processing: true || false, * // UpgradeProcessing: true || false, * // EngineVersion: "STRING_VALUE", diff --git a/clients/client-opensearch/src/commands/DescribeDomainCommand.ts b/clients/client-opensearch/src/commands/DescribeDomainCommand.ts index d7a17126308e..f9e165fb3824 100644 --- a/clients/client-opensearch/src/commands/DescribeDomainCommand.ts +++ b/clients/client-opensearch/src/commands/DescribeDomainCommand.ts @@ -52,6 +52,7 @@ export interface DescribeDomainCommandOutput extends DescribeDomainResponse, __M * // Endpoints: { // EndpointsMap * // "": "STRING_VALUE", * // }, + * // DomainEndpointV2HostedZoneId: "STRING_VALUE", * // Processing: true || false, * // UpgradeProcessing: true || false, * // EngineVersion: "STRING_VALUE", diff --git a/clients/client-opensearch/src/commands/DescribeDomainsCommand.ts b/clients/client-opensearch/src/commands/DescribeDomainsCommand.ts index 2c9671b6079f..9f81aade0d90 100644 --- a/clients/client-opensearch/src/commands/DescribeDomainsCommand.ts +++ b/clients/client-opensearch/src/commands/DescribeDomainsCommand.ts @@ -55,6 +55,7 @@ export interface DescribeDomainsCommandOutput extends DescribeDomainsResponse, _ * // Endpoints: { // EndpointsMap * // "": "STRING_VALUE", * // }, + * // DomainEndpointV2HostedZoneId: "STRING_VALUE", * // Processing: true || false, * // UpgradeProcessing: true || false, * // EngineVersion: "STRING_VALUE", diff --git a/clients/client-opensearch/src/commands/DescribeDryRunProgressCommand.ts b/clients/client-opensearch/src/commands/DescribeDryRunProgressCommand.ts index babe9524b88c..c73d79a215ca 100644 --- a/clients/client-opensearch/src/commands/DescribeDryRunProgressCommand.ts +++ b/clients/client-opensearch/src/commands/DescribeDryRunProgressCommand.ts @@ -66,6 +66,7 @@ export interface DescribeDryRunProgressCommandOutput extends DescribeDryRunProgr * // Endpoints: { // EndpointsMap * // "": "STRING_VALUE", * // }, + * // DomainEndpointV2HostedZoneId: "STRING_VALUE", * // Processing: true || false, * // UpgradeProcessing: true || false, * // EngineVersion: "STRING_VALUE", diff --git a/clients/client-opensearch/src/models/models_0.ts b/clients/client-opensearch/src/models/models_0.ts index 4eeaac6f9f2b..cc860dfe89d7 100644 --- a/clients/client-opensearch/src/models/models_0.ts +++ b/clients/client-opensearch/src/models/models_0.ts @@ -2467,13 +2467,31 @@ export interface DomainStatus { EndpointV2?: string; /** - *

The key-value pair that exists if the OpenSearch Service domain uses VPC endpoints. Example - * key, value: - * 'vpc','vpc-endpoint-h2dsd34efgyghrtguk5gt6j2foh4.us-east-1.es.amazonaws.com'.

+ *

The key-value pair that exists if the OpenSearch Service domain uses VPC endpoints. For example:

+ *
    + *
  • + *

    + * IPv4 IP addresses - + * 'vpc','vpc-endpoint-h2dsd34efgyghrtguk5gt6j2foh4.us-east-1.es.amazonaws.com' + *

    + *
  • + *
  • + *

    + * Dual stack IP addresses - + * 'vpcv2':'vpc-endpoint-h2dsd34efgyghrtguk5gt6j2foh4.aos.us-east-1.on.aws' + *

    + *
  • + *
* @public */ Endpoints?: Record; + /** + *

The DualStack Hosted Zone Id for the domain.

+ * @public + */ + DomainEndpointV2HostedZoneId?: string; + /** *

The status of the domain configuration. True if OpenSearch Service is processing * configuration changes. False if the configuration is active.

diff --git a/clients/client-opensearch/src/protocols/Aws_restJson1.ts b/clients/client-opensearch/src/protocols/Aws_restJson1.ts index 988f78e84323..3352f8e9819e 100644 --- a/clients/client-opensearch/src/protocols/Aws_restJson1.ts +++ b/clients/client-opensearch/src/protocols/Aws_restJson1.ts @@ -3788,6 +3788,7 @@ const de_DomainStatus = (output: any, context: __SerdeContext): DomainStatus => Created: __expectBoolean, Deleted: __expectBoolean, DomainEndpointOptions: _json, + DomainEndpointV2HostedZoneId: __expectString, DomainId: __expectString, DomainName: __expectString, DomainProcessingStatus: __expectString, diff --git a/codegen/sdk-codegen/aws-models/opensearch.json b/codegen/sdk-codegen/aws-models/opensearch.json index 5dd0bdd57607..478d7912be09 100644 --- a/codegen/sdk-codegen/aws-models/opensearch.json +++ b/codegen/sdk-codegen/aws-models/opensearch.json @@ -373,7 +373,7 @@ } ], "traits": { - "smithy.api#documentation": "

Attaches tags to an existing Amazon OpenSearch Service domain. Tags are a set of\n case-sensitive key-value pairs. A domain can have up to 10 tags. For more information, see\n Tagging Amazon OpenSearch Service domains.

", + "smithy.api#documentation": "

Attaches tags to an existing Amazon OpenSearch Service domain. Tags are a set of\n case-sensitive key-value pairs. A domain can have up to 10 tags. For more information, see\n Tagging Amazon OpenSearch Service domains.\n

", "smithy.api#http": { "method": "POST", "uri": "/2021-01-01/tags", @@ -6204,7 +6204,13 @@ "Endpoints": { "target": "com.amazonaws.opensearch#EndpointsMap", "traits": { - "smithy.api#documentation": "

The key-value pair that exists if the OpenSearch Service domain uses VPC endpoints. Example\n key, value:\n 'vpc','vpc-endpoint-h2dsd34efgyghrtguk5gt6j2foh4.us-east-1.es.amazonaws.com'.

" + "smithy.api#documentation": "

The key-value pair that exists if the OpenSearch Service domain uses VPC endpoints. For example:

\n
    \n
  • \n

    \n IPv4 IP addresses -\n 'vpc','vpc-endpoint-h2dsd34efgyghrtguk5gt6j2foh4.us-east-1.es.amazonaws.com'\n

    \n
  • \n
  • \n

    \n Dual stack IP addresses -\n 'vpcv2':'vpc-endpoint-h2dsd34efgyghrtguk5gt6j2foh4.aos.us-east-1.on.aws'\n

    \n
  • \n
" + } + }, + "DomainEndpointV2HostedZoneId": { + "target": "com.amazonaws.opensearch#HostedZoneId", + "traits": { + "smithy.api#documentation": "

The DualStack Hosted Zone Id for the domain.

" } }, "Processing": { @@ -7229,6 +7235,9 @@ "smithy.api#output": {} } }, + "com.amazonaws.opensearch#HostedZoneId": { + "type": "string" + }, "com.amazonaws.opensearch#IPAddressType": { "type": "enum", "members": {