Skip to content

put_configuration

put_configuration(
    configuration: AppRegistryConfiguration,
    *,
    config_overrides: Optional[ServiceCatalogAppRegistryClientConfig] = None,
) -> None

Associates a TagKey configuration to an account.

Parameters:

Raises:

Source code in docs_src/capo_service_catalog_appregistry/_services/service_catalog_app_registry.py
def put_configuration(
    self,
    configuration: "capo_service_catalog_appregistry.types.app_registry_configuration.AppRegistryConfiguration",
    *,
    config_overrides: Optional[ServiceCatalogAppRegistryClientConfig] = None,
) -> None:
    """<p> Associates a <code>TagKey</code> configuration to an account. </p>

    Args:
        configuration: <p> Associates a <code>TagKey</code> configuration to an account. </p>

    Raises:
        capo_service_catalog_appregistry.errors.conflict_exception.ConflictException: <p>There was a conflict when processing the request (for example, a resource with the given name already exists within the account).</p>
        capo_service_catalog_appregistry.errors.internal_server_exception.InternalServerException: <p>The service is experiencing internal problems.</p>
        capo_service_catalog_appregistry.errors.validation_exception.ValidationException: <p>The request has invalid or missing parameters.</p>
        capo_service_catalog_appregistry.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    def _handler(
        req: "OperationRequest[capo_service_catalog_appregistry.types.put_configuration_request.PutConfigurationRequest]",
    ) -> OperationResponse[None]:
        import capo_service_catalog_appregistry._operations.aws242_app_registry.put_configuration

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

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("PutConfiguration")
    )
    input_: capo_service_catalog_appregistry.types.put_configuration_request.PutConfigurationRequest = {
        "configuration": configuration
    }

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