ensure you have an updated version of the CLI or the AWS SDK in case of Lambda function. The
BatchGetAssetPropertyValueHistory has been introduced in v 2.5.8 of aws cli v2 (https://github.com/aws/aws-cli/blob/4fd94d871f109c551f4b23425c29c76fcf865615/CHANGELOG.rst#L529).
I assume you are using an AWS CLI version which does not support the newer BatchGet APIs. Try to use the most current AWS CLI version. You can find in the changelog from which version onwards the BatchGet APIs are supported.
The Lambda environment seems not to include an AWS SDK version which supports the BatchGet APIs. You can add a newer SDK version to your Lambda function. Either packaged with your Lambda function code or in case multiple functions use the newer APIs you can create a Lambda layer containing a current SDK version.
Invoking Lambda or External API from within a AWS Glue Jobasked 3 months ago
Call Third party API call from Amplify Lambdaasked 23 days ago
When to invoke a lambda directly or via API Gatewayasked a year ago
API call from lambda function to AWS.SSM.putParameter() returns success, but leaves SSM.parameters unchangedAccepted Answerasked 4 months ago
FleetIQ Cannot update Game Server status from UTILIZED to AVAILABLE from CLI and SDKAccepted Answerasked 3 months ago
Is "BatchGetAssetPropertyValueHistory" AWS SiteWise API still available for use (either in lambda or cli)?Accepted Answerasked 4 months ago
How do I know when a new Metric value is available for a SiteWise Asset?asked 3 years ago
Data doesn't show up in SiteWise Edge but shows up in AWS Sitewise from REST APIasked 2 months ago
Calling Private API from Lambda in VPCAccepted Answerasked 2 years ago
Trying to call API with a list of URLs but Lambda is timing outasked 6 months ago