From 30fd29349707bab1035ccf9462301b2fbd4d706d Mon Sep 17 00:00:00 2001 From: Nicolas Guyomard Date: Thu, 8 Jun 2023 11:49:39 +0200 Subject: [PATCH 1/2] medialive/channel: fix attributes spelling issue in expandHLSCDNSettings() #31787 --- .../medialive/channel_encoder_settings_schema.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/internal/service/medialive/channel_encoder_settings_schema.go b/internal/service/medialive/channel_encoder_settings_schema.go index 98ce980f7de..e9699b50350 100644 --- a/internal/service/medialive/channel_encoder_settings_schema.go +++ b/internal/service/medialive/channel_encoder_settings_schema.go @@ -3428,19 +3428,19 @@ func expandHLSCDNSettings(tfList []interface{}) *types.HlsCdnSettings { m := tfList[0].(map[string]interface{}) var out types.HlsCdnSettings - if v, ok := m["hls_akamai_setting"].([]interface{}); ok && len(v) > 0 { + if v, ok := m["hls_akamai_settings"].([]interface{}); ok && len(v) > 0 { out.HlsAkamaiSettings = expandHSLAkamaiSettings(v) } - if v, ok := m["hls_basic_put_setting"].([]interface{}); ok && len(v) > 0 { + if v, ok := m["hls_basic_put_settings"].([]interface{}); ok && len(v) > 0 { out.HlsBasicPutSettings = expandHSLBasicPutSettings(v) } - if v, ok := m["hls_media_store_setting"].([]interface{}); ok && len(v) > 0 { + if v, ok := m["hls_media_store_settings"].([]interface{}); ok && len(v) > 0 { out.HlsMediaStoreSettings = expandHLSMediaStoreSettings(v) } - if v, ok := m["hls_s3_setting"].([]interface{}); ok && len(v) > 0 { + if v, ok := m["hls_s3_settings"].([]interface{}); ok && len(v) > 0 { out.HlsS3Settings = expandHSLS3Settings(v) } - if v, ok := m["hls_webdav_setting"].([]interface{}); ok && len(v) > 0 { + if v, ok := m["hls_webdav_settings"].([]interface{}); ok && len(v) > 0 { out.HlsWebdavSettings = expandHLSWebdavSettings(v) } return &out From b4a37e3fbef8884ccb9627c7b041795c7160acf1 Mon Sep 17 00:00:00 2001 From: Adrian Johnson Date: Fri, 9 Jun 2023 14:14:41 -0400 Subject: [PATCH 2/2] add CHANGELOG entry --- .changelog/31844.txt | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 .changelog/31844.txt diff --git a/.changelog/31844.txt b/.changelog/31844.txt new file mode 100644 index 00000000000..eccf355e1e1 --- /dev/null +++ b/.changelog/31844.txt @@ -0,0 +1,3 @@ +```release-note:bug +resource/aws_medialive_channel: Fix spelling in `hls_cdn_settings` expander. +``` \ No newline at end of file