Gets information about a distribution tenant by the associated domain.
Parameters:
-
domain
(string)
–
A domain name associated with the target distribution tenant.
Raises:
Source code in docs_src/capo_cloudfront/_services/async_cloud_front.py
| async def get_distribution_tenant_by_domain(
self,
domain: "capo_cloudfront.types.string.string",
*,
config_overrides: Optional[AsyncCloudFrontClientConfig] = None,
) -> "capo_cloudfront.types.get_distribution_tenant_by_domain_result.GetDistributionTenantByDomainResult":
"""<p>Gets information about a distribution tenant by the associated domain.</p>
Args:
domain: <p>A domain name associated with the target distribution tenant.</p>
Raises:
capo_cloudfront.errors.access_denied.AccessDenied: <p>Access denied.</p>
capo_cloudfront.errors.entity_not_found.EntityNotFound: <p>The entity was not found.</p>
capo_cloudfront.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
async def _handler(
req: "AsyncOperationRequest[capo_cloudfront.types.get_distribution_tenant_by_domain_request.GetDistributionTenantByDomainRequest]",
) -> AsyncOperationResponse[
"capo_cloudfront.types.get_distribution_tenant_by_domain_result.GetDistributionTenantByDomainResult"
]:
import capo_cloudfront._operations.cloudfront2020_05_31.get_distribution_tenant_by_domain
(
output,
http_response,
) = await capo_cloudfront._operations.cloudfront2020_05_31.get_distribution_tenant_by_domain.async_get_distribution_tenant_by_domain(
req.options, req.input
)
return AsyncOperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("GetDistributionTenantByDomain")
)
input_: capo_cloudfront.types.get_distribution_tenant_by_domain_request.GetDistributionTenantByDomainRequest = {
"domain": domain
}
response = await aexecute_pipeline(
AsyncOperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
await response.response.aclose()
return response.output
|