Skip to content

delete_configuration_set

delete_configuration_set(
    configuration_set_name: ConfigurationSetName,
    *,
    config_overrides: Optional[SESClientConfig] = 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/ses.py
def delete_configuration_set(
    self,
    configuration_set_name: "capo_ses.types.configuration_set_name.ConfigurationSetName",
    *,
    config_overrides: Optional[SESClientConfig] = 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.
    """

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

        output, http_response = (
            capo_ses._operations.simple_email_service.delete_configuration_set.delete_configuration_set(
                req.options, req.input
            )
        )
        return OperationResponse(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 = execute_pipeline(
        OperationRequest(input=input_, options=options_),
        handler=_handler,
        interceptors=list(interceptors_),
    )
    response.response.close()
    return response.output