listEmailIdentities method
Returns a list of all of the email identities that are associated with your AWS account. An identity can be either an email address or a domain. This operation returns identities that are verified as well as those that aren't. This operation returns identities that are associated with Amazon SES and Amazon Pinpoint.
May throw TooManyRequestsException. May throw BadRequestException.
Parameter nextToken
:
A token returned from a previous call to ListEmailIdentities
to indicate the position in the list of identities.
Parameter pageSize
:
The number of results to show in a single call to
ListEmailIdentities
. 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.
The value you specify has to be at least 0, and can be no more than 1000.
Implementation
Future<ListEmailIdentitiesResponse> listEmailIdentities({
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/identities',
queryParams: $query,
exceptionFnMap: _exceptionFns,
);
return ListEmailIdentitiesResponse.fromJson(response);
}