register_domain
async
¶
register_domain(
domain_name: DomainName,
duration_in_years: DurationInYears,
admin_contact: ContactDetail,
registrant_contact: ContactDetail,
tech_contact: ContactDetail,
*,
config_overrides: Optional[AsyncRoute53DomainsClientConfig] = 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/async_route53_domains.py
1545 1546 1547 1548 1549 1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 1615 1616 1617 1618 1619 1620 1621 1622 1623 1624 1625 1626 1627 1628 1629 1630 1631 1632 1633 1634 1635 1636 1637 1638 1639 1640 1641 1642 1643 1644 1645 1646 1647 1648 1649 1650 1651 1652 1653 1654 1655 1656 1657 1658 1659 1660 1661 1662 | |