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