From a7fd9f47ff55f6e302bbd22dc5eaeb993acc6977 Mon Sep 17 00:00:00 2001 From: peletv2 Date: Fri, 6 Oct 2023 09:51:37 +0200 Subject: [PATCH 1/3] added client_cache to expandHLSGroupSettings --- internal/service/medialive/channel_encoder_settings_schema.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/internal/service/medialive/channel_encoder_settings_schema.go b/internal/service/medialive/channel_encoder_settings_schema.go index 95a262b7240..ea6e558e1b0 100644 --- a/internal/service/medialive/channel_encoder_settings_schema.go +++ b/internal/service/medialive/channel_encoder_settings_schema.go @@ -3697,6 +3697,9 @@ func expandHLSGroupSettings(tfList []interface{}) *types.HlsGroupSettings { if v, ok := m["caption_language_setting"].(string); ok && v != "" { out.CaptionLanguageSetting = types.HlsCaptionLanguageSetting(v) } + if v, ok := m["client_cache"].(string); ok && v != "" { + out.ClientCache = types.HlsClientCache(v) + } if v, ok := m["codec_specification"].(string); ok && v != "" { out.CodecSpecification = types.HlsCodecSpecification(v) } From 98a0ce95299e011f30905005d878d029431bbe75 Mon Sep 17 00:00:00 2001 From: peletv2 Date: Fri, 6 Oct 2023 13:47:23 +0200 Subject: [PATCH 2/3] changelog --- .changelog/33798.txt | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 .changelog/33798.txt diff --git a/.changelog/33798.txt b/.changelog/33798.txt new file mode 100644 index 00000000000..13f688ad985 --- /dev/null +++ b/.changelog/33798.txt @@ -0,0 +1,4 @@ + +```release-note:bug +resource/aws_medialive_channel: Added `client_cache` to `expandHLSGroupSettings`. +``` \ No newline at end of file From 473824ffb3f805eb69df9be226f19e6da77084c8 Mon Sep 17 00:00:00 2001 From: peletv2 Date: Mon, 9 Oct 2023 13:09:37 +0200 Subject: [PATCH 3/3] test --- internal/service/medialive/channel_test.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/internal/service/medialive/channel_test.go b/internal/service/medialive/channel_test.go index a69dea2e8b5..bcbbadac63c 100644 --- a/internal/service/medialive/channel_test.go +++ b/internal/service/medialive/channel_test.go @@ -635,6 +635,7 @@ func TestAccMediaLiveChannel_hls(t *testing.T) { "name": "test-video-name", }), resource.TestCheckResourceAttr(resourceName, "encoder_settings.0.output_groups.0.outputs.0.output_settings.0.hls_output_settings.0.h265_packaging_type", "HVC1"), + resource.TestCheckResourceAttr(resourceName, "encoder_settings.0.output_groups.0.output_group_settings.0.hls_group_settings.0.client_cache", "ENABLED"), ), }, }, @@ -1774,6 +1775,7 @@ resource "aws_medialive_channel" "test" { destination { destination_ref_id = %[1]q } + client_cache = "ENABLED" } }