updateConfigurationSetEventDestination method

Future<void> updateConfigurationSetEventDestination({
  1. required String configurationSetName,
  2. required EventDestination eventDestination,
})

Updates the event destination of a configuration set. Event destinations are associated with configuration sets, which enable you to publish email sending events to Amazon CloudWatch, Amazon Kinesis Firehose, or Amazon Simple Notification Service (Amazon SNS). For information about using configuration sets, see Monitoring Your Amazon SES Sending Activity in the Amazon SES Developer Guide. You can execute this operation no more than once per second.

May throw ConfigurationSetDoesNotExistException. May throw EventDestinationDoesNotExistException. May throw InvalidCloudWatchDestinationException. May throw InvalidFirehoseDestinationException. May throw InvalidSNSDestinationException.

Parameter configurationSetName : The name of the configuration set that contains the event destination that you want to update.

Parameter eventDestination : The event destination object that you want to apply to the specified configuration set.

Implementation

Future<void> updateConfigurationSetEventDestination({
  required String configurationSetName,
  required EventDestination eventDestination,
}) async {
  ArgumentError.checkNotNull(configurationSetName, 'configurationSetName');
  ArgumentError.checkNotNull(eventDestination, 'eventDestination');
  final $request = <String, dynamic>{};
  $request['ConfigurationSetName'] = configurationSetName;
  $request['EventDestination'] = eventDestination;
  await _protocol.send(
    $request,
    action: 'UpdateConfigurationSetEventDestination',
    version: '2010-12-01',
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    shape: shapes['UpdateConfigurationSetEventDestinationRequest'],
    shapes: shapes,
    resultWrapper: 'UpdateConfigurationSetEventDestinationResult',
  );
}