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