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
)
–
A token returned from a previous call to ListCustomVerificationEmailTemplates to indicate the position in the list of custom verification email templates.
-
page_size
(Optional[MaxItems], default:
None
)
–
The number of results to show in a single call to ListCustomVerificationEmailTemplates. If the number of results is larger than the number you specified in this parameter, then the response includes a NextToken element, which you can use to obtain additional results.
The value you specify has to be at least 1, and can be no more than 50.
Raises:
Source code in docs_src/capo_sesv2/_services/async_se_sv2.py
| async def list_custom_verification_email_templates(
self,
*,
config_overrides: Optional[AsyncSESv2ClientConfig] = None,
next_token: Optional["capo_sesv2.types.next_token.NextToken"] = None,
page_size: Optional["capo_sesv2.types.max_items.MaxItems"] = None,
) -> "capo_sesv2.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>A token returned from a previous call to <code>ListCustomVerificationEmailTemplates</code> to indicate the position in the list of custom verification email templates.</p>
page_size: <p>The number of results to show in a single call to <code>ListCustomVerificationEmailTemplates</code>. If the number of results is larger than the number you specified in this parameter, then the response includes a <code>NextToken</code> element, which you can use to obtain additional results.</p> <p>The value you specify has to be at least 1, and can be no more than 50.</p>
Raises:
capo_sesv2.errors.bad_request_exception.BadRequestException: <p>The input you provided is invalid.</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.
"""
async def _handler(
req: "AsyncOperationRequest[capo_sesv2.types.list_custom_verification_email_templates_request.ListCustomVerificationEmailTemplatesRequest]",
) -> AsyncOperationResponse[
"capo_sesv2.types.list_custom_verification_email_templates_response.ListCustomVerificationEmailTemplatesResponse"
]:
import capo_sesv2._operations.simple_email_service_v2.list_custom_verification_email_templates
(
output,
http_response,
) = await capo_sesv2._operations.simple_email_service_v2.list_custom_verification_email_templates.async_list_custom_verification_email_templates(
req.options, req.input
)
return AsyncOperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("ListCustomVerificationEmailTemplates")
)
input_: capo_sesv2.types.list_custom_verification_email_templates_request.ListCustomVerificationEmailTemplatesRequest = {}
if next_token is not None:
input_["next_token"] = next_token
if page_size is not None:
input_["page_size"] = page_size
response = await aexecute_pipeline(
AsyncOperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
await response.response.aclose()
return response.output
|