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