@@ -54,13 +54,15 @@ public static async Task<bool> MigrationStep2Example(string kmsKeyId, string ddb
5454
5555 // 3. Put an item into our table using the above client.
5656 // This item will be encrypted due to our PlaintextOverride configuration.
57+ string partitionKeyName = "partition_key" ;
58+ string sortKeyName = "sort_key" ;
5759 string encryptedAndSignedValue = MigrationUtils . ENCRYPTED_AND_SIGNED_VALUE ;
5860 string signOnlyValue = MigrationUtils . SIGN_ONLY_VALUE ;
5961 string doNothingValue = MigrationUtils . DO_NOTHING_VALUE ;
6062 var item = new Dictionary < string , AttributeValue >
6163 {
62- [ "partition_key" ] = new AttributeValue { S = partitionKeyValue } ,
63- [ "sort_key" ] = new AttributeValue { N = sortKeyWriteValue } ,
64+ [ partitionKeyName ] = new AttributeValue { S = partitionKeyValue } ,
65+ [ sortKeyName ] = new AttributeValue { N = sortKeyWriteValue } ,
6466 [ "attribute1" ] = new AttributeValue { S = encryptedAndSignedValue } ,
6567 [ "attribute2" ] = new AttributeValue { S = signOnlyValue } ,
6668 [ "attribute3" ] = new AttributeValue { S = doNothingValue }
@@ -83,8 +85,8 @@ public static async Task<bool> MigrationStep2Example(string kmsKeyId, string ddb
8385 // and surfaced as a plaintext item.
8486 var key = new Dictionary < string , AttributeValue >
8587 {
86- [ "partition_key" ] = new AttributeValue { S = partitionKeyValue } ,
87- [ "sort_key" ] = new AttributeValue { N = sortKeyReadValue }
88+ [ partitionKeyName ] = new AttributeValue { S = partitionKeyValue } ,
89+ [ sortKeyName ] = new AttributeValue { N = sortKeyReadValue }
8890 } ;
8991
9092 var getRequest = new GetItemRequest
0 commit comments