listDedicatedIpPools method

Future<ListDedicatedIpPoolsResponse> listDedicatedIpPools({
  1. String? nextToken,
  2. int? pageSize,
})

List all of the dedicated IP pools that exist in your AWS account in the current 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: '/v2/email/dedicated-ip-pools',
    queryParams: $query,
    exceptionFnMap: _exceptionFns,
  );
  return ListDedicatedIpPoolsResponse.fromJson(response);
}