diff --git a/internal/service/medialive/channel.go b/internal/service/medialive/channel.go index fd89f761668..65cea193945 100644 --- a/internal/service/medialive/channel.go +++ b/internal/service/medialive/channel.go @@ -1619,7 +1619,7 @@ func expandInputAttachmentAutomaticInputFailoverSettings(tfList []interface{}) * if v, ok := m["error_clear_time_msec"].(int); ok { out.ErrorClearTimeMsec = int32(v) } - if v, ok := m["failover_conditions"].(*schema.Set); ok && v.Len() > 0 { + if v, ok := m["failover_condition"].(*schema.Set); ok && v.Len() > 0 { out.FailoverConditions = expandInputAttachmentAutomaticInputFailoverSettingsFailoverConditions(v.List()) } if v, ok := m["input_preference"].(string); ok && v != "" { @@ -2049,7 +2049,7 @@ func flattenInputAttachmentAutomaticInputFailoverSettings(in *types.AutomaticInp m := map[string]interface{}{ "secondary_input_id": aws.ToString(in.SecondaryInputId), "error_clear_time_msec": int(in.ErrorClearTimeMsec), - "failover_conditions": flattenInputAttachmentAutomaticInputFailoverSettingsFailoverConditions(in.FailoverConditions), + "failover_condition": flattenInputAttachmentAutomaticInputFailoverSettingsFailoverConditions(in.FailoverConditions), "input_preference": string(in.InputPreference), }