@@ -23,10 +23,12 @@ public static Dictionary<string, DynamoDbTableEncryptionConfig> CreateTableConfi
23
23
// - ENCRYPT_AND_SIGN: The attribute is encrypted and included in the signature
24
24
// - SIGN_ONLY: The attribute not encrypted, but is still included in the signature
25
25
// - DO_NOTHING: The attribute is not encrypted and not included in the signature
26
+ var partitionKeyName = "partition_key" ;
27
+ var sortKeyName = "sort_key" ;
26
28
var attributeActionsOnEncrypt = new Dictionary < string , CryptoAction >
27
29
{
28
- [ "partition_key" ] = CryptoAction . SIGN_ONLY ,
29
- [ "sort_key" ] = CryptoAction . SIGN_ONLY ,
30
+ [ partitionKeyName ] = CryptoAction . SIGN_ONLY ,
31
+ [ sortKeyName ] = CryptoAction . SIGN_ONLY ,
30
32
[ "attribute1" ] = CryptoAction . ENCRYPT_AND_SIGN ,
31
33
[ "attribute2" ] = CryptoAction . SIGN_ONLY ,
32
34
[ "attribute3" ] = CryptoAction . DO_NOTHING
@@ -65,8 +67,8 @@ public static Dictionary<string, DynamoDbTableEncryptionConfig> CreateTableConfi
65
67
var tableConfig = new DynamoDbTableEncryptionConfig
66
68
{
67
69
LogicalTableName = ddbTableName ,
68
- PartitionKeyName = "partition_key" ,
69
- SortKeyName = "sort_key" ,
70
+ PartitionKeyName = partitionKeyName ,
71
+ SortKeyName = sortKeyName ,
70
72
AttributeActionsOnEncrypt = attributeActionsOnEncrypt ,
71
73
Keyring = kmsKeyring ,
72
74
AllowedUnsignedAttributes = unsignedAttributes ,
0 commit comments