TrackerConsumer
Source:
src/AWS/Location/TrackerConsumer.ts
Links an Amazon Location Tracker to a GeofenceCollection
so every device position uploaded to the tracker is automatically
evaluated against the collection’s geofences, emitting ENTER/EXIT events
(delivered to EventBridge — see consumeTrackerEvents).
The association is existence-only: both properties are immutable and any change replaces it.
Linking Trackers to Geofence Collections
Section titled “Linking Trackers to Geofence Collections”import * as Location from "alchemy/AWS/Location";
const tracker = yield* Location.Tracker("Fleet", { eventBridgeEnabled: true,});const fences = yield* Location.GeofenceCollection("Zones", {});
const link = yield* Location.TrackerConsumer("FleetZones", { trackerName: tracker.trackerName, consumerArn: fences.collectionArn,});