@@ -10,7 +10,7 @@ import (
1010 "github.com/aws/aws-database-encryption-sdk-dynamodb/releases/go/dynamodb-esdk/examples/utils"
1111)
1212
13- func configureTable (kmsKeyID , ddbTableName string ) dbesdkdynamodbencryptiontypes.DynamoDbTablesEncryptionConfig {
13+ func configureTable (kmsKeyID , ddbTableName string , plaintextOverride dbesdkdynamodbencryptiontypes. PlaintextOverride ) dbesdkdynamodbencryptiontypes.DynamoDbTablesEncryptionConfig {
1414
1515 // Create a Keyring. This Keyring will be responsible for protecting the data keys that protect your data.
1616 // We will use the `CreateMrkMultiKeyring` method to create this keyring,
@@ -61,12 +61,6 @@ func configureTable(kmsKeyID, ddbTableName string) dbesdkdynamodbencryptiontypes
6161 // Again, while we are not writing encrypted items,
6262 // we should expect to be able to read encrypted items.
6363
64- // This `PlaintextOverrideForcePlaintextWriteAllowPlaintextRead` means:
65- // - Write: Items are forced to be written as plaintext.
66- // Items may not be written as encrypted items.
67- // - Read: Items are allowed to be read as plaintext.
68- // Items are allowed to be read as encrypted items.
69- plaintextOverride := dbesdkdynamodbencryptiontypes .PlaintextOverrideForcePlaintextWriteAllowPlaintextRead
7064 tableConfig := dbesdkdynamodbencryptiontypes.DynamoDbTableEncryptionConfig {
7165 LogicalTableName : ddbTableName ,
7266 PartitionKeyName : partitionKeyName ,
0 commit comments