register_domain
¶
register_domain(
domain_name: DomainName,
duration_in_years: DurationInYears,
admin_contact: ContactDetail,
registrant_contact: ContactDetail,
tech_contact: ContactDetail,
*,
config_overrides: Optional[Route53DomainsClientConfig] = None,
idn_lang_code: Optional[LangCode] = None,
auto_renew: Optional[Boolean] = None,
privacy_protect_admin_contact: Optional[Boolean] = None,
privacy_protect_registrant_contact: Optional[Boolean] = None,
privacy_protect_tech_contact: Optional[Boolean] = None,
billing_contact: Optional[ContactDetail] = None,
privacy_protect_billing_contact: Optional[Boolean] = None,
consent: Optional[Consent] = None,
) -> RegisterDomainResponse
This operation registers a domain. For some top-level domains (TLDs), this operation requires extra parameters.
When you register a domain, Amazon Route 53 does the following:
-
Creates a Route 53 hosted zone that has the same name as the domain. Route 53 assigns four name servers to your hosted zone and automatically updates your domain registration with the names of these name servers.
-
Enables auto renew, so your domain registration will renew automatically each year. We'll notify you in advance of the renewal date so you can choose whether to renew the registration.
-
Optionally enables privacy protection, so WHOIS queries return contact for the registrar or the phrase "REDACTED FOR PRIVACY", or "On behalf of
owner." If you don't enable privacy protection, WHOIS queries return the information that you entered for the administrative, registrant, and technical contacts. While some domains may allow different privacy settings per contact, we recommend specifying the same privacy setting for all contacts.
-
If registration is successful, returns an operation ID that you can use to track the progress and completion of the action. If the request is not completed successfully, the domain registrant is notified by email.
-
Charges your Amazon Web Services account an amount based on the top-level domain. For more information, see Amazon Route 53 Pricing.
Parameters:
-
domain_name(DomainName) –The domain name that you want to register. The top-level domain (TLD), such as .com, must be a TLD that Route 53 supports. For a list of supported TLDs, see Domains that You Can Register with Amazon Route 53 in the Amazon Route 53 Developer Guide.
The domain name can contain only the following characters:
-
Letters a through z. Domain names are not case sensitive.
-
Numbers 0 through 9.
-
Hyphen (-). You can't specify a hyphen at the beginning or end of a label.
-
Period (.) to separate the labels in the name, such as the
.inexample.com.
Internationalized domain names are not supported for some top-level domains. To determine whether the TLD that you want to use supports internationalized domain names, see Domains that You Can Register with Amazon Route 53. For more information, see Formatting Internationalized Domain Names.
-
-
idn_lang_code(Optional[LangCode], default:None) –Reserved for future use.
-
duration_in_years(DurationInYears) –The number of years that you want to register the domain for. Domains are registered for a minimum of one year. The maximum period 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
-
auto_renew(Optional[Boolean], default:None) –Indicates whether the domain will be automatically renewed (
true) or not (false). Auto renewal only takes effect after the account is charged.Default:
true -
admin_contact(ContactDetail) –Provides detailed contact information. For information about the values that you specify for each element, see ContactDetail.
-
registrant_contact(ContactDetail) –Provides detailed contact information. For information about the values that you specify for each element, see ContactDetail.
-
tech_contact(ContactDetail) –Provides detailed contact information. For information about the values that you specify for each element, see ContactDetail.
-
privacy_protect_admin_contact(Optional[Boolean], default:None) –Whether you want to conceal contact information from WHOIS queries. If you specify
true, WHOIS ("who is") queries return contact information either for Amazon Registrar or for our registrar associate, Gandi. If you specifyfalse, WHOIS queries return the information that you entered for the admin contact.You must specify the same privacy setting for the administrative, billing, registrant, and technical contacts.
Default:
true -
privacy_protect_registrant_contact(Optional[Boolean], default:None) –Whether you want to conceal contact information from WHOIS queries. If you specify
true, WHOIS ("who is") queries return contact information either for Amazon Registrar or for our registrar associate, Gandi. If you specifyfalse, WHOIS queries return the information that you entered for the registrant contact (the domain owner).You must specify the same privacy setting for the administrative, billing, registrant, and technical contacts.
Default:
true -
privacy_protect_tech_contact(Optional[Boolean], default:None) –Whether you want to conceal contact information from WHOIS queries. If you specify
true, WHOIS ("who is") queries return contact information either for Amazon Registrar or for our registrar associate, Gandi. If you specifyfalse, WHOIS queries return the information that you entered for the technical contact.You must specify the same privacy setting for the administrative, billing, registrant, and technical contacts.
Default:
true -
billing_contact(Optional[ContactDetail], default:None) –Provides detailed contact information. For information about the values that you specify for each element, see ContactDetail.
-
privacy_protect_billing_contact(Optional[Boolean], default:None) –Whether you want to conceal contact information from WHOIS queries. If you specify
true, WHOIS ("who is") queries return contact information either for Amazon Registrar or for our registrar associate, Gandi. If you specifyfalse, WHOIS queries return the information that you entered for the billing contact.You must specify the same privacy setting for the administrative, billing, registrant, and technical contacts.
-
consent(Optional[Consent], default:None) –Specifies the maximum price that you agree to pay to register 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 registration price is more than
MaxPrice, the request fails.
Raises:
-
DomainLimitExceeded–The number of domains has exceeded the allowed threshold for the account.
-
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
1783 1784 1785 1786 1787 1788 1789 1790 1791 1792 1793 1794 1795 1796 1797 1798 1799 1800 1801 1802 1803 1804 1805 1806 1807 1808 1809 1810 1811 1812 1813 1814 1815 1816 1817 1818 1819 1820 1821 1822 1823 1824 1825 1826 1827 1828 1829 1830 1831 1832 1833 1834 1835 1836 1837 1838 1839 1840 1841 1842 1843 1844 1845 1846 1847 1848 1849 1850 1851 1852 1853 1854 1855 1856 1857 1858 1859 1860 1861 1862 1863 1864 1865 1866 1867 1868 1869 1870 1871 1872 1873 1874 1875 1876 1877 1878 1879 1880 1881 1882 1883 1884 1885 1886 1887 1888 1889 1890 1891 1892 1893 1894 1895 1896 1897 1898 1899 1900 1901 1902 1903 1904 1905 1906 1907 1908 1909 1910 | |