From f75e58b8167f4332fd9dfe8c4afb7f33c3677b15 Mon Sep 17 00:00:00 2001 From: nick Date: Wed, 27 Jul 2022 00:58:33 -0600 Subject: [PATCH] #25994 add expand --- internal/service/guardduty/detector.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/internal/service/guardduty/detector.go b/internal/service/guardduty/detector.go index b3728914177f..7d396bc0ad2d 100644 --- a/internal/service/guardduty/detector.go +++ b/internal/service/guardduty/detector.go @@ -304,7 +304,9 @@ func expandDataSourceConfigurations(tfMap map[string]interface{}) *guardduty.Dat if v, ok := tfMap["kubernetes"].([]interface{}); ok && len(v) > 0 { apiObject.Kubernetes = expandKubernetesConfiguration(v[0].(map[string]interface{})) } - + if v, ok := tfMap["malware_protection"].([]interface{}); ok && len(v) > 0 { + apiObject.MalwareProtection = expandMalwareProtectionConfiguration(v[0].(map[string]interface{})) + } return apiObject }