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