| 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:DescribeStandardsControls`. |
| 7 | * |
| 8 | * Lists the controls of an enabled standard with their current status. |
| 9 | * Account-level operation — invoked with the caller's request as-is. |
| 10 | * Provide the implementation with |
| 11 | * `Effect.provide(AWS.SecurityHub.DescribeStandardsControlsHttp)`. |
| 12 | * ### Standards & Controls |
| 13 | * **Example:** List a Standard's Controls |
| 14 | * ```typescript |
| 15 | * // init — account-level binding, no resource argument |
| 16 | * const describeStandardsControls = yield* AWS.SecurityHub.DescribeStandardsControls(); |
| 17 | * |
| 18 | * // runtime |
| 19 | * const { Controls } = yield* describeStandardsControls({ |
| 20 | * StandardsSubscriptionArn: subscriptionArn, |
| 21 | * }); |
| 22 | * ``` |
| 23 | * |
| 24 | * @binding |
| 25 | */ |
| 26 | export interface DescribeStandardsControls extends Binding.Service< |
| 27 | DescribeStandardsControls, |
| 28 | "AWS.SecurityHub.DescribeStandardsControls", |
| 29 | () => Effect.Effect< |
| 30 | ( |
| 31 | request: securityhub.DescribeStandardsControlsRequest, |
| 32 | ) => Effect.Effect< |
| 33 | securityhub.DescribeStandardsControlsResponse, |
| 34 | securityhub.DescribeStandardsControlsError |
| 35 | > |
| 36 | > |
| 37 | > {} |
| 38 | export const DescribeStandardsControls = |
| 39 | Binding.Service<DescribeStandardsControls>( |
| 40 | "AWS.SecurityHub.DescribeStandardsControls", |
| 41 | ); |