- Mais recentes
- Mais votos
- Mais comentários
Hi, to explain little bit more into the detail, if a property is marked as IsStoredExternally
means TwinMaker will only keep the property schema but not the value. So to access the property value you'll need to invoke the unified data access APIs with a defined connector.
For time-series property, you can use GetPropertyValueHistory API to access the property value, you need to define dataReader
connector and while querying the property value in runtime, TwinMaker will forward the request to your connector to resolve it.
For non-time-series property, you can use GetPropertyValue API to access, and as you already found out, you need to define attributePropertyValueReaderByEntity
connector for that.
We'll continue polishing our documentation to make it clear. Let us know if you are interested in more details on the topic.
Best,
I was able to fetch non-timeseries properties by specifying a function under a different name than dataReader
.
So, instead of
"functions": {
"dataReader": {
"implementedBy": {
"lambda": {
"arn": "arn:aws:lambda:us-east-1:<account>:function:RoboRunnerWorkerInfo"
}
}
}
for non-timeseries properties, it should be
"functions": {
"attributePropertyValueReaderByEntity": {
"implementedBy": {
"lambda": {
"arn": "arn:aws:lambda:us-east-1:<account>:function:RoboRunnerWorkerInfo"
}
}
}
Which is absolutely nowhere in the documentation. I arrived at it by sifting through github and finding https://github.com/aws-samples/aws-iot-twinmaker-samples/blob/main/src/modules/s3/component-types/s3_component_type.json
Are you unblocked?
That really should have been a comment, not an answer
Conteúdo relevante
- AWS OFICIALAtualizada há 3 anos
- AWS OFICIALAtualizada há um ano
- AWS OFICIALAtualizada há 2 anos
Thank for your reply! And yes, I arrived at the same conclusion myself. it was just a lot of hours spent looking around until I stumbled on the right function key/name to use (as it wasn't anywhere in the documentation).
I'm having a slightly different problem now with regards to components that have multiple values that are of the list datatype, and it has to do with the grafana integration. I've posted the question here: https://repost.aws/questions/QUmLmOo_qLSsWJnl9LMTUSpw/io-t-twin-maker-and-grafana-integration-where-component-has-multiple-list-properties