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 |
A batch request for storing geofence geometries into a given geofence collection, or updates the geometry of an existing geofence if a geofence ID is included in the request.
Synopsis
- data BatchPutGeofence = BatchPutGeofence' {}
- newBatchPutGeofence :: Text -> NonEmpty BatchPutGeofenceRequestEntry -> BatchPutGeofence
- batchPutGeofence_collectionName :: Lens' BatchPutGeofence Text
- batchPutGeofence_entries :: Lens' BatchPutGeofence (NonEmpty BatchPutGeofenceRequestEntry)
- data BatchPutGeofenceResponse = BatchPutGeofenceResponse' {}
- newBatchPutGeofenceResponse :: Int -> BatchPutGeofenceResponse
- batchPutGeofenceResponse_httpStatus :: Lens' BatchPutGeofenceResponse Int
- batchPutGeofenceResponse_errors :: Lens' BatchPutGeofenceResponse [BatchPutGeofenceError]
- batchPutGeofenceResponse_successes :: Lens' BatchPutGeofenceResponse [BatchPutGeofenceSuccess]
Creating a Request
data BatchPutGeofence Source #
See: newBatchPutGeofence
smart constructor.
BatchPutGeofence' | |
|
Instances
Create a value of BatchPutGeofence
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:BatchPutGeofence'
, batchPutGeofence_collectionName
- The geofence collection storing the geofences.
$sel:entries:BatchPutGeofence'
, batchPutGeofence_entries
- The batch of geofences to be stored in a geofence collection.
Request Lenses
batchPutGeofence_collectionName :: Lens' BatchPutGeofence Text Source #
The geofence collection storing the geofences.
batchPutGeofence_entries :: Lens' BatchPutGeofence (NonEmpty BatchPutGeofenceRequestEntry) Source #
The batch of geofences to be stored in a geofence collection.
Destructuring the Response
data BatchPutGeofenceResponse Source #
See: newBatchPutGeofenceResponse
smart constructor.
BatchPutGeofenceResponse' | |
|
Instances
newBatchPutGeofenceResponse Source #
Create a value of BatchPutGeofenceResponse
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:BatchPutGeofenceResponse'
, batchPutGeofenceResponse_httpStatus
- The response's http status code.
$sel:errors:BatchPutGeofenceResponse'
, batchPutGeofenceResponse_errors
- Contains additional error details for each geofence that failed to be
stored in a geofence collection.
$sel:successes:BatchPutGeofenceResponse'
, batchPutGeofenceResponse_successes
- Contains each geofence that was successfully stored in a geofence
collection.
Response Lenses
batchPutGeofenceResponse_httpStatus :: Lens' BatchPutGeofenceResponse Int Source #
The response's http status code.
batchPutGeofenceResponse_errors :: Lens' BatchPutGeofenceResponse [BatchPutGeofenceError] Source #
Contains additional error details for each geofence that failed to be stored in a geofence collection.
batchPutGeofenceResponse_successes :: Lens' BatchPutGeofenceResponse [BatchPutGeofenceSuccess] Source #
Contains each geofence that was successfully stored in a geofence collection.