encrypted#
Implement Client Side Encryption Attribute for Unicode, Binary, Numbers and Json data.
- class pynamodb_mate.attributes.encrypted.SymmetricEncryptedAttribute(encryption_key: str, determinative: bool = True, hash_key: bool = False, range_key: bool = False, null: Optional[bool] = None, default: Optional[Callable] = None, default_for_new: Optional[Callable] = None, attr_name: Optional[str] = None, legacy_encoding: bool = False)[source]#
- SymmetricEncryptedAttribute will encrypt your data in binary format
before sending to DynamoDB.
- property cipher: BaseCipher#
- Return type:
SymmtricCipher
- user_serializer(value: Any) bytes[source]#
Implement this method to define how you want to convert your data to binary.
- user_deserializer(value: bytes) Any[source]#
Implement this method to define how you want to recover your data from binary.
- serialize(value: Any) bytes[source]#
Serializes a value for botocore’s DynamoDB client.
For a list of DynamoDB attribute types and their matching botocore Python types, see DynamoDB.Client.get_item API reference.
- deserialize(value: bytes) Any[source]#
Deserializes a value from botocore’s DynamoDB client.
For a list of DynamoDB attribute types and their matching botocore Python types, see DynamoDB.Client.get_item API reference.
- class pynamodb_mate.attributes.encrypted.EncryptedUnicodeAttribute(encryption_key: str, determinative: bool = True, hash_key: bool = False, range_key: bool = False, null: Optional[bool] = None, default: Optional[Callable] = None, default_for_new: Optional[Callable] = None, attr_name: Optional[str] = None, legacy_encoding: bool = False)[source]#
Encrypted Unicode Attribute.
- class pynamodb_mate.attributes.encrypted.EncryptedBinaryAttribute(encryption_key: str, determinative: bool = True, hash_key: bool = False, range_key: bool = False, null: Optional[bool] = None, default: Optional[Callable] = None, default_for_new: Optional[Callable] = None, attr_name: Optional[str] = None, legacy_encoding: bool = False)[source]#
- class pynamodb_mate.attributes.encrypted.EncryptedNumberAttribute(encryption_key: str, determinative: bool = True, hash_key: bool = False, range_key: bool = False, null: Optional[bool] = None, default: Optional[Callable] = None, default_for_new: Optional[Callable] = None, attr_name: Optional[str] = None, legacy_encoding: bool = False)[source]#
Encrypted Number Attribute.
- class pynamodb_mate.attributes.encrypted.EncryptedJsonDictAttribute(encryption_key: str, determinative: bool = True, hash_key: bool = False, range_key: bool = False, null: Optional[bool] = None, default: Optional[Callable] = None, default_for_new: Optional[Callable] = None, attr_name: Optional[str] = None, legacy_encoding: bool = False)[source]#
Encrypted JSON data Attribute.