1import * as servicedirectory from "@distilled.cloud/gcp/servicedirectory_v1";
2import * as Layer from "effect/Layer";
3import { makeEndpointHttpBinding } from "./BindingHttp.ts";
4import { GetEndpoint } from "./GetEndpoint.ts";
5
6/**
7 * HTTP implementation of {@link GetEndpoint}.
8 *
9 * @layer
10 * @provides GCP.ServiceDirectory.GetEndpoint
11 */
12export const GetEndpointHttp = Layer.effect(
13 GetEndpoint,
14 makeEndpointHttpBinding({
15 tag: "GCP.ServiceDirectory.GetEndpoint",
16 iam: {
17 role: "roles/servicedirectory.viewer",
18 on: "servicedirectory.service",
19 },
20 operation: servicedirectory.getProjectsLocationsNamespacesServicesEndpoints,
21 }),
22);