@@ -45,13 +45,15 @@ public static async Task<bool> MigrationStep1Example(string kmsKeyId, string ddb
4545
4646 // 2. Put an item into our table using the above client.
4747 // This item will be stored in plaintext due to our PlaintextOverride configuration.
48+ string partitionKeyName = "partition_key" ;
49+ string sortKeyName = "sort_key" ;
4850 string encryptedAndSignedValue = MigrationUtils . ENCRYPTED_AND_SIGNED_VALUE ;
4951 string signOnlyValue = MigrationUtils . SIGN_ONLY_VALUE ;
5052 string doNothingValue = MigrationUtils . DO_NOTHING_VALUE ;
5153 var item = new Dictionary < string , AttributeValue >
5254 {
53- [ "partition_key" ] = new AttributeValue { S = partitionKeyValue } ,
54- [ "sort_key" ] = new AttributeValue { N = sortKeyWriteValue } ,
55+ [ partitionKeyName ] = new AttributeValue { S = partitionKeyValue } ,
56+ [ sortKeyName ] = new AttributeValue { N = sortKeyWriteValue } ,
5557 [ "attribute1" ] = new AttributeValue { S = encryptedAndSignedValue } ,
5658 [ "attribute2" ] = new AttributeValue { S = signOnlyValue } ,
5759 [ "attribute3" ] = new AttributeValue { S = doNothingValue }
@@ -74,8 +76,8 @@ public static async Task<bool> MigrationStep1Example(string kmsKeyId, string ddb
7476 // and surfaced as a plaintext item.
7577 var key = new Dictionary < string , AttributeValue >
7678 {
77- [ "partition_key" ] = new AttributeValue { S = partitionKeyValue } ,
78- [ "sort_key" ] = new AttributeValue { N = sortKeyReadValue }
79+ [ partitionKeyName ] = new AttributeValue { S = partitionKeyValue } ,
80+ [ sortKeyName ] = new AttributeValue { N = sortKeyReadValue }
7981 } ;
8082
8183 var getRequest = new GetItemRequest
0 commit comments