| 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:BatchGetSecurityControls`. |
| 7 | * |
| 8 | * Returns detailed definitions for a batch of security controls by id or ARN. |
| 9 | * Account-level operation — invoked with the caller's request as-is. |
| 10 | * Provide the implementation with |
| 11 | * `Effect.provide(AWS.SecurityHub.BatchGetSecurityControlsHttp)`. |
| 12 | * ### Standards & Controls |
| 13 | * **Example:** Hydrate Control Details |
| 14 | * ```typescript |
| 15 | * // init — account-level binding, no resource argument |
| 16 | * const batchGetSecurityControls = yield* AWS.SecurityHub.BatchGetSecurityControls(); |
| 17 | * |
| 18 | * // runtime |
| 19 | * const { SecurityControls } = yield* batchGetSecurityControls({ |
| 20 | * SecurityControlIds: ["IAM.1", "S3.1"], |
| 21 | * }); |
| 22 | * ``` |
| 23 | * |
| 24 | * @binding |
| 25 | */ |
| 26 | export interface BatchGetSecurityControls extends Binding.Service< |
| 27 | BatchGetSecurityControls, |
| 28 | "AWS.SecurityHub.BatchGetSecurityControls", |
| 29 | () => Effect.Effect< |
| 30 | ( |
| 31 | request?: securityhub.BatchGetSecurityControlsRequest, |
| 32 | ) => Effect.Effect< |
| 33 | securityhub.BatchGetSecurityControlsResponse, |
| 34 | securityhub.BatchGetSecurityControlsError |
| 35 | > |
| 36 | > |
| 37 | > {} |
| 38 | export const BatchGetSecurityControls = |
| 39 | Binding.Service<BatchGetSecurityControls>( |
| 40 | "AWS.SecurityHub.BatchGetSecurityControls", |
| 41 | ); |