Skip to content

BatchPutGeofence

Source: src/AWS/Location/BatchPutGeofence.ts

Stores up to 10 geofences in the collection in one call.

Runtime binding for the BatchPutGeofence operation (IAM action geo:BatchPutGeofence), scoped to one GeofenceCollection. Provide the implementation with Effect.provide(AWS.Location.BatchPutGeofenceHttp).

const batchPut = yield* Location.BatchPutGeofence(collection);
const result = yield* batchPut({
Entries: [
{
GeofenceId: "warehouse",
Geometry: { Circle: { Center: [-122.3493, 47.6205], Radius: 100 } },
},
],
});
// result.Successes / result.Errors → per-geofence outcomes