Skip to content

Commit b53eff4

Browse files
author
Lucas McDonald
committed
sync
1 parent 9eb9901 commit b53eff4

File tree

1 file changed

+20
-19
lines changed
  • DynamoDbEncryption/runtimes/python/src/aws_dbesdk_dynamodb/encrypted

1 file changed

+20
-19
lines changed

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

Lines changed: 20 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -106,11 +106,11 @@ def put_item(self, **kwargs) -> dict[str, Any]:
106106
https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/dynamodb/client/put_item.html
107107
108108
Args:
109-
**kwargs: Keyword arguments to pass to the operation. This matches the boto3 ``put_item`` request syntax.
110-
The value in ``"Item"`` will be encrypted locally before being written to DynamoDB.
109+
**kwargs: Keyword arguments to pass to the operation. This matches the boto3 client ``put_item`` request
110+
syntax. The value in ``"Item"`` will be encrypted locally before being written to DynamoDB.
111111
112112
Returns:
113-
dict: The response from DynamoDB. This matches the boto3 ``put_item`` response syntax.
113+
dict: The response from DynamoDB. This matches the boto3 client ``put_item`` response syntax.
114114
115115
"""
116116
return self._client_operation_logic(
@@ -135,10 +135,11 @@ def get_item(self, **kwargs) -> dict[str, Any]:
135135
https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/dynamodb/client/get_item.html
136136
137137
Args:
138-
**kwargs: Keyword arguments to pass to the operation. This matches the boto3 ``get_item`` request syntax.
138+
**kwargs: Keyword arguments to pass to the operation. This matches the boto3 client ``get_item`` request
139+
syntax.
139140
140141
Returns:
141-
dict: The response from DynamoDB. This matches the boto3 ``get_item`` response syntax.
142+
dict: The response from DynamoDB. This matches the boto3 client ``get_item`` response syntax.
142143
The value in ``"Item"`` field be decrypted locally after being read from DynamoDB.
143144
144145
"""
@@ -159,16 +160,16 @@ def query(self, **kwargs) -> dict[str, Any]:
159160
"""
160161
Query items from a table or index. Decrypts any returned items.
161162
162-
The parameters and return value match the boto3 DynamoDB query API:
163+
The input and output syntaxes match those for the boto3 DynamoDB client ``query`` API:
163164
164165
https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/dynamodb/client/query.html
165166
166167
Args:
167168
**kwargs: Keyword arguments to pass to the operation. These match the boto3 query API parameters.
168169
169170
Returns:
170-
dict: The response from DynamoDB. This matches the boto3 query API response.
171-
The "Items" field will be decrypted locally after being read from DynamoDB.
171+
dict: The response from DynamoDB. This matches the boto3 client ``query`` API response.
172+
The ``"Items"`` field will be decrypted locally after being read from DynamoDB.
172173
173174
"""
174175
return self._client_operation_logic(
@@ -193,10 +194,10 @@ def scan(self, **kwargs) -> dict[str, Any]:
193194
https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/dynamodb/client/scan.html
194195
195196
Args:
196-
**kwargs: Keyword arguments to pass to the operation. This matches the boto3 ``scan`` request syntax.
197+
**kwargs: Keyword arguments to pass to the operation. This matches the boto3 client ``scan`` request syntax.
197198
198199
Returns:
199-
dict: The response from DynamoDB. This matches the boto3 ``scan`` response syntax.
200+
dict: The response from DynamoDB. This matches the boto3 client ``scan`` response syntax.
200201
The values in ``"Items"`` will be decrypted locally after being read from DynamoDB.
201202
202203
"""
@@ -224,12 +225,12 @@ def batch_write_item(self, **kwargs) -> dict[str, Any]:
224225
https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/dynamodb/client/batch_write_item.html
225226
226227
Args:
227-
**kwargs: Keyword arguments to pass to the operation. This matches the boto3 ``batch_write_item``
228+
**kwargs: Keyword arguments to pass to the operation. This matches the boto3 client ``batch_write_item``
228229
request syntax. Items in ``"PutRequest"`` values in the ``"RequestItems"`` argument will be encrypted
229230
locally before being written to DynamoDB.
230231
231232
Returns:
232-
dict: The response from DynamoDB. This matches the boto3 ``batch_write_item`` response syntax.
233+
dict: The response from DynamoDB. This matches the boto3 client ``batch_write_item`` response syntax.
233234
234235
"""
235236
return self._client_operation_logic(
@@ -258,7 +259,7 @@ def batch_get_item(self, **kwargs) -> dict[str, Any]:
258259
request syntax.
259260
260261
Returns:
261-
dict: The response from DynamoDB. This matches the boto3 ``batch_get_item`` response syntax.
262+
dict: The response from DynamoDB. This matches the boto3 client ``batch_get_item`` response syntax.
262263
The values in ``"Responses"`` will be decrypted locally after being read from DynamoDB.
263264
264265
"""
@@ -284,11 +285,11 @@ def transact_get_items(self, **kwargs) -> dict[str, Any]:
284285
https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/dynamodb/client/transact_get_items.html
285286
286287
Args:
287-
**kwargs: Keyword arguments to pass to the operation. This matches the boto3 ``transact_get_items``
288+
**kwargs: Keyword arguments to pass to the operation. This matches the boto3 client ``transact_get_items``
288289
request syntax.
289290
290291
Returns:
291-
dict: The response from DynamoDB. This matches the boto3 ``transact_get_items`` response syntax.
292+
dict: The response from DynamoDB. This matches the boto3 client ``transact_get_items`` response syntax.
292293
293294
"""
294295
return self._client_operation_logic(
@@ -310,17 +311,17 @@ def transact_write_items(self, **kwargs) -> dict[str, Any]:
310311
311312
For put operations, encrypts items before writing.
312313
313-
The input and output syntaxes match those for the boto3 DynamoDB ``transact_write_items`` API:
314+
The input and output syntaxes match those for the boto3 DynamoDB client ``transact_write_items`` API:
314315
315316
https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/dynamodb/client/transact_write_items.html
316317
317318
Args:
318-
**kwargs: Keyword arguments to pass to the operation. This matches the boto3 ``transact_write_items``
319+
**kwargs: Keyword arguments to pass to the operation. This matches the boto3 client ``transact_write_items``
319320
request syntax. Any ``"PutRequest"`` values in the ``"TransactItems"`` argument will be encrypted
320321
locally before being written to DynamoDB.
321322
322323
Returns:
323-
dict: The response from DynamoDB. This matches the boto3 ``transact_write_items`` response syntax.
324+
dict: The response from DynamoDB. This matches the boto3 client ``transact_write_items`` response syntax.
324325
325326
"""
326327
return self._client_operation_logic(
@@ -431,7 +432,7 @@ def _client_operation_logic(
431432
transformed_request = input_transform_method(input_transform_shape(sdk_input=sdk_input)).transformed_input
432433

433434
# If _expect_standard_dictionaries is true, the boto3 client expects items to be standard dictionaries,
434-
# and needs to convert the DDB-JSON to a standard dictionary before passing the request to the boto3 client.
435+
# and need to be converted from DDB-JSON to a standard dictionary before being passed to the boto3 client.
435436
if self._expect_standard_dictionaries:
436437
transformed_request = input_item_to_dict_transform_method(transformed_request)
437438

0 commit comments

Comments
 (0)