File tree Expand file tree Collapse file tree 1 file changed +2
-8
lines changed
DynamoDbEncryption/runtimes/go/ImplementationFromDafny-go/InternalLegacyOverride Expand file tree Collapse file tree 1 file changed +2
-8
lines changed Original file line number Diff line number Diff line change @@ -24,21 +24,15 @@ func (CompanionStruct_InternalLegacyOverride_) Build(config interface{}) Wrapper
24
24
}
25
25
26
26
func (InternalLegacyOverride ) EncryptItem (config interface {}) Wrappers.Result {
27
- // Go does not support the Legacy DDB-EC
28
- if policy .Is_FORBID__LEGACY__ENCRYPT__FORBID__LEGACY__DECRYPT () {
29
- return Wrappers .Companion_Result_ .Create_Success_ (Wrappers .Companion_Option_ .Create_None_ ())
30
- }
27
+ // Go does not support the Legacy DDB-EC. So, this function will not be reached.
31
28
err := & awscryptographydbencryptionsdkdynamodbitemencryptorsmithygeneratedtypes.DynamoDbItemEncryptorException {
32
29
Message : "Legacy configuration unsupported." ,
33
30
}
34
31
return Wrappers .Companion_Result_ .Create_Failure_ (err )
35
32
}
36
33
37
34
func (InternalLegacyOverride ) DecryptItem (config interface {}) Wrappers.Result {
38
- // Go does not support the Legacy DDB-EC
39
- if policy .Is_FORBID__LEGACY__ENCRYPT__FORBID__LEGACY__DECRYPT () {
40
- return Wrappers .Companion_Result_ .Create_Success_ (Wrappers .Companion_Option_ .Create_None_ ())
41
- }
35
+ // Go does not support the Legacy DDB-EC. So, this function will not be reached.
42
36
err := & awscryptographydbencryptionsdkdynamodbitemencryptorsmithygeneratedtypes.DynamoDbItemEncryptorException {
43
37
Message : "Legacy configuration unsupported." ,
44
38
}
You can’t perform that action at this time.
0 commit comments