@@ -47,18 +47,18 @@ def encrypt_python_item(
47
47
Encrypt a Python dictionary.
48
48
49
49
This method will transform the Python dictionary into DynamoDB JSON,
50
- encrypt the DynamoDB JSON,
51
- transform the encrypted DynamoDB JSON into an encrypted Python dictionary,
52
- then return the encrypted Python dictionary.
50
+ encrypt the DynamoDB JSON,
51
+ transform the encrypted DynamoDB JSON into an encrypted Python dictionary,
52
+ then return the encrypted Python dictionary.
53
53
54
54
See the boto3 documentation for details on Python/DynamoDB type transfomations:
55
55
https://boto3.amazonaws.com/v1/documentation/api/latest/_modules/boto3/dynamodb/types.html
56
56
57
57
boto3 DynamoDB Tables and Resources expect items formatted as native Python dictionaries.
58
58
Use this method to encrypt an item if you intend to pass the encrypted item
59
- to a boto3 DynamoDB Table or Resource interface to store it.
59
+ to a boto3 DynamoDB Table or Resource interface to store it.
60
60
(Alternatively, you can use this library's EncryptedTable or EncryptedResource interfaces
61
- to transparently encrypt items without an intermediary ItemEncryptor.)
61
+ to transparently encrypt items without an intermediary ItemEncryptor.)
62
62
63
63
Args:
64
64
plaintext_dict_item (dict[str, Any]): A standard Python dictionary.
@@ -68,7 +68,7 @@ def encrypt_python_item(
68
68
- `encrypted_item` (dict[str, Any]): The encrypted Python dictionary.
69
69
**Note:** The item was encrypted as DynamoDB JSON, then transformed to a Python dictionary.
70
70
- `parsed_header` (Optional[ParsedHeader]): The encrypted DynamoDB item's header (parsed
71
- `aws_dbe_head` value).
71
+ `aws_dbe_head` value).
72
72
73
73
Example:
74
74
>>> plaintext_item = {
0 commit comments