1import type * as osis from "@distilled.cloud/aws/osis";
2import type * as Effect from "effect/Effect";
3import * as Binding from "../../Binding.ts";
4import 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 */
27export interface RevokePipelineEndpointConnections extends Binding.Service<
28 RevokePipelineEndpointConnections,
29 "AWS.OSIS.RevokePipelineEndpointConnections",
30 (
31 pipeline: Pipeline,
32 ) => Effect.Effect<
33 (
34 request: Omit<
35 osis.RevokePipelineEndpointConnectionsRequest,
36 "PipelineArn"
37 >,
38 ) => Effect.Effect<
39 osis.RevokePipelineEndpointConnectionsResponse,
40 osis.RevokePipelineEndpointConnectionsError
41 >
42 >
43> {}
44export const RevokePipelineEndpointConnections =
45 Binding.Service<RevokePipelineEndpointConnections>(
46 "AWS.OSIS.RevokePipelineEndpointConnections",
47 );