| 1 | import * as Logs from "@distilled.cloud/aws/cloudwatch-logs"; |
| 2 | import * as Layer from "effect/Layer"; |
| 3 | import { makeLogGroupHttpBinding } from "./BindingHttp.ts"; |
| 4 | import { DeleteLogStream } from "./DeleteLogStream.ts"; |
| 5 | |
| 6 | export const DeleteLogStreamHttp = Layer.effect( |
| 7 | DeleteLogStream, |
| 8 | makeLogGroupHttpBinding({ |
| 9 | tag: "AWS.Logs.DeleteLogStream", |
| 10 | operation: Logs.deleteLogStream, |
| 11 | actions: ["logs:DeleteLogStream"], |
| 12 | // DeleteLogStream authorizes against the log-stream resource. |
| 13 | iamResources: "streams", |
| 14 | }), |
| 15 | ); |