listGroupVersions method
Lists the versions of a group.
May throw BadRequestException.
Parameter groupId
:
The ID of the Greengrass group.
Parameter maxResults
:
The maximum number of results to be returned per request.
Parameter nextToken
:
The token for the next set of results, or ''null'' if there are no
additional results.
Implementation
Future<ListGroupVersionsResponse> listGroupVersions({
required String groupId,
String? maxResults,
String? nextToken,
}) async {
ArgumentError.checkNotNull(groupId, 'groupId');
final $query = <String, List<String>>{
if (maxResults != null) 'MaxResults': [maxResults],
if (nextToken != null) 'NextToken': [nextToken],
};
final response = await _protocol.send(
payload: null,
method: 'GET',
requestUri: '/greengrass/groups/${Uri.encodeComponent(groupId)}/versions',
queryParams: $query,
exceptionFnMap: _exceptionFns,
);
return ListGroupVersionsResponse.fromJson(response);
}