Skip to content

GetCoreDevice

Source: src/AWS/GreengrassV2/GetCoreDevice.ts

Runtime binding for greengrass:GetCoreDevice.

Reads one core device’s metadata — status (HEALTHY / UNHEALTHY), nucleus version, platform, and last status-update timestamp. Core devices register themselves (they are not Alchemy resources), so the caller supplies the core device thing name at runtime. Provide the implementation with Effect.provide(AWS.GreengrassV2.GetCoreDeviceHttp).

// init — account-level binding, no resource argument
const getCoreDevice = yield* AWS.GreengrassV2.GetCoreDevice();
// runtime
const device = yield* getCoreDevice({ coreDeviceThingName: "MyCore" });
yield* Effect.log(`${device.coreDeviceThingName} is ${device.status}`);