{-# LANGUAGE DeriveGeneric #-} {-# LANGUAGE DuplicateRecordFields #-} {-# LANGUAGE NamedFieldPuns #-} {-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE RecordWildCards #-} {-# LANGUAGE StrictData #-} {-# LANGUAGE NoImplicitPrelude #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} {-# OPTIONS_GHC -fno-warn-unused-matches #-} -- Derived from AWS service descriptions, licensed under Apache 2.0. -- | -- Module : Amazonka.MediaLive.Types.HlsId3SegmentTaggingScheduleActionSettings -- Copyright : (c) 2013-2023 Brendan Hay -- License : Mozilla Public License, v. 2.0. -- Maintainer : Brendan Hay -- Stability : auto-generated -- Portability : non-portable (GHC extensions) module Amazonka.MediaLive.Types.HlsId3SegmentTaggingScheduleActionSettings where import qualified Amazonka.Core as Core import qualified Amazonka.Core.Lens.Internal as Lens import qualified Amazonka.Data as Data import qualified Amazonka.Prelude as Prelude -- | Settings for the action to insert a user-defined ID3 tag in each HLS -- segment -- -- /See:/ 'newHlsId3SegmentTaggingScheduleActionSettings' smart constructor. data HlsId3SegmentTaggingScheduleActionSettings = HlsId3SegmentTaggingScheduleActionSettings' { -- | ID3 tag to insert into each segment. Supports special keyword -- identifiers to substitute in segment-related values.\\nSupported keyword -- identifiers: -- https:\/\/docs.aws.amazon.com\/medialive\/latest\/ug\/variable-data-identifiers.html tag :: Prelude.Text } deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic) -- | -- Create a value of 'HlsId3SegmentTaggingScheduleActionSettings' with all optional fields omitted. -- -- Use or to modify other optional fields. -- -- The following record fields are available, with the corresponding lenses provided -- for backwards compatibility: -- -- 'tag', 'hlsId3SegmentTaggingScheduleActionSettings_tag' - ID3 tag to insert into each segment. Supports special keyword -- identifiers to substitute in segment-related values.\\nSupported keyword -- identifiers: -- https:\/\/docs.aws.amazon.com\/medialive\/latest\/ug\/variable-data-identifiers.html newHlsId3SegmentTaggingScheduleActionSettings :: -- | 'tag' Prelude.Text -> HlsId3SegmentTaggingScheduleActionSettings newHlsId3SegmentTaggingScheduleActionSettings pTag_ = HlsId3SegmentTaggingScheduleActionSettings' { tag = pTag_ } -- | ID3 tag to insert into each segment. Supports special keyword -- identifiers to substitute in segment-related values.\\nSupported keyword -- identifiers: -- https:\/\/docs.aws.amazon.com\/medialive\/latest\/ug\/variable-data-identifiers.html hlsId3SegmentTaggingScheduleActionSettings_tag :: Lens.Lens' HlsId3SegmentTaggingScheduleActionSettings Prelude.Text hlsId3SegmentTaggingScheduleActionSettings_tag = Lens.lens (\HlsId3SegmentTaggingScheduleActionSettings' {tag} -> tag) (\s@HlsId3SegmentTaggingScheduleActionSettings' {} a -> s {tag = a} :: HlsId3SegmentTaggingScheduleActionSettings) instance Data.FromJSON HlsId3SegmentTaggingScheduleActionSettings where parseJSON = Data.withObject "HlsId3SegmentTaggingScheduleActionSettings" ( \x -> HlsId3SegmentTaggingScheduleActionSettings' Prelude.<$> (x Data..: "tag") ) instance Prelude.Hashable HlsId3SegmentTaggingScheduleActionSettings where hashWithSalt _salt HlsId3SegmentTaggingScheduleActionSettings' {..} = _salt `Prelude.hashWithSalt` tag instance Prelude.NFData HlsId3SegmentTaggingScheduleActionSettings where rnf HlsId3SegmentTaggingScheduleActionSettings' {..} = Prelude.rnf tag instance Data.ToJSON HlsId3SegmentTaggingScheduleActionSettings where toJSON HlsId3SegmentTaggingScheduleActionSettings' {..} = Data.object ( Prelude.catMaybes [Prelude.Just ("tag" Data..= tag)] )