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