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/ses.py
| def verify_email_identity(
self,
email_address: "capo_ses.types.address.Address",
*,
config_overrides: Optional[SESClientConfig] = 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:
>>> client.verify_email_identity(email_address='[email protected]')
"""
def _handler(
req: "OperationRequest[capo_ses.types.verify_email_identity_request.VerifyEmailIdentityRequest]",
) -> OperationResponse[
"capo_ses.types.verify_email_identity_response.VerifyEmailIdentityResponse"
]:
import capo_ses._operations.simple_email_service.verify_email_identity
output, http_response = (
capo_ses._operations.simple_email_service.verify_email_identity.verify_email_identity(
req.options, req.input
)
)
return OperationResponse(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 = execute_pipeline(
OperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
response.response.close()
return response.output
|