| 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:ListControlInsightsByControlDomain`. |
| 7 | * |
| 8 | * Lists the latest control analytics for a specific control domain |
| 9 | * across active assessments. Provide the |
| 10 | * implementation with `Effect.provide(AWS.AuditManager.ListControlInsightsByControlDomainHttp)`. |
| 11 | * ### Insights |
| 12 | * **Example:** Control Insights for a Domain |
| 13 | * ```typescript |
| 14 | * const listControlInsightsByControlDomain = yield* AWS.AuditManager.ListControlInsightsByControlDomain(); |
| 15 | * const result = yield* listControlInsightsByControlDomain({ controlDomainId }); |
| 16 | * ``` |
| 17 | * |
| 18 | * @binding |
| 19 | */ |
| 20 | export interface ListControlInsightsByControlDomain extends Binding.Service< |
| 21 | ListControlInsightsByControlDomain, |
| 22 | "AWS.AuditManager.ListControlInsightsByControlDomain", |
| 23 | () => Effect.Effect< |
| 24 | ( |
| 25 | request: auditmanager.ListControlInsightsByControlDomainRequest, |
| 26 | ) => Effect.Effect< |
| 27 | auditmanager.ListControlInsightsByControlDomainResponse, |
| 28 | auditmanager.ListControlInsightsByControlDomainError |
| 29 | > |
| 30 | > |
| 31 | > {} |
| 32 | |
| 33 | export const ListControlInsightsByControlDomain = |
| 34 | Binding.Service<ListControlInsightsByControlDomain>( |
| 35 | "AWS.AuditManager.ListControlInsightsByControlDomain", |
| 36 | ); |