Skip to content

update_thing_runtime_configuration

update_thing_runtime_configuration(
    thing_name: __string,
    *,
    config_overrides: Optional[GreengrassClientConfig] = None,
    telemetry_configuration: Optional[TelemetryConfigurationUpdate] = None,
) -> UpdateThingRuntimeConfigurationResponse

Updates the runtime configuration of a thing.

Parameters:

Raises:

Source code in docs_src/capo_greengrass/_services/greengrass.py
def update_thing_runtime_configuration(
    self,
    thing_name: "capo_greengrass.types.__string.__string",
    *,
    config_overrides: Optional[GreengrassClientConfig] = None,
    telemetry_configuration: Optional[
        "capo_greengrass.types.telemetry_configuration_update.TelemetryConfigurationUpdate"
    ] = None,
) -> "capo_greengrass.types.update_thing_runtime_configuration_response.UpdateThingRuntimeConfigurationResponse":
    """Updates the runtime configuration of a thing.

    Args:
        telemetry_configuration: Configuration for telemetry service.
        thing_name: The thing name.

    Raises:
        capo_greengrass.errors.bad_request_exception.BadRequestException: General error information.
        capo_greengrass.errors.internal_server_error_exception.InternalServerErrorException: General error information.
        capo_greengrass.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    def _handler(
        req: "OperationRequest[capo_greengrass.types.update_thing_runtime_configuration_request.UpdateThingRuntimeConfigurationRequest]",
    ) -> OperationResponse[
        "capo_greengrass.types.update_thing_runtime_configuration_response.UpdateThingRuntimeConfigurationResponse"
    ]:
        import capo_greengrass._operations.greengrass.update_thing_runtime_configuration

        output, http_response = (
            capo_greengrass._operations.greengrass.update_thing_runtime_configuration.update_thing_runtime_configuration(
                req.options, req.input
            )
        )
        return OperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("UpdateThingRuntimeConfiguration")
    )
    input_: capo_greengrass.types.update_thing_runtime_configuration_request.UpdateThingRuntimeConfigurationRequest = {
        "thing_name": thing_name
    }
    if telemetry_configuration is not None:
        input_["telemetry_configuration"] = telemetry_configuration

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