Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -24,21 +24,15 @@ func (CompanionStruct_InternalLegacyOverride_) Build(config interface{}) Wrapper
}

func (InternalLegacyOverride) EncryptItem(config interface{}) Wrappers.Result {
// Go does not support the Legacy DDB-EC
if policy.Is_FORBID__LEGACY__ENCRYPT__FORBID__LEGACY__DECRYPT() {
return Wrappers.Companion_Result_.Create_Success_(Wrappers.Companion_Option_.Create_None_())
}
// Go does not support the Legacy DDB-EC. So, this function will not be reached.
err := &awscryptographydbencryptionsdkdynamodbitemencryptorsmithygeneratedtypes.DynamoDbItemEncryptorException{
Message: "Legacy configuration unsupported.",
}
return Wrappers.Companion_Result_.Create_Failure_(err)
}

func (InternalLegacyOverride) DecryptItem(config interface{}) Wrappers.Result {
// Go does not support the Legacy DDB-EC
if policy.Is_FORBID__LEGACY__ENCRYPT__FORBID__LEGACY__DECRYPT() {
return Wrappers.Companion_Result_.Create_Success_(Wrappers.Companion_Option_.Create_None_())
}
// Go does not support the Legacy DDB-EC. So, this function will not be reached.
err := &awscryptographydbencryptionsdkdynamodbitemencryptorsmithygeneratedtypes.DynamoDbItemEncryptorException{
Message: "Legacy configuration unsupported.",
}
Expand Down
Loading