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 |
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 :: ISO8601
- geofenceId :: Text
- updateTime :: ISO8601
- 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
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.
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.
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_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