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 the position history of one or more devices from a tracker resource.
Synopsis
- data BatchDeleteDevicePositionHistory = BatchDeleteDevicePositionHistory' {
- deviceIds :: NonEmpty Text
- trackerName :: Text
- newBatchDeleteDevicePositionHistory :: NonEmpty Text -> Text -> BatchDeleteDevicePositionHistory
- batchDeleteDevicePositionHistory_deviceIds :: Lens' BatchDeleteDevicePositionHistory (NonEmpty Text)
- batchDeleteDevicePositionHistory_trackerName :: Lens' BatchDeleteDevicePositionHistory Text
- data BatchDeleteDevicePositionHistoryResponse = BatchDeleteDevicePositionHistoryResponse' {}
- newBatchDeleteDevicePositionHistoryResponse :: Int -> BatchDeleteDevicePositionHistoryResponse
- batchDeleteDevicePositionHistoryResponse_httpStatus :: Lens' BatchDeleteDevicePositionHistoryResponse Int
- batchDeleteDevicePositionHistoryResponse_errors :: Lens' BatchDeleteDevicePositionHistoryResponse [BatchDeleteDevicePositionHistoryError]
Creating a Request
data BatchDeleteDevicePositionHistory Source #
See: newBatchDeleteDevicePositionHistory
smart constructor.
BatchDeleteDevicePositionHistory' | |
|
Instances
newBatchDeleteDevicePositionHistory Source #
Create a value of BatchDeleteDevicePositionHistory
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:deviceIds:BatchDeleteDevicePositionHistory'
, batchDeleteDevicePositionHistory_deviceIds
- Devices whose position history you want to delete.
- For example, for two devices:
“DeviceIds” : [DeviceId1,DeviceId2]
BatchDeleteDevicePositionHistory
, batchDeleteDevicePositionHistory_trackerName
- The name of the tracker resource to delete the device position history
from.
Request Lenses
batchDeleteDevicePositionHistory_deviceIds :: Lens' BatchDeleteDevicePositionHistory (NonEmpty Text) Source #
Devices whose position history you want to delete.
- For example, for two devices:
“DeviceIds” : [DeviceId1,DeviceId2]
batchDeleteDevicePositionHistory_trackerName :: Lens' BatchDeleteDevicePositionHistory Text Source #
The name of the tracker resource to delete the device position history from.
Destructuring the Response
data BatchDeleteDevicePositionHistoryResponse Source #
See: newBatchDeleteDevicePositionHistoryResponse
smart constructor.
BatchDeleteDevicePositionHistoryResponse' | |
|
Instances
newBatchDeleteDevicePositionHistoryResponse Source #
Create a value of BatchDeleteDevicePositionHistoryResponse
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:BatchDeleteDevicePositionHistoryResponse'
, batchDeleteDevicePositionHistoryResponse_httpStatus
- The response's http status code.
$sel:errors:BatchDeleteDevicePositionHistoryResponse'
, batchDeleteDevicePositionHistoryResponse_errors
- Contains error details for each device history that failed to delete.
Response Lenses
batchDeleteDevicePositionHistoryResponse_httpStatus :: Lens' BatchDeleteDevicePositionHistoryResponse Int Source #
The response's http status code.
batchDeleteDevicePositionHistoryResponse_errors :: Lens' BatchDeleteDevicePositionHistoryResponse [BatchDeleteDevicePositionHistoryError] Source #
Contains error details for each device history that failed to delete.