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