Skip to content

resend_contact_reachability_email async

resend_contact_reachability_email(
    *,
    config_overrides: Optional[AsyncRoute53DomainsClientConfig] = None,
    domain_name: Optional[DomainName] = None,
) -> ResendContactReachabilityEmailResponse

For operations that require confirmation that the email address for the registrant contact is valid, such as registering a new domain, this operation resends the confirmation email to the current email address for the registrant contact.

Parameters:

  • domain_name (Optional[DomainName], default: None ) –

    The name of the domain for which you want Route 53 to resend a confirmation email to the registrant contact.

Raises:

  • InvalidInput –

    The requested item is not acceptable. For example, for APIs that accept a domain name, the request might specify a domain name that doesn't belong to the account that submitted the request. For AcceptDomainTransferFromAnotherAwsAccount, the password might be invalid.

  • OperationLimitExceeded –

    The number of operations or jobs running exceeded the allowed threshold for the account.

  • TLDInMaintenance –

    The top-level domain is currently undergoing maintenance and the request cannot be processed. Try again later.

  • UnsupportedTLD –

    Amazon Route 53 does not support this top-level domain (TLD).

  • UnknownServiceError –

    The service returned an error code this client does not model.

Source code in docs_src/capo_route_53_domains/_services/async_route53_domains.py
async def resend_contact_reachability_email(
    self,
    *,
    config_overrides: Optional[AsyncRoute53DomainsClientConfig] = None,
    domain_name: Optional[
        "capo_route_53_domains.types.domain_name.DomainName"
    ] = None,
) -> "capo_route_53_domains.types.resend_contact_reachability_email_response.ResendContactReachabilityEmailResponse":
    """<p>For operations that require confirmation that the email address for the registrant contact is valid, such as registering a new domain, this operation resends the confirmation email to the current email address for the registrant contact.</p>

    Args:
        domain_name: <p>The name of the domain for which you want Route 53 to resend a confirmation email to the registrant contact.</p>

    Raises:
        capo_route_53_domains.errors.invalid_input.InvalidInput: <p>The requested item is not acceptable. For example, for APIs that accept a domain name, the request might specify a domain name that doesn't belong to the account that submitted the request. For <code>AcceptDomainTransferFromAnotherAwsAccount</code>, the password might be invalid.</p>
        capo_route_53_domains.errors.operation_limit_exceeded.OperationLimitExceeded: <p>The number of operations or jobs running exceeded the allowed threshold for the account.</p>
        capo_route_53_domains.errors.tld_in_maintenance.TLDInMaintenance: <p>The top-level domain is currently undergoing maintenance and the request cannot be processed. Try again later.</p>
        capo_route_53_domains.errors.unsupported_tld.UnsupportedTLD: <p>Amazon Route 53 does not support this top-level domain (TLD).</p>
        capo_route_53_domains.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    async def _handler(
        req: "AsyncOperationRequest[capo_route_53_domains.types.resend_contact_reachability_email_request.ResendContactReachabilityEmailRequest]",
    ) -> AsyncOperationResponse[
        "capo_route_53_domains.types.resend_contact_reachability_email_response.ResendContactReachabilityEmailResponse"
    ]:
        import capo_route_53_domains._operations.route53_domains_v20140515.resend_contact_reachability_email

        (
            output,
            http_response,
        ) = await capo_route_53_domains._operations.route53_domains_v20140515.resend_contact_reachability_email.async_resend_contact_reachability_email(
            req.options, req.input
        )
        return AsyncOperationResponse(output=output, response=http_response)

    def _redact_output(
        output: "capo_route_53_domains.types.resend_contact_reachability_email_response.ResendContactReachabilityEmailResponse",
    ) -> dict[str, Any]:
        import capo_route_53_domains.types.resend_contact_reachability_email_response

        return capo_route_53_domains.types.resend_contact_reachability_email_response.redact_sensitive(
            output
        )

    interceptors_, options_ = self.operation_options(
        config_overrides,
        OperationLogging(
            "ResendContactReachabilityEmail", redact_output=_redact_output
        ),
    )
    input_: capo_route_53_domains.types.resend_contact_reachability_email_request.ResendContactReachabilityEmailRequest = {}
    if domain_name is not None:
        input_["domain_name"] = domain_name

    response = await aexecute_pipeline(
        AsyncOperationRequest(input=input_, options=options_),
        handler=_handler,
        interceptors=list(interceptors_),
    )
    await response.response.aclose()
    return response.output