Skip to content

delete_custom_verification_email_template

delete_custom_verification_email_template(
    template_name: EmailTemplateName,
    *,
    config_overrides: Optional[SESv2ClientConfig] = None,
) -> DeleteCustomVerificationEmailTemplateResponse

Deletes an existing custom verification email template.

For more information about custom verification email templates, see Using custom verification email templates in the Amazon SES Developer Guide.

You can execute this operation no more than once per second.

Parameters:

  • template_name (EmailTemplateName) –

    The name of the custom verification email template that you want to delete.

Raises:

Source code in docs_src/capo_sesv2/_services/se_sv2.py
def delete_custom_verification_email_template(
    self,
    template_name: "capo_sesv2.types.email_template_name.EmailTemplateName",
    *,
    config_overrides: Optional[SESv2ClientConfig] = None,
) -> "capo_sesv2.types.delete_custom_verification_email_template_response.DeleteCustomVerificationEmailTemplateResponse":
    """<p>Deletes an existing custom verification email template.</p> <p>For more information about custom verification email templates, see <a href="https://docs.aws.amazon.com/ses/latest/dg/creating-identities.html#send-email-verify-address-custom">Using custom verification email templates</a> in the <i>Amazon SES Developer Guide</i>.</p> <p>You can execute this operation no more than once per second.</p>

    Args:
        template_name: <p>The name of the custom verification email template that you want 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.
    """

    def _handler(
        req: "OperationRequest[capo_sesv2.types.delete_custom_verification_email_template_request.DeleteCustomVerificationEmailTemplateRequest]",
    ) -> OperationResponse[
        "capo_sesv2.types.delete_custom_verification_email_template_response.DeleteCustomVerificationEmailTemplateResponse"
    ]:
        import capo_sesv2._operations.simple_email_service_v2.delete_custom_verification_email_template

        output, http_response = (
            capo_sesv2._operations.simple_email_service_v2.delete_custom_verification_email_template.delete_custom_verification_email_template(
                req.options, req.input
            )
        )
        return OperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("DeleteCustomVerificationEmailTemplate")
    )
    input_: capo_sesv2.types.delete_custom_verification_email_template_request.DeleteCustomVerificationEmailTemplateRequest = {
        "template_name": template_name
    }

    response = execute_pipeline(
        OperationRequest(input=input_, options=options_),
        handler=_handler,
        interceptors=list(interceptors_),
    )
    response.response.close()
    return response.output