| 1 | import * as containeranalysis from "@distilled.cloud/gcp/containeranalysis_v1"; |
| 2 | import * as Layer from "effect/Layer"; |
| 3 | import { makeNoteHttpBinding } from "./BindingHttp.ts"; |
| 4 | import { GetNote } from "./GetNote.ts"; |
| 5 | |
| 6 | /** |
| 7 | * HTTP implementation of {@link GetNote}. |
| 8 | * |
| 9 | * @layer |
| 10 | * @provides GCP.ContainerAnalysis.GetNote |
| 11 | */ |
| 12 | export const GetNoteHttp = Layer.effect( |
| 13 | GetNote, |
| 14 | makeNoteHttpBinding({ |
| 15 | tag: "GCP.ContainerAnalysis.GetNote", |
| 16 | iam: { |
| 17 | role: "roles/containeranalysis.notes.viewer", |
| 18 | on: "containeranalysis.note", |
| 19 | }, |
| 20 | operation: containeranalysis.getProjectsNotes, |
| 21 | }), |
| 22 | ); |