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.PutGeofence

Description

Stores a geofence geometry in a given geofence collection, or updates the geometry of an existing geofence if a geofence ID is included in the request.

Synopsis

Creating a Request

data PutGeofence Source #

See: newPutGeofence smart constructor.

Constructors

PutGeofence' 

Fields

  • collectionName :: Text

    The geofence collection to store the geofence in.

  • geofenceId :: Text

    An identifier for the geofence. For example, ExampleGeofence-1.

  • geometry :: GeofenceGeometry

    Contains the details to specify the position of the geofence. Can be either a polygon or a circle. Including both will return a validation error.

    Each geofence polygon can have a maximum of 1,000 vertices.

Instances

Instances details
ToJSON PutGeofence Source # 
Instance details

Defined in Amazonka.Location.PutGeofence

ToHeaders PutGeofence Source # 
Instance details

Defined in Amazonka.Location.PutGeofence

Methods

toHeaders :: PutGeofence -> [Header] #

ToPath PutGeofence Source # 
Instance details

Defined in Amazonka.Location.PutGeofence

ToQuery PutGeofence Source # 
Instance details

Defined in Amazonka.Location.PutGeofence

AWSRequest PutGeofence Source # 
Instance details

Defined in Amazonka.Location.PutGeofence

Associated Types

type AWSResponse PutGeofence #

Generic PutGeofence Source # 
Instance details

Defined in Amazonka.Location.PutGeofence

Associated Types

type Rep PutGeofence :: Type -> Type #

Show PutGeofence Source # 
Instance details

Defined in Amazonka.Location.PutGeofence

NFData PutGeofence Source # 
Instance details

Defined in Amazonka.Location.PutGeofence

Methods

rnf :: PutGeofence -> () #

Eq PutGeofence Source # 
Instance details

Defined in Amazonka.Location.PutGeofence

Hashable PutGeofence Source # 
Instance details

Defined in Amazonka.Location.PutGeofence

type AWSResponse PutGeofence Source # 
Instance details

Defined in Amazonka.Location.PutGeofence

type Rep PutGeofence Source # 
Instance details

Defined in Amazonka.Location.PutGeofence

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

newPutGeofence Source #

Create a value of PutGeofence 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:

PutGeofence, putGeofence_collectionName - The geofence collection to store the geofence in.

PutGeofence, putGeofence_geofenceId - An identifier for the geofence. For example, ExampleGeofence-1.

PutGeofence, putGeofence_geometry - Contains the details to specify the position of the geofence. Can be either a polygon or a circle. Including both will return a validation error.

Each geofence polygon can have a maximum of 1,000 vertices.

Request Lenses

putGeofence_collectionName :: Lens' PutGeofence Text Source #

The geofence collection to store the geofence in.

putGeofence_geofenceId :: Lens' PutGeofence Text Source #

An identifier for the geofence. For example, ExampleGeofence-1.

putGeofence_geometry :: Lens' PutGeofence GeofenceGeometry Source #

Contains the details to specify the position of the geofence. Can be either a polygon or a circle. Including both will return a validation error.

Each geofence polygon can have a maximum of 1,000 vertices.

Destructuring the Response

data PutGeofenceResponse Source #

See: newPutGeofenceResponse smart constructor.

Constructors

PutGeofenceResponse' 

Fields

Instances

Instances details
Generic PutGeofenceResponse Source # 
Instance details

Defined in Amazonka.Location.PutGeofence

Associated Types

type Rep PutGeofenceResponse :: Type -> Type #

Read PutGeofenceResponse Source # 
Instance details

Defined in Amazonka.Location.PutGeofence

Show PutGeofenceResponse Source # 
Instance details

Defined in Amazonka.Location.PutGeofence

NFData PutGeofenceResponse Source # 
Instance details

Defined in Amazonka.Location.PutGeofence

Methods

rnf :: PutGeofenceResponse -> () #

Eq PutGeofenceResponse Source # 
Instance details

Defined in Amazonka.Location.PutGeofence

type Rep PutGeofenceResponse Source # 
Instance details

Defined in Amazonka.Location.PutGeofence

type Rep PutGeofenceResponse = D1 ('MetaData "PutGeofenceResponse" "Amazonka.Location.PutGeofence" "amazonka-location-2.0-4NLaYgEbMXwF6j2j7LAFNb" 'False) (C1 ('MetaCons "PutGeofenceResponse'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int) :*: S1 ('MetaSel ('Just "createTime") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 ISO8601)) :*: (S1 ('MetaSel ('Just "geofenceId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "updateTime") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 ISO8601))))

newPutGeofenceResponse Source #

Create a value of PutGeofenceResponse 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:PutGeofenceResponse', putGeofenceResponse_httpStatus - The response's http status code.

PutGeofenceResponse, putGeofenceResponse_createTime - The timestamp for when the geofence was created in ISO 8601 format: YYYY-MM-DDThh:mm:ss.sssZ

PutGeofence, putGeofenceResponse_geofenceId - The geofence identifier entered in the request.

PutGeofenceResponse, putGeofenceResponse_updateTime - The timestamp for when the geofence was last updated in ISO 8601 format: YYYY-MM-DDThh:mm:ss.sssZ

Response Lenses

putGeofenceResponse_createTime :: Lens' PutGeofenceResponse UTCTime Source #

The timestamp for when the geofence was created in ISO 8601 format: YYYY-MM-DDThh:mm:ss.sssZ

putGeofenceResponse_geofenceId :: Lens' PutGeofenceResponse Text Source #

The geofence identifier entered in the request.

putGeofenceResponse_updateTime :: Lens' PutGeofenceResponse UTCTime Source #

The timestamp for when the geofence was last updated in ISO 8601 format: YYYY-MM-DDThh:mm:ss.sssZ