Skip to content

get_configuration async

get_configuration(
    *, config_overrides: Optional[AsyncServiceCatalogAppRegistryClientConfig] = None
) -> GetConfigurationResponse

Retrieves a TagKey configuration from an account.

Raises:

Source code in docs_src/capo_service_catalog_appregistry/_services/async_service_catalog_app_registry.py
async def get_configuration(
    self,
    *,
    config_overrides: Optional[AsyncServiceCatalogAppRegistryClientConfig] = None,
) -> "capo_service_catalog_appregistry.types.get_configuration_response.GetConfigurationResponse":
    """<p> Retrieves a <code>TagKey</code> configuration from an account. </p>

    Raises:
        capo_service_catalog_appregistry.errors.internal_server_exception.InternalServerException: <p>The service is experiencing internal problems.</p>
        capo_service_catalog_appregistry.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    async def _handler(
        req: "AsyncOperationRequest[None]",
    ) -> AsyncOperationResponse[
        "capo_service_catalog_appregistry.types.get_configuration_response.GetConfigurationResponse"
    ]:
        import capo_service_catalog_appregistry._operations.aws242_app_registry.get_configuration

        (
            output,
            http_response,
        ) = await capo_service_catalog_appregistry._operations.aws242_app_registry.get_configuration.async_get_configuration(
            req.options
        )
        return AsyncOperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("GetConfiguration")
    )

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