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