getResourceDefinition method
Future<GetResourceDefinitionResponse>
getResourceDefinition({
- required String resourceDefinitionId,
Retrieves information about a resource definition, including its creation time and latest version.
May throw BadRequestException.
Parameter resourceDefinitionId
:
The ID of the resource definition.
Implementation
Future<GetResourceDefinitionResponse> getResourceDefinition({
required String resourceDefinitionId,
}) async {
ArgumentError.checkNotNull(resourceDefinitionId, 'resourceDefinitionId');
final response = await _protocol.send(
payload: null,
method: 'GET',
requestUri:
'/greengrass/definition/resources/${Uri.encodeComponent(resourceDefinitionId)}',
exceptionFnMap: _exceptionFns,
);
return GetResourceDefinitionResponse.fromJson(response);
}