libZSservicesZSamazonka-locationZSamazonka-location
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

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.

Synopsis

Creating a Request

data BatchEvaluateGeofences Source #

See: newBatchEvaluateGeofences smart constructor.

Constructors

BatchEvaluateGeofences' 

Fields

Instances

Instances details
Eq BatchEvaluateGeofences Source # 
Instance details

Defined in Amazonka.Location.BatchEvaluateGeofences

Show BatchEvaluateGeofences Source # 
Instance details

Defined in Amazonka.Location.BatchEvaluateGeofences

Generic BatchEvaluateGeofences Source # 
Instance details

Defined in Amazonka.Location.BatchEvaluateGeofences

Associated Types

type Rep BatchEvaluateGeofences :: Type -> Type #

NFData BatchEvaluateGeofences Source # 
Instance details

Defined in Amazonka.Location.BatchEvaluateGeofences

Methods

rnf :: BatchEvaluateGeofences -> () #

Hashable BatchEvaluateGeofences Source # 
Instance details

Defined in Amazonka.Location.BatchEvaluateGeofences

ToJSON BatchEvaluateGeofences Source # 
Instance details

Defined in Amazonka.Location.BatchEvaluateGeofences

AWSRequest BatchEvaluateGeofences Source # 
Instance details

Defined in Amazonka.Location.BatchEvaluateGeofences

Associated Types

type AWSResponse 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

type Rep BatchEvaluateGeofences Source # 
Instance details

Defined in Amazonka.Location.BatchEvaluateGeofences

type Rep BatchEvaluateGeofences = D1 ('MetaData "BatchEvaluateGeofences" "Amazonka.Location.BatchEvaluateGeofences" "libZSservicesZSamazonka-locationZSamazonka-location" '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))))
type AWSResponse BatchEvaluateGeofences Source # 
Instance details

Defined in Amazonka.Location.BatchEvaluateGeofences

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:

$sel:collectionName: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
Eq BatchEvaluateGeofencesResponse Source # 
Instance details

Defined in Amazonka.Location.BatchEvaluateGeofences

Read BatchEvaluateGeofencesResponse Source # 
Instance details

Defined in Amazonka.Location.BatchEvaluateGeofences

Show BatchEvaluateGeofencesResponse Source # 
Instance details

Defined in Amazonka.Location.BatchEvaluateGeofences

Generic BatchEvaluateGeofencesResponse Source # 
Instance details

Defined in Amazonka.Location.BatchEvaluateGeofences

Associated Types

type Rep BatchEvaluateGeofencesResponse :: Type -> Type #

NFData 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" "libZSservicesZSamazonka-locationZSamazonka-location" '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.