Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
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' {
- maxResults :: Maybe Int
- nextToken :: Maybe Text
- subnetGroupNames :: Maybe [Text]
- newDescribeSubnetGroups :: DescribeSubnetGroups
- describeSubnetGroups_maxResults :: Lens' DescribeSubnetGroups (Maybe Int)
- describeSubnetGroups_nextToken :: Lens' DescribeSubnetGroups (Maybe Text)
- describeSubnetGroups_subnetGroupNames :: Lens' DescribeSubnetGroups (Maybe [Text])
- data DescribeSubnetGroupsResponse = DescribeSubnetGroupsResponse' {
- nextToken :: Maybe Text
- subnetGroups :: Maybe [SubnetGroup]
- httpStatus :: Int
- newDescribeSubnetGroupsResponse :: Int -> DescribeSubnetGroupsResponse
- describeSubnetGroupsResponse_nextToken :: Lens' DescribeSubnetGroupsResponse (Maybe Text)
- describeSubnetGroupsResponse_subnetGroups :: Lens' DescribeSubnetGroupsResponse (Maybe [SubnetGroup])
- 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: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.
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:subnetGroupNames:DescribeSubnetGroups'
, describeSubnetGroups_subnetGroupNames
- The name of the subnet group.
Request Lenses
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.
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_subnetGroupNames :: Lens' DescribeSubnetGroups (Maybe [Text]) Source #
The name of the subnet group.
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:
DescribeSubnetGroups
, describeSubnetGroupsResponse_nextToken
- Provides an identifier to allow retrieval of paginated results.
$sel:subnetGroups:DescribeSubnetGroupsResponse'
, describeSubnetGroupsResponse_subnetGroups
- An array of subnet groups. Each element in the array represents a single
subnet group.
$sel:httpStatus:DescribeSubnetGroupsResponse'
, describeSubnetGroupsResponse_httpStatus
- The response's http status code.
Response Lenses
describeSubnetGroupsResponse_nextToken :: Lens' DescribeSubnetGroupsResponse (Maybe Text) Source #
Provides an identifier to allow retrieval of paginated results.
describeSubnetGroupsResponse_subnetGroups :: Lens' DescribeSubnetGroupsResponse (Maybe [SubnetGroup]) Source #
An array of subnet groups. Each element in the array represents a single subnet group.
describeSubnetGroupsResponse_httpStatus :: Lens' DescribeSubnetGroupsResponse Int Source #
The response's http status code.