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 |
Retrieves the specified pools or all pools associated with your Amazon Web Services account.
If you specify pool IDs, the output includes information for only the specified pools. If you specify filters, the output includes information for only those pools that meet the filter criteria. If you don't specify pool IDs or filters, the output includes information for all pools.
If you specify a pool ID that isn't valid, an Error is returned.
A pool is a collection of phone numbers and SenderIds. A pool can include one or more phone numbers and SenderIds that are associated with your Amazon Web Services account.
This operation returns paginated results.
Synopsis
- data DescribePools = DescribePools' {}
- newDescribePools :: DescribePools
- describePools_filters :: Lens' DescribePools (Maybe [PoolFilter])
- describePools_maxResults :: Lens' DescribePools (Maybe Natural)
- describePools_nextToken :: Lens' DescribePools (Maybe Text)
- describePools_poolIds :: Lens' DescribePools (Maybe [Text])
- data DescribePoolsResponse = DescribePoolsResponse' {
- nextToken :: Maybe Text
- pools :: Maybe [PoolInformation]
- httpStatus :: Int
- newDescribePoolsResponse :: Int -> DescribePoolsResponse
- describePoolsResponse_nextToken :: Lens' DescribePoolsResponse (Maybe Text)
- describePoolsResponse_pools :: Lens' DescribePoolsResponse (Maybe [PoolInformation])
- describePoolsResponse_httpStatus :: Lens' DescribePoolsResponse Int
Creating a Request
data DescribePools Source #
See: newDescribePools
smart constructor.
DescribePools' | |
|
Instances
newDescribePools :: DescribePools Source #
Create a value of DescribePools
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:filters:DescribePools'
, describePools_filters
- An array of PoolFilter objects to filter the results.
$sel:maxResults:DescribePools'
, describePools_maxResults
- The maximum number of results to return per each request.
DescribePools
, describePools_nextToken
- The token to be used for the next set of paginated results. You don't
need to supply a value for this field in the initial request.
$sel:poolIds:DescribePools'
, describePools_poolIds
- The unique identifier of pools to find. This is an array of strings that
can be either the PoolId or PoolArn.
Request Lenses
describePools_filters :: Lens' DescribePools (Maybe [PoolFilter]) Source #
An array of PoolFilter objects to filter the results.
describePools_maxResults :: Lens' DescribePools (Maybe Natural) Source #
The maximum number of results to return per each request.
describePools_nextToken :: Lens' DescribePools (Maybe Text) Source #
The token to be used for the next set of paginated results. You don't need to supply a value for this field in the initial request.
describePools_poolIds :: Lens' DescribePools (Maybe [Text]) Source #
The unique identifier of pools to find. This is an array of strings that can be either the PoolId or PoolArn.
Destructuring the Response
data DescribePoolsResponse Source #
See: newDescribePoolsResponse
smart constructor.
DescribePoolsResponse' | |
|
Instances
newDescribePoolsResponse Source #
Create a value of DescribePoolsResponse
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:
DescribePools
, describePoolsResponse_nextToken
- The token to be used for the next set of paginated results. If this
field is empty then there are no more results.
$sel:pools:DescribePoolsResponse'
, describePoolsResponse_pools
- An array of PoolInformation objects that contain the details for the
requested pools.
$sel:httpStatus:DescribePoolsResponse'
, describePoolsResponse_httpStatus
- The response's http status code.
Response Lenses
describePoolsResponse_nextToken :: Lens' DescribePoolsResponse (Maybe Text) Source #
The token to be used for the next set of paginated results. If this field is empty then there are no more results.
describePoolsResponse_pools :: Lens' DescribePoolsResponse (Maybe [PoolInformation]) Source #
An array of PoolInformation objects that contain the details for the requested pools.
describePoolsResponse_httpStatus :: Lens' DescribePoolsResponse Int Source #
The response's http status code.