import { Command as $Command } from "@smithy/core/client"; import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { DAXClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../DAXClient"; import type { CreateSubnetGroupRequest, CreateSubnetGroupResponse } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; export { $Command }; /** * @public * * The input for {@link CreateSubnetGroupCommand}. */ export interface CreateSubnetGroupCommandInput extends CreateSubnetGroupRequest { } /** * @public * * The output of {@link CreateSubnetGroupCommand}. */ export interface CreateSubnetGroupCommandOutput extends CreateSubnetGroupResponse, __MetadataBearer { } declare const CreateSubnetGroupCommand_base: { new (input: CreateSubnetGroupCommandInput): import("@smithy/core/client").CommandImpl; new (input: CreateSubnetGroupCommandInput): import("@smithy/core/client").CommandImpl; getEndpointParameterInstructions(): { [x: string]: unknown; }; }; /** *

Creates a new subnet group.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { DAXClient, CreateSubnetGroupCommand } from "@aws-sdk/client-dax"; // ES Modules import * // const { DAXClient, CreateSubnetGroupCommand } = require("@aws-sdk/client-dax"); // CommonJS import * // import type { DAXClientConfig } from "@aws-sdk/client-dax"; * const config = {}; // type is DAXClientConfig * const client = new DAXClient(config); * const input = { // CreateSubnetGroupRequest * SubnetGroupName: "STRING_VALUE", // required * Description: "STRING_VALUE", * SubnetIds: [ // SubnetIdentifierList // required * "STRING_VALUE", * ], * }; * const command = new CreateSubnetGroupCommand(input); * const response = await client.send(command); * // { // CreateSubnetGroupResponse * // SubnetGroup: { // SubnetGroup * // SubnetGroupName: "STRING_VALUE", * // Description: "STRING_VALUE", * // VpcId: "STRING_VALUE", * // Subnets: [ // SubnetList * // { // Subnet * // SubnetIdentifier: "STRING_VALUE", * // SubnetAvailabilityZone: "STRING_VALUE", * // SupportedNetworkTypes: [ // NetworkTypeList * // "ipv4" || "ipv6" || "dual_stack", * // ], * // }, * // ], * // SupportedNetworkTypes: [ * // "ipv4" || "ipv6" || "dual_stack", * // ], * // }, * // }; * * ``` * * @param CreateSubnetGroupCommandInput - {@link CreateSubnetGroupCommandInput} * @returns {@link CreateSubnetGroupCommandOutput} * @see {@link CreateSubnetGroupCommandInput} for command's `input` shape. * @see {@link CreateSubnetGroupCommandOutput} for command's `response` shape. * @see {@link DAXClientResolvedConfig | config} for DAXClient's `config` shape. * * @throws {@link InvalidSubnet} (client fault) *

An invalid subnet identifier was specified.

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

The specified service linked role (SLR) was not found.

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

The specified subnet group already exists.

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

The request cannot be processed because it would exceed the allowed number of * subnets in a subnet group.

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

The specified subnet can't be used for the requested network type. This error * occurs when either there aren't enough subnets of the required network type to create * the cluster, or when you try to use a subnet that doesn't support the requested network * type (for example, trying to create a dual-stack cluster with a subnet that doesn't have * IPv6 CIDR).

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

The request cannot be processed because it would exceed the allowed number of * subnets in a subnet group.

* * @throws {@link DAXServiceException} *

Base exception class for all service exceptions from DAX service.

* * * @public */ export declare class CreateSubnetGroupCommand extends CreateSubnetGroupCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: CreateSubnetGroupRequest; output: CreateSubnetGroupResponse; }; sdk: { input: CreateSubnetGroupCommandInput; output: CreateSubnetGroupCommandOutput; }; }; }