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 will contain only the description of that group.
This operation returns paginated results.
Synopsis
- data DescribeSubnetGroups = DescribeSubnetGroups' {
- subnetGroupNames :: Maybe [Text]
- nextToken :: Maybe Text
- maxResults :: Maybe Int
- newDescribeSubnetGroups :: DescribeSubnetGroups
- describeSubnetGroups_subnetGroupNames :: 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:subnetGroupNames:DescribeSubnetGroups'
, describeSubnetGroups_subnetGroupNames
- The name of the subnet group.
$sel:nextToken:DescribeSubnetGroups'
, describeSubnetGroups_nextToken
- An optional token returned from a prior request. Use this token for
pagination of results from this action. If this parameter is specified,
the response includes only results beyond the token, up to the value
specified by MaxResults
.
$sel:maxResults:DescribeSubnetGroups'
, describeSubnetGroups_maxResults
- 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.
Request Lenses
describeSubnetGroups_subnetGroupNames :: Lens' DescribeSubnetGroups (Maybe [Text]) Source #
The name of the subnet group.
describeSubnetGroups_nextToken :: Lens' DescribeSubnetGroups (Maybe Text) Source #
An optional token returned from a prior request. Use this token for
pagination of results from this action. If this parameter is specified,
the response includes only results beyond the token, up to the value
specified by MaxResults
.
describeSubnetGroups_maxResults :: Lens' DescribeSubnetGroups (Maybe Int) Source #
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.
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
- An array of subnet groups. Each element in the array represents a single
subnet group.
$sel:nextToken:DescribeSubnetGroups'
, describeSubnetGroupsResponse_nextToken
- Provides an identifier to allow retrieval of paginated results.
$sel:httpStatus:DescribeSubnetGroupsResponse'
, describeSubnetGroupsResponse_httpStatus
- The response's http status code.
Response Lenses
describeSubnetGroupsResponse_subnetGroups :: Lens' DescribeSubnetGroupsResponse (Maybe [SubnetGroup]) Source #
An array of subnet groups. Each element in the array represents a single subnet group.
describeSubnetGroupsResponse_nextToken :: Lens' DescribeSubnetGroupsResponse (Maybe Text) Source #
Provides an identifier to allow retrieval of paginated results.
describeSubnetGroupsResponse_httpStatus :: Lens' DescribeSubnetGroupsResponse Int Source #
The response's http status code.