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/async_route53_domains.py
| async def disable_domain_auto_renew(
self,
domain_name: "capo_route_53_domains.types.domain_name.DomainName",
*,
config_overrides: Optional[AsyncRoute53DomainsClientConfig] = 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.
"""
async def _handler(
req: "AsyncOperationRequest[capo_route_53_domains.types.disable_domain_auto_renew_request.DisableDomainAutoRenewRequest]",
) -> AsyncOperationResponse[
"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,
) = await capo_route_53_domains._operations.route53_domains_v20140515.disable_domain_auto_renew.async_disable_domain_auto_renew(
req.options, req.input
)
return AsyncOperationResponse(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 = await aexecute_pipeline(
AsyncOperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
await response.response.aclose()
return response.output
|