| 1 | import type * as auditmanager from "@distilled.cloud/aws/auditmanager"; |
| 2 | import type * as Effect from "effect/Effect"; |
| 3 | import * as Binding from "../../Binding.ts"; |
| 4 | |
| 5 | /** |
| 6 | * Runtime binding for `auditmanager:GetInsights`. |
| 7 | * |
| 8 | * Gets the latest analytics data for all active assessments — |
| 9 | * compliance-check counts by status across the account. Provide the |
| 10 | * implementation with `Effect.provide(AWS.AuditManager.GetInsightsHttp)`. |
| 11 | * ### Insights |
| 12 | * **Example:** Account-Wide Evidence Insights |
| 13 | * ```typescript |
| 14 | * const getInsights = yield* AWS.AuditManager.GetInsights(); |
| 15 | * const result = yield* getInsights(); |
| 16 | * ``` |
| 17 | * |
| 18 | * @binding |
| 19 | */ |
| 20 | export interface GetInsights extends Binding.Service< |
| 21 | GetInsights, |
| 22 | "AWS.AuditManager.GetInsights", |
| 23 | () => Effect.Effect< |
| 24 | ( |
| 25 | request?: auditmanager.GetInsightsRequest, |
| 26 | ) => Effect.Effect< |
| 27 | auditmanager.GetInsightsResponse, |
| 28 | auditmanager.GetInsightsError |
| 29 | > |
| 30 | > |
| 31 | > {} |
| 32 | |
| 33 | export const GetInsights = Binding.Service<GetInsights>( |
| 34 | "AWS.AuditManager.GetInsights", |
| 35 | ); |