Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Evaluates device positions against the geofence geometries from a given geofence collection.
This operation always returns an empty response because geofences are asynchronously evaluated. The evaluation determines if the device has entered or exited a geofenced area, and then publishes one of the following events to Amazon EventBridge:
ENTER
if Amazon Location determines that the tracked device has entered a geofenced area.EXIT
if Amazon Location determines that the tracked device has exited a geofenced area.
The last geofence that a device was observed within is tracked for 30 days after the most recent device position update.
Geofence evaluation uses the given device position. It does not account
for the optional Accuracy
of a DevicePositionUpdate
.
The DeviceID
is used as a string to represent the device. You do not
need to have a Tracker
associated with the DeviceID
.
Synopsis
- data BatchEvaluateGeofences = BatchEvaluateGeofences' {}
- newBatchEvaluateGeofences :: Text -> NonEmpty DevicePositionUpdate -> BatchEvaluateGeofences
- batchEvaluateGeofences_collectionName :: Lens' BatchEvaluateGeofences Text
- batchEvaluateGeofences_devicePositionUpdates :: Lens' BatchEvaluateGeofences (NonEmpty DevicePositionUpdate)
- data BatchEvaluateGeofencesResponse = BatchEvaluateGeofencesResponse' {}
- newBatchEvaluateGeofencesResponse :: Int -> BatchEvaluateGeofencesResponse
- batchEvaluateGeofencesResponse_httpStatus :: Lens' BatchEvaluateGeofencesResponse Int
- batchEvaluateGeofencesResponse_errors :: Lens' BatchEvaluateGeofencesResponse [BatchEvaluateGeofencesError]
Creating a Request
data BatchEvaluateGeofences Source #
See: newBatchEvaluateGeofences
smart constructor.
BatchEvaluateGeofences' | |
|
Instances
newBatchEvaluateGeofences Source #
Create a value of BatchEvaluateGeofences
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
BatchEvaluateGeofences
, batchEvaluateGeofences_collectionName
- The geofence collection used in evaluating the position of devices
against its geofences.
$sel:devicePositionUpdates:BatchEvaluateGeofences'
, batchEvaluateGeofences_devicePositionUpdates
- Contains device details for each device to be evaluated against the
given geofence collection.
Request Lenses
batchEvaluateGeofences_collectionName :: Lens' BatchEvaluateGeofences Text Source #
The geofence collection used in evaluating the position of devices against its geofences.
batchEvaluateGeofences_devicePositionUpdates :: Lens' BatchEvaluateGeofences (NonEmpty DevicePositionUpdate) Source #
Contains device details for each device to be evaluated against the given geofence collection.
Destructuring the Response
data BatchEvaluateGeofencesResponse Source #
See: newBatchEvaluateGeofencesResponse
smart constructor.
BatchEvaluateGeofencesResponse' | |
|
Instances
Generic BatchEvaluateGeofencesResponse Source # | |
Read BatchEvaluateGeofencesResponse Source # | |
Show BatchEvaluateGeofencesResponse Source # | |
Defined in Amazonka.Location.BatchEvaluateGeofences | |
NFData BatchEvaluateGeofencesResponse Source # | |
Defined in Amazonka.Location.BatchEvaluateGeofences rnf :: BatchEvaluateGeofencesResponse -> () # | |
Eq BatchEvaluateGeofencesResponse Source # | |
type Rep BatchEvaluateGeofencesResponse Source # | |
Defined in Amazonka.Location.BatchEvaluateGeofences type Rep BatchEvaluateGeofencesResponse = D1 ('MetaData "BatchEvaluateGeofencesResponse" "Amazonka.Location.BatchEvaluateGeofences" "amazonka-location-2.0-4NLaYgEbMXwF6j2j7LAFNb" 'False) (C1 ('MetaCons "BatchEvaluateGeofencesResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int) :*: S1 ('MetaSel ('Just "errors") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 [BatchEvaluateGeofencesError]))) |
newBatchEvaluateGeofencesResponse Source #
Create a value of BatchEvaluateGeofencesResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:httpStatus:BatchEvaluateGeofencesResponse'
, batchEvaluateGeofencesResponse_httpStatus
- The response's http status code.
$sel:errors:BatchEvaluateGeofencesResponse'
, batchEvaluateGeofencesResponse_errors
- Contains error details for each device that failed to evaluate its
position against the given geofence collection.
Response Lenses
batchEvaluateGeofencesResponse_httpStatus :: Lens' BatchEvaluateGeofencesResponse Int Source #
The response's http status code.
batchEvaluateGeofencesResponse_errors :: Lens' BatchEvaluateGeofencesResponse [BatchEvaluateGeofencesError] Source #
Contains error details for each device that failed to evaluate its position against the given geofence collection.