1 réponse
- Le plus récent
- Le plus de votes
- La plupart des commentaires
4
Are you Expecting the value and ignore key(attribute)(Key: Value)?
Extract the value from the response
website_value = response.get("Item", {}).get("D12Website", None)
print(website_value)
répondu il y a 2 mois
Contenus pertinents
- demandé il y a un an
- demandé il y a un an
- demandé il y a un an
- AWS OFFICIELA mis à jour il y a 2 ans
- AWS OFFICIELA mis à jour il y a 4 mois
Just to be sure.....First, thanks. Second: this works on the variable response, not call the database table again. Correct?
Yes, The Response Variable Holds the result of the get_item operation which already retrieves the item from dynamodb table, so by extracting value from the response variable you are not making another call to database