Returns the custom email verification template for the template name you specify.
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
(TemplateName)
–
The name of the custom verification email template to retrieve.
Raises:
Source code in docs_src/capo_ses/_services/ses.py
| def get_custom_verification_email_template(
self,
template_name: "capo_ses.types.template_name.TemplateName",
*,
config_overrides: Optional[SESClientConfig] = None,
) -> "capo_ses.types.get_custom_verification_email_template_response.GetCustomVerificationEmailTemplateResponse":
"""<p>Returns the custom email verification template for the template name you specify.</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 to retrieve.</p>
Raises:
capo_ses.errors.custom_verification_email_template_does_not_exist_exception.CustomVerificationEmailTemplateDoesNotExistException: <p>Indicates that a custom verification email template with the name you specified 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.get_custom_verification_email_template_request.GetCustomVerificationEmailTemplateRequest]",
) -> OperationResponse[
"capo_ses.types.get_custom_verification_email_template_response.GetCustomVerificationEmailTemplateResponse"
]:
import capo_ses._operations.simple_email_service.get_custom_verification_email_template
output, http_response = (
capo_ses._operations.simple_email_service.get_custom_verification_email_template.get_custom_verification_email_template(
req.options, req.input
)
)
return OperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("GetCustomVerificationEmailTemplate")
)
input_: capo_ses.types.get_custom_verification_email_template_request.GetCustomVerificationEmailTemplateRequest = {
"template_name": template_name
}
response = execute_pipeline(
OperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
response.response.close()
return response.output
|