1import * as greengrassv2 from "@distilled.cloud/aws/greengrassv2";
2import * as Layer from "effect/Layer";
3import { makeGreengrassAccountHttpBinding } from "./BindingHttp.ts";
4import { DeleteCoreDevice } from "./DeleteCoreDevice.ts";
5
6export const DeleteCoreDeviceHttp = Layer.effect(
7 DeleteCoreDevice,
8 makeGreengrassAccountHttpBinding({
9 tag: "AWS.GreengrassV2.DeleteCoreDevice",
10 operation: greengrassv2.deleteCoreDevice,
11 // Deleting a core device resolves the device's deployment job executions
12 // with the caller's credentials (documented dependent action).
13 actions: ["greengrass:DeleteCoreDevice", "iot:DescribeJobExecution"],
14 }),
15);