Skip to content
TypeScript
586 B
Raw Blame
import * as forecast from "@distilled.cloud/aws/forecast";
import * as Layer from "effect/Layer";
import { makeForecastHttpBinding } from "./BindingHttp.ts";
import { CreateForecastExportJob } from "./CreateForecastExportJob.ts";

export const CreateForecastExportJobHttp = Layer.effect(
  CreateForecastExportJob,
  makeForecastHttpBinding({
    capability: "CreateForecastExportJob",
    iamActions: ["forecast:CreateForecastExportJob"],
    operation: forecast.createForecastExportJob,
    // Destination hands Forecast a role to write the export to S3.
    passRole: true,
  }),
);