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.
When you create or update an event destination, you must provide one, and only one, destination. The destination can be Amazon CloudWatch, Amazon Kinesis Firehose, or Amazon Simple Notification Service (Amazon SNS).
You can execute this operation no more than once per second.
Parameters:
-
configuration_set_name
(ConfigurationSetName)
–
The name of the configuration set that contains the event destination.
-
event_destination
(EventDestination)
–
The event destination object.
Raises:
Source code in docs_src/capo_ses/_services/ses.py
| def update_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[SESClientConfig] = None,
) -> "capo_ses.types.update_configuration_set_event_destination_response.UpdateConfigurationSetEventDestinationResponse":
"""<p>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 <a href="https://docs.aws.amazon.com/ses/latest/dg/monitor-sending-activity.html">Monitoring Your Amazon SES Sending Activity</a> in the <i>Amazon SES Developer Guide.</i> </p> <note> <p>When you create or update an event destination, you must provide one, and only one, destination. The destination can be Amazon CloudWatch, Amazon Kinesis Firehose, or Amazon Simple Notification Service (Amazon SNS).</p> </note> <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 contains the event destination.</p>
event_destination: <p>The event destination object.</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_does_not_exist_exception.EventDestinationDoesNotExistException: <p>Indicates that the event destination does not exist.</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.UnknownServiceError: The service returned an error code this client does not model.
"""
def _handler(
req: "OperationRequest[capo_ses.types.update_configuration_set_event_destination_request.UpdateConfigurationSetEventDestinationRequest]",
) -> OperationResponse[
"capo_ses.types.update_configuration_set_event_destination_response.UpdateConfigurationSetEventDestinationResponse"
]:
import capo_ses._operations.simple_email_service.update_configuration_set_event_destination
output, http_response = (
capo_ses._operations.simple_email_service.update_configuration_set_event_destination.update_configuration_set_event_destination(
req.options, req.input
)
)
return OperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("UpdateConfigurationSetEventDestination")
)
input_: capo_ses.types.update_configuration_set_event_destination_request.UpdateConfigurationSetEventDestinationRequest = {
"configuration_set_name": configuration_set_name,
"event_destination": event_destination,
}
response = execute_pipeline(
OperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
response.response.close()
return response.output
|