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 |
Retrieves the geofence details from a geofence collection.
Synopsis
- data GetGeofence = GetGeofence' {
- collectionName :: Text
- geofenceId :: Text
- newGetGeofence :: Text -> Text -> GetGeofence
- getGeofence_collectionName :: Lens' GetGeofence Text
- getGeofence_geofenceId :: Lens' GetGeofence Text
- data GetGeofenceResponse = GetGeofenceResponse' {
- httpStatus :: Int
- createTime :: POSIX
- geofenceId :: Text
- geometry :: GeofenceGeometry
- status :: Text
- updateTime :: POSIX
- newGetGeofenceResponse :: Int -> UTCTime -> Text -> GeofenceGeometry -> Text -> UTCTime -> GetGeofenceResponse
- getGeofenceResponse_httpStatus :: Lens' GetGeofenceResponse Int
- getGeofenceResponse_createTime :: Lens' GetGeofenceResponse UTCTime
- getGeofenceResponse_geofenceId :: Lens' GetGeofenceResponse Text
- getGeofenceResponse_geometry :: Lens' GetGeofenceResponse GeofenceGeometry
- getGeofenceResponse_status :: Lens' GetGeofenceResponse Text
- getGeofenceResponse_updateTime :: Lens' GetGeofenceResponse UTCTime
Creating a Request
data GetGeofence Source #
See: newGetGeofence
smart constructor.
GetGeofence' | |
|
Instances
Create a value of GetGeofence
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:GetGeofence'
, getGeofence_collectionName
- The geofence collection storing the target geofence.
$sel:geofenceId:GetGeofence'
, getGeofence_geofenceId
- The geofence you're retrieving details for.
Request Lenses
getGeofence_collectionName :: Lens' GetGeofence Text Source #
The geofence collection storing the target geofence.
getGeofence_geofenceId :: Lens' GetGeofence Text Source #
The geofence you're retrieving details for.
Destructuring the Response
data GetGeofenceResponse Source #
See: newGetGeofenceResponse
smart constructor.
GetGeofenceResponse' | |
|
Instances
newGetGeofenceResponse Source #
:: Int | |
-> UTCTime | |
-> Text | |
-> GeofenceGeometry | |
-> Text | |
-> UTCTime | |
-> GetGeofenceResponse |
Create a value of GetGeofenceResponse
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:GetGeofenceResponse'
, getGeofenceResponse_httpStatus
- The response's http status code.
$sel:createTime:GetGeofenceResponse'
, getGeofenceResponse_createTime
- The timestamp for when the geofence collection was created in
ISO 8601
format: YYYY-MM-DDThh:mm:ss.sssZ
$sel:geofenceId:GetGeofence'
, getGeofenceResponse_geofenceId
- The geofence identifier.
$sel:geometry:GetGeofenceResponse'
, getGeofenceResponse_geometry
- Contains the geofence geometry details describing a polygon.
$sel:status:GetGeofenceResponse'
, getGeofenceResponse_status
- Identifies the state of the geofence. A geofence will hold one of the
following states:
ACTIVE
— The geofence has been indexed by the system.PENDING
— The geofence is being processed by the system.FAILED
— The geofence failed to be indexed by the system.DELETED
— The geofence has been deleted from the system index.DELETING
— The geofence is being deleted from the system index.
$sel:updateTime:GetGeofenceResponse'
, getGeofenceResponse_updateTime
- The timestamp for when the geofence collection was last updated in
ISO 8601
format: YYYY-MM-DDThh:mm:ss.sssZ
Response Lenses
getGeofenceResponse_httpStatus :: Lens' GetGeofenceResponse Int Source #
The response's http status code.
getGeofenceResponse_createTime :: Lens' GetGeofenceResponse UTCTime Source #
The timestamp for when the geofence collection was created in
ISO 8601
format: YYYY-MM-DDThh:mm:ss.sssZ
getGeofenceResponse_geofenceId :: Lens' GetGeofenceResponse Text Source #
The geofence identifier.
getGeofenceResponse_geometry :: Lens' GetGeofenceResponse GeofenceGeometry Source #
Contains the geofence geometry details describing a polygon.
getGeofenceResponse_status :: Lens' GetGeofenceResponse Text Source #
Identifies the state of the geofence. A geofence will hold one of the following states:
ACTIVE
— The geofence has been indexed by the system.PENDING
— The geofence is being processed by the system.FAILED
— The geofence failed to be indexed by the system.DELETED
— The geofence has been deleted from the system index.DELETING
— The geofence is being deleted from the system index.
getGeofenceResponse_updateTime :: Lens' GetGeofenceResponse UTCTime Source #
The timestamp for when the geofence collection was last updated in
ISO 8601
format: YYYY-MM-DDThh:mm:ss.sssZ