Skip to content

Commit a369dcb

Browse files
auto commit
1 parent 5760865 commit a369dcb

File tree

1 file changed

+1
-7
lines changed
  • Examples/runtimes/go/migration/PlaintextToAWSDBE/awsdbe

1 file changed

+1
-7
lines changed

Examples/runtimes/go/migration/PlaintextToAWSDBE/awsdbe/common.go

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)