Skip to content

Commit 2796693

Browse files
authored
chore(docs): mention sign_and_include in javadoc for keyid supplier (#966)
1 parent 90d7d78 commit 2796693

File tree

5 files changed

+16
-10
lines changed

5 files changed

+16
-10
lines changed

DynamoDbEncryption/dafny/DynamoDbEncryption/Model/DynamoDbEncryption.smithy

+6-3
Original file line numberDiff line numberDiff line change
@@ -756,19 +756,22 @@ resource DynamoDbKeyBranchKeyIdSupplier{
756756
@reference(resource: DynamoDbKeyBranchKeyIdSupplier)
757757
structure DynamoDbKeyBranchKeyIdSupplierReference {}
758758

759-
@javadoc("Get the Branch Key that should be used for wrapping and unwrapping data keys based on the primary key of the item being read or written.")
759+
@javadoc("Get the Branch Key that should be used for wrapping and unwrapping data keys based on the primary key of the item being read or written, along with the values of any attributes configured as SIGN_AND_INCLUDE_IN_ENCRYPTION_CONTEXT.")
760760
operation GetBranchKeyIdFromDdbKey {
761761
input: GetBranchKeyIdFromDdbKeyInput,
762762
output: GetBranchKeyIdFromDdbKeyOutput
763763
}
764764

765765
//= specification/dynamodb-encryption-client/ddb-encryption-branch-key-id-supplier.md#dynamodbkeybranchkeyidsupplier
766766
//= type=implication
767-
//# This operation MUST take in a DDB `Key` structure (and attribute map containing the partition and sort attributes) as input.
767+
//# This operation MUST take in a DDB `Key` structure
768+
//# (an attribute map containing the partition and sort attributes,
769+
//# along with the values of any attributes configured as SIGN_AND_INCLUDE_IN_ENCRYPTION_CONTEXT)
770+
//# as input.
768771
@javadoc("Inputs for getting the Branch Key that should be used for wrapping and unwrapping data keys.")
769772
structure GetBranchKeyIdFromDdbKeyInput {
770773
@required
771-
@javadoc("The partition and sort (if it exists) attributes on the item being read or written.")
774+
@javadoc("The partition and sort (if it exists) attributes on the item being read or written, along with the values of any attributes configured as SIGN_AND_INCLUDE_IN_ENCRYPTION_CONTEXT.")
772775
ddbKey: Key
773776
}
774777

DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/DynamoDbKeyBranchKeyIdSupplier.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ public software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types
5555
}
5656

5757
/**
58-
* Get the Branch Key that should be used for wrapping and unwrapping data keys based on the primary key of the item being read or written.
58+
* Get the Branch Key that should be used for wrapping and unwrapping data keys based on the primary key of the item being read or written, along with the values of any attributes configured as SIGN_AND_INCLUDE_IN_ENCRYPTION_CONTEXT.
5959
*
6060
* @param input Inputs for getting the Branch Key that should be used for wrapping and unwrapping data keys.
6161
* @return Outputs for getting the Branch Key that should be used for wrapping and unwrapping data keys.

DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/IDynamoDbKeyBranchKeyIdSupplier.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
public interface IDynamoDbKeyBranchKeyIdSupplier {
1010
/**
11-
* Get the Branch Key that should be used for wrapping and unwrapping data keys based on the primary key of the item being read or written.
11+
* Get the Branch Key that should be used for wrapping and unwrapping data keys based on the primary key of the item being read or written, along with the values of any attributes configured as SIGN_AND_INCLUDE_IN_ENCRYPTION_CONTEXT.
1212
*
1313
* @param input Inputs for getting the Branch Key that should be used for wrapping and unwrapping data keys.
1414
* @return Outputs for getting the Branch Key that should be used for wrapping and unwrapping data keys.

DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/model/GetBranchKeyIdFromDdbKeyInput.java

+4-4
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
public class GetBranchKeyIdFromDdbKeyInput {
1414

1515
/**
16-
* The partition and sort (if it exists) attributes on the item being read or written.
16+
* The partition and sort (if it exists) attributes on the item being read or written, along with the values of any attributes configured as SIGN_AND_INCLUDE_IN_ENCRYPTION_CONTEXT.
1717
*/
1818
private final Map<String, AttributeValue> ddbKey;
1919

@@ -22,7 +22,7 @@ protected GetBranchKeyIdFromDdbKeyInput(BuilderImpl builder) {
2222
}
2323

2424
/**
25-
* @return The partition and sort (if it exists) attributes on the item being read or written.
25+
* @return The partition and sort (if it exists) attributes on the item being read or written, along with the values of any attributes configured as SIGN_AND_INCLUDE_IN_ENCRYPTION_CONTEXT.
2626
*/
2727
public Map<String, AttributeValue> ddbKey() {
2828
return this.ddbKey;
@@ -38,12 +38,12 @@ public static Builder builder() {
3838

3939
public interface Builder {
4040
/**
41-
* @param ddbKey The partition and sort (if it exists) attributes on the item being read or written.
41+
* @param ddbKey The partition and sort (if it exists) attributes on the item being read or written, along with the values of any attributes configured as SIGN_AND_INCLUDE_IN_ENCRYPTION_CONTEXT.
4242
*/
4343
Builder ddbKey(Map<String, AttributeValue> ddbKey);
4444

4545
/**
46-
* @return The partition and sort (if it exists) attributes on the item being read or written.
46+
* @return The partition and sort (if it exists) attributes on the item being read or written, along with the values of any attributes configured as SIGN_AND_INCLUDE_IN_ENCRYPTION_CONTEXT.
4747
*/
4848
Map<String, AttributeValue> ddbKey();
4949

specification/dynamodb-encryption-client/ddb-encryption-branch-key-id-supplier.md

+4-1
Original file line numberDiff line numberDiff line change
@@ -51,5 +51,8 @@ and create a Key with these values, using names with the "aws-crypto-attr." remo
5151
## DynamoDbKeyBranchKeyIdSupplier
5252

5353
The DynamoDb Key Branch Key Id Supplier is an interface containing the `GetBranchKeyIdFromDdbKey` operation.
54-
This operation MUST take in a DDB `Key` structure (and attribute map containing the partition and sort attributes) as input.
54+
This operation MUST take in a DDB `Key` structure
55+
(an attribute map containing the partition and sort attributes,
56+
along with the values of any attributes configured as SIGN_AND_INCLUDE_IN_ENCRYPTION_CONTEXT)
57+
as input.
5558
This operation MUST return a branch key id (string) as output.

0 commit comments

Comments
 (0)