From 973689cdd2e18d7c15356ed2993ae4097702cd6d Mon Sep 17 00:00:00 2001 From: awstools Date: Wed, 26 Jul 2023 18:30:38 +0000 Subject: [PATCH] feat(client-opensearchserverless): This release adds new collection type VectorSearch. --- .../src/commands/CreateCollectionCommand.ts | 2 +- .../client-opensearchserverless/src/models/models_0.ts | 6 +++++- codegen/sdk-codegen/aws-models/opensearchserverless.json | 9 +++++++-- 3 files changed, 13 insertions(+), 4 deletions(-) diff --git a/clients/client-opensearchserverless/src/commands/CreateCollectionCommand.ts b/clients/client-opensearchserverless/src/commands/CreateCollectionCommand.ts index 8be272e7d198..a6e0fb516d4d 100644 --- a/clients/client-opensearchserverless/src/commands/CreateCollectionCommand.ts +++ b/clients/client-opensearchserverless/src/commands/CreateCollectionCommand.ts @@ -93,7 +93,7 @@ export interface CreateCollectionCommandOutput extends CreateCollectionResponse, *

Thrown when an error internal to the service occurs while processing a request.

* * @throws {@link OcuLimitExceededException} (client fault) - * OCU Limit Exceeded for service limits + *

Thrown when the collection you're attempting to create results in a number of search or indexing OCUs that exceeds the account limit.

* * @throws {@link ServiceQuotaExceededException} (client fault) *

Thrown when you attempt to create more resources than the service allows based on service quotas.

diff --git a/clients/client-opensearchserverless/src/models/models_0.ts b/clients/client-opensearchserverless/src/models/models_0.ts index 682b34b83603..9ac6ef22d53d 100644 --- a/clients/client-opensearchserverless/src/models/models_0.ts +++ b/clients/client-opensearchserverless/src/models/models_0.ts @@ -508,6 +508,10 @@ export const CollectionType = { * Timeseries collection type */ TIMESERIES: "TIMESERIES", + /** + * Vectorsearch collection type + */ + VECTORSEARCH: "VECTORSEARCH", } as const; /** @@ -848,7 +852,7 @@ export interface CreateCollectionResponse { /** * @public - * OCU Limit Exceeded for service limits + *

Thrown when the collection you're attempting to create results in a number of search or indexing OCUs that exceeds the account limit.

*/ export class OcuLimitExceededException extends __BaseException { readonly name: "OcuLimitExceededException" = "OcuLimitExceededException"; diff --git a/codegen/sdk-codegen/aws-models/opensearchserverless.json b/codegen/sdk-codegen/aws-models/opensearchserverless.json index 22c95016874b..7502ce3d5ed1 100644 --- a/codegen/sdk-codegen/aws-models/opensearchserverless.json +++ b/codegen/sdk-codegen/aws-models/opensearchserverless.json @@ -600,6 +600,11 @@ "name": "TIMESERIES", "value": "TIMESERIES", "documentation": "Timeseries collection type" + }, + { + "name": "VECTORSEARCH", + "value": "VECTORSEARCH", + "documentation": "Vectorsearch collection type" } ] } @@ -2145,7 +2150,7 @@ } }, "traits": { - "smithy.api#documentation": "OCU Limit Exceeded for service limits", + "smithy.api#documentation": "

Thrown when the collection you're attempting to create results in a number of search or indexing OCUs that exceeds the account limit.

", "smithy.api#error": "client", "smithy.api#httpError": 402 } @@ -4328,7 +4333,7 @@ "traits": { "smithy.api#length": { "min": 1, - "max": 20480 + "max": 51200 }, "smithy.api#pattern": "[\\u0009\\u000A\\u000D\\u0020-\\u007E\\u00A1-\\u00FF]+" }