| 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 |
Amazonka.Location.GetGeofence
Description
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 :: ISO8601
- geofenceId :: Text
- geometry :: GeofenceGeometry
- status :: Text
- updateTime :: ISO8601
- 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.
Constructors
| GetGeofence' | |
Fields
| |
Instances
Arguments
| :: Text | |
| -> Text | |
| -> GetGeofence |
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:
GetGeofence, getGeofence_collectionName - The geofence collection storing the target geofence.
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.
Constructors
| GetGeofenceResponse' | |
Fields
| |
Instances
newGetGeofenceResponse Source #
Arguments
| :: 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.
GetGeofenceResponse, getGeofenceResponse_createTime - The timestamp for when the geofence collection was created in
ISO 8601
format: YYYY-MM-DDThh:mm:ss.sssZ
GetGeofence, getGeofenceResponse_geofenceId - The geofence identifier.
GetGeofenceResponse, getGeofenceResponse_geometry - Contains the geofence geometry details describing a polygon or a circle.
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.
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 or a circle.
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