sailfork / t3code-github / .repos/ alchemy-effect/ packages/ aws/ src/ GreengrassV2/ CancelDeploymentHttp.ts

import * as greengrassv2 from "@distilled.cloud/aws/greengrassv2";
import * as Layer from "effect/Layer";
import { makeGreengrassDeploymentHttpBinding } from "./BindingHttp.ts";
import { CancelDeployment } from "./CancelDeployment.ts";

export const CancelDeploymentHttp = Layer.effect(
  CancelDeployment,
  makeGreengrassDeploymentHttpBinding({
    tag: "AWS.GreengrassV2.CancelDeployment",
    operation: greengrassv2.cancelDeployment,
    actions: ["greengrass:CancelDeployment"],
    // Canceling a deployment cancels the backing IoT Job and resolves the
    // thing/thing-group target with the caller's credentials.
    dependentActions: [
      "iot:CancelJob",
      "iot:DeleteThingShadow",
      "iot:DescribeJob",
      "iot:DescribeThing",
      "iot:DescribeThingGroup",
      "iot:GetThingShadow",
      "iot:UpdateJob",
      "iot:UpdateThingShadow",
    ],
  }),
);