| 1 | import type * as devopsguru from "@distilled.cloud/aws/devops-guru"; |
| 2 | import type * as Effect from "effect/Effect"; |
| 3 | import * as Binding from "../../Binding.ts"; |
| 4 | |
| 5 | /** |
| 6 | * Runtime binding for `devops-guru:ListOrganizationInsights`. |
| 7 | * |
| 8 | * Lists insights across the organization's accounts filtered by status and type (management or delegated-administrator account). |
| 9 | * Provide the implementation with |
| 10 | * `Effect.provide(AWS.DevOpsGuru.ListOrganizationInsightsHttp)`. |
| 11 | * ### Organization Visibility |
| 12 | * **Example:** List Insights Across Accounts |
| 13 | * ```typescript |
| 14 | * // init — account-level binding, no resource argument |
| 15 | * const listOrganizationInsights = yield* AWS.DevOpsGuru.ListOrganizationInsights(); |
| 16 | * |
| 17 | * // runtime |
| 18 | * const { ReactiveInsights } = yield* listOrganizationInsights({ |
| 19 | * StatusFilter: { Ongoing: { Type: "REACTIVE" } }, |
| 20 | * }); |
| 21 | * yield* Effect.log(`org ongoing: ${ReactiveInsights?.length}`); |
| 22 | * ``` |
| 23 | * |
| 24 | * @binding |
| 25 | */ |
| 26 | export interface ListOrganizationInsights extends Binding.Service< |
| 27 | ListOrganizationInsights, |
| 28 | "AWS.DevOpsGuru.ListOrganizationInsights", |
| 29 | () => Effect.Effect< |
| 30 | ( |
| 31 | request: devopsguru.ListOrganizationInsightsRequest, |
| 32 | ) => Effect.Effect< |
| 33 | devopsguru.ListOrganizationInsightsResponse, |
| 34 | devopsguru.ListOrganizationInsightsError |
| 35 | > |
| 36 | > |
| 37 | > {} |
| 38 | export const ListOrganizationInsights = |
| 39 | Binding.Service<ListOrganizationInsights>( |
| 40 | "AWS.DevOpsGuru.ListOrganizationInsights", |
| 41 | ); |