getDeviceDefinition method
Retrieves information about a device definition.
May throw BadRequestException.
Parameter deviceDefinitionId
:
The ID of the device definition.
Implementation
Future<GetDeviceDefinitionResponse> getDeviceDefinition({
required String deviceDefinitionId,
}) async {
ArgumentError.checkNotNull(deviceDefinitionId, 'deviceDefinitionId');
final response = await _protocol.send(
payload: null,
method: 'GET',
requestUri:
'/greengrass/definition/devices/${Uri.encodeComponent(deviceDefinitionId)}',
exceptionFnMap: _exceptionFns,
);
return GetDeviceDefinitionResponse.fromJson(response);
}