getEmailIdentityPolicies method
Future<GetEmailIdentityPoliciesResponse>
getEmailIdentityPolicies({
- required String emailIdentity,
Returns the requested sending authorization policies for the given identity (an email address or a domain). The policies are returned as a map of policy names to policy contents. You can retrieve a maximum of 20 policies at a time. Sending authorization is a feature that enables an identity owner to authorize other senders to use its identities. For information about using sending authorization, see the Amazon SES Developer Guide.
You can execute this operation no more than once per second.
May throw NotFoundException. May throw TooManyRequestsException. May throw BadRequestException.
Parameter emailIdentity
:
The email identity that you want to retrieve policies for.
Implementation
Future<GetEmailIdentityPoliciesResponse> getEmailIdentityPolicies({
required String emailIdentity,
}) async {
ArgumentError.checkNotNull(emailIdentity, 'emailIdentity');
_s.validateStringLength(
'emailIdentity',
emailIdentity,
1,
1152921504606846976,
isRequired: true,
);
final response = await _protocol.send(
payload: null,
method: 'GET',
requestUri:
'/v2/email/identities/${Uri.encodeComponent(emailIdentity)}/policies',
exceptionFnMap: _exceptionFns,
);
return GetEmailIdentityPoliciesResponse.fromJson(response);
}