Dynamodb - get item

    0

    4

    AWS and boto3 recipes for Python

    Library: boto3

    Shortcut: aws.dynamodb.get_item

    import boto3
    
    dynamodb = boto3.resource('dynamodb')
    table = dynamodb.Table('table')
    response = table.get_item(
      Key={
        'key1': 'value1',
        'key2': 'value2'
      }
    )
    item = response['Item']
    print(item)
    
    Codiga Logo
    Codiga Hub
    • Rulesets
    • Playground
    • Snippets
    • Cookbooks
    Legal
    • Security
    • Privacy Policy
    • Code Privacy
    • Terms of Service
    soc-2 icon

    We are SOC-2 Compliance Certified

    G2 high performer medal

    Codiga – All rights reserved 2022.