getEmailIdentityPolicies method

Future<GetEmailIdentityPoliciesResponse> getEmailIdentityPolicies({
  1. 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 BadRequestException. May throw NotFoundException. May throw TooManyRequestsException.

Parameter emailIdentity : The email identity.

Implementation

Future<GetEmailIdentityPoliciesResponse> getEmailIdentityPolicies({
  required String emailIdentity,
}) async {
  final response = await _protocol.send(
    payload: null,
    method: 'GET',
    requestUri:
        '/v2/email/identities/${Uri.encodeComponent(emailIdentity)}/policies',
    exceptionFnMap: _exceptionFns,
  );
  return GetEmailIdentityPoliciesResponse.fromJson(response);
}