| 1 | import type * as securityhub from "@distilled.cloud/aws/securityhub"; |
| 2 | import type * as Effect from "effect/Effect"; |
| 3 | import * as Binding from "../../Binding.ts"; |
| 4 | |
| 5 | /** |
| 6 | * Runtime binding for `securityhub:BatchGetStandardsControlAssociations`. |
| 7 | * |
| 8 | * Returns the enablement status of a batch of controls within specific standards. |
| 9 | * Account-level operation — invoked with the caller's request as-is. |
| 10 | * Provide the implementation with |
| 11 | * `Effect.provide(AWS.SecurityHub.BatchGetStandardsControlAssociationsHttp)`. |
| 12 | * ### Standards & Controls |
| 13 | * **Example:** Read Control Associations |
| 14 | * ```typescript |
| 15 | * // init — account-level binding, no resource argument |
| 16 | * const batchGetStandardsControlAssociations = yield* AWS.SecurityHub.BatchGetStandardsControlAssociations(); |
| 17 | * |
| 18 | * // runtime |
| 19 | * const { StandardsControlAssociationDetails } = |
| 20 | * yield* batchGetStandardsControlAssociations({ |
| 21 | * StandardsControlAssociationIds: [ |
| 22 | * { SecurityControlId: "IAM.1", StandardsArn: standardsArn }, |
| 23 | * ], |
| 24 | * }); |
| 25 | * ``` |
| 26 | * |
| 27 | * @binding |
| 28 | */ |
| 29 | export interface BatchGetStandardsControlAssociations extends Binding.Service< |
| 30 | BatchGetStandardsControlAssociations, |
| 31 | "AWS.SecurityHub.BatchGetStandardsControlAssociations", |
| 32 | () => Effect.Effect< |
| 33 | ( |
| 34 | request?: securityhub.BatchGetStandardsControlAssociationsRequest, |
| 35 | ) => Effect.Effect< |
| 36 | securityhub.BatchGetStandardsControlAssociationsResponse, |
| 37 | securityhub.BatchGetStandardsControlAssociationsError |
| 38 | > |
| 39 | > |
| 40 | > {} |
| 41 | export const BatchGetStandardsControlAssociations = |
| 42 | Binding.Service<BatchGetStandardsControlAssociations>( |
| 43 | "AWS.SecurityHub.BatchGetStandardsControlAssociations", |
| 44 | ); |