Retrieves information about a WorkSpace BYOL image being imported via ImportCustomWorkspaceImage.
Parameters:
Raises:
Source code in docs_src/capo_workspaces/_services/async_work_spaces.py
| async def describe_custom_workspace_image_import(
self,
image_id: "capo_workspaces.types.workspace_image_id.WorkspaceImageId",
*,
config_overrides: Optional[AsyncWorkSpacesClientConfig] = None,
) -> "capo_workspaces.types.describe_custom_workspace_image_import_result.DescribeCustomWorkspaceImageImportResult":
"""<p>Retrieves information about a WorkSpace BYOL image being imported via ImportCustomWorkspaceImage.</p>
Args:
image_id: <p>The identifier of the WorkSpace image.</p>
Raises:
capo_workspaces.errors.access_denied_exception.AccessDeniedException: <p>The user is not authorized to access a resource.</p>
capo_workspaces.errors.resource_not_found_exception.ResourceNotFoundException: <p>The resource could not be found.</p>
capo_workspaces.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
async def _handler(
req: "AsyncOperationRequest[capo_workspaces.types.describe_custom_workspace_image_import_request.DescribeCustomWorkspaceImageImportRequest]",
) -> AsyncOperationResponse[
"capo_workspaces.types.describe_custom_workspace_image_import_result.DescribeCustomWorkspaceImageImportResult"
]:
import capo_workspaces._operations.workspaces_service.describe_custom_workspace_image_import
(
output,
http_response,
) = await capo_workspaces._operations.workspaces_service.describe_custom_workspace_image_import.async_describe_custom_workspace_image_import(
req.options, req.input
)
return AsyncOperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("DescribeCustomWorkspaceImageImport")
)
input_: capo_workspaces.types.describe_custom_workspace_image_import_request.DescribeCustomWorkspaceImageImportRequest = {
"image_id": image_id
}
response = await aexecute_pipeline(
AsyncOperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
await response.response.aclose()
return response.output
|