getLoggerDefinitionVersion method
Retrieves information about a logger definition version.
May throw BadRequestException.
Parameter loggerDefinitionId
:
The ID of the logger definition.
Parameter loggerDefinitionVersionId
:
The ID of the logger definition version. This value maps to the
''Version'' property of the corresponding ''VersionInformation'' object,
which is returned by ''ListLoggerDefinitionVersions'' requests. If the
version is the last one that was associated with a logger definition, the
value also maps to the ''LatestVersion'' property of the corresponding
''DefinitionInformation'' object.
Parameter nextToken
:
The token for the next set of results, or ''null'' if there are no
additional results.
Implementation
Future<GetLoggerDefinitionVersionResponse> getLoggerDefinitionVersion({
required String loggerDefinitionId,
required String loggerDefinitionVersionId,
String? nextToken,
}) async {
ArgumentError.checkNotNull(loggerDefinitionId, 'loggerDefinitionId');
ArgumentError.checkNotNull(
loggerDefinitionVersionId, 'loggerDefinitionVersionId');
final $query = <String, List<String>>{
if (nextToken != null) 'NextToken': [nextToken],
};
final response = await _protocol.send(
payload: null,
method: 'GET',
requestUri:
'/greengrass/definition/loggers/${Uri.encodeComponent(loggerDefinitionId)}/versions/${Uri.encodeComponent(loggerDefinitionVersionId)}',
queryParams: $query,
exceptionFnMap: _exceptionFns,
);
return GetLoggerDefinitionVersionResponse.fromJson(response);
}