Creates a configuration set event destination.
When you create or update an event destination, you must provide one, and only one, destination. The destination can be CloudWatch, Amazon Kinesis Firehose, or Amazon Simple Notification Service (Amazon SNS).
An event destination is the Amazon Web Services 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.
Parameters:
-
configuration_set_name
(ConfigurationSetName)
–
The name of the configuration set that the event destination should be associated with.
-
event_destination
(EventDestination)
–
An object that describes the Amazon Web Services service that email sending event where information is published.
Raises:
Source code in docs_src/capo_ses/_services/async_ses.py
| async def create_configuration_set_event_destination(
self,
configuration_set_name: "capo_ses.types.configuration_set_name.ConfigurationSetName",
event_destination: "capo_ses.types.event_destination.EventDestination",
*,
config_overrides: Optional[AsyncSESClientConfig] = None,
) -> "capo_ses.types.create_configuration_set_event_destination_response.CreateConfigurationSetEventDestinationResponse":
"""<p>Creates a configuration set event destination.</p> <note> <p>When you create or update an event destination, you must provide one, and only one, destination. The destination can be CloudWatch, Amazon Kinesis Firehose, or Amazon Simple Notification Service (Amazon SNS).</p> </note> <p>An event destination is the Amazon Web Services service to which Amazon SES publishes the email sending events associated with a configuration set. For information about using configuration sets, see the <a href="https://docs.aws.amazon.com/ses/latest/dg/monitor-sending-activity.html">Amazon SES Developer Guide</a>.</p> <p>You can execute this operation no more than once per second.</p>
Args:
configuration_set_name: <p>The name of the configuration set that the event destination should be associated with.</p>
event_destination: <p>An object that describes the Amazon Web Services service that email sending event where information is published.</p>
Raises:
capo_ses.errors.configuration_set_does_not_exist_exception.ConfigurationSetDoesNotExistException: <p>Indicates that the configuration set does not exist.</p>
capo_ses.errors.event_destination_already_exists_exception.EventDestinationAlreadyExistsException: <p>Indicates that the event destination could not be created because of a naming conflict.</p>
capo_ses.errors.invalid_cloud_watch_destination_exception.InvalidCloudWatchDestinationException: <p>Indicates that the Amazon CloudWatch destination is invalid. See the error message for details.</p>
capo_ses.errors.invalid_firehose_destination_exception.InvalidFirehoseDestinationException: <p>Indicates that the Amazon Kinesis Firehose destination is invalid. See the error message for details.</p>
capo_ses.errors.invalid_sns_destination_exception.InvalidSNSDestinationException: <p>Indicates that the Amazon Simple Notification Service (Amazon SNS) destination is invalid. See the error message for details.</p>
capo_ses.errors.limit_exceeded_exception.LimitExceededException: <p>Indicates that a resource could not be created because of service limits. For a list of Amazon SES limits, see the <a href="https://docs.aws.amazon.com/ses/latest/DeveloperGuide/limits.html">Amazon SES Developer Guide</a>.</p>
capo_ses.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
async def _handler(
req: "AsyncOperationRequest[capo_ses.types.create_configuration_set_event_destination_request.CreateConfigurationSetEventDestinationRequest]",
) -> AsyncOperationResponse[
"capo_ses.types.create_configuration_set_event_destination_response.CreateConfigurationSetEventDestinationResponse"
]:
import capo_ses._operations.simple_email_service.create_configuration_set_event_destination
(
output,
http_response,
) = await capo_ses._operations.simple_email_service.create_configuration_set_event_destination.async_create_configuration_set_event_destination(
req.options, req.input
)
return AsyncOperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("CreateConfigurationSetEventDestination")
)
input_: capo_ses.types.create_configuration_set_event_destination_request.CreateConfigurationSetEventDestinationRequest = {
"configuration_set_name": configuration_set_name,
"event_destination": event_destination,
}
response = await aexecute_pipeline(
AsyncOperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
await response.response.aclose()
return response.output
|