createConfigurationSetEventDestination method
- required String configurationSetName,
- required EventDestination eventDestination,
Creates a configuration set event destination. An event destination is the AWS service to which Amazon SES publishes the email sending events associated with a configuration set. For information about using configuration sets, see the Amazon SES Developer Guide.
You can execute this operation no more than once per second.
May throw ConfigurationSetDoesNotExistException. May throw EventDestinationAlreadyExistsException. May throw InvalidCloudWatchDestinationException. May throw InvalidFirehoseDestinationException. May throw InvalidSNSDestinationException. May throw LimitExceededException.
Parameter configurationSetName
:
The name of the configuration set that the event destination should be
associated with.
Parameter eventDestination
:
An object that describes the AWS service that email sending event
information will be published to.
Implementation
Future<void> createConfigurationSetEventDestination({
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: 'CreateConfigurationSetEventDestination',
version: '2010-12-01',
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
shape: shapes['CreateConfigurationSetEventDestinationRequest'],
shapes: shapes,
resultWrapper: 'CreateConfigurationSetEventDestinationResult',
);
}