Skip to content

delete_configuration_set_event_destination async

delete_configuration_set_event_destination(
    configuration_set_name: ConfigurationSetName,
    event_destination_name: EventDestinationName,
    *,
    config_overrides: Optional[AsyncSESClientConfig] = None,
) -> DeleteConfigurationSetEventDestinationResponse

Deletes a configuration set event destination. Configuration set event destinations are associated with configuration sets, which enable you to publish email sending events. 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 from which to delete the event destination.

  • event_destination_name (EventDestinationName) –

    The name of the event destination to delete.

Raises:

Source code in docs_src/capo_ses/_services/async_ses.py
async def delete_configuration_set_event_destination(
    self,
    configuration_set_name: "capo_ses.types.configuration_set_name.ConfigurationSetName",
    event_destination_name: "capo_ses.types.event_destination_name.EventDestinationName",
    *,
    config_overrides: Optional[AsyncSESClientConfig] = None,
) -> "capo_ses.types.delete_configuration_set_event_destination_response.DeleteConfigurationSetEventDestinationResponse":
    """<p>Deletes a configuration set event destination. Configuration set event destinations are associated with configuration sets, which enable you to publish email sending events. 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 from which to delete the event destination.</p>
        event_destination_name: <p>The name of the event destination to delete.</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.UnknownServiceError: The service returned an error code this client does not model.
    """

    async def _handler(
        req: "AsyncOperationRequest[capo_ses.types.delete_configuration_set_event_destination_request.DeleteConfigurationSetEventDestinationRequest]",
    ) -> AsyncOperationResponse[
        "capo_ses.types.delete_configuration_set_event_destination_response.DeleteConfigurationSetEventDestinationResponse"
    ]:
        import capo_ses._operations.simple_email_service.delete_configuration_set_event_destination

        (
            output,
            http_response,
        ) = await capo_ses._operations.simple_email_service.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_ses.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