@@ -54,13 +54,15 @@ public static async Task<bool> MigrationStep2Example(string kmsKeyId, string ddb
54
54
55
55
// 3. Put an item into our table using the above client.
56
56
// This item will be encrypted due to our PlaintextOverride configuration.
57
+ string partitionKeyName = "partition_key" ;
58
+ string sortKeyName = "sort_key" ;
57
59
string encryptedAndSignedValue = MigrationUtils . ENCRYPTED_AND_SIGNED_VALUE ;
58
60
string signOnlyValue = MigrationUtils . SIGN_ONLY_VALUE ;
59
61
string doNothingValue = MigrationUtils . DO_NOTHING_VALUE ;
60
62
var item = new Dictionary < string , AttributeValue >
61
63
{
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 } ,
64
66
[ "attribute1" ] = new AttributeValue { S = encryptedAndSignedValue } ,
65
67
[ "attribute2" ] = new AttributeValue { S = signOnlyValue } ,
66
68
[ "attribute3" ] = new AttributeValue { S = doNothingValue }
@@ -83,8 +85,8 @@ public static async Task<bool> MigrationStep2Example(string kmsKeyId, string ddb
83
85
// and surfaced as a plaintext item.
84
86
var key = new Dictionary < string , AttributeValue >
85
87
{
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 }
88
90
} ;
89
91
90
92
var getRequest = new GetItemRequest
0 commit comments