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