I execute this code in my local machine.
import boto3
boto3.resource('dynamodb').Table('table_name').get_item(Key={'id': 'id'})
And it returns this.
{'ResponseMetadata': {'RequestId': 'xxxxxxxxxxxxxxxxxxxxxxxxxxx',
'HTTPStatusCode': 200,
'HTTPHeaders': {'server': 'Server',
'date': 'Sat, 29 Aug 2020 08:23:07 GMT',
'content-type': 'application/x-amz-json-1.0',
'content-length': '2',
'connection': 'keep-alive',
'x-amzn-requestid': 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxx',
'x-amz-crc32': 'xxxxxxxxxxxxxxxxxx'},
'RetryAttempts': 0}}
How can I get an item from dynamodb with boto3?