getGroupVersion method

Future<GetGroupVersionResponse> getGroupVersion({
  1. required String groupId,
  2. required String groupVersionId,
})

Retrieves information about a group version.

May throw BadRequestException.

Parameter groupId : The ID of the Greengrass group.

Parameter groupVersionId : The ID of the group version. This value maps to the ''Version'' property of the corresponding ''VersionInformation'' object, which is returned by ''ListGroupVersions'' requests. If the version is the last one that was associated with a group, the value also maps to the ''LatestVersion'' property of the corresponding ''GroupInformation'' object.

Implementation

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