amazonka-location-2.0: Amazon Location Service SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.Location.BatchEvaluateGeofences

Description

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

Creating a Request

data BatchEvaluateGeofences Source #

See: newBatchEvaluateGeofences smart constructor.

Constructors

BatchEvaluateGeofences' 

Fields

Instances

Instances details
ToJSON BatchEvaluateGeofences Source # 
Instance details

Defined in Amazonka.Location.BatchEvaluateGeofences

ToHeaders BatchEvaluateGeofences Source # 
Instance details

Defined in Amazonka.Location.BatchEvaluateGeofences

ToPath BatchEvaluateGeofences Source # 
Instance details

Defined in Amazonka.Location.BatchEvaluateGeofences

ToQuery BatchEvaluateGeofences Source # 
Instance details

Defined in Amazonka.Location.BatchEvaluateGeofences

AWSRequest BatchEvaluateGeofences Source # 
Instance details

Defined in Amazonka.Location.BatchEvaluateGeofences

Associated Types

type AWSResponse BatchEvaluateGeofences #

Generic BatchEvaluateGeofences Source # 
Instance details

Defined in Amazonka.Location.BatchEvaluateGeofences

Associated Types

type Rep BatchEvaluateGeofences :: Type -> Type #

Show BatchEvaluateGeofences Source # 
Instance details

Defined in Amazonka.Location.BatchEvaluateGeofences

NFData BatchEvaluateGeofences Source # 
Instance details

Defined in Amazonka.Location.BatchEvaluateGeofences

Methods

rnf :: BatchEvaluateGeofences -> () #

Eq BatchEvaluateGeofences Source # 
Instance details

Defined in Amazonka.Location.BatchEvaluateGeofences

Hashable BatchEvaluateGeofences Source # 
Instance details

Defined in Amazonka.Location.BatchEvaluateGeofences

type AWSResponse BatchEvaluateGeofences Source # 
Instance details

Defined in Amazonka.Location.BatchEvaluateGeofences

type Rep BatchEvaluateGeofences Source # 
Instance details

Defined in Amazonka.Location.BatchEvaluateGeofences

type Rep BatchEvaluateGeofences = D1 ('MetaData "BatchEvaluateGeofences" "Amazonka.Location.BatchEvaluateGeofences" "amazonka-location-2.0-4NLaYgEbMXwF6j2j7LAFNb" 'False) (C1 ('MetaCons "BatchEvaluateGeofences'" 'PrefixI 'True) (S1 ('MetaSel ('Just "collectionName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "devicePositionUpdates") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (NonEmpty DevicePositionUpdate))))

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.

Constructors

BatchEvaluateGeofencesResponse' 

Fields

Instances

Instances details
Generic BatchEvaluateGeofencesResponse Source # 
Instance details

Defined in Amazonka.Location.BatchEvaluateGeofences

Associated Types

type Rep BatchEvaluateGeofencesResponse :: Type -> Type #

Read BatchEvaluateGeofencesResponse Source # 
Instance details

Defined in Amazonka.Location.BatchEvaluateGeofences

Show BatchEvaluateGeofencesResponse Source # 
Instance details

Defined in Amazonka.Location.BatchEvaluateGeofences

NFData BatchEvaluateGeofencesResponse Source # 
Instance details

Defined in Amazonka.Location.BatchEvaluateGeofences

Eq BatchEvaluateGeofencesResponse Source # 
Instance details

Defined in Amazonka.Location.BatchEvaluateGeofences

type Rep BatchEvaluateGeofencesResponse Source # 
Instance details

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_errors :: Lens' BatchEvaluateGeofencesResponse [BatchEvaluateGeofencesError] Source #

Contains error details for each device that failed to evaluate its position against the given geofence collection.