Skip to content

Commit 6b30e4c

Browse files
Change plainTextItem to item in examples
1 parent 6dedc67 commit 6b30e4c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Examples/runtimes/java/DynamoDbEncryption/src/main/java/software/amazon/cryptography/examples/GetEncryptedDataKeyDescriptionExample.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ public static void getEncryptedDataKeyDescription(
4949
.DynamoDbEncryptionConfig(DynamoDbEncryptionConfig.builder().build())
5050
.build();
5151
GetEncryptedDataKeyDescriptionUnion InputUnion = GetEncryptedDataKeyDescriptionUnion.builder()
52-
.plaintextItem(returnedItem)
52+
.item(returnedItem)
5353
.build();
5454
software.amazon.cryptography.dbencryptionsdk.dynamodb.model.GetEncryptedDataKeyDescriptionInput input = GetEncryptedDataKeyDescriptionInput.builder()
5555
.input(InputUnion)

Examples/runtimes/net/src/GetEncryptedDataKeyDescriptionExample.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ public static async Task GetEncryptedDataKeyDescription()
3939
// "aws_dbe_head" attribute in the dynamoDB item. The part of the code where we send input as the header is commented.
4040
var returnedItem = getResponse.Item;
4141
GetEncryptedDataKeyDescriptionUnion InputUnion = new GetEncryptedDataKeyDescriptionUnion();
42-
InputUnion.PlaintextItem = returnedItem;
42+
InputUnion.Item = returnedItem;
4343

4444
// The code below shows how we can send header as the input to the DynamoDB. This code is written to demo the
4545
// alternative approach. So, it is commented.

0 commit comments

Comments
 (0)