Skip to content

verify_domain_identity

verify_domain_identity(
    domain: Domain, *, config_overrides: Optional[SESClientConfig] = None
) -> VerifyDomainIdentityResponse

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:

>>> client.verify_domain_identity(domain='example.com')
Source code in docs_src/capo_ses/_services/ses.py
def verify_domain_identity(
    self,
    domain: "capo_ses.types.domain.Domain",
    *,
    config_overrides: Optional[SESClientConfig] = 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:

        >>> client.verify_domain_identity(domain='example.com')
    """

    def _handler(
        req: "OperationRequest[capo_ses.types.verify_domain_identity_request.VerifyDomainIdentityRequest]",
    ) -> OperationResponse[
        "capo_ses.types.verify_domain_identity_response.VerifyDomainIdentityResponse"
    ]:
        import capo_ses._operations.simple_email_service.verify_domain_identity

        output, http_response = (
            capo_ses._operations.simple_email_service.verify_domain_identity.verify_domain_identity(
                req.options, req.input
            )
        )
        return OperationResponse(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 = execute_pipeline(
        OperationRequest(input=input_, options=options_),
        handler=_handler,
        interceptors=list(interceptors_),
    )
    response.response.close()
    return response.output