Skip to content

Commit

Permalink
feat(client-opensearchserverless): This release adds new collection t…
Browse files Browse the repository at this point in the history
…ype VectorSearch.
  • Loading branch information
awstools committed Jul 26, 2023
1 parent 264045a commit 973689c
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ export interface CreateCollectionCommandOutput extends CreateCollectionResponse,
* <p>Thrown when an error internal to the service occurs while processing a request.</p>
*
* @throws {@link OcuLimitExceededException} (client fault)
* OCU Limit Exceeded for service limits
* <p>Thrown when the collection you're attempting to create results in a number of search or indexing OCUs that exceeds the account limit. </p>
*
* @throws {@link ServiceQuotaExceededException} (client fault)
* <p>Thrown when you attempt to create more resources than the service allows based on service quotas.</p>
Expand Down
6 changes: 5 additions & 1 deletion clients/client-opensearchserverless/src/models/models_0.ts
Original file line number Diff line number Diff line change
Expand Up @@ -508,6 +508,10 @@ export const CollectionType = {
* Timeseries collection type
*/
TIMESERIES: "TIMESERIES",
/**
* Vectorsearch collection type
*/
VECTORSEARCH: "VECTORSEARCH",
} as const;

/**
Expand Down Expand Up @@ -848,7 +852,7 @@ export interface CreateCollectionResponse {

/**
* @public
* OCU Limit Exceeded for service limits
* <p>Thrown when the collection you're attempting to create results in a number of search or indexing OCUs that exceeds the account limit. </p>
*/
export class OcuLimitExceededException extends __BaseException {
readonly name: "OcuLimitExceededException" = "OcuLimitExceededException";
Expand Down
9 changes: 7 additions & 2 deletions codegen/sdk-codegen/aws-models/opensearchserverless.json
Original file line number Diff line number Diff line change
Expand Up @@ -600,6 +600,11 @@
"name": "TIMESERIES",
"value": "TIMESERIES",
"documentation": "Timeseries collection type"
},
{
"name": "VECTORSEARCH",
"value": "VECTORSEARCH",
"documentation": "Vectorsearch collection type"
}
]
}
Expand Down Expand Up @@ -2145,7 +2150,7 @@
}
},
"traits": {
"smithy.api#documentation": "OCU Limit Exceeded for service limits",
"smithy.api#documentation": "<p>Thrown when the collection you're attempting to create results in a number of search or indexing OCUs that exceeds the account limit. </p>",
"smithy.api#error": "client",
"smithy.api#httpError": 402
}
Expand Down Expand Up @@ -4328,7 +4333,7 @@
"traits": {
"smithy.api#length": {
"min": 1,
"max": 20480
"max": 51200
},
"smithy.api#pattern": "[\\u0009\\u000A\\u000D\\u0020-\\u007E\\u00A1-\\u00FF]+"
}
Expand Down

0 comments on commit 973689c

Please sign in to comment.