Skip to content

get_catalog_discovery

get_catalog_discovery(
    *, config_overrides: Optional[GlueClientConfig] = None
) -> GetCatalogDiscoveryOutput

Retrieves the catalog discovery mode for the Glue Data Catalog in your account, and any problems with the last change to it.

Raises:

Source code in docs_src/capo_glue/_services/glue.py
def get_catalog_discovery(
    self, *, config_overrides: Optional[GlueClientConfig] = None
) -> "capo_glue.types.get_catalog_discovery_output.GetCatalogDiscoveryOutput":
    """<p>Retrieves the catalog discovery mode for the Glue Data Catalog in your account, and any problems with the last change to it.</p>

    Raises:
        capo_glue.errors.access_denied_exception.AccessDeniedException: <p>Access to a resource was denied.</p>
        capo_glue.errors.internal_service_exception.InternalServiceException: <p>An internal service error occurred.</p>
        capo_glue.errors.throttling_exception.ThrottlingException: <p>The throttling threshhold was exceeded.</p>
        capo_glue.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    def _handler(
        req: "OperationRequest[capo_glue.types.get_catalog_discovery_input.GetCatalogDiscoveryInput]",
    ) -> OperationResponse[
        "capo_glue.types.get_catalog_discovery_output.GetCatalogDiscoveryOutput"
    ]:
        import capo_glue._operations.aws_glue.get_catalog_discovery

        output, http_response = (
            capo_glue._operations.aws_glue.get_catalog_discovery.get_catalog_discovery(
                req.options, req.input
            )
        )
        return OperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("GetCatalogDiscovery")
    )
    input_: capo_glue.types.get_catalog_discovery_input.GetCatalogDiscoveryInput = {}

    response = execute_pipeline(
        OperationRequest(input=input_, options=options_),
        handler=_handler,
        interceptors=list(interceptors_),
    )
    response.response.close()
    return response.output