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 |
Deletes a batch of geofences from a geofence collection.
This operation deletes the resource permanently.
Synopsis
- data BatchDeleteGeofence = BatchDeleteGeofence' {}
- newBatchDeleteGeofence :: Text -> NonEmpty Text -> BatchDeleteGeofence
- batchDeleteGeofence_collectionName :: Lens' BatchDeleteGeofence Text
- batchDeleteGeofence_geofenceIds :: Lens' BatchDeleteGeofence (NonEmpty Text)
- data BatchDeleteGeofenceResponse = BatchDeleteGeofenceResponse' {}
- newBatchDeleteGeofenceResponse :: Int -> BatchDeleteGeofenceResponse
- batchDeleteGeofenceResponse_httpStatus :: Lens' BatchDeleteGeofenceResponse Int
- batchDeleteGeofenceResponse_errors :: Lens' BatchDeleteGeofenceResponse [BatchDeleteGeofenceError]
Creating a Request
data BatchDeleteGeofence Source #
See: newBatchDeleteGeofence
smart constructor.
BatchDeleteGeofence' | |
|
Instances
newBatchDeleteGeofence Source #
:: Text | |
-> NonEmpty Text | |
-> BatchDeleteGeofence |
Create a value of BatchDeleteGeofence
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:
BatchDeleteGeofence
, batchDeleteGeofence_collectionName
- The geofence collection storing the geofences to be deleted.
$sel:geofenceIds:BatchDeleteGeofence'
, batchDeleteGeofence_geofenceIds
- The batch of geofences to be deleted.
Request Lenses
batchDeleteGeofence_collectionName :: Lens' BatchDeleteGeofence Text Source #
The geofence collection storing the geofences to be deleted.
batchDeleteGeofence_geofenceIds :: Lens' BatchDeleteGeofence (NonEmpty Text) Source #
The batch of geofences to be deleted.
Destructuring the Response
data BatchDeleteGeofenceResponse Source #
See: newBatchDeleteGeofenceResponse
smart constructor.
BatchDeleteGeofenceResponse' | |
|
Instances
newBatchDeleteGeofenceResponse Source #
Create a value of BatchDeleteGeofenceResponse
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:BatchDeleteGeofenceResponse'
, batchDeleteGeofenceResponse_httpStatus
- The response's http status code.
$sel:errors:BatchDeleteGeofenceResponse'
, batchDeleteGeofenceResponse_errors
- Contains error details for each geofence that failed to delete.
Response Lenses
batchDeleteGeofenceResponse_httpStatus :: Lens' BatchDeleteGeofenceResponse Int Source #
The response's http status code.
batchDeleteGeofenceResponse_errors :: Lens' BatchDeleteGeofenceResponse [BatchDeleteGeofenceError] Source #
Contains error details for each geofence that failed to delete.