import { Command as $Command } from "@smithy/smithy-client"; import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { ElastiCacheClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ElastiCacheClient"; import type { ModifyCacheSubnetGroupMessage, ModifyCacheSubnetGroupResult } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; export { $Command }; /** * @public * * The input for {@link ModifyCacheSubnetGroupCommand}. */ export interface ModifyCacheSubnetGroupCommandInput extends ModifyCacheSubnetGroupMessage { } /** * @public * * The output of {@link ModifyCacheSubnetGroupCommand}. */ export interface ModifyCacheSubnetGroupCommandOutput extends ModifyCacheSubnetGroupResult, __MetadataBearer { } declare const ModifyCacheSubnetGroupCommand_base: { new (input: ModifyCacheSubnetGroupCommandInput): import("@smithy/smithy-client").CommandImpl; new (input: ModifyCacheSubnetGroupCommandInput): import("@smithy/smithy-client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions; }; /** *

Modifies an existing cache subnet group.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { ElastiCacheClient, ModifyCacheSubnetGroupCommand } from "@aws-sdk/client-elasticache"; // ES Modules import * // const { ElastiCacheClient, ModifyCacheSubnetGroupCommand } = require("@aws-sdk/client-elasticache"); // CommonJS import * // import type { ElastiCacheClientConfig } from "@aws-sdk/client-elasticache"; * const config = {}; // type is ElastiCacheClientConfig * const client = new ElastiCacheClient(config); * const input = { // ModifyCacheSubnetGroupMessage * CacheSubnetGroupName: "STRING_VALUE", // required * CacheSubnetGroupDescription: "STRING_VALUE", * SubnetIds: [ // SubnetIdentifierList * "STRING_VALUE", * ], * }; * const command = new ModifyCacheSubnetGroupCommand(input); * const response = await client.send(command); * // { // ModifyCacheSubnetGroupResult * // CacheSubnetGroup: { // CacheSubnetGroup * // CacheSubnetGroupName: "STRING_VALUE", * // CacheSubnetGroupDescription: "STRING_VALUE", * // VpcId: "STRING_VALUE", * // Subnets: [ // SubnetList * // { // Subnet * // SubnetIdentifier: "STRING_VALUE", * // SubnetAvailabilityZone: { // AvailabilityZone * // Name: "STRING_VALUE", * // }, * // SubnetOutpost: { // SubnetOutpost * // SubnetOutpostArn: "STRING_VALUE", * // }, * // SupportedNetworkTypes: [ // NetworkTypeList * // "ipv4" || "ipv6" || "dual_stack", * // ], * // }, * // ], * // ARN: "STRING_VALUE", * // SupportedNetworkTypes: [ * // "ipv4" || "ipv6" || "dual_stack", * // ], * // }, * // }; * * ``` * * @param ModifyCacheSubnetGroupCommandInput - {@link ModifyCacheSubnetGroupCommandInput} * @returns {@link ModifyCacheSubnetGroupCommandOutput} * @see {@link ModifyCacheSubnetGroupCommandInput} for command's `input` shape. * @see {@link ModifyCacheSubnetGroupCommandOutput} for command's `response` shape. * @see {@link ElastiCacheClientResolvedConfig | config} for ElastiCacheClient's `config` shape. * * @throws {@link CacheSubnetGroupNotFoundFault} (client fault) *

The requested cache subnet group name does not refer to an existing cache subnet * group.

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

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

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

An invalid subnet identifier was specified.

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

The requested subnet is being used by another cache subnet group.

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

At least one subnet ID does not match the other subnet IDs. This mismatch typically * occurs when a user sets one subnet ID to a regional Availability Zone and a different * one to an outpost. Or when a user sets the subnet ID to an Outpost when not subscribed * on this service.

* * @throws {@link ElastiCacheServiceException} *

Base exception class for all service exceptions from ElastiCache service.

* * * @example ModifyCacheSubnetGroup * ```javascript * // Modifies an existing ElastiCache subnet group. * const input = { * CacheSubnetGroupName: "my-sn-grp", * SubnetIds: [ * "subnet-bcde2345" * ] * }; * const command = new ModifyCacheSubnetGroupCommand(input); * const response = await client.send(command); * /* response is * { * CacheSubnetGroup: { * CacheSubnetGroupDescription: "My subnet group.", * CacheSubnetGroupName: "my-sn-grp", * Subnets: [ * { * SubnetAvailabilityZone: { * Name: "us-east-1c" * }, * SubnetIdentifier: "subnet-a1b2c3d4" * }, * { * SubnetAvailabilityZone: { * Name: "us-east-1e" * }, * SubnetIdentifier: "subnet-1a2b3c4d" * }, * { * SubnetAvailabilityZone: { * Name: "us-east-1e" * }, * SubnetIdentifier: "subnet-bcde2345" * }, * { * SubnetAvailabilityZone: { * Name: "us-east-1c" * }, * SubnetIdentifier: "subnet-1234abcd" * }, * { * SubnetAvailabilityZone: { * Name: "us-east-1b" * }, * SubnetIdentifier: "subnet-abcd1234" * } * ], * VpcId: "vpc-91280df6" * } * } * *\/ * ``` * * @public */ export declare class ModifyCacheSubnetGroupCommand extends ModifyCacheSubnetGroupCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: ModifyCacheSubnetGroupMessage; output: ModifyCacheSubnetGroupResult; }; sdk: { input: ModifyCacheSubnetGroupCommandInput; output: ModifyCacheSubnetGroupCommandOutput; }; }; }