getCoreDefinitionVersion method
Retrieves information about a core definition version.
May throw BadRequestException.
Parameter coreDefinitionId
:
The ID of the core definition.
Parameter coreDefinitionVersionId
:
The ID of the core definition version. This value maps to the ''Version''
property of the corresponding ''VersionInformation'' object, which is
returned by ''ListCoreDefinitionVersions'' requests. If the version is the
last one that was associated with a core definition, the value also maps
to the ''LatestVersion'' property of the corresponding
''DefinitionInformation'' object.
Implementation
Future<GetCoreDefinitionVersionResponse> getCoreDefinitionVersion({
required String coreDefinitionId,
required String coreDefinitionVersionId,
}) async {
ArgumentError.checkNotNull(coreDefinitionId, 'coreDefinitionId');
ArgumentError.checkNotNull(
coreDefinitionVersionId, 'coreDefinitionVersionId');
final response = await _protocol.send(
payload: null,
method: 'GET',
requestUri:
'/greengrass/definition/cores/${Uri.encodeComponent(coreDefinitionId)}/versions/${Uri.encodeComponent(coreDefinitionVersionId)}',
exceptionFnMap: _exceptionFns,
);
return GetCoreDefinitionVersionResponse.fromJson(response);
}