Skip to content

Commit 8026da0

Browse files
m
1 parent 3bbe241 commit 8026da0

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

DynamoDbEncryption/runtimes/python/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,5 @@ aws-cryptographic-material-providers = { path = "../../../submodules/MaterialPro
1818
pytest = "^7.4.0"
1919

2020
# [build-system]
21-
# requires = ["poetry-core"]
21+
# requires = ["poetry-core<2.0.0"]
2222
# build-backend = "poetry.core.masonry.api"

DynamoDbEncryption/runtimes/python/src/aws_database_encryption_sdk/encryptor/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ def __init__(
5555
)
5656

5757
def put_item(self, **kwargs):
58-
# TODO: refactor shared logic (DDB/Python conversions)
58+
# TODO: refactor shared logic (DDB/Python conversions, client/table)
5959
if self._expect_standard_dictionaries:
6060
dynamodb_item = dict_to_ddb(kwargs["Item"])
6161
dynamodb_input = kwargs

Examples/runtimes/python/DynamoDBEncryption/src/encrypted_client.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,9 +108,14 @@
108108

109109
put_item_output = encrypted_client.put_item(**put_item)
110110

111+
item_to_get = {
112+
"partition_key": "LucasPythonTesting",
113+
"sort_key": 1234,
114+
}
115+
111116
get_item = {
112117
"TableName": ddb_table_name,
113-
"Key": item_to_encrypt
118+
"Key": item_to_get
114119
}
115120

116121
get_item_output = encrypted_client.get_item(**get_item)

0 commit comments

Comments
 (0)