From 7daa541c3b16baf98fd0eaecf7db10670473e6c1 Mon Sep 17 00:00:00 2001 From: awstools Date: Tue, 20 Aug 2024 18:26:44 +0000 Subject: [PATCH] feat(client-opensearchserverless): Added FailureCode and FailureMessage to BatchGetCollectionResponse for BatchGetVPCEResponse for non-Active Collection and VPCE. --- .../src/commands/BatchGetCollectionCommand.ts | 2 + .../commands/BatchGetVpcEndpointCommand.ts | 2 + .../src/models/models_0.ts | 24 ++++++++++++ .../aws-models/opensearchserverless.json | 37 +++++++++++++------ 4 files changed, 53 insertions(+), 12 deletions(-) diff --git a/clients/client-opensearchserverless/src/commands/BatchGetCollectionCommand.ts b/clients/client-opensearchserverless/src/commands/BatchGetCollectionCommand.ts index 66a88962a5e8..1214c8cbf525 100644 --- a/clients/client-opensearchserverless/src/commands/BatchGetCollectionCommand.ts +++ b/clients/client-opensearchserverless/src/commands/BatchGetCollectionCommand.ts @@ -66,6 +66,8 @@ export interface BatchGetCollectionCommandOutput extends BatchGetCollectionRespo * // lastModifiedDate: Number("long"), * // collectionEndpoint: "STRING_VALUE", * // dashboardEndpoint: "STRING_VALUE", + * // failureCode: "STRING_VALUE", + * // failureMessage: "STRING_VALUE", * // }, * // ], * // collectionErrorDetails: [ // CollectionErrorDetails diff --git a/clients/client-opensearchserverless/src/commands/BatchGetVpcEndpointCommand.ts b/clients/client-opensearchserverless/src/commands/BatchGetVpcEndpointCommand.ts index 2d755633eb34..39cbe3140d53 100644 --- a/clients/client-opensearchserverless/src/commands/BatchGetVpcEndpointCommand.ts +++ b/clients/client-opensearchserverless/src/commands/BatchGetVpcEndpointCommand.ts @@ -62,6 +62,8 @@ export interface BatchGetVpcEndpointCommandOutput extends BatchGetVpcEndpointRes * // ], * // status: "STRING_VALUE", * // createdDate: Number("long"), + * // failureCode: "STRING_VALUE", + * // failureMessage: "STRING_VALUE", * // }, * // ], * // vpcEndpointErrorDetails: [ // VpcEndpointErrorDetails diff --git a/clients/client-opensearchserverless/src/models/models_0.ts b/clients/client-opensearchserverless/src/models/models_0.ts index ff1d2373df74..ab8ce1c206d4 100644 --- a/clients/client-opensearchserverless/src/models/models_0.ts +++ b/clients/client-opensearchserverless/src/models/models_0.ts @@ -666,6 +666,18 @@ export interface CollectionDetail { * @public */ dashboardEndpoint?: string; + + /** + *

A failure code associated with the request.

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

A message associated with the failure code.

+ * @public + */ + failureMessage?: string; } /** @@ -1080,6 +1092,18 @@ export interface VpcEndpointDetail { * @public */ createdDate?: number; + + /** + *

A failure code associated with the request.

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

A message associated with the failure code.

+ * @public + */ + failureMessage?: string; } /** diff --git a/codegen/sdk-codegen/aws-models/opensearchserverless.json b/codegen/sdk-codegen/aws-models/opensearchserverless.json index ca2f3d719169..8873b268a0d3 100644 --- a/codegen/sdk-codegen/aws-models/opensearchserverless.json +++ b/codegen/sdk-codegen/aws-models/opensearchserverless.json @@ -526,6 +526,18 @@ "traits": { "smithy.api#documentation": "

Collection-specific endpoint used to access OpenSearch Dashboards.

" } + }, + "failureCode": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

A failure code associated with the request.

" + } + }, + "failureMessage": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

A message associated with the failure code.

" + } } }, "traits": { @@ -3622,17 +3634,6 @@ "expect": { "error": "Invalid Configuration: Missing Region" } - }, - { - "documentation": "Partition doesn't support DualStack", - "expect": { - "error": "DualStack is enabled but this partition does not support DualStack" - }, - "params": { - "Region": "us-isob-east-1", - "UseFIPS": false, - "UseDualStack": true - } } ], "version": "1.0" @@ -3690,7 +3691,7 @@ "com.amazonaws.opensearchserverless#ResourceName": { "type": "string", "traits": { - "smithy.api#pattern": "^index/[a-z][a-z0-9-]{3,32}/([a-z;0-9&$%][+.~=\\-_a-z;0-9&$%]*|\\*)$" + "smithy.api#pattern": "^index/[a-z][a-z0-9-]{3,32}/([a-z;0-9&$%][+.~=\\-_a-z;0-9&$%]*)$" } }, "com.amazonaws.opensearchserverless#ResourceNotFoundException": { @@ -5061,6 +5062,18 @@ "traits": { "smithy.api#documentation": "

The date the endpoint was created.

" } + }, + "failureCode": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

A failure code associated with the request.

" + } + }, + "failureMessage": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

A message associated with the failure code.

" + } } }, "traits": {