import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { CreateDBSubnetGroupMessage, CreateDBSubnetGroupResult } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; /** * @public * * The input for {@link CreateDBSubnetGroupCommand}. */ export interface CreateDBSubnetGroupCommandInput extends CreateDBSubnetGroupMessage { } /** * @public * * The output of {@link CreateDBSubnetGroupCommand}. */ export interface CreateDBSubnetGroupCommandOutput extends CreateDBSubnetGroupResult, __MetadataBearer { } declare const CreateDBSubnetGroupCommand_base: { new (input: CreateDBSubnetGroupCommandInput): import("@smithy/core/client").CommandImpl; new (input: CreateDBSubnetGroupCommandInput): import("@smithy/core/client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions; }; /** *

Creates a new subnet group. subnet groups must contain at least one subnet in at * least two Availability Zones in the Amazon Web Services Region.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { DocDBClient, CreateDBSubnetGroupCommand } from "@aws-sdk/client-docdb"; // ES Modules import * // const { DocDBClient, CreateDBSubnetGroupCommand } = require("@aws-sdk/client-docdb"); // CommonJS import * // import type { DocDBClientConfig } from "@aws-sdk/client-docdb"; * const config = {}; // type is DocDBClientConfig * const client = new DocDBClient(config); * const input = { // CreateDBSubnetGroupMessage * DBSubnetGroupName: "STRING_VALUE", // required * DBSubnetGroupDescription: "STRING_VALUE", // required * SubnetIds: [ // SubnetIdentifierList // required * "STRING_VALUE", * ], * Tags: [ // TagList * { // Tag * Key: "STRING_VALUE", * Value: "STRING_VALUE", * }, * ], * }; * const command = new CreateDBSubnetGroupCommand(input); * const response = await client.send(command); * // { // CreateDBSubnetGroupResult * // DBSubnetGroup: { // DBSubnetGroup * // DBSubnetGroupName: "STRING_VALUE", * // DBSubnetGroupDescription: "STRING_VALUE", * // VpcId: "STRING_VALUE", * // SubnetGroupStatus: "STRING_VALUE", * // Subnets: [ // SubnetList * // { // Subnet * // SubnetIdentifier: "STRING_VALUE", * // SubnetAvailabilityZone: { // AvailabilityZone * // Name: "STRING_VALUE", * // }, * // SubnetStatus: "STRING_VALUE", * // }, * // ], * // DBSubnetGroupArn: "STRING_VALUE", * // SupportedNetworkTypes: [ // NetworkTypeList * // "STRING_VALUE", * // ], * // }, * // }; * * ``` * * @param CreateDBSubnetGroupCommandInput - {@link CreateDBSubnetGroupCommandInput} * @returns {@link CreateDBSubnetGroupCommandOutput} * @see {@link CreateDBSubnetGroupCommandInput} for command's `input` shape. * @see {@link CreateDBSubnetGroupCommandOutput} for command's `response` shape. * @see {@link DocDBClientResolvedConfig | config} for DocDBClient's `config` shape. * * @throws {@link DBSubnetGroupAlreadyExistsFault} (client fault) *

* DBSubnetGroupName is already being used by an existing subnet group.

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

Subnets in the subnet group should cover at least two Availability Zones unless there is only one Availability Zone.

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

The request would cause you to exceed the allowed number of subnet groups.

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

The request would cause you to exceed the allowed number of subnets in a subnet group.

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

The requested subnet is not valid, or multiple subnets were requested that are not all * in a common virtual private cloud (VPC).

* * @throws {@link DocDBServiceException} *

Base exception class for all service exceptions from DocDB service.

* * * @public */ export declare class CreateDBSubnetGroupCommand extends CreateDBSubnetGroupCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: CreateDBSubnetGroupMessage; output: CreateDBSubnetGroupResult; }; sdk: { input: CreateDBSubnetGroupCommandInput; output: CreateDBSubnetGroupCommandOutput; }; }; }