@devries-cameron20 / t3code Mirror · read-only
Fork 0

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

Mirrored from https://github.com/Camo67/t3code.git

Synced Nov 21, 06:00 UTC

main
ts 45 lines 1.4 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 * `BatchDeleteGeofence` request with `CollectionName` injected from the bound
8 * resource.
9 */
10 export interface BatchDeleteGeofenceRequest extends Omit<
11 location.BatchDeleteGeofenceRequest,
12 "CollectionName"
13 > {}
14
15 /**
16 * Deletes up to 10 geofences from the collection in one call.
17 *
18 * Runtime binding for the `BatchDeleteGeofence` operation (IAM action
19 * `geo:BatchDeleteGeofence`), scoped to one {@link GeofenceCollection}. Provide the implementation with
20 * `Effect.provide(AWS.Location.BatchDeleteGeofenceHttp)`.
21 *
22 * ### Managing Geofences
23 * **Example:** Delete Geofences
24 * ```typescript
25 * const batchDelete = yield* Location.BatchDeleteGeofence(collection);
26 *
27 * yield* batchDelete({ GeofenceIds: ["warehouse"] });
28 * ```
29 *
30 * @binding
31 */
32 export interface BatchDeleteGeofence extends Binding.Service<
33 BatchDeleteGeofence,
34 "AWS.Location.BatchDeleteGeofence",
35 (
36 collection: GeofenceCollection,
37 ) => Effect.Effect<
38 (
39 request: BatchDeleteGeofenceRequest,
40 ) => Effect.Effect<location.BatchDeleteGeofenceResponse, location.BatchDeleteGeofenceError>
41 >
42 > {}
43 export const BatchDeleteGeofence = Binding.Service<BatchDeleteGeofence>(
44 "AWS.Location.BatchDeleteGeofence",
45 );