get_device_position_history
¶
get_device_position_history(
tracker_name: ResourceName,
device_id: Id,
*,
config_overrides: Optional[LocationClientConfig] = None,
next_token: Optional[Token] = None,
start_time_inclusive: Optional[Timestamp] = None,
end_time_exclusive: Optional[Timestamp] = None,
max_results: Optional[int] = None,
) -> GetDevicePositionHistoryResponse
Retrieves the device position history from a tracker resource within a specified range of time.
Device positions are deleted after 30 days.
Parameters:
-
tracker_name(ResourceName) –The tracker resource receiving the request for the device position history.
-
device_id(Id) –The device whose position history you want to retrieve.
-
next_token(Optional[Token], default:None) –The pagination token specifying which page of results to return in the response. If no token is provided, the default page is the first page.
Default value:
null -
start_time_inclusive(Optional[Timestamp], default:None) –Specify the start time for the position history in ISO 8601 format:
YYYY-MM-DDThh:mm:ss.sssZ. By default, the value will be 24 hours prior to the time that the request is made.Requirement:
-
The time specified for
StartTimeInclusivemust be beforeEndTimeExclusive.
-
-
end_time_exclusive(Optional[Timestamp], default:None) –Specify the end time for the position history in ISO 8601 format:
YYYY-MM-DDThh:mm:ss.sssZ. By default, the value will be the time that the request is made.Requirement:
-
The time specified for
EndTimeExclusivemust be after the time forStartTimeInclusive.
-
-
max_results(Optional[int], default:None) –An optional limit for the number of device positions returned in a single call.
Default value:
100
Raises:
-
AccessDeniedException–The request was denied because of insufficient access or permissions. Check with an administrator to verify your permissions.
-
InternalServerException–The request has failed to process because of an unknown server error, exception, or failure.
-
ResourceNotFoundException–The resource that you've entered was not found in your AWS account.
-
ThrottlingException–The request was denied because of request throttling.
-
ValidationException–The input failed to meet the constraints specified by the AWS service.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_location/_services/location.py
4744 4745 4746 4747 4748 4749 4750 4751 4752 4753 4754 4755 4756 4757 4758 4759 4760 4761 4762 4763 4764 4765 4766 4767 4768 4769 4770 4771 4772 4773 4774 4775 4776 4777 4778 4779 4780 4781 4782 4783 4784 4785 4786 4787 4788 4789 4790 4791 4792 4793 4794 4795 4796 4797 4798 4799 4800 4801 4802 4803 4804 4805 4806 4807 4808 4809 4810 4811 4812 4813 4814 4815 4816 4817 4818 4819 4820 4821 4822 4823 4824 4825 4826 4827 4828 4829 4830 4831 4832 4833 4834 4835 | |