Gets configuration information about a cross-account attachment.
Parameters:
-
attachment_arn
(GenericString)
–
The Amazon Resource Name (ARN) for the cross-account attachment to describe.
Raises:
Source code in docs_src/capo_global_accelerator/_services/async_global_accelerator.py
| async def describe_cross_account_attachment(
self,
attachment_arn: "capo_global_accelerator.types.generic_string.GenericString",
*,
config_overrides: Optional[AsyncGlobalAcceleratorClientConfig] = None,
) -> "capo_global_accelerator.types.describe_cross_account_attachment_response.DescribeCrossAccountAttachmentResponse":
"""<p>Gets configuration information about a cross-account attachment.</p>
Args:
attachment_arn: <p>The Amazon Resource Name (ARN) for the cross-account attachment to describe.</p>
Raises:
capo_global_accelerator.errors.access_denied_exception.AccessDeniedException: <p>You don't have access permission.</p>
capo_global_accelerator.errors.attachment_not_found_exception.AttachmentNotFoundException: <p>No cross-account attachment was found.</p>
capo_global_accelerator.errors.internal_service_error_exception.InternalServiceErrorException: <p>There was an internal error for Global Accelerator.</p>
capo_global_accelerator.errors.invalid_argument_exception.InvalidArgumentException: <p>An argument that you specified is invalid.</p>
capo_global_accelerator.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
async def _handler(
req: "AsyncOperationRequest[capo_global_accelerator.types.describe_cross_account_attachment_request.DescribeCrossAccountAttachmentRequest]",
) -> AsyncOperationResponse[
"capo_global_accelerator.types.describe_cross_account_attachment_response.DescribeCrossAccountAttachmentResponse"
]:
import capo_global_accelerator._operations.global_accelerator_v20180706.describe_cross_account_attachment
(
output,
http_response,
) = await capo_global_accelerator._operations.global_accelerator_v20180706.describe_cross_account_attachment.async_describe_cross_account_attachment(
req.options, req.input
)
return AsyncOperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("DescribeCrossAccountAttachment")
)
input_: capo_global_accelerator.types.describe_cross_account_attachment_request.DescribeCrossAccountAttachmentRequest = {
"attachment_arn": attachment_arn
}
response = await aexecute_pipeline(
AsyncOperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
await response.response.aclose()
return response.output
|