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 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) } 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" } }