The best way to control Claude Code, Codex and more from any computer or phone

main
ts 39 lines 1.31 KB
Raw
1 import type * as dataexchange from "@distilled.cloud/aws/dataexchange";
2 import * as Binding from "alchemy/Binding";
3 import type * as Effect from "effect/Effect";
4 import type { Revision } from "./Revision.ts";
5
6 /**
7 * Runtime binding for `dataexchange:RevokeRevision`.
8 *
9 * Revokes the bound revision from subscribers with a required
10 * revocation comment — the remediation path when bad or sensitive data
11 * was published. The data set and revision ids are injected from the
12 * binding.
13 * Provide the implementation with
14 * `Effect.provide(AWS.DataExchange.RevokeRevisionHttp)`.
15 * ### Managing Assets
16 * **Example:** Revoke A Published Revision
17 * ```typescript
18 * const revokeRevision = yield* AWS.DataExchange.RevokeRevision(revision);
19 *
20 * // runtime
21 * yield* revokeRevision({
22 * RevocationComment: "Published with corrupted price data",
23 * });
24 * ```
25 *
26 * @binding
27 */
28 export interface RevokeRevision extends Binding.Service<
29 RevokeRevision,
30 "AWS.DataExchange.RevokeRevision",
31 (
32 revision: Revision,
33 ) => Effect.Effect<
34 (
35 request: Omit<dataexchange.RevokeRevisionRequest, "DataSetId" | "RevisionId">,
36 ) => Effect.Effect<dataexchange.RevokeRevisionResponse, dataexchange.RevokeRevisionError>
37 >
38 > {}
39 export const RevokeRevision = Binding.Service<RevokeRevision>("AWS.DataExchange.RevokeRevision");