updateThingRuntimeConfiguration method
Future<void>
updateThingRuntimeConfiguration({
- required String thingName,
- TelemetryConfigurationUpdate? telemetryConfiguration,
Updates the runtime configuration of a thing.
May throw BadRequestException. May throw InternalServerErrorException.
Parameter thingName
:
The thing name.
Parameter telemetryConfiguration
:
Configuration for telemetry service.
Implementation
Future<void> updateThingRuntimeConfiguration({
required String thingName,
TelemetryConfigurationUpdate? telemetryConfiguration,
}) async {
ArgumentError.checkNotNull(thingName, 'thingName');
final $payload = <String, dynamic>{
if (telemetryConfiguration != null)
'TelemetryConfiguration': telemetryConfiguration,
};
final response = await _protocol.send(
payload: $payload,
method: 'PUT',
requestUri:
'/greengrass/things/${Uri.encodeComponent(thingName)}/runtimeconfig',
exceptionFnMap: _exceptionFns,
);
}