listCoreDefinitionVersions method
Lists the versions of a core definition.
May throw BadRequestException.
Parameter coreDefinitionId
:
The ID of the core definition.
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<ListCoreDefinitionVersionsResponse> listCoreDefinitionVersions({
required String coreDefinitionId,
String? maxResults,
String? nextToken,
}) async {
ArgumentError.checkNotNull(coreDefinitionId, 'coreDefinitionId');
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/definition/cores/${Uri.encodeComponent(coreDefinitionId)}/versions',
queryParams: $query,
exceptionFnMap: _exceptionFns,
);
return ListCoreDefinitionVersionsResponse.fromJson(response);
}