Skip to content

Commit

Permalink
feat(client-opensearchserverless): Added FailureCode and FailureMessa…
Browse files Browse the repository at this point in the history
…ge to BatchGetCollectionResponse for BatchGetVPCEResponse for non-Active Collection and VPCE.
  • Loading branch information
awstools committed Aug 20, 2024
1 parent a4a0836 commit 7daa541
Show file tree
Hide file tree
Showing 4 changed files with 53 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,8 @@ export interface BatchGetVpcEndpointCommandOutput extends BatchGetVpcEndpointRes
* // ],
* // status: "STRING_VALUE",
* // createdDate: Number("long"),
* // failureCode: "STRING_VALUE",
* // failureMessage: "STRING_VALUE",
* // },
* // ],
* // vpcEndpointErrorDetails: [ // VpcEndpointErrorDetails
Expand Down
24 changes: 24 additions & 0 deletions clients/client-opensearchserverless/src/models/models_0.ts
Original file line number Diff line number Diff line change
Expand Up @@ -666,6 +666,18 @@ export interface CollectionDetail {
* @public
*/
dashboardEndpoint?: string;

/**
* <p>A failure code associated with the request.</p>
* @public
*/
failureCode?: string;

/**
* <p>A message associated with the failure code.</p>
* @public
*/
failureMessage?: string;
}

/**
Expand Down Expand Up @@ -1080,6 +1092,18 @@ export interface VpcEndpointDetail {
* @public
*/
createdDate?: number;

/**
* <p>A failure code associated with the request.</p>
* @public
*/
failureCode?: string;

/**
* <p>A message associated with the failure code.</p>
* @public
*/
failureMessage?: string;
}

/**
Expand Down
37 changes: 25 additions & 12 deletions codegen/sdk-codegen/aws-models/opensearchserverless.json
Original file line number Diff line number Diff line change
Expand Up @@ -526,6 +526,18 @@
"traits": {
"smithy.api#documentation": "<p>Collection-specific endpoint used to access OpenSearch Dashboards.</p>"
}
},
"failureCode": {
"target": "smithy.api#String",
"traits": {
"smithy.api#documentation": "<p>A failure code associated with the request.</p>"
}
},
"failureMessage": {
"target": "smithy.api#String",
"traits": {
"smithy.api#documentation": "<p>A message associated with the failure code.</p>"
}
}
},
"traits": {
Expand Down Expand Up @@ -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"
Expand Down Expand Up @@ -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": {
Expand Down Expand Up @@ -5061,6 +5062,18 @@
"traits": {
"smithy.api#documentation": "<p>The date the endpoint was created.</p>"
}
},
"failureCode": {
"target": "smithy.api#String",
"traits": {
"smithy.api#documentation": "<p>A failure code associated with the request.</p>"
}
},
"failureMessage": {
"target": "smithy.api#String",
"traits": {
"smithy.api#documentation": "<p>A message associated with the failure code.</p>"
}
}
},
"traits": {
Expand Down

0 comments on commit 7daa541

Please sign in to comment.