| 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:UpdateStandardsControl`. |
| 7 | * |
| 8 | * Enables or disables an individual control within an enabled standard. |
| 9 | * Account-level operation — invoked with the caller's request as-is. |
| 10 | * Provide the implementation with |
| 11 | * `Effect.provide(AWS.SecurityHub.UpdateStandardsControlHttp)`. |
| 12 | * ### Standards & Controls |
| 13 | * **Example:** Disable a Control |
| 14 | * ```typescript |
| 15 | * // init — account-level binding, no resource argument |
| 16 | * const updateStandardsControl = yield* AWS.SecurityHub.UpdateStandardsControl(); |
| 17 | * |
| 18 | * // runtime |
| 19 | * yield* updateStandardsControl({ |
| 20 | * StandardsControlArn: controlArn, |
| 21 | * ControlStatus: "DISABLED", |
| 22 | * DisabledReason: "not applicable to this workload", |
| 23 | * }); |
| 24 | * ``` |
| 25 | * |
| 26 | * @binding |
| 27 | */ |
| 28 | export interface UpdateStandardsControl extends Binding.Service< |
| 29 | UpdateStandardsControl, |
| 30 | "AWS.SecurityHub.UpdateStandardsControl", |
| 31 | () => Effect.Effect< |
| 32 | ( |
| 33 | request: securityhub.UpdateStandardsControlRequest, |
| 34 | ) => Effect.Effect< |
| 35 | securityhub.UpdateStandardsControlResponse, |
| 36 | securityhub.UpdateStandardsControlError |
| 37 | > |
| 38 | > |
| 39 | > {} |
| 40 | export const UpdateStandardsControl = Binding.Service<UpdateStandardsControl>( |
| 41 | "AWS.SecurityHub.UpdateStandardsControl", |
| 42 | ); |