updateLoggerDefinition method
Updates a logger definition.
May throw BadRequestException.
Parameter loggerDefinitionId
:
The ID of the logger definition.
Parameter name
:
The name of the definition.
Implementation
Future<void> updateLoggerDefinition({
required String loggerDefinitionId,
String? name,
}) async {
ArgumentError.checkNotNull(loggerDefinitionId, 'loggerDefinitionId');
final $payload = <String, dynamic>{
if (name != null) 'Name': name,
};
final response = await _protocol.send(
payload: $payload,
method: 'PUT',
requestUri:
'/greengrass/definition/loggers/${Uri.encodeComponent(loggerDefinitionId)}',
exceptionFnMap: _exceptionFns,
);
}