@devries-cameron20 / t3code Mirror · read-only
Fork 0

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, 06:00 UTC

main
ts 43 lines 1.56 KB
Raw
1 import type * as osis from "@distilled.cloud/aws/osis";
2 import * as Binding from "alchemy/Binding";
3 import type * as Effect from "effect/Effect";
4 import type { Pipeline } from "./Pipeline.ts";
5
6 /**
7 * Runtime binding for `osis:RevokePipelineEndpointConnections`.
8 *
9 * Revokes VPC endpoint connections attached to the bound {@link Pipeline} —
10 * a security control that cuts off ingest access from specific endpoints
11 * (e.g. after an account is offboarded). The pipeline ARN is injected from
12 * the binding; pass the endpoint IDs to revoke. Provide the implementation
13 * with `Effect.provide(AWS.OSIS.RevokePipelineEndpointConnectionsHttp)`.
14 * ### Managing Endpoint Connections
15 * **Example:** Revoke an Endpoint's Access
16 * ```typescript
17 * // init — bind the operation to the pipeline
18 * const revokeConnections =
19 * yield* AWS.OSIS.RevokePipelineEndpointConnections(pipeline);
20 *
21 * // runtime
22 * yield* revokeConnections({ EndpointIds: ["pe-1234567890abcdef0"] });
23 * ```
24 *
25 * @binding
26 */
27 export interface RevokePipelineEndpointConnections extends Binding.Service<
28 RevokePipelineEndpointConnections,
29 "AWS.OSIS.RevokePipelineEndpointConnections",
30 (
31 pipeline: Pipeline,
32 ) => Effect.Effect<
33 (
34 request: Omit<osis.RevokePipelineEndpointConnectionsRequest, "PipelineArn">,
35 ) => Effect.Effect<
36 osis.RevokePipelineEndpointConnectionsResponse,
37 osis.RevokePipelineEndpointConnectionsError
38 >
39 >
40 > {}
41 export const RevokePipelineEndpointConnections = Binding.Service<RevokePipelineEndpointConnections>(
42 "AWS.OSIS.RevokePipelineEndpointConnections",
43 );