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 EventBridge and associate a rule to send the event to the specified target.
Parameters:
-
configuration_set_name
(ConfigurationSetName)
–
The name of the configuration set that contains the event destination to delete.
-
event_destination_name
(EventDestinationName)
–
The name of the event destination to delete.
Raises:
Source code in docs_src/capo_sesv2/_services/async_se_sv2.py
| async def delete_configuration_set_event_destination(
self,
configuration_set_name: "capo_sesv2.types.configuration_set_name.ConfigurationSetName",
event_destination_name: "capo_sesv2.types.event_destination_name.EventDestinationName",
*,
config_overrides: Optional[AsyncSESv2ClientConfig] = None,
) -> "capo_sesv2.types.delete_configuration_set_event_destination_response.DeleteConfigurationSetEventDestinationResponse":
"""<p>Delete an event destination.</p> <p> <i>Events</i> include message sends, deliveries, opens, clicks, bounces, and complaints. <i>Event destinations</i> are places that you can send information about these events to. For example, you can send event data to Amazon EventBridge and associate a rule to send the event to the specified target.</p>
Args:
configuration_set_name: <p>The name of the configuration set that contains the event destination to delete.</p>
event_destination_name: <p>The name of the event destination to delete.</p>
Raises:
capo_sesv2.errors.bad_request_exception.BadRequestException: <p>The input you provided is invalid.</p>
capo_sesv2.errors.not_found_exception.NotFoundException: <p>The resource you attempted to access doesn't exist.</p>
capo_sesv2.errors.too_many_requests_exception.TooManyRequestsException: <p>Too many requests have been made to the operation.</p>
capo_sesv2.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
async def _handler(
req: "AsyncOperationRequest[capo_sesv2.types.delete_configuration_set_event_destination_request.DeleteConfigurationSetEventDestinationRequest]",
) -> AsyncOperationResponse[
"capo_sesv2.types.delete_configuration_set_event_destination_response.DeleteConfigurationSetEventDestinationResponse"
]:
import capo_sesv2._operations.simple_email_service_v2.delete_configuration_set_event_destination
(
output,
http_response,
) = await capo_sesv2._operations.simple_email_service_v2.delete_configuration_set_event_destination.async_delete_configuration_set_event_destination(
req.options, req.input
)
return AsyncOperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("DeleteConfigurationSetEventDestination")
)
input_: capo_sesv2.types.delete_configuration_set_event_destination_request.DeleteConfigurationSetEventDestinationRequest = {
"configuration_set_name": configuration_set_name,
"event_destination_name": event_destination_name,
}
response = await aexecute_pipeline(
AsyncOperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
await response.response.aclose()
return response.output
|