1import * as route53 from "@distilled.cloud/aws/route-53";
2import * as Layer from "effect/Layer";
3import { makeRoute53ZoneHttpBinding } from "./BindingHttp.ts";
4import { GetHostedZone } from "./GetHostedZone.ts";
5
6export const GetHostedZoneHttp = Layer.effect(
7 GetHostedZone,
8 makeRoute53ZoneHttpBinding({
9 tag: "AWS.Route53.GetHostedZone",
10 operation: route53.getHostedZone,
11 actions: ["route53:GetHostedZone"],
12 // getHostedZone addresses the zone as `Id`, not `HostedZoneId`.
13 requestKey: "Id",
14 }),
15);