deleteEmailAddress method

Future<void> deleteEmailAddress({
  1. required String emailAddressId,
  2. required String instanceId,
})

Deletes email address from the specified Connect Customer instance.

May throw AccessDeniedException. May throw InternalServiceException. May throw InvalidParameterException. May throw InvalidRequestException. May throw ResourceConflictException. 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<void> deleteEmailAddress({
  required String emailAddressId,
  required String instanceId,
}) async {
  final response = await _protocol.send(
    payload: null,
    method: 'DELETE',
    requestUri:
        '/email-addresses/${Uri.encodeComponent(instanceId)}/${Uri.encodeComponent(emailAddressId)}',
    exceptionFnMap: _exceptionFns,
  );
}