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