Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import json
- import boto3
- def lambda_handler(event, context):
- dynamodb = boto3.resource("dynamodb")
- table_name = "article"
- article_table = dynamodb.Table(table_name)
- response = article_table.get_item(
- Key=event
- )
- return {
- "status_code": 200,
- "body": response
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement