listIdentities method
Future<ListIdentitiesResponse>
listIdentities({
- IdentityType? identityType,
- int? maxItems,
- String? nextToken,
Returns a list containing all of the identities (email addresses and domains) for your AWS account in the current AWS Region, regardless of verification status.
You can execute this operation no more than once per second.
Parameter identityType
:
The type of the identities to list. Possible values are "EmailAddress" and
"Domain". If this parameter is omitted, then all identities will be
listed.
Parameter maxItems
:
The maximum number of identities per page. Possible values are 1-1000
inclusive.
Parameter nextToken
:
The token to use for pagination.
Implementation
Future<ListIdentitiesResponse> listIdentities({
IdentityType? identityType,
int? maxItems,
String? nextToken,
}) async {
final $request = <String, dynamic>{};
identityType?.also((arg) => $request['IdentityType'] = arg.toValue());
maxItems?.also((arg) => $request['MaxItems'] = arg);
nextToken?.also((arg) => $request['NextToken'] = arg);
final $result = await _protocol.send(
$request,
action: 'ListIdentities',
version: '2010-12-01',
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
shape: shapes['ListIdentitiesRequest'],
shapes: shapes,
resultWrapper: 'ListIdentitiesResult',
);
return ListIdentitiesResponse.fromXml($result);
}