Adds a domain to the list of identities for your Amazon SES account in the current Amazon Web Services Region and attempts to verify it. For more information about verifying domains, see Verifying Email Addresses and Domains in the Amazon SES Developer Guide.
You can execute this operation no more than once per second.
Parameters:
-
domain
(Domain)
–
The domain to be verified.
Raises:
Examples:
VerifyDomainIdentity
The following example starts the domain verification process with Amazon SES:
>>> await client.verify_domain_identity(domain='example.com')
Source code in docs_src/capo_ses/_services/async_ses.py
| async def verify_domain_identity(
self,
domain: "capo_ses.types.domain.Domain",
*,
config_overrides: Optional[AsyncSESClientConfig] = None,
) -> "capo_ses.types.verify_domain_identity_response.VerifyDomainIdentityResponse":
"""<p>Adds a domain to the list of identities for your Amazon SES account in the current Amazon Web Services Region and attempts to verify it. For more information about verifying domains, see <a href="https://docs.aws.amazon.com/ses/latest/dg/verify-addresses-and-domains.html">Verifying Email Addresses and Domains</a> in the <i>Amazon SES Developer Guide.</i> </p> <p>You can execute this operation no more than once per second.</p>
Args:
domain: <p>The domain to be verified.</p>
Raises:
capo_ses.errors.UnknownServiceError: The service returned an error code this client does not model.
Examples:
VerifyDomainIdentity
The following example starts the domain verification process with Amazon SES:
>>> await client.verify_domain_identity(domain='example.com')
"""
async def _handler(
req: "AsyncOperationRequest[capo_ses.types.verify_domain_identity_request.VerifyDomainIdentityRequest]",
) -> AsyncOperationResponse[
"capo_ses.types.verify_domain_identity_response.VerifyDomainIdentityResponse"
]:
import capo_ses._operations.simple_email_service.verify_domain_identity
(
output,
http_response,
) = await capo_ses._operations.simple_email_service.verify_domain_identity.async_verify_domain_identity(
req.options, req.input
)
return AsyncOperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("VerifyDomainIdentity")
)
input_: capo_ses.types.verify_domain_identity_request.VerifyDomainIdentityRequest = {
"domain": domain
}
response = await aexecute_pipeline(
AsyncOperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
await response.response.aclose()
return response.output
|