describe_subnet_groups
(**kwargs)¶Returns a list of subnet group descriptions. If a subnet group name is specified, the list will contain only the description of that group.
See also: AWS API Documentation
Request Syntax
response = client.describe_subnet_groups(
SubnetGroupNames=[
'string',
],
MaxResults=123,
NextToken='string'
)
The name of the subnet group.
The maximum number of results to include in the response. If more results exist than the specified MaxResults
value, a token is included in the response so that the remaining results can be retrieved.
The value for MaxResults
must be between 20 and 100.
MaxResults
.dict
Response Syntax
{
'NextToken': 'string',
'SubnetGroups': [
{
'SubnetGroupName': 'string',
'Description': 'string',
'VpcId': 'string',
'Subnets': [
{
'SubnetIdentifier': 'string',
'SubnetAvailabilityZone': 'string'
},
]
},
]
}
Response Structure
(dict) --
NextToken (string) --
Provides an identifier to allow retrieval of paginated results.
SubnetGroups (list) --
An array of subnet groups. Each element in the array represents a single subnet group.
(dict) --
Represents the output of one of the following actions:
SubnetGroupName (string) --
The name of the subnet group.
Description (string) --
The 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 DAX cluster. This parameter refers to subnets defined in Amazon Virtual Private Cloud (Amazon VPC) and used with DAX.
SubnetIdentifier (string) --
The system-assigned identifier for the subnet.
SubnetAvailabilityZone (string) --
The Availability Zone (AZ) for the subnet.
Exceptions
DAX.Client.exceptions.SubnetGroupNotFoundFault
DAX.Client.exceptions.ServiceLinkedRoleNotFoundFault