deleteEmailIdentity method
Deletes an email identity that you previously verified for use with Amazon Pinpoint. An identity can be either an email address or a domain name.
May throw NotFoundException. May throw TooManyRequestsException. May throw BadRequestException. May throw ConcurrentModificationException.
Parameter emailIdentity
:
The identity (that is, the email address or domain) that you want to
delete from your Amazon Pinpoint account.
Implementation
Future<void> deleteEmailIdentity({
required String emailIdentity,
}) async {
ArgumentError.checkNotNull(emailIdentity, 'emailIdentity');
final response = await _protocol.send(
payload: null,
method: 'DELETE',
requestUri: '/v1/email/identities/${Uri.encodeComponent(emailIdentity)}',
exceptionFnMap: _exceptionFns,
);
}