Returns the following prices for the specified domain:
-
Registration
-
Transfer
-
Owner change
-
Renewal
-
Restoration
For most domains, the prices match the standard prices for the TLD that the ListPrices operation returns. For a premium domain, the registry sets the price individually. Premium prices might differ from the standard prices and can change over time.
Parameters:
-
domain_name
(DomainName)
–
The name of the domain that you want to get the prices 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.
-
TLDInMaintenance
–
The top-level domain is currently undergoing maintenance and the request cannot be processed. Try again later.
-
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 get_domain_prices(
self,
domain_name: "capo_route_53_domains.types.domain_name.DomainName",
*,
config_overrides: Optional[AsyncRoute53DomainsClientConfig] = None,
) -> (
"capo_route_53_domains.types.get_domain_prices_response.GetDomainPricesResponse"
):
"""<p>Returns the following prices for the specified domain:</p> <ul> <li> <p>Registration</p> </li> <li> <p>Transfer</p> </li> <li> <p>Owner change</p> </li> <li> <p>Renewal</p> </li> <li> <p>Restoration</p> </li> </ul> <p>For most domains, the prices match the standard prices for the TLD that the <a href="https://docs.aws.amazon.com/Route53/latest/APIReference/API_domains_ListPrices.html">ListPrices</a> operation returns. For a premium domain, the registry sets the price individually. Premium prices might differ from the standard prices and can change over time.</p>
Args:
domain_name: <p>The name of the domain that you want to get the prices 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.tld_in_maintenance.TLDInMaintenance: <p>The top-level domain is currently undergoing maintenance and the request cannot be processed. Try again later.</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.get_domain_prices_request.GetDomainPricesRequest]",
) -> AsyncOperationResponse[
"capo_route_53_domains.types.get_domain_prices_response.GetDomainPricesResponse"
]:
import capo_route_53_domains._operations.route53_domains_v20140515.get_domain_prices
(
output,
http_response,
) = await capo_route_53_domains._operations.route53_domains_v20140515.get_domain_prices.async_get_domain_prices(
req.options, req.input
)
return AsyncOperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("GetDomainPrices")
)
input_: capo_route_53_domains.types.get_domain_prices_request.GetDomainPricesRequest = {
"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
|