import type * as emrc from "@distilled.cloud/aws/emr-containers";
import * as Binding from "alchemy/Binding";
import type * as Effect from "effect/Effect";
import type { VirtualCluster } from "./VirtualCluster.ts";
/**
* Runtime binding for `emr-containers:ListManagedEndpoints`.
*
* Lists managed endpoints (EMR Studio gateways) on the bound
* {@link VirtualCluster}, optionally filtered by state or type. The virtual
* cluster ID is injected from the binding. Provide the implementation with
* `Effect.provide(AWS.EMRContainers.ListManagedEndpointsHttp)`.
* ### Managed Endpoints
* **Example:** List Active Endpoints
* ```typescript
* // init
* const listManagedEndpoints =
* yield* AWS.EMRContainers.ListManagedEndpoints(virtualCluster);
*
* // runtime
* const { endpoints } = yield* listManagedEndpoints({ states: ["ACTIVE"] });
* ```
*
* @binding
*/
export interface ListManagedEndpoints extends Binding.Service<
ListManagedEndpoints,
"AWS.EMRContainers.ListManagedEndpoints",
(
virtualCluster: VirtualCluster,
) => Effect.Effect<
(
request?: Omit<emrc.ListManagedEndpointsRequest, "virtualClusterId">,
) => Effect.Effect<emrc.ListManagedEndpointsResponse, emrc.ListManagedEndpointsError>
>
> {}
export const ListManagedEndpoints = Binding.Service<ListManagedEndpoints>(
"AWS.EMRContainers.ListManagedEndpoints",
);