sailfork / t3code-github / .repos/ alchemy-effect/ packages/ aws/ src/ GeoPlaces/ SearchNearbyHttp.ts

import * as geoPlaces from "@distilled.cloud/aws/geo-places";
import * as Layer from "effect/Layer";
import { makeGeoPlacesHttpBinding } from "./BindingHttp.ts";
import { SearchNearby } from "./SearchNearby.ts";

export const SearchNearbyHttp = Layer.effect(
  SearchNearby,
  makeGeoPlacesHttpBinding({
    capability: "SearchNearby",
    iamActions: ["geo-places:SearchNearby"],
    operation: geoPlaces.searchNearby,
  }),
);