@@ -30,30 +30,30 @@ module {:extern} CreateWrappedItemEncryptor {
30
30
// config.legacyOverride.value.encryptor.Modifies
31
31
// else {}
32
32
ensures output. Success? ==>
33
- && output. value is DynamoDbItemEncryptor. DynamoDbItemEncryptorClient
34
- && fresh (output. value)
35
- && fresh (output. value. History)
36
- && output. value. ValidState ()
37
- && var rconfig := (output. value as DynamoDbItemEncryptor. DynamoDbItemEncryptorClient). config;
38
- && fresh (output. value. Modifies)
39
- && rconfig. logicalTableName == config. logicalTableName
40
- && rconfig. partitionKeyName == config. partitionKeyName
41
- && rconfig. sortKeyName == config. sortKeyName
42
- && rconfig. attributeActionsOnEncrypt == config. attributeActionsOnEncrypt
43
- && rconfig. allowedUnsignedAttributes == config. allowedUnsignedAttributes
44
- && rconfig. allowedUnsignedAttributePrefix == config. allowedUnsignedAttributePrefix
45
- && rconfig. algorithmSuiteId == config. algorithmSuiteId
33
+ && output. value is DynamoDbItemEncryptor. DynamoDbItemEncryptorClient
34
+ && fresh (output. value)
35
+ && fresh (output. value. History)
36
+ && output. value. ValidState ()
37
+ && var rconfig := (output. value as DynamoDbItemEncryptor. DynamoDbItemEncryptorClient). config;
38
+ && fresh (output. value. Modifies)
39
+ && rconfig. logicalTableName == config. logicalTableName
40
+ && rconfig. partitionKeyName == config. partitionKeyName
41
+ && rconfig. sortKeyName == config. sortKeyName
42
+ && rconfig. attributeActionsOnEncrypt == config. attributeActionsOnEncrypt
43
+ && rconfig. allowedUnsignedAttributes == config. allowedUnsignedAttributes
44
+ && rconfig. allowedUnsignedAttributePrefix == config. allowedUnsignedAttributePrefix
45
+ && rconfig. algorithmSuiteId == config. algorithmSuiteId
46
46
47
- // = specification/dynamodb-encryption-client/ddb-table-encryption-config.md#attribute-actions
48
- // = type=implication
49
- // # The [Key Action](#key-action)
50
- // # MUST be configured to the partition attribute and, if present, sort attribute.
51
- && rconfig. version == Operations. VersionFromActions (config.attributeActionsOnEncrypt)
52
- && config. partitionKeyName in config. attributeActionsOnEncrypt
53
- && config. attributeActionsOnEncrypt[config. partitionKeyName] == Operations. KeyActionFromVersion (rconfig.version)
54
- && (config. sortKeyName. Some? ==>
55
- && config. sortKeyName. value in config. attributeActionsOnEncrypt
56
- && config. attributeActionsOnEncrypt[config. sortKeyName. value] == Operations. KeyActionFromVersion (rconfig.version))
47
+ // = specification/dynamodb-encryption-client/ddb-table-encryption-config.md#attribute-actions
48
+ // = type=implication
49
+ // # The [Key Action](#key-action)
50
+ // # MUST be configured to the partition attribute and, if present, sort attribute.
51
+ && rconfig. version == Operations. VersionFromActions (config.attributeActionsOnEncrypt)
52
+ && config. partitionKeyName in config. attributeActionsOnEncrypt
53
+ && config. attributeActionsOnEncrypt[config. partitionKeyName] == Operations. KeyActionFromVersion (rconfig.version)
54
+ && (config. sortKeyName. Some? ==>
55
+ && config. sortKeyName. value in config. attributeActionsOnEncrypt
56
+ && config. attributeActionsOnEncrypt[config. sortKeyName. value] == Operations. KeyActionFromVersion (rconfig.version))
57
57
58
58
// = specification/dynamodb-encryption-client/ddb-table-encryption-config.md#plaintext-policy
59
59
// # If not specified, encryption and decryption MUST behave according to `FORBID_PLAINTEXT_WRITE_FORBID_PLAINTEXT_READ`.
0 commit comments