The best way to control Claude Code, Codex and more from any computer or phone

main
ts 41 lines 1.33 KB
Raw
1 import type * as location from "@distilled.cloud/aws/location";
2 import * as Binding from "alchemy/Binding";
3 import type * as Effect from "effect/Effect";
4 import type { GeofenceCollection } from "./GeofenceCollection.ts";
5
6 /**
7 * `GetGeofence` request with `CollectionName` injected from the bound
8 * resource.
9 */
10 export interface GetGeofenceRequest extends Omit<location.GetGeofenceRequest, "CollectionName"> {}
11
12 /**
13 * Retrieves a geofence's geometry and status from the collection.
14 *
15 * Runtime binding for the `GetGeofence` operation (IAM action
16 * `geo:GetGeofence`), scoped to one {@link GeofenceCollection}. Provide the implementation with
17 * `Effect.provide(AWS.Location.GetGeofenceHttp)`.
18 *
19 * ### Reading Geofences
20 * **Example:** Read a Geofence
21 * ```typescript
22 * const getGeofence = yield* Location.GetGeofence(collection);
23 *
24 * const fence = yield* getGeofence({ GeofenceId: "warehouse" });
25 * // fence.Status → "ACTIVE" once evaluable
26 * ```
27 *
28 * @binding
29 */
30 export interface GetGeofence extends Binding.Service<
31 GetGeofence,
32 "AWS.Location.GetGeofence",
33 (
34 collection: GeofenceCollection,
35 ) => Effect.Effect<
36 (
37 request: GetGeofenceRequest,
38 ) => Effect.Effect<location.GetGeofenceResponse, location.GetGeofenceError>
39 >
40 > {}
41 export const GetGeofence = Binding.Service<GetGeofence>("AWS.Location.GetGeofence");