| 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:UpdateSecurityControl`. |
| 7 | * |
| 8 | * Updates the customizable parameters of a security control. |
| 9 | * Account-level operation — invoked with the caller's request as-is. |
| 10 | * Provide the implementation with |
| 11 | * `Effect.provide(AWS.SecurityHub.UpdateSecurityControlHttp)`. |
| 12 | * ### Standards & Controls |
| 13 | * **Example:** Tune a Control Parameter |
| 14 | * ```typescript |
| 15 | * // init — account-level binding, no resource argument |
| 16 | * const updateSecurityControl = yield* AWS.SecurityHub.UpdateSecurityControl(); |
| 17 | * |
| 18 | * // runtime |
| 19 | * yield* updateSecurityControl({ |
| 20 | * SecurityControlId: "ACM.1", |
| 21 | * Parameters: { daysToExpiration: { ValueType: "CUSTOM", Value: { Integer: 15 } } }, |
| 22 | * }); |
| 23 | * ``` |
| 24 | * |
| 25 | * @binding |
| 26 | */ |
| 27 | export interface UpdateSecurityControl extends Binding.Service< |
| 28 | UpdateSecurityControl, |
| 29 | "AWS.SecurityHub.UpdateSecurityControl", |
| 30 | () => Effect.Effect< |
| 31 | ( |
| 32 | request?: securityhub.UpdateSecurityControlRequest, |
| 33 | ) => Effect.Effect< |
| 34 | securityhub.UpdateSecurityControlResponse, |
| 35 | securityhub.UpdateSecurityControlError |
| 36 | > |
| 37 | > |
| 38 | > {} |
| 39 | export const UpdateSecurityControl = Binding.Service<UpdateSecurityControl>( |
| 40 | "AWS.SecurityHub.UpdateSecurityControl", |
| 41 | ); |