1import * as alloydb from "@distilled.cloud/gcp/alloydb_v1";
2import * as Layer from "effect/Layer";
3import { makeAlloyDbInstanceHttpBinding } from "./BindingHttp.ts";
4import { GetInstance } from "./GetInstance.ts";
5
6/**
7 * HTTP implementation of {@link GetInstance}.
8 *
9 * @layer
10 * @provides GCP.AlloyDB.GetInstance
11 */
12export const GetInstanceHttp = Layer.effect(
13 GetInstance,
14 makeAlloyDbInstanceHttpBinding({
15 tag: "GCP.AlloyDB.GetInstance",
16 iam: { role: "roles/alloydb.viewer" },
17 operation: alloydb.getProjectsLocationsClustersInstances,
18 }),
19);