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).
Managing Core Devices
Section titled “Managing Core Devices”// init — account-level binding, no resource argumentconst getCoreDevice = yield* AWS.GreengrassV2.GetCoreDevice();
// runtimeconst device = yield* getCoreDevice({ coreDeviceThingName: "MyCore" });yield* Effect.log(`${device.coreDeviceThingName} is ${device.status}`);