getEmailIdentity method

Future<GetEmailIdentityResponse> getEmailIdentity({
  1. required String emailIdentity,
})

Provides information about a specific identity, including the identity's verification status, sending authorization policies, its DKIM authentication status, and its custom Mail-From settings.

May throw NotFoundException. May throw TooManyRequestsException. May throw BadRequestException.

Parameter emailIdentity : The email identity that you want to retrieve details for.

Implementation

Future<GetEmailIdentityResponse> getEmailIdentity({
  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)}',
    exceptionFnMap: _exceptionFns,
  );
  return GetEmailIdentityResponse.fromJson(response);
}