Skip to content

disable_domain_auto_renew

disable_domain_auto_renew(
    domain_name: DomainName,
    *,
    config_overrides: Optional[Route53DomainsClientConfig] = None,
) -> DisableDomainAutoRenewResponse

This operation disables automatic renewal of domain registration for the specified domain.

Parameters:

  • domain_name (DomainName) –

    The name of the domain that you want to disable automatic renewal for.

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.

  • 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/route53_domains.py
def disable_domain_auto_renew(
    self,
    domain_name: "capo_route_53_domains.types.domain_name.DomainName",
    *,
    config_overrides: Optional[Route53DomainsClientConfig] = None,
) -> "capo_route_53_domains.types.disable_domain_auto_renew_response.DisableDomainAutoRenewResponse":
    """<p>This operation disables automatic renewal of domain registration for the specified domain.</p>

    Args:
        domain_name: <p>The name of the domain that you want to disable automatic renewal for.</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.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.
    """

    def _handler(
        req: "OperationRequest[capo_route_53_domains.types.disable_domain_auto_renew_request.DisableDomainAutoRenewRequest]",
    ) -> OperationResponse[
        "capo_route_53_domains.types.disable_domain_auto_renew_response.DisableDomainAutoRenewResponse"
    ]:
        import capo_route_53_domains._operations.route53_domains_v20140515.disable_domain_auto_renew

        output, http_response = (
            capo_route_53_domains._operations.route53_domains_v20140515.disable_domain_auto_renew.disable_domain_auto_renew(
                req.options, req.input
            )
        )
        return OperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("DisableDomainAutoRenew")
    )
    input_: capo_route_53_domains.types.disable_domain_auto_renew_request.DisableDomainAutoRenewRequest = {
        "domain_name": domain_name
    }

    response = execute_pipeline(
        OperationRequest(input=input_, options=options_),
        handler=_handler,
        interceptors=list(interceptors_),
    )
    response.response.close()
    return response.output