Skip to content

Commit c8503ac

Browse files
author
Lucas McDonald
committedMay 2, 2025·
m
1 parent e86604d commit c8503ac

File tree

4 files changed

+19
-3
lines changed

4 files changed

+19
-3
lines changed
 

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

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,7 @@ def put_item(self, **kwargs) -> dict[str, Any]:
104104
105105
Args:
106106
**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.
107108
108109
Returns:
109110
dict: The response from DynamoDB. This matches the boto3 put_item API response.
@@ -134,6 +135,7 @@ def get_item(self, **kwargs) -> dict[str, Any]:
134135
135136
Returns:
136137
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.
137139
138140
"""
139141
return self._client_operation_logic(
@@ -161,6 +163,7 @@ def query(self, **kwargs) -> dict[str, Any]:
161163
162164
Returns:
163165
dict: The response from DynamoDB. This matches the boto3 query API response.
166+
The "Items" field will be decrypted locally after being read from DynamoDB.
164167
165168
"""
166169
return self._client_operation_logic(
@@ -188,6 +191,7 @@ def scan(self, **kwargs) -> dict[str, Any]:
188191
189192
Returns:
190193
dict: The response from DynamoDB. This matches the boto3 scan API response.
194+
The "Items" field will be decrypted locally after being read from DynamoDB.
191195
192196
"""
193197
return self._client_operation_logic(
@@ -214,6 +218,8 @@ def batch_write_item(self, **kwargs) -> dict[str, Any]:
214218
215219
Args:
216220
**kwargs: Keyword arguments to pass to the operation. These match the boto3 batch_write_item API parameters.
221+
Any put operations in the "RequestItems" argument will be encrypted locally
222+
before being written to DynamoDB.
217223
218224
Returns:
219225
dict: The response from DynamoDB. This matches the boto3 batch_write_item API response.
@@ -244,6 +250,7 @@ def batch_get_item(self, **kwargs) -> dict[str, Any]:
244250
245251
Returns:
246252
dict: The response from DynamoDB. This matches the boto3 batch_get_item API response.
253+
The "Responses" field will be decrypted locally after being read from DynamoDB.
247254
248255
"""
249256
return self._client_operation_logic(
@@ -272,7 +279,7 @@ def transact_get_items(self, **kwargs) -> dict[str, Any]:
272279
273280
Returns:
274281
dict: The response from DynamoDB. This matches the boto3 transact_get_items API response.
275-
282+
276283
"""
277284
return self._client_operation_logic(
278285
operation_input=kwargs,
@@ -298,7 +305,8 @@ def transact_write_items(self, **kwargs) -> dict[str, Any]:
298305
299306
Args:
300307
**kwargs: Keyword arguments to pass to the operation. These match the boto3 transact_write_items API
301-
parameters.
308+
parameters. Any put operations in the "TransactItems" argument will be encrypted locally
309+
before being written to DynamoDB.
302310
303311
Returns:
304312
dict: The response from DynamoDB. This matches the boto3 transact_write_items API response.

‎DynamoDbEncryption/runtimes/python/src/aws_dbesdk_dynamodb/encrypted/paginator.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ def paginate(self, **kwargs) -> Generator[dict, None, None]:
7878
7979
Returns:
8080
Generator[dict, None, None]: A generator yielding pages as dictionaries.
81+
The items in the pages will be decrypted locally after being read from DynamoDB.
8182
8283
"""
8384
if self._paginator._model.name == "Query":

‎DynamoDbEncryption/runtimes/python/src/aws_dbesdk_dynamodb/encrypted/resource.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,7 @@ def batch_get_item(self, **kwargs):
194194
195195
Returns:
196196
dict: The response from DynamoDB. This matches the boto3 batch_get_item API response.
197+
The "Responses" field will be decrypted locally after being read from DynamoDB.
197198
198199
"""
199200
return self._resource_operation_logic(
@@ -220,6 +221,8 @@ def batch_write_item(self, **kwargs):
220221
221222
Args:
222223
**kwargs: Keyword arguments to pass to the operation. These match the boto3 batch_write_item API parameters.
224+
Any put operations in the "RequestItems" argument will be encrypted locally
225+
before being written to DynamoDB.
223226
224227
Returns:
225228
dict: The response from DynamoDB. This matches the boto3 batch_write_item API response.

‎DynamoDbEncryption/runtimes/python/src/aws_dbesdk_dynamodb/encrypted/table.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ def put_item(self, **kwargs) -> dict[str, Any]:
8484
8585
Args:
8686
**kwargs: Keyword arguments to pass to the operation. These match the boto3 put_item API parameters.
87+
The "Item" field will be encrypted locally before being written to DynamoDB.
8788
8889
Returns:
8990
dict: The response from DynamoDB. This matches the boto3 put_item API response.
@@ -114,6 +115,7 @@ def get_item(self, **kwargs) -> dict[str, Any]:
114115
115116
Returns:
116117
dict: The response from DynamoDB. This matches the boto3 get_item API response.
118+
The "Item" field will be decrypted locally after being read from DynamoDB.
117119
118120
"""
119121
return self._table_operation_logic(
@@ -141,6 +143,7 @@ def query(self, **kwargs) -> dict[str, Any]:
141143
142144
Returns:
143145
dict: The response from DynamoDB. This matches the boto3 query API response.
146+
The "Items" field will be decrypted locally after being read from DynamoDB.
144147
145148
"""
146149
return self._table_operation_logic(
@@ -168,7 +171,8 @@ def scan(self, **kwargs) -> dict[str, Any]:
168171
169172
Returns:
170173
dict: The response from DynamoDB. This matches the boto3 scan API response.
171-
174+
The "Items" field will be decrypted locally after being read from DynamoDB.
175+
172176
"""
173177
return self._table_operation_logic(
174178
operation_input=kwargs,

0 commit comments

Comments
 (0)
Please sign in to comment.