| 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:GetSecurityControlDefinition`. |
| 7 | * |
| 8 | * Returns the definition (title, description, parameters, severity) of a single security control. |
| 9 | * Account-level operation — invoked with the caller's request as-is. |
| 10 | * Provide the implementation with |
| 11 | * `Effect.provide(AWS.SecurityHub.GetSecurityControlDefinitionHttp)`. |
| 12 | * ### Standards & Controls |
| 13 | * **Example:** Read a Control Definition |
| 14 | * ```typescript |
| 15 | * // init — account-level binding, no resource argument |
| 16 | * const getSecurityControlDefinition = yield* AWS.SecurityHub.GetSecurityControlDefinition(); |
| 17 | * |
| 18 | * // runtime |
| 19 | * const { SecurityControlDefinition } = yield* getSecurityControlDefinition({ |
| 20 | * SecurityControlId: "IAM.1", |
| 21 | * }); |
| 22 | * ``` |
| 23 | * |
| 24 | * @binding |
| 25 | */ |
| 26 | export interface GetSecurityControlDefinition extends Binding.Service< |
| 27 | GetSecurityControlDefinition, |
| 28 | "AWS.SecurityHub.GetSecurityControlDefinition", |
| 29 | () => Effect.Effect< |
| 30 | ( |
| 31 | request?: securityhub.GetSecurityControlDefinitionRequest, |
| 32 | ) => Effect.Effect< |
| 33 | securityhub.GetSecurityControlDefinitionResponse, |
| 34 | securityhub.GetSecurityControlDefinitionError |
| 35 | > |
| 36 | > |
| 37 | > {} |
| 38 | export const GetSecurityControlDefinition = |
| 39 | Binding.Service<GetSecurityControlDefinition>( |
| 40 | "AWS.SecurityHub.GetSecurityControlDefinition", |
| 41 | ); |