@@ -45,13 +45,15 @@ public static async Task<bool> MigrationStep1Example(string kmsKeyId, string ddb
45
45
46
46
// 2. Put an item into our table using the above client.
47
47
// This item will be stored in plaintext due to our PlaintextOverride configuration.
48
+ string partitionKeyName = "partition_key" ;
49
+ string sortKeyName = "sort_key" ;
48
50
string encryptedAndSignedValue = MigrationUtils . ENCRYPTED_AND_SIGNED_VALUE ;
49
51
string signOnlyValue = MigrationUtils . SIGN_ONLY_VALUE ;
50
52
string doNothingValue = MigrationUtils . DO_NOTHING_VALUE ;
51
53
var item = new Dictionary < string , AttributeValue >
52
54
{
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 } ,
55
57
[ "attribute1" ] = new AttributeValue { S = encryptedAndSignedValue } ,
56
58
[ "attribute2" ] = new AttributeValue { S = signOnlyValue } ,
57
59
[ "attribute3" ] = new AttributeValue { S = doNothingValue }
@@ -74,8 +76,8 @@ public static async Task<bool> MigrationStep1Example(string kmsKeyId, string ddb
74
76
// and surfaced as a plaintext item.
75
77
var key = new Dictionary < string , AttributeValue >
76
78
{
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 }
79
81
} ;
80
82
81
83
var getRequest = new GetItemRequest
0 commit comments