describeEmailAddress method

Future<DescribeEmailAddressResponse> describeEmailAddress({
  1. required String emailAddressId,
  2. required String instanceId,
})

Describe email address form the specified Connect Customer instance.

May throw AccessDeniedException. May throw InternalServiceException. May throw InvalidParameterException. May throw InvalidRequestException. May throw ResourceNotFoundException. May throw ThrottlingException.

Parameter emailAddressId : The identifier of the email address.

Parameter instanceId : The identifier of the Connect Customer instance. You can find the instance ID in the Amazon Resource Name (ARN) of the instance.

Implementation

Future<DescribeEmailAddressResponse> describeEmailAddress({
  required String emailAddressId,
  required String instanceId,
}) async {
  final response = await _protocol.send(
    payload: null,
    method: 'GET',
    requestUri:
        '/email-addresses/${Uri.encodeComponent(instanceId)}/${Uri.encodeComponent(emailAddressId)}',
    exceptionFnMap: _exceptionFns,
  );
  return DescribeEmailAddressResponse.fromJson(response);
}