update_subnet_group

MemoryDB.Client.update_subnet_group(**kwargs)

Updates a subnet group. For more information, see Updating a subnet group

See also: AWS API Documentation

Request Syntax

response = client.update_subnet_group(
    SubnetGroupName='string',
    Description='string',
    SubnetIds=[
        'string',
    ]
)
Parameters
  • SubnetGroupName (string) --

    [REQUIRED]

    The name of the subnet group

  • Description (string) -- A description of the subnet group
  • SubnetIds (list) --

    The EC2 subnet IDs for the subnet group.

    • (string) --
Return type

dict

Returns

Response Syntax

{
    'SubnetGroup': {
        'Name': 'string',
        'Description': 'string',
        'VpcId': 'string',
        'Subnets': [
            {
                'Identifier': 'string',
                'AvailabilityZone': {
                    'Name': 'string'
                }
            },
        ],
        'ARN': 'string'
    }
}

Response Structure

  • (dict) --

    • SubnetGroup (dict) --

      The updated subnet group

      • Name (string) --

        The name of the subnet group

      • Description (string) --

        A description of the subnet group

      • VpcId (string) --

        The Amazon Virtual Private Cloud identifier (VPC ID) of the subnet group.

      • Subnets (list) --

        A list of subnets associated with the subnet group.

        • (dict) --

          Represents the subnet associated with a cluster. This parameter refers to subnets defined in Amazon Virtual Private Cloud (Amazon VPC) and used with MemoryDB.

          • Identifier (string) --

            The unique identifier for the subnet.

          • AvailabilityZone (dict) --

            The Availability Zone where the subnet resides

            • Name (string) --

              The name of the Availability Zone.

      • ARN (string) --

        The ARN (Amazon Resource Name) of the subnet group.

Exceptions

  • MemoryDB.Client.exceptions.SubnetGroupNotFoundFault
  • MemoryDB.Client.exceptions.SubnetQuotaExceededFault
  • MemoryDB.Client.exceptions.SubnetInUse
  • MemoryDB.Client.exceptions.InvalidSubnet
  • MemoryDB.Client.exceptions.ServiceLinkedRoleNotFoundFault
  • MemoryDB.Client.exceptions.SubnetNotAllowedFault