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