Skip to content

Commit 9fca957

Browse files
author
Lucas McDonald
committed
m
1 parent bffe39a commit 9fca957

File tree

2 files changed

+17
-16
lines changed

2 files changed

+17
-16
lines changed

DynamoDbEncryption/runtimes/python/README.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,10 @@
11
# Python AWS Database Encryption SDK for DynamoDB
22

33
[![MPL-python-tests](https://github.com/aws/aws-database-encryption-sdk-dynamodb/actions/workflows/push.yml/badge.svg)](https://github.com/aws/aws-database-encryption-sdk-dynamodb/actions/workflows/push.yml)
4-
54
[![Code style: black](https://img.shields.io/badge/code_style-black-000000.svg)](https://github.com/ambv/black)
6-
75
[![Documentation Status](https://readthedocs.org/projects/aws-dbesdk-dynamodb-python/badge/)](https://aws-dbesdk-dynamodb-python.readthedocs.io/en/latest/)
86

9-
These are the docs for the Python AWS Database Encryption SDK for DynamoDB.
7+
Documentation for the Python AWS Database Encryption SDK for DynamoDB.
108

119
The latest full documentation can be found at [Read the Docs](https://aws-dbesdk-dynamodb-python.readthedocs.io/en/latest/).
1210

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

Lines changed: 16 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -44,23 +44,25 @@ class EncryptedClient(EncryptedBotoInterface):
4444
drop-in replacement that transparently handles encryption and decryption of items.
4545
4646
The API matches the standard boto3 DynamoDB client interface:
47+
4748
https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/dynamodb.html#client
4849
4950
This class will encrypt/decrypt items for the following operations:
50-
* put_item
51-
* get_item
52-
* query
53-
* scan
54-
* batch_write_item
55-
* batch_get_item
56-
* transact_get_items
57-
* transact_write_items
5851
59-
The update_item operation is not currently supported. Calling this operation will raise NotImplementedError.
52+
* `put_item`
53+
* `get_item`
54+
* `query`
55+
* `scan`
56+
* `batch_write_item`
57+
* `batch_get_item`
58+
* `transact_get_items`
59+
* `transact_write_items`
60+
61+
The `update_item` operation is not currently supported. Calling this operation will raise `NotImplementedError`.
6062
6163
Any other operations on this class will defer to the underlying boto3 DynamoDB client's implementation.
6264
63-
EncryptedClient can also return an EncryptedPaginator for transparent decryption of paginated results.
65+
`EncryptedClient` can also return an `EncryptedPaginator` for transparent decryption of paginated results.
6466
"""
6567

6668
_client: botocore.client.BaseClient
@@ -76,7 +78,7 @@ def __init__(
7678
expect_standard_dictionaries: bool | None = False,
7779
):
7880
"""
79-
Create an EncryptedClient object.
81+
Create an `EncryptedClient` object.
8082
8183
Args:
8284
client (botocore.client.BaseClient): Initialized boto3 DynamoDB client
@@ -100,11 +102,12 @@ def put_item(self, **kwargs) -> dict[str, Any]:
100102
Put a single item to a table. Encrypts the item before writing to DynamoDB.
101103
102104
The parameters and return value match the boto3 DynamoDB put_item API:
105+
103106
https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/dynamodb/client/put_item.html
104107
105108
Args:
106109
**kwargs: Keyword arguments to pass to the operation. These match the boto3 put_item API parameters.
107-
The "Item" argument will be encrypted locally before being written to DynamoDB.
110+
The "Item" argument will be encrypted locally before being written to DynamoDB.
108111
109112
Returns:
110113
dict: The response from DynamoDB. This matches the boto3 put_item API response.
@@ -135,7 +138,7 @@ def get_item(self, **kwargs) -> dict[str, Any]:
135138
136139
Returns:
137140
dict: The response from DynamoDB. This matches the boto3 get_item API response.
138-
The "Item" field will be decrypted locally after being read from DynamoDB.
141+
The "Item" field will be decrypted locally after being read from DynamoDB.
139142
140143
"""
141144
return self._client_operation_logic(

0 commit comments

Comments
 (0)