Amazon Relational Database Service
Command Line Interface Reference (API Version 2012-04-23)
Print this pageEmail this pageGo to the ForumsView the PDFShare this page on TwitterShare this page on FacebookBookmark this page on DeliciousSubmit this page to RedditSubmit this page to DiggDid this page help you?  Yes  No   Tell us about it...

rds-modify-db-subnet-group

Description

Updates an existing DB Subnet Group.

Syntax

rds-modify-db-subnet-group DBSubnetGroupName

-d (--db-subnet-group-description) value

-s (--db-subnet-list) "value" [,value,...]]

[General Options]

Options

NameDescriptionRequired

DBSubnetGroupName

DB Subnet Group identifier.

This value can also be passed using the --db-subnet-group-name parameter.

Constraints: Must contain from 1 to 255 alphanumeric characters or hyphens. First character must be a letter. Cannot end with a hyphen or contain two consecutive hyphens.

Yes

-d

--db-subnet-group-description value

The description of the DB Subnet Group

Constraints: Cannot contain more than 255 characters.

No

-s

--db-subnet-group-list value[,value, value...]

A comma-delimited list of of subnets to include in this DB Subnet Group.

Constraints: Cannot contain more than 255 characters.

No

Output

The command returns the following information:

  • Name—The name of the DB subnet group that was modified.

  • Description—The description of the DB subnet group that was modified.

  • Status—The status of the DB subnet group that was modified.

  • Subnet Identifier—The identifier of a contained subnet.

  • Subnet Availability Zone—The Availability Zone of the contained subnet.

  • Status—The status of the contained subnet.

Examples

Modify Parameters in a Parameter Group

This example shows how to modify a DB subnet group.

PROMPT> rds-modify-db-subnet-group --db-subnet-group-name mygroup --db-subnet-group-description "My Subnet Group" --db-subnet-list subnet1,subnet2,subnet3

                    
SUBNETGROUP  Name     Description    Staus
SUBNETGROUP  mygroup  my group desc  Active
      SUBNET  Subnet Identifier  Subnet Availability Zone  Status
      SUBNET  mytestgroup        us-east-1c                Active