getCoreDevice method
Retrieves metadata for a AWS IoT Greengrass core device.
May throw ValidationException. May throw ResourceNotFoundException. May throw AccessDeniedException. May throw InternalServerException. May throw ThrottlingException.
Parameter coreDeviceThingName
:
The name of the core device. This is also the name of the AWS IoT thing.
Implementation
Future<GetCoreDeviceResponse> getCoreDevice({
required String coreDeviceThingName,
}) async {
ArgumentError.checkNotNull(coreDeviceThingName, 'coreDeviceThingName');
_s.validateStringLength(
'coreDeviceThingName',
coreDeviceThingName,
1,
128,
isRequired: true,
);
final response = await _protocol.send(
payload: null,
method: 'GET',
requestUri:
'/greengrass/v2/coreDevices/${Uri.encodeComponent(coreDeviceThingName)}',
exceptionFnMap: _exceptionFns,
);
return GetCoreDeviceResponse.fromJson(response);
}