deleteConfigurationSetEventDestination method
Delete an event destination.
Events include message sends, deliveries, opens, clicks, bounces, and complaints. Event destinations are places that you can send information about these events to. For example, you can send event data to Amazon SNS to receive notifications when you receive bounces or complaints, or you can use Amazon Kinesis Data Firehose to stream data to Amazon S3 for long-term storage.
May throw NotFoundException. May throw TooManyRequestsException. May throw BadRequestException.
Parameter configurationSetName
:
The name of the configuration set that contains the event destination that
you want to delete.
Parameter eventDestinationName
:
The name of the event destination that you want to delete.
Implementation
Future<void> deleteConfigurationSetEventDestination({
required String configurationSetName,
required String eventDestinationName,
}) async {
ArgumentError.checkNotNull(configurationSetName, 'configurationSetName');
ArgumentError.checkNotNull(eventDestinationName, 'eventDestinationName');
final response = await _protocol.send(
payload: null,
method: 'DELETE',
requestUri:
'/v2/email/configuration-sets/${Uri.encodeComponent(configurationSetName)}/event-destinations/${Uri.encodeComponent(eventDestinationName)}',
exceptionFnMap: _exceptionFns,
);
}