Skip to content

GetGeofence

Source: src/AWS/Location/GetGeofence.ts

Retrieves a geofence’s geometry and status from the collection.

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

const getGeofence = yield* Location.GetGeofence(collection);
const fence = yield* getGeofence({ GeofenceId: "warehouse" });
// fence.Status → "ACTIVE" once evaluable