Skip to content

get_catalog_import_status async

get_catalog_import_status(
    *,
    config_overrides: Optional[AsyncGlueClientConfig] = None,
    catalog_id: Optional[CatalogIdString] = None,
) -> GetCatalogImportStatusResponse

Retrieves the status of a migration operation.

Parameters:

  • catalog_id (Optional[CatalogIdString], default: None ) –

    The ID of the catalog to migrate. Currently, this should be the Amazon Web Services account ID.

Raises:

Source code in docs_src/capo_glue/_services/async_glue.py
async def get_catalog_import_status(
    self,
    *,
    config_overrides: Optional[AsyncGlueClientConfig] = None,
    catalog_id: Optional[
        "capo_glue.types.catalog_id_string.CatalogIdString"
    ] = None,
) -> "capo_glue.types.get_catalog_import_status_response.GetCatalogImportStatusResponse":
    """<p>Retrieves the status of a migration operation.</p>

    Args:
        catalog_id: <p>The ID of the catalog to migrate. Currently, this should be the Amazon Web Services account ID.</p>

    Raises:
        capo_glue.errors.internal_service_exception.InternalServiceException: <p>An internal service error occurred.</p>
        capo_glue.errors.operation_timeout_exception.OperationTimeoutException: <p>The operation timed out.</p>
        capo_glue.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    async def _handler(
        req: "AsyncOperationRequest[capo_glue.types.get_catalog_import_status_request.GetCatalogImportStatusRequest]",
    ) -> AsyncOperationResponse[
        "capo_glue.types.get_catalog_import_status_response.GetCatalogImportStatusResponse"
    ]:
        import capo_glue._operations.aws_glue.get_catalog_import_status

        (
            output,
            http_response,
        ) = await capo_glue._operations.aws_glue.get_catalog_import_status.async_get_catalog_import_status(
            req.options, req.input
        )
        return AsyncOperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("GetCatalogImportStatus")
    )
    input_: capo_glue.types.get_catalog_import_status_request.GetCatalogImportStatusRequest = {}
    if catalog_id is not None:
        input_["catalog_id"] = catalog_id

    response = await aexecute_pipeline(
        AsyncOperationRequest(input=input_, options=options_),
        handler=_handler,
        interceptors=list(interceptors_),
    )
    await response.response.aclose()
    return response.output