dynamodb_encryption_sdk.internal.formatting.serialize.attribute

Tooling for serializing attributes.

Warning

No guarantee is provided on the modules and APIs within this namespace staying consistent. Directly reference at your own risk.

Functions

serialize_attribute(attribute)

Serializes a raw attribute to a byte string as defined for the DynamoDB Client-Side Encryption Standard.

dynamodb_encryption_sdk.internal.formatting.serialize.attribute.serialize_attribute(attribute: Dict[str, Dict[str, Any]]) bytes[source]

Serializes a raw attribute to a byte string as defined for the DynamoDB Client-Side Encryption Standard.

Parameters

attribute (dict) – Item attribute value

Returns

Serialized attribute

Return type

bytes