getGroup method

Future<GetGroupResponse> getGroup({
  1. required String groupId,
})

Retrieves information about a group.

May throw BadRequestException.

Parameter groupId : The ID of the Greengrass group.

Implementation

Future<GetGroupResponse> getGroup({
  required String groupId,
}) async {
  ArgumentError.checkNotNull(groupId, 'groupId');
  final response = await _protocol.send(
    payload: null,
    method: 'GET',
    requestUri: '/greengrass/groups/${Uri.encodeComponent(groupId)}',
    exceptionFnMap: _exceptionFns,
  );
  return GetGroupResponse.fromJson(response);
}