your recipe card header background

    Dynamodb - update item

    0

    3

    AWS and boto3 recipes for Python

    Library: boto3

    Shortcut: aws.dynamodb.update_item

    import boto3
    
    dynamodb = boto3.resource('dynamodb')
    table = dynamodb.Table('table')
    table.update_item(
        Key={
            'key1': 'value1',
            'key2': 'value2'
        },
        UpdateExpression='SET key3 = :val1',
        ExpressionAttributeValues={
            ':val1': newvalue
        }
    )
    
    Codiga Logo
    Codiga Hub
    • Rulesets
    • Explore
    • Cookbooks
    • Playground
    soc-2 icon

    We are SOC-2 Compliance Certified

    G2 high performer medal

    Codiga – All rights reserved 2022.