listDedicatedIpPools method
List all of the dedicated IP pools that exist in your Amazon Pinpoint account in the current AWS Region.
May throw TooManyRequestsException. May throw BadRequestException.
Parameter nextToken
:
A token returned from a previous call to ListDedicatedIpPools
to indicate the position in the list of dedicated IP pools.
Parameter pageSize
:
The number of results to show in a single call to
ListDedicatedIpPools
. If the number of results is larger than
the number you specified in this parameter, then the response includes a
NextToken
element, which you can use to obtain additional
results.
Implementation
Future<ListDedicatedIpPoolsResponse> listDedicatedIpPools({
String? nextToken,
int? pageSize,
}) async {
final $query = <String, List<String>>{
if (nextToken != null) 'NextToken': [nextToken],
if (pageSize != null) 'PageSize': [pageSize.toString()],
};
final response = await _protocol.send(
payload: null,
method: 'GET',
requestUri: '/v1/email/dedicated-ip-pools',
queryParams: $query,
exceptionFnMap: _exceptionFns,
);
return ListDedicatedIpPoolsResponse.fromJson(response);
}