Returns information about a core network Connect attachment.
Parameters:
Raises:
Source code in docs_src/capo_networkmanager/_services/async_network_manager.py
| async def get_connect_attachment(
self,
attachment_id: "capo_networkmanager.types.attachment_id.AttachmentId",
*,
config_overrides: Optional[AsyncNetworkManagerClientConfig] = None,
) -> "capo_networkmanager.types.get_connect_attachment_response.GetConnectAttachmentResponse":
"""<p>Returns information about a core network Connect attachment.</p>
Args:
attachment_id: <p>The ID of the attachment.</p>
Raises:
capo_networkmanager.errors.access_denied_exception.AccessDeniedException: <p>You do not have sufficient access to perform this action.</p>
capo_networkmanager.errors.internal_server_exception.InternalServerException: <p>The request has failed due to an internal error.</p>
capo_networkmanager.errors.resource_not_found_exception.ResourceNotFoundException: <p>The specified resource could not be found.</p>
capo_networkmanager.errors.throttling_exception.ThrottlingException: <p>The request was denied due to request throttling.</p>
capo_networkmanager.errors.validation_exception.ValidationException: <p>The input fails to satisfy the constraints.</p>
capo_networkmanager.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
async def _handler(
req: "AsyncOperationRequest[capo_networkmanager.types.get_connect_attachment_request.GetConnectAttachmentRequest]",
) -> AsyncOperationResponse[
"capo_networkmanager.types.get_connect_attachment_response.GetConnectAttachmentResponse"
]:
import capo_networkmanager._operations.network_manager.get_connect_attachment
(
output,
http_response,
) = await capo_networkmanager._operations.network_manager.get_connect_attachment.async_get_connect_attachment(
req.options, req.input
)
return AsyncOperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("GetConnectAttachment")
)
input_: capo_networkmanager.types.get_connect_attachment_request.GetConnectAttachmentRequest = {
"attachment_id": attachment_id
}
response = await aexecute_pipeline(
AsyncOperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
await response.response.aclose()
return response.output
|