Skip to content

get_configuration

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

Retrieves a TagKey configuration from an account.

Raises:

Source code in docs_src/capo_service_catalog_appregistry/_services/service_catalog_app_registry.py
def get_configuration(
    self,
    *,
    config_overrides: Optional[ServiceCatalogAppRegistryClientConfig] = 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.
    """

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

        output, http_response = (
            capo_service_catalog_appregistry._operations.aws242_app_registry.get_configuration.get_configuration(
                req.options
            )
        )
        return OperationResponse(output=output, response=http_response)

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

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