Skip to content

get_catalog async

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

The name of the Catalog to retrieve. This should be all lowercase.

Parameters:

  • catalog_id (CatalogIdString) –

    The ID of the parent catalog in which the catalog resides. If none is provided, the Amazon Web Services Account Number is used by default.

Raises:

Source code in docs_src/capo_glue/_services/async_glue.py
async def get_catalog(
    self,
    catalog_id: "capo_glue.types.catalog_id_string.CatalogIdString",
    *,
    config_overrides: Optional[AsyncGlueClientConfig] = None,
) -> "capo_glue.types.get_catalog_response.GetCatalogResponse":
    """<p>The name of the Catalog to retrieve. This should be all lowercase.</p>

    Args:
        catalog_id: <p>The ID of the parent catalog in which the catalog resides. If none is provided, the Amazon Web Services Account Number is used by default.</p>

    Raises:
        capo_glue.errors.access_denied_exception.AccessDeniedException: <p>Access to a resource was denied.</p>
        capo_glue.errors.entity_not_found_exception.EntityNotFoundException: <p>A specified entity does not exist</p>
        capo_glue.errors.federation_source_exception.FederationSourceException: <p>A federation source failed.</p>
        capo_glue.errors.federation_source_retryable_exception.FederationSourceRetryableException: <p>A federation source failed, but the operation may be retried.</p>
        capo_glue.errors.glue_encryption_exception.GlueEncryptionException: <p>An encryption operation failed.</p>
        capo_glue.errors.internal_service_exception.InternalServiceException: <p>An internal service error occurred.</p>
        capo_glue.errors.invalid_input_exception.InvalidInputException: <p>The input provided was not valid.</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_request.GetCatalogRequest]",
    ) -> AsyncOperationResponse[
        "capo_glue.types.get_catalog_response.GetCatalogResponse"
    ]:
        import capo_glue._operations.aws_glue.get_catalog

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

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("GetCatalog")
    )
    input_: capo_glue.types.get_catalog_request.GetCatalogRequest = {
        "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