Skip to content

Commit a165750

Browse files
author
Lucas McDonald
committed
m
1 parent 3c4aef8 commit a165750

File tree

2 files changed

+8
-7
lines changed
  • DynamoDbEncryption/runtimes/python

2 files changed

+8
-7
lines changed

DynamoDbEncryption/runtimes/python/docs/index.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@ Modules
1717
aws_dbesdk_dynamodb.encrypted.paginator
1818
aws_dbesdk_dynamodb.smithygenerated.aws_cryptography_dbencryptionsdk_dynamodb.models
1919
aws_dbesdk_dynamodb.smithygenerated.aws_cryptography_dbencryptionsdk_structuredencryption.models
20-
20+
aws_dbesdk_dynamodb.smithygenerated.aws_cryptography_dbencryptionsdk_dynamodb_itemencryptor.models
21+
aws_dbesdk_dynamodb.smithygenerated.aws_cryptography_dbencryptionsdk_dynamodb_itemencryptor.config
2122

2223
.. include:: ../../../../CHANGELOG.md
2324
:parser: myst_parser.docutils_

DynamoDbEncryption/runtimes/python/src/aws_dbesdk_dynamodb/encrypted/item.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -47,18 +47,18 @@ def encrypt_python_item(
4747
Encrypt a Python dictionary.
4848
4949
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.
5353
5454
See the boto3 documentation for details on Python/DynamoDB type transfomations:
5555
https://boto3.amazonaws.com/v1/documentation/api/latest/_modules/boto3/dynamodb/types.html
5656
5757
boto3 DynamoDB Tables and Resources expect items formatted as native Python dictionaries.
5858
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.
6060
(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.)
6262
6363
Args:
6464
plaintext_dict_item (dict[str, Any]): A standard Python dictionary.
@@ -68,7 +68,7 @@ def encrypt_python_item(
6868
- `encrypted_item` (dict[str, Any]): The encrypted Python dictionary.
6969
**Note:** The item was encrypted as DynamoDB JSON, then transformed to a Python dictionary.
7070
- `parsed_header` (Optional[ParsedHeader]): The encrypted DynamoDB item's header (parsed
71-
`aws_dbe_head` value).
71+
`aws_dbe_head` value).
7272
7373
Example:
7474
>>> plaintext_item = {

0 commit comments

Comments
 (0)