You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
//# 1. `branch-key-id` : Unique identifier for a branch key; represented as [AWS DDB String](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/HowItWorks.NamingRulesDataTypes.html#HowItWorks.DataTypes)
//# 1. `type` : One of the following; represented as [AWS DDB String](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/HowItWorks.NamingRulesDataTypes.html#HowItWorks.DataTypes)
105
-
//# - The string literal `"beacon:ACTIVE"`. Then `enc` is the wrapped beacon key.
106
-
//# - The string `"branch:version:"` + `version`, where `version` is the Branch Key Version. Then `enc` is the wrapped branch key.
107
-
//# - The string literal `"branch:ACTIVE"`. Then `enc` is the wrapped beacon key of the active version.
104
+
//# - The string literal `"beacon:ACTIVE"`. Then `enc` is the wrapped beacon key.
105
+
//# - The string `"branch:version:"` + `version`, where `version` is the Branch Key Version. Then `enc` is the wrapped branch key.
106
+
//# - The string literal `"branch:ACTIVE"`. Then `enc` is the wrapped beacon key of the active version. Then
108
107
needs(
109
108
TYPE_FIELDinitem&&
110
109
typeofitem[TYPE_FIELD]==='string'&&
@@ -114,7 +113,7 @@ export function validateBranchKeyRecord(item: BranchKeyItem): BranchKeyRecord {
114
113
`Branch keystore record does not contain a valid ${TYPE_FIELD} field of type string`
//# 1. `version` : Only exists if `type` is the string literal `"branch:ACTIVE"`.
119
118
//# Then it is the Branch Key Version. represented as [AWS DDB String](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/HowItWorks.NamingRulesDataTypes.html#HowItWorks.DataTypes)
120
119
if(item[TYPE_FIELD]===BRANCH_KEY_ACTIVE_TYPE){
@@ -125,23 +124,23 @@ export function validateBranchKeyRecord(item: BranchKeyItem): BranchKeyRecord {
//# A branch key record MAY include [custom encryption context](../branch-key-store.md#custom-encryption-context) key-value pairs.
163
+
//# These attributes should be prefixed with `aws-crypto-ec:` the same way they are for [AWS KMS encryption context](../branch-key-store.md#encryption-context).
0 commit comments