| 1 | import type * as mediatailor from "@distilled.cloud/aws/mediatailor"; |
| 2 | import type * as Effect from "effect/Effect"; |
| 3 | import * as Binding from "../../Binding.ts"; |
| 4 | |
| 5 | /** |
| 6 | * Runtime binding for `mediatailor:DeleteProgram` — remove a scheduled |
| 7 | * program from a channel-assembly channel. |
| 8 | * |
| 9 | * Channel/program names are runtime parameters, so the binding is |
| 10 | * account-level and grants `mediatailor:DeleteProgram` on `*`. Provide the |
| 11 | * implementation with `Effect.provide(AWS.MediaTailor.DeleteProgramHttp)`. |
| 12 | * |
| 13 | * ### Channel Assembly |
| 14 | * **Example:** Remove a program from the schedule |
| 15 | * ```typescript |
| 16 | * const deleteProgram = yield* AWS.MediaTailor.DeleteProgram(); |
| 17 | * |
| 18 | * yield* deleteProgram({ |
| 19 | * ChannelName: "my-channel", |
| 20 | * ProgramName: `episode-${id}`, |
| 21 | * }); |
| 22 | * ``` |
| 23 | * |
| 24 | * @binding |
| 25 | */ |
| 26 | export interface DeleteProgram extends Binding.Service< |
| 27 | DeleteProgram, |
| 28 | "AWS.MediaTailor.DeleteProgram", |
| 29 | () => Effect.Effect< |
| 30 | ( |
| 31 | request: mediatailor.DeleteProgramRequest, |
| 32 | ) => Effect.Effect< |
| 33 | mediatailor.DeleteProgramResponse, |
| 34 | mediatailor.DeleteProgramError |
| 35 | > |
| 36 | > |
| 37 | > {} |
| 38 | export const DeleteProgram = Binding.Service<DeleteProgram>( |
| 39 | "AWS.MediaTailor.DeleteProgram", |
| 40 | ); |