The best way to control Claude Code, Codex and more from any computer or phone
Mirrored from https://github.com/Camo67/t3code.git
Synced Nov 21, 04:45 UTC
| 1 | import type * as aa from "@distilled.cloud/aws/accessanalyzer"; |
| 2 | import * as Binding from "alchemy/Binding"; |
| 3 | import type * as Effect from "effect/Effect"; |
| 4 | import type { Analyzer } from "./Analyzer.ts"; |
| 5 | |
| 6 | /** `ApplyArchiveRule` request with `analyzerArn` injected from the bound {@link Analyzer}. */ |
| 7 | export interface ApplyArchiveRuleRequest extends Omit<aa.ApplyArchiveRuleRequest, "analyzerArn"> {} |
| 8 | |
| 9 | /** |
| 10 | * Runtime binding for `access-analyzer:ApplyArchiveRule`. |
| 11 | * |
| 12 | * Retroactively applies an archive rule to the analyzer's existing findings. |
| 13 | * Provide the implementation with |
| 14 | * `Effect.provide(AWS.AccessAnalyzer.ApplyArchiveRuleHttp)`. |
| 15 | * ### Managing Findings |
| 16 | * **Example:** Apply an Archive Rule to Existing Findings |
| 17 | * ```typescript |
| 18 | * const applyRule = yield* AWS.AccessAnalyzer.ApplyArchiveRule(analyzer); |
| 19 | * yield* applyRule({ ruleName: rule.ruleName }); |
| 20 | * ``` |
| 21 | * |
| 22 | * @binding |
| 23 | */ |
| 24 | export interface ApplyArchiveRule extends Binding.Service< |
| 25 | ApplyArchiveRule, |
| 26 | "AWS.AccessAnalyzer.ApplyArchiveRule", |
| 27 | ( |
| 28 | analyzer: Analyzer, |
| 29 | ) => Effect.Effect< |
| 30 | ( |
| 31 | request: ApplyArchiveRuleRequest, |
| 32 | ) => Effect.Effect<aa.ApplyArchiveRuleResponse, aa.ApplyArchiveRuleError> |
| 33 | > |
| 34 | > {} |
| 35 | |
| 36 | export const ApplyArchiveRule = Binding.Service<ApplyArchiveRule>( |
| 37 | "AWS.AccessAnalyzer.ApplyArchiveRule", |
| 38 | ); |