renew_domain
¶
renew_domain(
domain_name: DomainName,
current_expiry_year: CurrentExpiryYear,
*,
config_overrides: Optional[Route53DomainsClientConfig] = None,
duration_in_years: Optional[DurationInYears] = None,
consent: Optional[Consent] = None,
) -> RenewDomainResponse
This operation renews a domain for the specified number of years. The cost of renewing your domain is billed to your Amazon Web Services account.
We recommend that you renew your domain several weeks before the expiration date. Some TLD registries delete domains before the expiration date if you haven't renewed far enough in advance. For more information about renewing domain registration, see Renewing Registration for a Domain in the Amazon Route 53 Developer Guide.
Parameters:
-
domain_name(DomainName) –The name of the domain that you want to renew.
-
duration_in_years(Optional[DurationInYears], default:None) –The number of years that you want to renew the domain for. The maximum number of years depends on the top-level domain. For the range of valid values for your domain, see Domains that You Can Register with Amazon Route 53 in the Amazon Route 53 Developer Guide.
Default: 1
-
current_expiry_year(CurrentExpiryYear) –The year when the registration for the domain is set to expire. This value must match the current expiration date for the domain.
-
consent(Optional[Consent], default:None) –Specifies the maximum price that you agree to pay to renew the domain name. This element is required if the domain has registry premium pricing, and optional if the domain is priced at the standard rate for its TLD. If you include it and the renewal price is more than
MaxPrice, the request fails.
Raises:
-
DuplicateRequest–The request is already in progress for the domain.
-
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.
-
TLDRulesViolation–The top-level domain does not support this operation.
-
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
1971 1972 1973 1974 1975 1976 1977 1978 1979 1980 1981 1982 1983 1984 1985 1986 1987 1988 1989 1990 1991 1992 1993 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 2026 2027 2028 2029 2030 2031 2032 2033 2034 2035 2036 2037 2038 2039 2040 2041 2042 | |