| 1 | import type * as backup from "@distilled.cloud/aws/backup"; |
| 2 | import type * as Effect from "effect/Effect"; |
| 3 | import * as Binding from "../../Binding.ts"; |
| 4 | |
| 5 | /** |
| 6 | * Runtime binding for the `ListCopyJobs` operation (IAM action |
| 7 | * `backup:ListCopyJobs`). |
| 8 | * |
| 9 | * Lists the account's copy jobs, with optional filters (state, destination |
| 10 | * vault, resource type). Provide the implementation with |
| 11 | * `Effect.provide(AWS.Backup.ListCopyJobsHttp)`. |
| 12 | * ### Copying Recovery Points |
| 13 | * **Example:** List Running Copy Jobs |
| 14 | * ```typescript |
| 15 | * const listCopyJobs = yield* AWS.Backup.ListCopyJobs(); |
| 16 | * |
| 17 | * const page = yield* listCopyJobs({ ByState: "RUNNING" }); |
| 18 | * ``` |
| 19 | * |
| 20 | * @binding |
| 21 | */ |
| 22 | export interface ListCopyJobs extends Binding.Service< |
| 23 | ListCopyJobs, |
| 24 | "AWS.Backup.ListCopyJobs", |
| 25 | () => Effect.Effect< |
| 26 | ( |
| 27 | request?: backup.ListCopyJobsInput, |
| 28 | ) => Effect.Effect<backup.ListCopyJobsOutput, backup.ListCopyJobsError> |
| 29 | > |
| 30 | > {} |
| 31 | export const ListCopyJobs = Binding.Service<ListCopyJobs>( |
| 32 | "AWS.Backup.ListCopyJobs", |
| 33 | ); |