Jump to Content

This API Documentation is now deprecated

We are excited to announce our new API Documentation.

Class UpdateSubnetGroupCommandProtected

Modifies an existing subnet group.

Example

Use a bare-bones client and the command you need to make an API call.

import { DAXClient, UpdateSubnetGroupCommand } from "@aws-sdk/client-dax"; // ES Modules import
// const { DAXClient, UpdateSubnetGroupCommand } = require("@aws-sdk/client-dax"); // CommonJS import
const client = new DAXClient(config);
const input = { // UpdateSubnetGroupRequest
SubnetGroupName: "STRING_VALUE", // required
Description: "STRING_VALUE",
SubnetIds: [ // SubnetIdentifierList
"STRING_VALUE",
],
};
const command = new UpdateSubnetGroupCommand(input);
const response = await client.send(command);
// { // UpdateSubnetGroupResponse
// SubnetGroup: { // SubnetGroup
// SubnetGroupName: "STRING_VALUE",
// Description: "STRING_VALUE",
// VpcId: "STRING_VALUE",
// Subnets: [ // SubnetList
// { // Subnet
// SubnetIdentifier: "STRING_VALUE",
// SubnetAvailabilityZone: "STRING_VALUE",
// },
// ],
// },
// };

Param

UpdateSubnetGroupCommandInput

Returns

UpdateSubnetGroupCommandOutput

See

Throws

InvalidSubnet (client fault)

An invalid subnet identifier was specified.

Throws

ServiceLinkedRoleNotFoundFault (client fault)

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

Throws

SubnetGroupNotFoundFault (client fault)

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

Throws

SubnetInUse (client fault)

The requested subnet is being used by another subnet group.

Throws

SubnetQuotaExceededFault (client fault)

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

Throws

DAXServiceException

Base exception class for all service exceptions from DAX service.

Hierarchy

Constructors

Properties

Methods

Constructors

Properties

Methods