@@ -44,23 +44,25 @@ class EncryptedClient(EncryptedBotoInterface):
44
44
drop-in replacement that transparently handles encryption and decryption of items.
45
45
46
46
The API matches the standard boto3 DynamoDB client interface:
47
+
47
48
https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/dynamodb.html#client
48
49
49
50
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
58
51
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`.
60
62
61
63
Any other operations on this class will defer to the underlying boto3 DynamoDB client's implementation.
62
64
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.
64
66
"""
65
67
66
68
_client : botocore .client .BaseClient
@@ -76,7 +78,7 @@ def __init__(
76
78
expect_standard_dictionaries : bool | None = False ,
77
79
):
78
80
"""
79
- Create an EncryptedClient object.
81
+ Create an ` EncryptedClient` object.
80
82
81
83
Args:
82
84
client (botocore.client.BaseClient): Initialized boto3 DynamoDB client
@@ -100,11 +102,12 @@ def put_item(self, **kwargs) -> dict[str, Any]:
100
102
Put a single item to a table. Encrypts the item before writing to DynamoDB.
101
103
102
104
The parameters and return value match the boto3 DynamoDB put_item API:
105
+
103
106
https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/dynamodb/client/put_item.html
104
107
105
108
Args:
106
109
**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.
108
111
109
112
Returns:
110
113
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]:
135
138
136
139
Returns:
137
140
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.
139
142
140
143
"""
141
144
return self ._client_operation_logic (
0 commit comments