Skip to content

Commit 7daa541

Browse files
author
awstools
committed
feat(client-opensearchserverless): Added FailureCode and FailureMessage to BatchGetCollectionResponse for BatchGetVPCEResponse for non-Active Collection and VPCE.
1 parent a4a0836 commit 7daa541

File tree

4 files changed

+53
-12
lines changed

4 files changed

+53
-12
lines changed

clients/client-opensearchserverless/src/commands/BatchGetCollectionCommand.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,8 @@ export interface BatchGetCollectionCommandOutput extends BatchGetCollectionRespo
6666
* // lastModifiedDate: Number("long"),
6767
* // collectionEndpoint: "STRING_VALUE",
6868
* // dashboardEndpoint: "STRING_VALUE",
69+
* // failureCode: "STRING_VALUE",
70+
* // failureMessage: "STRING_VALUE",
6971
* // },
7072
* // ],
7173
* // collectionErrorDetails: [ // CollectionErrorDetails

clients/client-opensearchserverless/src/commands/BatchGetVpcEndpointCommand.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,8 @@ export interface BatchGetVpcEndpointCommandOutput extends BatchGetVpcEndpointRes
6262
* // ],
6363
* // status: "STRING_VALUE",
6464
* // createdDate: Number("long"),
65+
* // failureCode: "STRING_VALUE",
66+
* // failureMessage: "STRING_VALUE",
6567
* // },
6668
* // ],
6769
* // vpcEndpointErrorDetails: [ // VpcEndpointErrorDetails

clients/client-opensearchserverless/src/models/models_0.ts

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -666,6 +666,18 @@ export interface CollectionDetail {
666666
* @public
667667
*/
668668
dashboardEndpoint?: string;
669+
670+
/**
671+
* <p>A failure code associated with the request.</p>
672+
* @public
673+
*/
674+
failureCode?: string;
675+
676+
/**
677+
* <p>A message associated with the failure code.</p>
678+
* @public
679+
*/
680+
failureMessage?: string;
669681
}
670682

671683
/**
@@ -1080,6 +1092,18 @@ export interface VpcEndpointDetail {
10801092
* @public
10811093
*/
10821094
createdDate?: number;
1095+
1096+
/**
1097+
* <p>A failure code associated with the request.</p>
1098+
* @public
1099+
*/
1100+
failureCode?: string;
1101+
1102+
/**
1103+
* <p>A message associated with the failure code.</p>
1104+
* @public
1105+
*/
1106+
failureMessage?: string;
10831107
}
10841108

10851109
/**

codegen/sdk-codegen/aws-models/opensearchserverless.json

Lines changed: 25 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -526,6 +526,18 @@
526526
"traits": {
527527
"smithy.api#documentation": "<p>Collection-specific endpoint used to access OpenSearch Dashboards.</p>"
528528
}
529+
},
530+
"failureCode": {
531+
"target": "smithy.api#String",
532+
"traits": {
533+
"smithy.api#documentation": "<p>A failure code associated with the request.</p>"
534+
}
535+
},
536+
"failureMessage": {
537+
"target": "smithy.api#String",
538+
"traits": {
539+
"smithy.api#documentation": "<p>A message associated with the failure code.</p>"
540+
}
529541
}
530542
},
531543
"traits": {
@@ -3622,17 +3634,6 @@
36223634
"expect": {
36233635
"error": "Invalid Configuration: Missing Region"
36243636
}
3625-
},
3626-
{
3627-
"documentation": "Partition doesn't support DualStack",
3628-
"expect": {
3629-
"error": "DualStack is enabled but this partition does not support DualStack"
3630-
},
3631-
"params": {
3632-
"Region": "us-isob-east-1",
3633-
"UseFIPS": false,
3634-
"UseDualStack": true
3635-
}
36363637
}
36373638
],
36383639
"version": "1.0"
@@ -3690,7 +3691,7 @@
36903691
"com.amazonaws.opensearchserverless#ResourceName": {
36913692
"type": "string",
36923693
"traits": {
3693-
"smithy.api#pattern": "^index/[a-z][a-z0-9-]{3,32}/([a-z;0-9&$%][+.~=\\-_a-z;0-9&$%]*|\\*)$"
3694+
"smithy.api#pattern": "^index/[a-z][a-z0-9-]{3,32}/([a-z;0-9&$%][+.~=\\-_a-z;0-9&$%]*)$"
36943695
}
36953696
},
36963697
"com.amazonaws.opensearchserverless#ResourceNotFoundException": {
@@ -5061,6 +5062,18 @@
50615062
"traits": {
50625063
"smithy.api#documentation": "<p>The date the endpoint was created.</p>"
50635064
}
5065+
},
5066+
"failureCode": {
5067+
"target": "smithy.api#String",
5068+
"traits": {
5069+
"smithy.api#documentation": "<p>A failure code associated with the request.</p>"
5070+
}
5071+
},
5072+
"failureMessage": {
5073+
"target": "smithy.api#String",
5074+
"traits": {
5075+
"smithy.api#documentation": "<p>A message associated with the failure code.</p>"
5076+
}
50645077
}
50655078
},
50665079
"traits": {

0 commit comments

Comments
 (0)