Skip to content

Commit 845d51f

Browse files
auto commit
1 parent 21573ff commit 845d51f

File tree

4 files changed

+10
-10
lines changed

4 files changed

+10
-10
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ Before you move on to step 2, ensure that these changes have successfully been d
2929
to all of your readers.
3030
3131
Running this example requires access to the DDB Table whose name
32-
is provided in CLI arguments.
32+
is provided in the function parameter.
3333
This table must be configured with the following
3434
primary key configuration:
3535
- Partition key is named "partition_key" with type (S)
@@ -82,7 +82,7 @@ func MigrationStep1(kmsKeyID, ddbTableName, partitionKeyValue, sortKeyReadValue
8282
_, err = ddb.PutItem(context.TODO(), &putInput)
8383

8484
// We return this error because we run test against the error.
85-
// When used in production code, you can decide how you can to handle errors.
85+
// When used in production code, you can decide how you want to handle errors.
8686
if err != nil {
8787
return err
8888
}
@@ -106,7 +106,7 @@ func MigrationStep1(kmsKeyID, ddbTableName, partitionKeyValue, sortKeyReadValue
106106

107107
result, err := ddb.GetItem(context.TODO(), getInput)
108108
// We return this error because we run test against the error.
109-
// When used in production code, you can decide how you can to handle errors.
109+
// When used in production code, you can decide how you want to handle errors.
110110
if err != nil {
111111
return err
112112
}

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ Before you move onto the next step, you will need to encrypt all plaintext items
3131
How you will want to do this depends on your system.
3232
3333
Running this example requires access to the DDB Table whose name
34-
is provided in CLI arguments.
34+
is provided in the function parameter.
3535
This table must be configured with the following
3636
primary key configuration:
3737
- Partition key is named "partition_key" with type (S)
@@ -80,7 +80,7 @@ func MigrationStep2(kmsKeyID, ddbTableName, partitionKeyValue, sortKeyReadValue
8080
_, err = ddb.PutItem(context.TODO(), &putInput)
8181

8282
// We return this error because we run test against the error.
83-
// When used in production code, you can decide how you can to handle errors.
83+
// When used in production code, you can decide how you want to handle errors.
8484
if err != nil {
8585
return err
8686
}
@@ -89,8 +89,8 @@ func MigrationStep2(kmsKeyID, ddbTableName, partitionKeyValue, sortKeyReadValue
8989
// If this is an item written in plaintext (i.e. any item written
9090
// during Step 0 or 1), then the item will still be in plaintext.
9191
// If this is an item that was encrypted client-side (i.e. any item written
92-
// during Step 2 or after), then the DDB enhanced client will decrypt the
93-
// item client-sid and surface it in our code as a plaintext item.
92+
// during Step 2 or after), then the DDB client will decrypt the
93+
// item client-side and surface it in our code as a plaintext item.
9494
key := map[string]types.AttributeValue{
9595
"partition_key": &types.AttributeValueMemberS{Value: partitionKeyValue},
9696
"sort_key": &types.AttributeValueMemberN{Value: sortKeyReadValue},
@@ -104,7 +104,7 @@ func MigrationStep2(kmsKeyID, ddbTableName, partitionKeyValue, sortKeyReadValue
104104

105105
result, err := ddb.GetItem(context.TODO(), getInput)
106106
// We return this error because we run test against the error.
107-
// When used in production code, you can decide how you can to handle errors.
107+
// When used in production code, you can decide how you want to handle errors.
108108
if err != nil {
109109
return err
110110
}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ Before you move onto this step, you will need to encrypt all plaintext items in
2727
How you will want to do this depends on your system.
2828
2929
Running this example requires access to the DDB Table whose name
30-
is provided in CLI arguments.
30+
is provided in the function parameter.
3131
This table must be configured with the following
3232
primary key configuration:
3333
- Partition key is named "partition_key" with type (S)

Examples/runtimes/java/Migration/PlaintextToAWSDBE/src/main/java/software/amazon/cryptography/examples/awsdbe/MigrationExampleStep2.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ public static void MigrationStep2(
135135
// during Step 0 or 1), then the item will still be in plaintext.
136136
// If this is an item that was encrypted client-side (i.e. any item written
137137
// during Step 2 or after), then the DDB enhanced client will decrypt the
138-
// item client-sid and surface it in our code as a plaintext item.
138+
// item client-side and surface it in our code as a plaintext item.
139139
SimpleClass itemToGet = new SimpleClass();
140140
itemToGet.setPartitionKey(partitionKey);
141141
itemToGet.setSortKey(sortReadValue);

0 commit comments

Comments
 (0)