Skip to content

get_registry_catalog_data async

get_registry_catalog_data(
    *, config_overrides: Optional[AsyncECRPUBLICClientConfig] = None
) -> GetRegistryCatalogDataResponse

Retrieves catalog metadata for a public registry.

Raises:

Source code in docs_src/capo_ecr_public/_services/async_ecrpublic.py
async def get_registry_catalog_data(
    self, *, config_overrides: Optional[AsyncECRPUBLICClientConfig] = None
) -> "capo_ecr_public.types.get_registry_catalog_data_response.GetRegistryCatalogDataResponse":
    """<p>Retrieves catalog metadata for a public registry.</p>

    Raises:
        capo_ecr_public.errors.server_exception.ServerException: <p>These errors are usually caused by a server-side issue.</p>
        capo_ecr_public.errors.unsupported_command_exception.UnsupportedCommandException: <p>The action isn't supported in this Region.</p>
        capo_ecr_public.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    async def _handler(
        req: "AsyncOperationRequest[capo_ecr_public.types.get_registry_catalog_data_request.GetRegistryCatalogDataRequest]",
    ) -> AsyncOperationResponse[
        "capo_ecr_public.types.get_registry_catalog_data_response.GetRegistryCatalogDataResponse"
    ]:
        import capo_ecr_public._operations.spencer_frontend_service.get_registry_catalog_data

        (
            output,
            http_response,
        ) = await capo_ecr_public._operations.spencer_frontend_service.get_registry_catalog_data.async_get_registry_catalog_data(
            req.options, req.input
        )
        return AsyncOperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("GetRegistryCatalogData")
    )
    input_: capo_ecr_public.types.get_registry_catalog_data_request.GetRegistryCatalogDataRequest = {}

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