Lists the existing custom verification email templates for your account in the current Amazon Web Services Region.
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:
-
next_token
(Optional[NextToken], default:
None
)
–
An array the contains the name and creation time stamp for each template in your Amazon SES account.
-
max_results
(Optional[MaxResults], default:
None
)
–
The maximum number of custom verification email templates to return. This value must be at least 1 and less than or equal to 50. If you do not specify a value, or if you specify a value less than 1 or greater than 50, the operation returns up to 50 results.
Raises:
Source code in docs_src/capo_ses/_services/ses.py
| def list_custom_verification_email_templates(
self,
*,
config_overrides: Optional[SESClientConfig] = None,
next_token: Optional["capo_ses.types.next_token.NextToken"] = None,
max_results: Optional["capo_ses.types.max_results.MaxResults"] = None,
) -> "capo_ses.types.list_custom_verification_email_templates_response.ListCustomVerificationEmailTemplatesResponse":
"""<p>Lists the existing custom verification email templates for your account in the current Amazon Web Services Region.</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:
next_token: <p>An array the contains the name and creation time stamp for each template in your Amazon SES account.</p>
max_results: <p>The maximum number of custom verification email templates to return. This value must be at least 1 and less than or equal to 50. If you do not specify a value, or if you specify a value less than 1 or greater than 50, the operation returns up to 50 results.</p>
Raises:
capo_ses.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
def _handler(
req: "OperationRequest[capo_ses.types.list_custom_verification_email_templates_request.ListCustomVerificationEmailTemplatesRequest]",
) -> OperationResponse[
"capo_ses.types.list_custom_verification_email_templates_response.ListCustomVerificationEmailTemplatesResponse"
]:
import capo_ses._operations.simple_email_service.list_custom_verification_email_templates
output, http_response = (
capo_ses._operations.simple_email_service.list_custom_verification_email_templates.list_custom_verification_email_templates(
req.options, req.input
)
)
return OperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("ListCustomVerificationEmailTemplates")
)
input_: capo_ses.types.list_custom_verification_email_templates_request.ListCustomVerificationEmailTemplatesRequest = {}
if next_token is not None:
input_["next_token"] = next_token
if max_results is not None:
input_["max_results"] = max_results
response = execute_pipeline(
OperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
response.response.close()
return response.output
|