You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Examples/runtimes/java/DynamoDbEncryption/src/main/java/software/amazon/cryptography/examples/BasicPutGetExample.java
+27-18Lines changed: 27 additions & 18 deletions
Original file line number
Diff line number
Diff line change
@@ -26,15 +26,18 @@
26
26
is provided in CLI arguments.
27
27
This table must be configured with the following
28
28
primary key configuration:
29
-
- Partition key is named "partition_key" with type (S)
30
-
- Sort key is named "sort_key" with type (N)
29
+
- Partition key is named `partitionKeyName` with type (S)
30
+
- Sort key is named `sortKeyName` with type (N)
31
31
*/
32
32
publicclassBasicPutGetExample {
33
33
34
34
publicstaticvoidPutItemGetItem(
35
-
StringkmsKeyId,
36
-
StringddbTableName,
37
-
StringPartitionKeyName
35
+
finalStringkmsKeyId,
36
+
finalStringddbTableName,
37
+
finalStringpartitionKeyName,
38
+
finalStringsortKeyName,
39
+
finalStringpartitionKeyValue,
40
+
finalStringsortKeyValue
38
41
) {
39
42
// 1. Create a Keyring. This Keyring will be responsible for protecting the data keys that protect your data.
40
43
// For this example, we will create a AWS KMS Keyring with the AWS KMS Key we want to use.
@@ -57,8 +60,8 @@ public static void PutItemGetItem(
57
60
// - SIGN_ONLY: The attribute not encrypted, but is still included in the signature
58
61
// - DO_NOTHING: The attribute is not encrypted and not included in the signature
Copy file name to clipboardExpand all lines: Examples/runtimes/java/DynamoDbEncryption/src/test/java/software/amazon/cryptography/examples/TestBasicPutGetExample.java
+12-1Lines changed: 12 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -7,10 +7,21 @@ public class TestBasicPutGetExample {
Copy file name to clipboardExpand all lines: Examples/runtimes/java/DynamoDbEncryption/src/test/java/software/amazon/cryptography/examples/TestUtils.java
0 commit comments