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

Creates a collection group within OpenSearch Serverless. Collection groups let you manage OpenSearch Compute Units (OCUs) at a group level, with multiple collections sharing the group's capacity limits.

For more information, see Managing collection groups.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { OpenSearchServerlessClient, CreateCollectionGroupCommand } from "@aws-sdk/client-opensearchserverless"; // ES Modules import * // const { OpenSearchServerlessClient, CreateCollectionGroupCommand } = 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 = { // CreateCollectionGroupRequest * name: "STRING_VALUE", // required * standbyReplicas: "STRING_VALUE", // required * description: "STRING_VALUE", * tags: [ // Tags * { // Tag * key: "STRING_VALUE", // required * value: "STRING_VALUE", // required * }, * ], * capacityLimits: { // CollectionGroupCapacityLimits * maxIndexingCapacityInOCU: Number("float"), * maxSearchCapacityInOCU: Number("float"), * minIndexingCapacityInOCU: Number("float"), * minSearchCapacityInOCU: Number("float"), * }, * clientToken: "STRING_VALUE", * }; * const command = new CreateCollectionGroupCommand(input); * const response = await client.send(command); * // { // CreateCollectionGroupResponse * // createCollectionGroupDetail: { // CreateCollectionGroupDetail * // id: "STRING_VALUE", * // arn: "STRING_VALUE", * // name: "STRING_VALUE", * // standbyReplicas: "STRING_VALUE", * // description: "STRING_VALUE", * // tags: [ // Tags * // { // Tag * // key: "STRING_VALUE", // required * // value: "STRING_VALUE", // required * // }, * // ], * // createdDate: Number("long"), * // capacityLimits: { // CollectionGroupCapacityLimits * // maxIndexingCapacityInOCU: Number("float"), * // maxSearchCapacityInOCU: Number("float"), * // minIndexingCapacityInOCU: Number("float"), * // minSearchCapacityInOCU: Number("float"), * // }, * // }, * // }; * * ``` * * @param CreateCollectionGroupCommandInput - {@link CreateCollectionGroupCommandInput} * @returns {@link CreateCollectionGroupCommandOutput} * @see {@link CreateCollectionGroupCommandInput} for command's `input` shape. * @see {@link CreateCollectionGroupCommandOutput} 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 ServiceQuotaExceededException} (client fault) *

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

* * @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 CreateCollectionGroupCommand extends CreateCollectionGroupCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: CreateCollectionGroupRequest; output: CreateCollectionGroupResponse; }; sdk: { input: CreateCollectionGroupCommandInput; output: CreateCollectionGroupCommandOutput; }; }; }