Skip to content

Commit ca26c26

Browse files
author
awstools
committed
feat(client-opensearchserverless): This release includes two new exception types "ServiceQuotaExceededException" and "OcuLimitExceededException".
1 parent eea8b2e commit ca26c26

26 files changed

+599
-310
lines changed

clients/client-opensearchserverless/src/OpenSearchServerless.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -158,12 +158,12 @@ import { OpenSearchServerlessClient } from "./OpenSearchServerlessClient";
158158
* @public
159159
* <p>Use the Amazon OpenSearch Serverless API to create, configure, and manage OpenSearch Serverless collections and
160160
* security policies.</p>
161-
* <p>OpenSearch Serverless is an on-demand, pre-provisioned serverless configuration for
161+
* <p>OpenSearch Serverless is an on-demand, pre-provisioned serverless configuration for
162162
* Amazon OpenSearch Service. OpenSearch Serverless removes the operational complexities of provisioning,
163163
* configuring, and tuning your OpenSearch clusters. It enables you to easily search and
164164
* analyze petabytes of data without having to worry about the underlying infrastructure
165165
* and data management.</p>
166-
* <p> To learn more about OpenSearch Serverless, see <a href="https://docs.aws.amazon.com/opensearch-service/latest/developerguide/serverless-overview.html">What is
166+
* <p> To learn more about OpenSearch Serverless, see <a href="https://docs.aws.amazon.com/opensearch-service/latest/developerguide/serverless-overview.html">What is
167167
* Amazon OpenSearch Serverless?</a>
168168
* </p>
169169
*/
@@ -793,10 +793,10 @@ export class OpenSearchServerless extends OpenSearchServerlessClient {
793793
* @public
794794
* <p>Lists all OpenSearch Serverless collections. For more information, see <a href="https://docs.aws.amazon.com/opensearch-service/latest/developerguide/serverless-manage.html">Creating and
795795
* managing Amazon OpenSearch Serverless collections</a>.</p>
796-
* <note>
796+
* <note>
797797
* <p>Make sure to include an empty request body \{\} if you don't include any collection
798798
* filters in the request.</p>
799-
* </note>
799+
* </note>
800800
*/
801801
public listCollections(
802802
args: ListCollectionsCommandInput,
@@ -1060,7 +1060,7 @@ export class OpenSearchServerless extends OpenSearchServerlessClient {
10601060
/**
10611061
* @public
10621062
* <p>Update the OpenSearch Serverless settings for the current Amazon Web Services account. For more
1063-
* information, see <a href="https://docs.aws.amazon.com/opensearch-service/latest/developerguide/serverless-overview.html#serverless-scaling">Autoscaling</a>.</p>
1063+
* information, see <a href="https://docs.aws.amazon.com/opensearch-service/latest/developerguide/serverless-scaling.html">Managing capacity limits for Amazon OpenSearch Serverless</a>.</p>
10641064
*/
10651065
public updateAccountSettings(
10661066
args: UpdateAccountSettingsCommandInput,

clients/client-opensearchserverless/src/OpenSearchServerlessClient.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -359,12 +359,12 @@ export interface OpenSearchServerlessClientResolvedConfig extends OpenSearchServ
359359
* @public
360360
* <p>Use the Amazon OpenSearch Serverless API to create, configure, and manage OpenSearch Serverless collections and
361361
* security policies.</p>
362-
* <p>OpenSearch Serverless is an on-demand, pre-provisioned serverless configuration for
362+
* <p>OpenSearch Serverless is an on-demand, pre-provisioned serverless configuration for
363363
* Amazon OpenSearch Service. OpenSearch Serverless removes the operational complexities of provisioning,
364364
* configuring, and tuning your OpenSearch clusters. It enables you to easily search and
365365
* analyze petabytes of data without having to worry about the underlying infrastructure
366366
* and data management.</p>
367-
* <p> To learn more about OpenSearch Serverless, see <a href="https://docs.aws.amazon.com/opensearch-service/latest/developerguide/serverless-overview.html">What is
367+
* <p> To learn more about OpenSearch Serverless, see <a href="https://docs.aws.amazon.com/opensearch-service/latest/developerguide/serverless-overview.html">What is
368368
* Amazon OpenSearch Serverless?</a>
369369
* </p>
370370
*/

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

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,13 +67,16 @@ export interface CreateAccessPolicyCommandOutput extends CreateAccessPolicyRespo
6767
* @see {@link OpenSearchServerlessClientResolvedConfig | config} for OpenSearchServerlessClient's `config` shape.
6868
*
6969
* @throws {@link ConflictException} (client fault)
70-
* <p>When creating a collection, thrown when a collection with the same name already exists
71-
* or is being created. When deleting a collection, thrown when the collection is not in
70+
* <p>When creating a resource, thrown when a resource with the same name already exists
71+
* or is being created. When deleting a resource, thrown when the resource is not in
7272
* the ACTIVE or FAILED state.</p>
7373
*
7474
* @throws {@link InternalServerException} (server fault)
7575
* <p>Thrown when an error internal to the service occurs while processing a request.</p>
7676
*
77+
* @throws {@link ServiceQuotaExceededException} (client fault)
78+
* <p>Thrown when you attempt to create more resources than the service allows based on service quotas.</p>
79+
*
7780
* @throws {@link ValidationException} (client fault)
7881
* <p>Thrown when the HTTP request contains invalid input or is missing required
7982
* input.</p>

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

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,13 +70,19 @@ export interface CreateCollectionCommandOutput extends CreateCollectionResponse,
7070
* @see {@link OpenSearchServerlessClientResolvedConfig | config} for OpenSearchServerlessClient's `config` shape.
7171
*
7272
* @throws {@link ConflictException} (client fault)
73-
* <p>When creating a collection, thrown when a collection with the same name already exists
74-
* or is being created. When deleting a collection, thrown when the collection is not in
73+
* <p>When creating a resource, thrown when a resource with the same name already exists
74+
* or is being created. When deleting a resource, thrown when the resource is not in
7575
* the ACTIVE or FAILED state.</p>
7676
*
7777
* @throws {@link InternalServerException} (server fault)
7878
* <p>Thrown when an error internal to the service occurs while processing a request.</p>
7979
*
80+
* @throws {@link OcuLimitExceededException} (client fault)
81+
* OCU Limit Exceeded for service limits
82+
*
83+
* @throws {@link ServiceQuotaExceededException} (client fault)
84+
* <p>Thrown when you attempt to create more resources than the service allows based on service quotas.</p>
85+
*
8086
* @throws {@link ValidationException} (client fault)
8187
* <p>Thrown when the HTTP request contains invalid input or is missing required
8288
* input.</p>

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

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,13 +71,16 @@ export interface CreateSecurityConfigCommandOutput extends CreateSecurityConfigR
7171
* @see {@link OpenSearchServerlessClientResolvedConfig | config} for OpenSearchServerlessClient's `config` shape.
7272
*
7373
* @throws {@link ConflictException} (client fault)
74-
* <p>When creating a collection, thrown when a collection with the same name already exists
75-
* or is being created. When deleting a collection, thrown when the collection is not in
74+
* <p>When creating a resource, thrown when a resource with the same name already exists
75+
* or is being created. When deleting a resource, thrown when the resource is not in
7676
* the ACTIVE or FAILED state.</p>
7777
*
7878
* @throws {@link InternalServerException} (server fault)
7979
* <p>Thrown when an error internal to the service occurs while processing a request.</p>
8080
*
81+
* @throws {@link ServiceQuotaExceededException} (client fault)
82+
* <p>Thrown when you attempt to create more resources than the service allows based on service quotas.</p>
83+
*
8184
* @throws {@link ValidationException} (client fault)
8285
* <p>Thrown when the HTTP request contains invalid input or is missing required
8386
* input.</p>

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

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,13 +69,16 @@ export interface CreateSecurityPolicyCommandOutput extends CreateSecurityPolicyR
6969
* @see {@link OpenSearchServerlessClientResolvedConfig | config} for OpenSearchServerlessClient's `config` shape.
7070
*
7171
* @throws {@link ConflictException} (client fault)
72-
* <p>When creating a collection, thrown when a collection with the same name already exists
73-
* or is being created. When deleting a collection, thrown when the collection is not in
72+
* <p>When creating a resource, thrown when a resource with the same name already exists
73+
* or is being created. When deleting a resource, thrown when the resource is not in
7474
* the ACTIVE or FAILED state.</p>
7575
*
7676
* @throws {@link InternalServerException} (server fault)
7777
* <p>Thrown when an error internal to the service occurs while processing a request.</p>
7878
*
79+
* @throws {@link ServiceQuotaExceededException} (client fault)
80+
* <p>Thrown when you attempt to create more resources than the service allows based on service quotas.</p>
81+
*
7982
* @throws {@link ValidationException} (client fault)
8083
* <p>Thrown when the HTTP request contains invalid input or is missing required
8184
* input.</p>

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

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,13 +69,16 @@ export interface CreateVpcEndpointCommandOutput extends CreateVpcEndpointRespons
6969
* @see {@link OpenSearchServerlessClientResolvedConfig | config} for OpenSearchServerlessClient's `config` shape.
7070
*
7171
* @throws {@link ConflictException} (client fault)
72-
* <p>When creating a collection, thrown when a collection with the same name already exists
73-
* or is being created. When deleting a collection, thrown when the collection is not in
72+
* <p>When creating a resource, thrown when a resource with the same name already exists
73+
* or is being created. When deleting a resource, thrown when the resource is not in
7474
* the ACTIVE or FAILED state.</p>
7575
*
7676
* @throws {@link InternalServerException} (server fault)
7777
* <p>Thrown when an error internal to the service occurs while processing a request.</p>
7878
*
79+
* @throws {@link ServiceQuotaExceededException} (client fault)
80+
* <p>Thrown when you attempt to create more resources than the service allows based on service quotas.</p>
81+
*
7982
* @throws {@link ValidationException} (client fault)
8083
* <p>Thrown when the HTTP request contains invalid input or is missing required
8184
* input.</p>

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,8 @@ export interface DeleteAccessPolicyCommandOutput extends DeleteAccessPolicyRespo
6363
* @see {@link OpenSearchServerlessClientResolvedConfig | config} for OpenSearchServerlessClient's `config` shape.
6464
*
6565
* @throws {@link ConflictException} (client fault)
66-
* <p>When creating a collection, thrown when a collection with the same name already exists
67-
* or is being created. When deleting a collection, thrown when the collection is not in
66+
* <p>When creating a resource, thrown when a resource with the same name already exists
67+
* or is being created. When deleting a resource, thrown when the resource is not in
6868
* the ACTIVE or FAILED state.</p>
6969
*
7070
* @throws {@link InternalServerException} (server fault)

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,8 @@ export interface DeleteCollectionCommandOutput extends DeleteCollectionResponse,
6262
* @see {@link OpenSearchServerlessClientResolvedConfig | config} for OpenSearchServerlessClient's `config` shape.
6363
*
6464
* @throws {@link ConflictException} (client fault)
65-
* <p>When creating a collection, thrown when a collection with the same name already exists
66-
* or is being created. When deleting a collection, thrown when the collection is not in
65+
* <p>When creating a resource, thrown when a resource with the same name already exists
66+
* or is being created. When deleting a resource, thrown when the resource is not in
6767
* the ACTIVE or FAILED state.</p>
6868
*
6969
* @throws {@link InternalServerException} (server fault)

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,8 @@ export interface DeleteSecurityConfigCommandOutput extends DeleteSecurityConfigR
6363
* @see {@link OpenSearchServerlessClientResolvedConfig | config} for OpenSearchServerlessClient's `config` shape.
6464
*
6565
* @throws {@link ConflictException} (client fault)
66-
* <p>When creating a collection, thrown when a collection with the same name already exists
67-
* or is being created. When deleting a collection, thrown when the collection is not in
66+
* <p>When creating a resource, thrown when a resource with the same name already exists
67+
* or is being created. When deleting a resource, thrown when the resource is not in
6868
* the ACTIVE or FAILED state.</p>
6969
*
7070
* @throws {@link InternalServerException} (server fault)

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,8 @@ export interface DeleteSecurityPolicyCommandOutput extends DeleteSecurityPolicyR
6262
* @see {@link OpenSearchServerlessClientResolvedConfig | config} for OpenSearchServerlessClient's `config` shape.
6363
*
6464
* @throws {@link ConflictException} (client fault)
65-
* <p>When creating a collection, thrown when a collection with the same name already exists
66-
* or is being created. When deleting a collection, thrown when the collection is not in
65+
* <p>When creating a resource, thrown when a resource with the same name already exists
66+
* or is being created. When deleting a resource, thrown when the resource is not in
6767
* the ACTIVE or FAILED state.</p>
6868
*
6969
* @throws {@link InternalServerException} (server fault)

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,8 @@ export interface DeleteVpcEndpointCommandOutput extends DeleteVpcEndpointRespons
6262
* @see {@link OpenSearchServerlessClientResolvedConfig | config} for OpenSearchServerlessClient's `config` shape.
6363
*
6464
* @throws {@link ConflictException} (client fault)
65-
* <p>When creating a collection, thrown when a collection with the same name already exists
66-
* or is being created. When deleting a collection, thrown when the collection is not in
65+
* <p>When creating a resource, thrown when a resource with the same name already exists
66+
* or is being created. When deleting a resource, thrown when the resource is not in
6767
* the ACTIVE or FAILED state.</p>
6868
*
6969
* @throws {@link InternalServerException} (server fault)

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,10 @@ export interface ListCollectionsCommandOutput extends ListCollectionsResponse, _
4141
* @public
4242
* <p>Lists all OpenSearch Serverless collections. For more information, see <a href="https://docs.aws.amazon.com/opensearch-service/latest/developerguide/serverless-manage.html">Creating and
4343
* managing Amazon OpenSearch Serverless collections</a>.</p>
44-
* <note>
44+
* <note>
4545
* <p>Make sure to include an empty request body \{\} if you don't include any collection
4646
* filters in the request.</p>
47-
* </note>
47+
* </note>
4848
* @example
4949
* Use a bare-bones client and the command you need to make an API call.
5050
* ```javascript

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

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,8 @@ export interface TagResourceCommandOutput extends TagResourceResponse, __Metadat
6666
* @see {@link OpenSearchServerlessClientResolvedConfig | config} for OpenSearchServerlessClient's `config` shape.
6767
*
6868
* @throws {@link ConflictException} (client fault)
69-
* <p>When creating a collection, thrown when a collection with the same name already exists
70-
* or is being created. When deleting a collection, thrown when the collection is not in
69+
* <p>When creating a resource, thrown when a resource with the same name already exists
70+
* or is being created. When deleting a resource, thrown when the resource is not in
7171
* the ACTIVE or FAILED state.</p>
7272
*
7373
* @throws {@link InternalServerException} (server fault)
@@ -76,6 +76,9 @@ export interface TagResourceCommandOutput extends TagResourceResponse, __Metadat
7676
* @throws {@link ResourceNotFoundException} (client fault)
7777
* <p>Thrown when accessing or deleting a resource that does not exist.</p>
7878
*
79+
* @throws {@link ServiceQuotaExceededException} (client fault)
80+
* <p>Thrown when you attempt to create more resources than the service allows based on service quotas.</p>
81+
*
7982
* @throws {@link ValidationException} (client fault)
8083
* <p>Thrown when the HTTP request contains invalid input or is missing required
8184
* input.</p>

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,8 @@ export interface UntagResourceCommandOutput extends UntagResourceResponse, __Met
6363
* @see {@link OpenSearchServerlessClientResolvedConfig | config} for OpenSearchServerlessClient's `config` shape.
6464
*
6565
* @throws {@link ConflictException} (client fault)
66-
* <p>When creating a collection, thrown when a collection with the same name already exists
67-
* or is being created. When deleting a collection, thrown when the collection is not in
66+
* <p>When creating a resource, thrown when a resource with the same name already exists
67+
* or is being created. When deleting a resource, thrown when the resource is not in
6868
* the ACTIVE or FAILED state.</p>
6969
*
7070
* @throws {@link InternalServerException} (server fault)

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,8 @@ export interface UpdateAccessPolicyCommandOutput extends UpdateAccessPolicyRespo
6666
* @see {@link OpenSearchServerlessClientResolvedConfig | config} for OpenSearchServerlessClient's `config` shape.
6767
*
6868
* @throws {@link ConflictException} (client fault)
69-
* <p>When creating a collection, thrown when a collection with the same name already exists
70-
* or is being created. When deleting a collection, thrown when the collection is not in
69+
* <p>When creating a resource, thrown when a resource with the same name already exists
70+
* or is being created. When deleting a resource, thrown when the resource is not in
7171
* the ACTIVE or FAILED state.</p>
7272
*
7373
* @throws {@link InternalServerException} (server fault)

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ export interface UpdateAccountSettingsCommandOutput extends UpdateAccountSetting
4040
/**
4141
* @public
4242
* <p>Update the OpenSearch Serverless settings for the current Amazon Web Services account. For more
43-
* information, see <a href="https://docs.aws.amazon.com/opensearch-service/latest/developerguide/serverless-overview.html#serverless-scaling">Autoscaling</a>.</p>
43+
* information, see <a href="https://docs.aws.amazon.com/opensearch-service/latest/developerguide/serverless-scaling.html">Managing capacity limits for Amazon OpenSearch Serverless</a>.</p>
4444
* @example
4545
* Use a bare-bones client and the command you need to make an API call.
4646
* ```javascript

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,8 @@ export interface UpdateCollectionCommandOutput extends UpdateCollectionResponse,
6262
* @see {@link OpenSearchServerlessClientResolvedConfig | config} for OpenSearchServerlessClient's `config` shape.
6363
*
6464
* @throws {@link ConflictException} (client fault)
65-
* <p>When creating a collection, thrown when a collection with the same name already exists
66-
* or is being created. When deleting a collection, thrown when the collection is not in
65+
* <p>When creating a resource, thrown when a resource with the same name already exists
66+
* or is being created. When deleting a resource, thrown when the resource is not in
6767
* the ACTIVE or FAILED state.</p>
6868
*
6969
* @throws {@link InternalServerException} (server fault)

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,8 @@ export interface UpdateSecurityConfigCommandOutput extends UpdateSecurityConfigR
7171
* @see {@link OpenSearchServerlessClientResolvedConfig | config} for OpenSearchServerlessClient's `config` shape.
7272
*
7373
* @throws {@link ConflictException} (client fault)
74-
* <p>When creating a collection, thrown when a collection with the same name already exists
75-
* or is being created. When deleting a collection, thrown when the collection is not in
74+
* <p>When creating a resource, thrown when a resource with the same name already exists
75+
* or is being created. When deleting a resource, thrown when the resource is not in
7676
* the ACTIVE or FAILED state.</p>
7777
*
7878
* @throws {@link InternalServerException} (server fault)

0 commit comments

Comments
 (0)