Skip to content

GeofenceCollection

Source: src/AWS/Location/GeofenceCollection.ts

An Amazon Location Service geofence collection. A geofence collection stores geofences and evaluates device positions against them. The KMS key is immutable; the description can be updated in place.

Basic Geofence Collection

import * as Location from "alchemy/AWS/Location";
const collection = yield* Location.GeofenceCollection("Fences", {});

Encrypted Geofence Collection

const collection = yield* Location.GeofenceCollection("SecureFences", {
kmsKeyId: "alias/my-key",
description: "Encrypted geofence collection",
});