This operation returns detailed information about a specified domain that is associated with the current Amazon Web Services account. Contact information for the domain is also returned as part of the output.
Parameters:
-
domain_name
(DomainName)
–
The name of the domain that you want to get detailed information about.
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/route53_domains.py
| def get_domain_detail(
self,
domain_name: "capo_route_53_domains.types.domain_name.DomainName",
*,
config_overrides: Optional[Route53DomainsClientConfig] = None,
) -> (
"capo_route_53_domains.types.get_domain_detail_response.GetDomainDetailResponse"
):
"""<p>This operation returns detailed information about a specified domain that is associated with the current Amazon Web Services account. Contact information for the domain is also returned as part of the output.</p>
Args:
domain_name: <p>The name of the domain that you want to get detailed information about.</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.
"""
def _handler(
req: "OperationRequest[capo_route_53_domains.types.get_domain_detail_request.GetDomainDetailRequest]",
) -> OperationResponse[
"capo_route_53_domains.types.get_domain_detail_response.GetDomainDetailResponse"
]:
import capo_route_53_domains._operations.route53_domains_v20140515.get_domain_detail
output, http_response = (
capo_route_53_domains._operations.route53_domains_v20140515.get_domain_detail.get_domain_detail(
req.options, req.input
)
)
return OperationResponse(output=output, response=http_response)
def _redact_output(
output: "capo_route_53_domains.types.get_domain_detail_response.GetDomainDetailResponse",
) -> dict[str, Any]:
import capo_route_53_domains.types.get_domain_detail_response
return (
capo_route_53_domains.types.get_domain_detail_response.redact_sensitive(
output
)
)
interceptors_, options_ = self.operation_options(
config_overrides,
OperationLogging("GetDomainDetail", redact_output=_redact_output),
)
input_: capo_route_53_domains.types.get_domain_detail_request.GetDomainDetailRequest = {
"domain_name": domain_name
}
response = execute_pipeline(
OperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
response.response.close()
return response.output
|