CmdID

CmdID / aws / aws memorydb

aws memorydb update-subnet-group

Updates a subnet group. AWS CLI reference

1 example 3 options Its page in the AWS CLI reference

Opens CmdID with your command. It is read in your browser and sent nowhere.

Examples

from aws-cli, each command read by CmdID

To update a subnet group

The following update-subnet-group example updates a subnet group's subnet ID.

aws memorydb update-subnet-group --subnet-group-name my-sg --subnet-ids subnet-01f29d458f3xxxxxIdentify
--subnet-group-nameThe name of the subnet group
--subnet-idsThe EC2 subnet IDs for the subnet group.
Its output
{
    "SubnetGroup": {
        "Name": "my-sg-1",
        "Description": "my-sg",
        "VpcId": "vpc-09d2cfc01xxxxxxx",
        "Subnets": [
            {
                "Identifier": "subnet-01f29d458fxxxxxx",
                "AvailabilityZone": {
                    "Name": "us-west-2a"
                }
            }
        ],
        "ARN": "arn:aws:memorydb:us-west-2:491658xxxxxx:subnetgroup/my-sg"
    }
}

For more information, see Subnets and subnet groups in the MemoryDB User Guide.

Options

3 in the AWS CLI reference
--descriptionA description of the subnet group
--subnet-group-nameThe name of the subnet group
--subnet-idsThe EC2 subnet IDs for the subnet group.