def UpdateItem()

in src/s3restore/app.py [0:0]


def UpdateItem(bucket, key, dynamoTable):
    try:
        response = dynamoTable.update_item(
            Key={
                'BucketName': bucket,
                'ObjectKey': key
            },
            UpdateExpression='SET RestoreStatus = :val1',

            ExpressionAttributeValues={
                ':val1': True
            }
        )
        print(response)
        
    except ClientError as e:
        print(e.response['Error']['Message'])