Skip to content

delete_configuration_set async

delete_configuration_set(
    configuration_set_name: ConfigurationSetName,
    *,
    config_overrides: Optional[AsyncSESClientConfig] = None,
) -> DeleteConfigurationSetResponse

Deletes a configuration set. Configuration sets 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:

Raises:

Source code in docs_src/capo_ses/_services/async_ses.py
async def delete_configuration_set(
    self,
    configuration_set_name: "capo_ses.types.configuration_set_name.ConfigurationSetName",
    *,
    config_overrides: Optional[AsyncSESClientConfig] = None,
) -> "capo_ses.types.delete_configuration_set_response.DeleteConfigurationSetResponse":
    """<p>Deletes a configuration set. Configuration sets 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 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.UnknownServiceError: The service returned an error code this client does not model.
    """

    async def _handler(
        req: "AsyncOperationRequest[capo_ses.types.delete_configuration_set_request.DeleteConfigurationSetRequest]",
    ) -> AsyncOperationResponse[
        "capo_ses.types.delete_configuration_set_response.DeleteConfigurationSetResponse"
    ]:
        import capo_ses._operations.simple_email_service.delete_configuration_set

        (
            output,
            http_response,
        ) = await capo_ses._operations.simple_email_service.delete_configuration_set.async_delete_configuration_set(
            req.options, req.input
        )
        return AsyncOperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("DeleteConfigurationSet")
    )
    input_: capo_ses.types.delete_configuration_set_request.DeleteConfigurationSetRequest = {
        "configuration_set_name": configuration_set_name
    }

    response = await aexecute_pipeline(
        AsyncOperationRequest(input=input_, options=options_),
        handler=_handler,
        interceptors=list(interceptors_),
    )
    await response.response.aclose()
    return response.output