| 1 | import type * as aa from "@distilled.cloud/aws/accessanalyzer"; |
| 2 | import type * as Effect from "effect/Effect"; |
| 3 | import * as Binding from "../../Binding.ts"; |
| 4 | |
| 5 | /** |
| 6 | * Runtime binding for `access-analyzer:CancelPolicyGeneration`. |
| 7 | * |
| 8 | * Cancels an in-progress policy-generation job. Provide the implementation |
| 9 | * with `Effect.provide(AWS.AccessAnalyzer.CancelPolicyGenerationHttp)`. |
| 10 | * ### Policy Generation |
| 11 | * **Example:** Cancel a Generation Job |
| 12 | * ```typescript |
| 13 | * const cancelGeneration = |
| 14 | * yield* AWS.AccessAnalyzer.CancelPolicyGeneration(); |
| 15 | * yield* cancelGeneration({ jobId }); |
| 16 | * ``` |
| 17 | * |
| 18 | * @binding |
| 19 | */ |
| 20 | export interface CancelPolicyGeneration extends Binding.Service< |
| 21 | CancelPolicyGeneration, |
| 22 | "AWS.AccessAnalyzer.CancelPolicyGeneration", |
| 23 | () => Effect.Effect< |
| 24 | ( |
| 25 | request: aa.CancelPolicyGenerationRequest, |
| 26 | ) => Effect.Effect< |
| 27 | aa.CancelPolicyGenerationResponse, |
| 28 | aa.CancelPolicyGenerationError |
| 29 | > |
| 30 | > |
| 31 | > {} |
| 32 | |
| 33 | export const CancelPolicyGeneration = Binding.Service<CancelPolicyGeneration>( |
| 34 | "AWS.AccessAnalyzer.CancelPolicyGeneration", |
| 35 | ); |