getEmailIdentity method

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

Provides information about a specific identity associated with your Amazon Pinpoint account, including the identity's verification status, 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');
  final response = await _protocol.send(
    payload: null,
    method: 'GET',
    requestUri: '/v1/email/identities/${Uri.encodeComponent(emailIdentity)}',
    exceptionFnMap: _exceptionFns,
  );
  return GetEmailIdentityResponse.fromJson(response);
}