Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
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
- data PutGeofence = PutGeofence' {}
- newPutGeofence :: Text -> Text -> GeofenceGeometry -> PutGeofence
- putGeofence_collectionName :: Lens' PutGeofence Text
- putGeofence_geofenceId :: Lens' PutGeofence Text
- putGeofence_geometry :: Lens' PutGeofence GeofenceGeometry
- data PutGeofenceResponse = PutGeofenceResponse' {
- httpStatus :: Int
- createTime :: POSIX
- geofenceId :: Text
- updateTime :: POSIX
- newPutGeofenceResponse :: Int -> UTCTime -> Text -> UTCTime -> PutGeofenceResponse
- putGeofenceResponse_httpStatus :: Lens' PutGeofenceResponse Int
- putGeofenceResponse_createTime :: Lens' PutGeofenceResponse UTCTime
- putGeofenceResponse_geofenceId :: Lens' PutGeofenceResponse Text
- putGeofenceResponse_updateTime :: Lens' PutGeofenceResponse UTCTime
Creating a Request
data PutGeofence Source #
See: newPutGeofence
smart constructor.
PutGeofence' | |
|
Instances
:: Text | |
-> Text | |
-> GeofenceGeometry | |
-> PutGeofence |
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:
$sel:collectionName:PutGeofence'
, putGeofence_collectionName
- The geofence collection to store the geofence in.
$sel:geofenceId:PutGeofence'
, putGeofence_geofenceId
- An identifier for the geofence. For example, ExampleGeofence-1
.
$sel:geometry:PutGeofence'
, putGeofence_geometry
- Contains the polygon details to specify the position of the geofence.
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 polygon details to specify the position of the geofence.
Each geofence polygon can have a maximum of 1,000 vertices.
Destructuring the Response
data PutGeofenceResponse Source #
See: newPutGeofenceResponse
smart constructor.
PutGeofenceResponse' | |
|
Instances
newPutGeofenceResponse Source #
:: Int | |
-> UTCTime | |
-> Text | |
-> UTCTime | |
-> PutGeofenceResponse |
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.
$sel:createTime:PutGeofenceResponse'
, putGeofenceResponse_createTime
- The timestamp for when the geofence was created in
ISO 8601
format: YYYY-MM-DDThh:mm:ss.sssZ
$sel:geofenceId:PutGeofence'
, putGeofenceResponse_geofenceId
- The geofence identifier entered in the request.
$sel:updateTime: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_httpStatus :: Lens' PutGeofenceResponse Int Source #
The response's http status code.
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