Adds an email address to the list of identities for your Amazon SES account in the current Amazon Web Services Region and attempts to verify it. As a result of executing this operation, a verification email is sent to the specified address.
You can execute this operation no more than once per second.
Parameters:
-
email_address
(Address)
–
The email address to be verified.
Raises:
Examples:
VerifyEmailIdentity
The following example starts the email address verification process with Amazon SES:
Source code in docs_src/capo_ses/_services/async_ses.py
| async def verify_email_identity(
self,
email_address: "capo_ses.types.address.Address",
*,
config_overrides: Optional[AsyncSESClientConfig] = None,
) -> "capo_ses.types.verify_email_identity_response.VerifyEmailIdentityResponse":
"""<p>Adds an email address to the list of identities for your Amazon SES account in the current Amazon Web Services Region and attempts to verify it. As a result of executing this operation, a verification email is sent to the specified address.</p> <p>You can execute this operation no more than once per second.</p>
Args:
email_address: <p>The email address to be verified.</p>
Raises:
capo_ses.errors.UnknownServiceError: The service returned an error code this client does not model.
Examples:
VerifyEmailIdentity
The following example starts the email address verification process with Amazon SES:
>>> await client.verify_email_identity(email_address='[email protected]')
"""
async def _handler(
req: "AsyncOperationRequest[capo_ses.types.verify_email_identity_request.VerifyEmailIdentityRequest]",
) -> AsyncOperationResponse[
"capo_ses.types.verify_email_identity_response.VerifyEmailIdentityResponse"
]:
import capo_ses._operations.simple_email_service.verify_email_identity
(
output,
http_response,
) = await capo_ses._operations.simple_email_service.verify_email_identity.async_verify_email_identity(
req.options, req.input
)
return AsyncOperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("VerifyEmailIdentity")
)
input_: capo_ses.types.verify_email_identity_request.VerifyEmailIdentityRequest = {
"email_address": email_address
}
response = await aexecute_pipeline(
AsyncOperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
await response.response.aclose()
return response.output
|