Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Returns a list of subnet group descriptions. If a subnet group name is specified, the list contains only the description of that group.
Synopsis
- data DescribeSubnetGroups = DescribeSubnetGroups' {
- subnetGroupName :: Maybe Text
- nextToken :: Maybe Text
- maxResults :: Maybe Int
- newDescribeSubnetGroups :: DescribeSubnetGroups
- describeSubnetGroups_subnetGroupName :: Lens' DescribeSubnetGroups (Maybe Text)
- describeSubnetGroups_nextToken :: Lens' DescribeSubnetGroups (Maybe Text)
- describeSubnetGroups_maxResults :: Lens' DescribeSubnetGroups (Maybe Int)
- data DescribeSubnetGroupsResponse = DescribeSubnetGroupsResponse' {
- subnetGroups :: Maybe [SubnetGroup]
- nextToken :: Maybe Text
- httpStatus :: Int
- newDescribeSubnetGroupsResponse :: Int -> DescribeSubnetGroupsResponse
- describeSubnetGroupsResponse_subnetGroups :: Lens' DescribeSubnetGroupsResponse (Maybe [SubnetGroup])
- describeSubnetGroupsResponse_nextToken :: Lens' DescribeSubnetGroupsResponse (Maybe Text)
- describeSubnetGroupsResponse_httpStatus :: Lens' DescribeSubnetGroupsResponse Int
Creating a Request
data DescribeSubnetGroups Source #
See: newDescribeSubnetGroups
smart constructor.
DescribeSubnetGroups' | |
|
Instances
newDescribeSubnetGroups :: DescribeSubnetGroups Source #
Create a value of DescribeSubnetGroups
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:subnetGroupName:DescribeSubnetGroups'
, describeSubnetGroups_subnetGroupName
- The name of the subnet group to return details for.
$sel:nextToken:DescribeSubnetGroups'
, describeSubnetGroups_nextToken
- An optional argument to pass in case the total number of records exceeds
the value of MaxResults. If nextToken is returned, there are more
results available. The value of nextToken is a unique pagination token
for each page. Make the call again using the returned token to retrieve
the next page. Keep all other arguments unchanged.
$sel:maxResults:DescribeSubnetGroups'
, describeSubnetGroups_maxResults
- The maximum number of records to include in the response. If more
records exist than the specified MaxResults value, a token is included
in the response so that the remaining results can be retrieved.
Request Lenses
describeSubnetGroups_subnetGroupName :: Lens' DescribeSubnetGroups (Maybe Text) Source #
The name of the subnet group to return details for.
describeSubnetGroups_nextToken :: Lens' DescribeSubnetGroups (Maybe Text) Source #
An optional argument to pass in case the total number of records exceeds the value of MaxResults. If nextToken is returned, there are more results available. The value of nextToken is a unique pagination token for each page. Make the call again using the returned token to retrieve the next page. Keep all other arguments unchanged.
describeSubnetGroups_maxResults :: Lens' DescribeSubnetGroups (Maybe Int) Source #
The maximum number of records to include in the response. If more records exist than the specified MaxResults value, a token is included in the response so that the remaining results can be retrieved.
Destructuring the Response
data DescribeSubnetGroupsResponse Source #
See: newDescribeSubnetGroupsResponse
smart constructor.
DescribeSubnetGroupsResponse' | |
|
Instances
newDescribeSubnetGroupsResponse Source #
Create a value of DescribeSubnetGroupsResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:subnetGroups:DescribeSubnetGroupsResponse'
, describeSubnetGroupsResponse_subnetGroups
- A list of subnet groups. Each element in the list contains detailed
information about one group.
$sel:nextToken:DescribeSubnetGroups'
, describeSubnetGroupsResponse_nextToken
- An optional argument to pass in case the total number of records exceeds
the value of MaxResults. If nextToken is returned, there are more
results available. The value of nextToken is a unique pagination token
for each page. Make the call again using the returned token to retrieve
the next page. Keep all other arguments unchanged.
$sel:httpStatus:DescribeSubnetGroupsResponse'
, describeSubnetGroupsResponse_httpStatus
- The response's http status code.
Response Lenses
describeSubnetGroupsResponse_subnetGroups :: Lens' DescribeSubnetGroupsResponse (Maybe [SubnetGroup]) Source #
A list of subnet groups. Each element in the list contains detailed information about one group.
describeSubnetGroupsResponse_nextToken :: Lens' DescribeSubnetGroupsResponse (Maybe Text) Source #
An optional argument to pass in case the total number of records exceeds the value of MaxResults. If nextToken is returned, there are more results available. The value of nextToken is a unique pagination token for each page. Make the call again using the returned token to retrieve the next page. Keep all other arguments unchanged.
describeSubnetGroupsResponse_httpStatus :: Lens' DescribeSubnetGroupsResponse Int Source #
The response's http status code.