import { Command as $Command } from "@smithy/smithy-client"; import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { UpdateCollectionRequest, UpdateCollectionResponse } from "../models/models_0"; import type { OpenSearchServerlessClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../OpenSearchServerlessClient"; /** * @public */ export type { __MetadataBearer }; export { $Command }; /** * @public * * The input for {@link UpdateCollectionCommand}. */ export interface UpdateCollectionCommandInput extends UpdateCollectionRequest { } /** * @public * * The output of {@link UpdateCollectionCommand}. */ export interface UpdateCollectionCommandOutput extends UpdateCollectionResponse, __MetadataBearer { } declare const UpdateCollectionCommand_base: { new (input: UpdateCollectionCommandInput): import("@smithy/smithy-client").CommandImpl; new (input: UpdateCollectionCommandInput): import("@smithy/smithy-client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions; }; /** *

Updates an OpenSearch Serverless collection.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { OpenSearchServerlessClient, UpdateCollectionCommand } from "@aws-sdk/client-opensearchserverless"; // ES Modules import * // const { OpenSearchServerlessClient, UpdateCollectionCommand } = require("@aws-sdk/client-opensearchserverless"); // CommonJS import * // import type { OpenSearchServerlessClientConfig } from "@aws-sdk/client-opensearchserverless"; * const config = {}; // type is OpenSearchServerlessClientConfig * const client = new OpenSearchServerlessClient(config); * const input = { // UpdateCollectionRequest * id: "STRING_VALUE", // required * description: "STRING_VALUE", * vectorOptions: { // VectorOptions * ServerlessVectorAcceleration: "STRING_VALUE", // required * }, * clientToken: "STRING_VALUE", * }; * const command = new UpdateCollectionCommand(input); * const response = await client.send(command); * // { // UpdateCollectionResponse * // updateCollectionDetail: { // UpdateCollectionDetail * // id: "STRING_VALUE", * // name: "STRING_VALUE", * // status: "STRING_VALUE", * // type: "STRING_VALUE", * // description: "STRING_VALUE", * // vectorOptions: { // VectorOptions * // ServerlessVectorAcceleration: "STRING_VALUE", // required * // }, * // arn: "STRING_VALUE", * // createdDate: Number("long"), * // lastModifiedDate: Number("long"), * // }, * // }; * * ``` * * @param UpdateCollectionCommandInput - {@link UpdateCollectionCommandInput} * @returns {@link UpdateCollectionCommandOutput} * @see {@link UpdateCollectionCommandInput} for command's `input` shape. * @see {@link UpdateCollectionCommandOutput} for command's `response` shape. * @see {@link OpenSearchServerlessClientResolvedConfig | config} for OpenSearchServerlessClient's `config` shape. * * @throws {@link ConflictException} (client fault) *

When creating a resource, thrown when a resource with the same name already exists or is being created. When deleting a resource, thrown when the resource is not in the ACTIVE, FAILED, or UPDATE_FAILED state.

* * @throws {@link InternalServerException} (server fault) *

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

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

Thrown when the HTTP request contains invalid input or is missing required input.

* * @throws {@link OpenSearchServerlessServiceException} *

Base exception class for all service exceptions from OpenSearchServerless service.

* * * @public */ export declare class UpdateCollectionCommand extends UpdateCollectionCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: UpdateCollectionRequest; output: UpdateCollectionResponse; }; sdk: { input: UpdateCollectionCommandInput; output: UpdateCollectionCommandOutput; }; }; }