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 |
Updates the specified properties of a given tracker resource.
Synopsis
- data UpdateTracker = UpdateTracker' {}
- newUpdateTracker :: Text -> UpdateTracker
- updateTracker_pricingPlan :: Lens' UpdateTracker (Maybe PricingPlan)
- updateTracker_pricingPlanDataSource :: Lens' UpdateTracker (Maybe Text)
- updateTracker_description :: Lens' UpdateTracker (Maybe Text)
- updateTracker_positionFiltering :: Lens' UpdateTracker (Maybe PositionFiltering)
- updateTracker_trackerName :: Lens' UpdateTracker Text
- data UpdateTrackerResponse = UpdateTrackerResponse' {
- httpStatus :: Int
- trackerArn :: Text
- trackerName :: Text
- updateTime :: POSIX
- newUpdateTrackerResponse :: Int -> Text -> Text -> UTCTime -> UpdateTrackerResponse
- updateTrackerResponse_httpStatus :: Lens' UpdateTrackerResponse Int
- updateTrackerResponse_trackerArn :: Lens' UpdateTrackerResponse Text
- updateTrackerResponse_trackerName :: Lens' UpdateTrackerResponse Text
- updateTrackerResponse_updateTime :: Lens' UpdateTrackerResponse UTCTime
Creating a Request
data UpdateTracker Source #
See: newUpdateTracker
smart constructor.
UpdateTracker' | |
|
Instances
Create a value of UpdateTracker
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:pricingPlan:UpdateTracker'
, updateTracker_pricingPlan
- Updates the pricing plan for the tracker resource.
For more information about each pricing plan option restrictions, see Amazon Location Service pricing.
$sel:pricingPlanDataSource:UpdateTracker'
, updateTracker_pricingPlanDataSource
- Updates the data provider for the tracker resource.
A required value for the following pricing plans: MobileAssetTracking
|
MobileAssetManagement
For more information about data providers and pricing plans, see the Amazon Location Service product page
This can only be updated when updating the PricingPlan
in the same
request.
Amazon Location Service uses PricingPlanDataSource
to calculate
billing for your tracker resource. Your data won't be shared with the
data provider, and will remain in your AWS account and Region unless you
move it.
$sel:description:UpdateTracker'
, updateTracker_description
- Updates the description for the tracker resource.
$sel:positionFiltering:UpdateTracker'
, updateTracker_positionFiltering
- Updates the position filtering for the tracker resource.
Valid values:
TimeBased
- Location updates are evaluated against linked geofence collections, but not every location update is stored. If your update frequency is more often than 30 seconds, only one update per 30 seconds is stored for each unique device ID.DistanceBased
- If the device has moved less than 30 m (98.4 ft), location updates are ignored. Location updates within this distance are neither evaluated against linked geofence collections, nor stored. This helps control costs by reducing the number of geofence evaluations and device positions to retrieve. Distance-based filtering can also reduce the jitter effect when displaying device trajectory on a map.
$sel:trackerName:UpdateTracker'
, updateTracker_trackerName
- The name of the tracker resource to update.
Request Lenses
updateTracker_pricingPlan :: Lens' UpdateTracker (Maybe PricingPlan) Source #
Updates the pricing plan for the tracker resource.
For more information about each pricing plan option restrictions, see Amazon Location Service pricing.
updateTracker_pricingPlanDataSource :: Lens' UpdateTracker (Maybe Text) Source #
Updates the data provider for the tracker resource.
A required value for the following pricing plans: MobileAssetTracking
|
MobileAssetManagement
For more information about data providers and pricing plans, see the Amazon Location Service product page
This can only be updated when updating the PricingPlan
in the same
request.
Amazon Location Service uses PricingPlanDataSource
to calculate
billing for your tracker resource. Your data won't be shared with the
data provider, and will remain in your AWS account and Region unless you
move it.
updateTracker_description :: Lens' UpdateTracker (Maybe Text) Source #
Updates the description for the tracker resource.
updateTracker_positionFiltering :: Lens' UpdateTracker (Maybe PositionFiltering) Source #
Updates the position filtering for the tracker resource.
Valid values:
TimeBased
- Location updates are evaluated against linked geofence collections, but not every location update is stored. If your update frequency is more often than 30 seconds, only one update per 30 seconds is stored for each unique device ID.DistanceBased
- If the device has moved less than 30 m (98.4 ft), location updates are ignored. Location updates within this distance are neither evaluated against linked geofence collections, nor stored. This helps control costs by reducing the number of geofence evaluations and device positions to retrieve. Distance-based filtering can also reduce the jitter effect when displaying device trajectory on a map.
updateTracker_trackerName :: Lens' UpdateTracker Text Source #
The name of the tracker resource to update.
Destructuring the Response
data UpdateTrackerResponse Source #
See: newUpdateTrackerResponse
smart constructor.
UpdateTrackerResponse' | |
|
Instances
newUpdateTrackerResponse Source #
:: Int | |
-> Text | |
-> Text | |
-> UTCTime | |
-> UpdateTrackerResponse |
Create a value of UpdateTrackerResponse
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:UpdateTrackerResponse'
, updateTrackerResponse_httpStatus
- The response's http status code.
$sel:trackerArn:UpdateTrackerResponse'
, updateTrackerResponse_trackerArn
- The Amazon Resource Name (ARN) of the updated tracker resource. Used to
specify a resource across AWS.
- Format example:
arn:aws:geo:region:account-id:tracker/ExampleTracker
$sel:trackerName:UpdateTracker'
, updateTrackerResponse_trackerName
- The name of the updated tracker resource.
$sel:updateTime:UpdateTrackerResponse'
, updateTrackerResponse_updateTime
- The timestamp for when the tracker resource was last updated in
ISO 8601
format: YYYY-MM-DDThh:mm:ss.sssZ
.
Response Lenses
updateTrackerResponse_httpStatus :: Lens' UpdateTrackerResponse Int Source #
The response's http status code.
updateTrackerResponse_trackerArn :: Lens' UpdateTrackerResponse Text Source #
The Amazon Resource Name (ARN) of the updated tracker resource. Used to specify a resource across AWS.
- Format example:
arn:aws:geo:region:account-id:tracker/ExampleTracker
updateTrackerResponse_trackerName :: Lens' UpdateTrackerResponse Text Source #
The name of the updated tracker resource.
updateTrackerResponse_updateTime :: Lens' UpdateTrackerResponse UTCTime Source #
The timestamp for when the tracker resource was last updated in
ISO 8601
format: YYYY-MM-DDThh:mm:ss.sssZ
.