curena
9/30/2017 - 6:22 PM

Boto3 DynamoDB update response

JSON response from Boto3 after updating a DynamoDB item. "Attributes" will contain updated attributes if UPDATED_NEW is used as ReturnValues in the request.

{
    'Attributes': {
        'string': {
            'S': 'string',
            'N': 'string',
            'B': b'bytes',
            'SS': [
                'string',
            ],
            'NS': [
                'string',
            ],
            'BS': [
                b'bytes',
            ],
            'M': {
                'string': {'... recursive ...'}
            },
            'L': [
                {'... recursive ...'},
            ],
            'NULL': True|False,
            'BOOL': True|False
        }
    }
}