{-# 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.MsSmoothGroupSettings
-- Copyright   : (c) 2013-2021 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
module Amazonka.MediaLive.Types.MsSmoothGroupSettings where

import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import Amazonka.MediaLive.Types.InputLossActionForMsSmoothOut
import Amazonka.MediaLive.Types.OutputLocationRef
import Amazonka.MediaLive.Types.SmoothGroupAudioOnlyTimecodeControl
import Amazonka.MediaLive.Types.SmoothGroupCertificateMode
import Amazonka.MediaLive.Types.SmoothGroupEventIdMode
import Amazonka.MediaLive.Types.SmoothGroupEventStopBehavior
import Amazonka.MediaLive.Types.SmoothGroupSegmentationMode
import Amazonka.MediaLive.Types.SmoothGroupSparseTrackType
import Amazonka.MediaLive.Types.SmoothGroupStreamManifestBehavior
import Amazonka.MediaLive.Types.SmoothGroupTimestampOffsetMode
import qualified Amazonka.Prelude as Prelude

-- | Ms Smooth Group Settings
--
-- /See:/ 'newMsSmoothGroupSettings' smart constructor.
data MsSmoothGroupSettings = MsSmoothGroupSettings'
  { -- | Length of mp4 fragments to generate (in seconds). Fragment length must
    -- be compatible with GOP size and framerate.
    MsSmoothGroupSettings -> Maybe Natural
fragmentLength :: Prelude.Maybe Prelude.Natural,
    -- | When set to send, send stream manifest so publishing point doesn\'t
    -- start until all streams start.
    MsSmoothGroupSettings -> Maybe SmoothGroupStreamManifestBehavior
streamManifestBehavior :: Prelude.Maybe SmoothGroupStreamManifestBehavior,
    -- | Number of milliseconds to delay the output from the second pipeline.
    MsSmoothGroupSettings -> Maybe Natural
sendDelayMs :: Prelude.Maybe Prelude.Natural,
    -- | When set to sendEos, send EOS signal to IIS server when stopping the
    -- event
    MsSmoothGroupSettings -> Maybe SmoothGroupEventStopBehavior
eventStopBehavior :: Prelude.Maybe SmoothGroupEventStopBehavior,
    -- | Type of timestamp date offset to use. - useEventStartDate: Use the date
    -- the event was started as the offset - useConfiguredOffset: Use an
    -- explicitly configured date as the offset
    MsSmoothGroupSettings -> Maybe SmoothGroupTimestampOffsetMode
timestampOffsetMode :: Prelude.Maybe SmoothGroupTimestampOffsetMode,
    -- | Number of retry attempts.
    MsSmoothGroupSettings -> Maybe Natural
numRetries :: Prelude.Maybe Prelude.Natural,
    -- | The ID to include in each message in the sparse track. Ignored if
    -- sparseTrackType is NONE.
    MsSmoothGroupSettings -> Maybe Text
acquisitionPointId :: Prelude.Maybe Prelude.Text,
    -- | Parameter that control output group behavior on input loss.
    MsSmoothGroupSettings -> Maybe InputLossActionForMsSmoothOut
inputLossAction :: Prelude.Maybe InputLossActionForMsSmoothOut,
    -- | Timestamp offset for the event. Only used if timestampOffsetMode is set
    -- to useConfiguredOffset.
    MsSmoothGroupSettings -> Maybe Text
timestampOffset :: Prelude.Maybe Prelude.Text,
    -- | If set to verifyAuthenticity, verify the https certificate chain to a
    -- trusted Certificate Authority (CA). This will cause https outputs to
    -- self-signed certificates to fail.
    MsSmoothGroupSettings -> Maybe SmoothGroupCertificateMode
certificateMode :: Prelude.Maybe SmoothGroupCertificateMode,
    -- | Identifies the type of data to place in the sparse track: - SCTE35:
    -- Insert SCTE-35 messages from the source content. With each message,
    -- insert an IDR frame to start a new segment. -
    -- SCTE35_WITHOUT_SEGMENTATION: Insert SCTE-35 messages from the source
    -- content. With each message, insert an IDR frame but don\'t start a new
    -- segment. - NONE: Don\'t generate a sparse track for any outputs in this
    -- output group.
    MsSmoothGroupSettings -> Maybe SmoothGroupSparseTrackType
sparseTrackType :: Prelude.Maybe SmoothGroupSparseTrackType,
    -- | Number of seconds to wait before retrying connection to the IIS server
    -- if the connection is lost. Content will be cached during this time and
    -- the cache will be be delivered to the IIS server once the connection is
    -- re-established.
    MsSmoothGroupSettings -> Maybe Natural
connectionRetryInterval :: Prelude.Maybe Prelude.Natural,
    -- | Size in seconds of file cache for streaming outputs.
    MsSmoothGroupSettings -> Maybe Natural
filecacheDuration :: Prelude.Maybe Prelude.Natural,
    -- | Number of seconds before initiating a restart due to output failure, due
    -- to exhausting the numRetries on one segment, or exceeding
    -- filecacheDuration.
    MsSmoothGroupSettings -> Maybe Natural
restartDelay :: Prelude.Maybe Prelude.Natural,
    -- | Specifies whether or not to send an event ID to the IIS server. If no
    -- event ID is sent and the same Live Event is used without changing the
    -- publishing point, clients might see cached video from the previous run.
    -- Options: - \"useConfigured\" - use the value provided in eventId -
    -- \"useTimestamp\" - generate and send an event ID based on the current
    -- timestamp - \"noEventId\" - do not send an event ID to the IIS server.
    MsSmoothGroupSettings -> Maybe SmoothGroupEventIdMode
eventIdMode :: Prelude.Maybe SmoothGroupEventIdMode,
    -- | If set to passthrough for an audio-only MS Smooth output, the fragment
    -- absolute time will be set to the current timecode. This option does not
    -- write timecodes to the audio elementary stream.
    MsSmoothGroupSettings -> Maybe SmoothGroupAudioOnlyTimecodeControl
audioOnlyTimecodeControl :: Prelude.Maybe SmoothGroupAudioOnlyTimecodeControl,
    -- | useInputSegmentation has been deprecated. The configured segment size is
    -- always used.
    MsSmoothGroupSettings -> Maybe SmoothGroupSegmentationMode
segmentationMode :: Prelude.Maybe SmoothGroupSegmentationMode,
    -- | MS Smooth event ID to be sent to the IIS server. Should only be
    -- specified if eventIdMode is set to useConfigured.
    MsSmoothGroupSettings -> Maybe Text
eventId :: Prelude.Maybe Prelude.Text,
    -- | Smooth Streaming publish point on an IIS server. Elemental Live acts as
    -- a \"Push\" encoder to IIS.
    MsSmoothGroupSettings -> OutputLocationRef
destination :: OutputLocationRef
  }
  deriving (MsSmoothGroupSettings -> MsSmoothGroupSettings -> Bool
(MsSmoothGroupSettings -> MsSmoothGroupSettings -> Bool)
-> (MsSmoothGroupSettings -> MsSmoothGroupSettings -> Bool)
-> Eq MsSmoothGroupSettings
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: MsSmoothGroupSettings -> MsSmoothGroupSettings -> Bool
$c/= :: MsSmoothGroupSettings -> MsSmoothGroupSettings -> Bool
== :: MsSmoothGroupSettings -> MsSmoothGroupSettings -> Bool
$c== :: MsSmoothGroupSettings -> MsSmoothGroupSettings -> Bool
Prelude.Eq, ReadPrec [MsSmoothGroupSettings]
ReadPrec MsSmoothGroupSettings
Int -> ReadS MsSmoothGroupSettings
ReadS [MsSmoothGroupSettings]
(Int -> ReadS MsSmoothGroupSettings)
-> ReadS [MsSmoothGroupSettings]
-> ReadPrec MsSmoothGroupSettings
-> ReadPrec [MsSmoothGroupSettings]
-> Read MsSmoothGroupSettings
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [MsSmoothGroupSettings]
$creadListPrec :: ReadPrec [MsSmoothGroupSettings]
readPrec :: ReadPrec MsSmoothGroupSettings
$creadPrec :: ReadPrec MsSmoothGroupSettings
readList :: ReadS [MsSmoothGroupSettings]
$creadList :: ReadS [MsSmoothGroupSettings]
readsPrec :: Int -> ReadS MsSmoothGroupSettings
$creadsPrec :: Int -> ReadS MsSmoothGroupSettings
Prelude.Read, Int -> MsSmoothGroupSettings -> ShowS
[MsSmoothGroupSettings] -> ShowS
MsSmoothGroupSettings -> String
(Int -> MsSmoothGroupSettings -> ShowS)
-> (MsSmoothGroupSettings -> String)
-> ([MsSmoothGroupSettings] -> ShowS)
-> Show MsSmoothGroupSettings
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [MsSmoothGroupSettings] -> ShowS
$cshowList :: [MsSmoothGroupSettings] -> ShowS
show :: MsSmoothGroupSettings -> String
$cshow :: MsSmoothGroupSettings -> String
showsPrec :: Int -> MsSmoothGroupSettings -> ShowS
$cshowsPrec :: Int -> MsSmoothGroupSettings -> ShowS
Prelude.Show, (forall x. MsSmoothGroupSettings -> Rep MsSmoothGroupSettings x)
-> (forall x. Rep MsSmoothGroupSettings x -> MsSmoothGroupSettings)
-> Generic MsSmoothGroupSettings
forall x. Rep MsSmoothGroupSettings x -> MsSmoothGroupSettings
forall x. MsSmoothGroupSettings -> Rep MsSmoothGroupSettings x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep MsSmoothGroupSettings x -> MsSmoothGroupSettings
$cfrom :: forall x. MsSmoothGroupSettings -> Rep MsSmoothGroupSettings x
Prelude.Generic)

-- |
-- Create a value of 'MsSmoothGroupSettings' with all optional fields omitted.
--
-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.
--
-- The following record fields are available, with the corresponding lenses provided
-- for backwards compatibility:
--
-- 'fragmentLength', 'msSmoothGroupSettings_fragmentLength' - Length of mp4 fragments to generate (in seconds). Fragment length must
-- be compatible with GOP size and framerate.
--
-- 'streamManifestBehavior', 'msSmoothGroupSettings_streamManifestBehavior' - When set to send, send stream manifest so publishing point doesn\'t
-- start until all streams start.
--
-- 'sendDelayMs', 'msSmoothGroupSettings_sendDelayMs' - Number of milliseconds to delay the output from the second pipeline.
--
-- 'eventStopBehavior', 'msSmoothGroupSettings_eventStopBehavior' - When set to sendEos, send EOS signal to IIS server when stopping the
-- event
--
-- 'timestampOffsetMode', 'msSmoothGroupSettings_timestampOffsetMode' - Type of timestamp date offset to use. - useEventStartDate: Use the date
-- the event was started as the offset - useConfiguredOffset: Use an
-- explicitly configured date as the offset
--
-- 'numRetries', 'msSmoothGroupSettings_numRetries' - Number of retry attempts.
--
-- 'acquisitionPointId', 'msSmoothGroupSettings_acquisitionPointId' - The ID to include in each message in the sparse track. Ignored if
-- sparseTrackType is NONE.
--
-- 'inputLossAction', 'msSmoothGroupSettings_inputLossAction' - Parameter that control output group behavior on input loss.
--
-- 'timestampOffset', 'msSmoothGroupSettings_timestampOffset' - Timestamp offset for the event. Only used if timestampOffsetMode is set
-- to useConfiguredOffset.
--
-- 'certificateMode', 'msSmoothGroupSettings_certificateMode' - If set to verifyAuthenticity, verify the https certificate chain to a
-- trusted Certificate Authority (CA). This will cause https outputs to
-- self-signed certificates to fail.
--
-- 'sparseTrackType', 'msSmoothGroupSettings_sparseTrackType' - Identifies the type of data to place in the sparse track: - SCTE35:
-- Insert SCTE-35 messages from the source content. With each message,
-- insert an IDR frame to start a new segment. -
-- SCTE35_WITHOUT_SEGMENTATION: Insert SCTE-35 messages from the source
-- content. With each message, insert an IDR frame but don\'t start a new
-- segment. - NONE: Don\'t generate a sparse track for any outputs in this
-- output group.
--
-- 'connectionRetryInterval', 'msSmoothGroupSettings_connectionRetryInterval' - Number of seconds to wait before retrying connection to the IIS server
-- if the connection is lost. Content will be cached during this time and
-- the cache will be be delivered to the IIS server once the connection is
-- re-established.
--
-- 'filecacheDuration', 'msSmoothGroupSettings_filecacheDuration' - Size in seconds of file cache for streaming outputs.
--
-- 'restartDelay', 'msSmoothGroupSettings_restartDelay' - Number of seconds before initiating a restart due to output failure, due
-- to exhausting the numRetries on one segment, or exceeding
-- filecacheDuration.
--
-- 'eventIdMode', 'msSmoothGroupSettings_eventIdMode' - Specifies whether or not to send an event ID to the IIS server. If no
-- event ID is sent and the same Live Event is used without changing the
-- publishing point, clients might see cached video from the previous run.
-- Options: - \"useConfigured\" - use the value provided in eventId -
-- \"useTimestamp\" - generate and send an event ID based on the current
-- timestamp - \"noEventId\" - do not send an event ID to the IIS server.
--
-- 'audioOnlyTimecodeControl', 'msSmoothGroupSettings_audioOnlyTimecodeControl' - If set to passthrough for an audio-only MS Smooth output, the fragment
-- absolute time will be set to the current timecode. This option does not
-- write timecodes to the audio elementary stream.
--
-- 'segmentationMode', 'msSmoothGroupSettings_segmentationMode' - useInputSegmentation has been deprecated. The configured segment size is
-- always used.
--
-- 'eventId', 'msSmoothGroupSettings_eventId' - MS Smooth event ID to be sent to the IIS server. Should only be
-- specified if eventIdMode is set to useConfigured.
--
-- 'destination', 'msSmoothGroupSettings_destination' - Smooth Streaming publish point on an IIS server. Elemental Live acts as
-- a \"Push\" encoder to IIS.
newMsSmoothGroupSettings ::
  -- | 'destination'
  OutputLocationRef ->
  MsSmoothGroupSettings
newMsSmoothGroupSettings :: OutputLocationRef -> MsSmoothGroupSettings
newMsSmoothGroupSettings OutputLocationRef
pDestination_ =
  MsSmoothGroupSettings' :: Maybe Natural
-> Maybe SmoothGroupStreamManifestBehavior
-> Maybe Natural
-> Maybe SmoothGroupEventStopBehavior
-> Maybe SmoothGroupTimestampOffsetMode
-> Maybe Natural
-> Maybe Text
-> Maybe InputLossActionForMsSmoothOut
-> Maybe Text
-> Maybe SmoothGroupCertificateMode
-> Maybe SmoothGroupSparseTrackType
-> Maybe Natural
-> Maybe Natural
-> Maybe Natural
-> Maybe SmoothGroupEventIdMode
-> Maybe SmoothGroupAudioOnlyTimecodeControl
-> Maybe SmoothGroupSegmentationMode
-> Maybe Text
-> OutputLocationRef
-> MsSmoothGroupSettings
MsSmoothGroupSettings'
    { $sel:fragmentLength:MsSmoothGroupSettings' :: Maybe Natural
fragmentLength =
        Maybe Natural
forall a. Maybe a
Prelude.Nothing,
      $sel:streamManifestBehavior:MsSmoothGroupSettings' :: Maybe SmoothGroupStreamManifestBehavior
streamManifestBehavior = Maybe SmoothGroupStreamManifestBehavior
forall a. Maybe a
Prelude.Nothing,
      $sel:sendDelayMs:MsSmoothGroupSettings' :: Maybe Natural
sendDelayMs = Maybe Natural
forall a. Maybe a
Prelude.Nothing,
      $sel:eventStopBehavior:MsSmoothGroupSettings' :: Maybe SmoothGroupEventStopBehavior
eventStopBehavior = Maybe SmoothGroupEventStopBehavior
forall a. Maybe a
Prelude.Nothing,
      $sel:timestampOffsetMode:MsSmoothGroupSettings' :: Maybe SmoothGroupTimestampOffsetMode
timestampOffsetMode = Maybe SmoothGroupTimestampOffsetMode
forall a. Maybe a
Prelude.Nothing,
      $sel:numRetries:MsSmoothGroupSettings' :: Maybe Natural
numRetries = Maybe Natural
forall a. Maybe a
Prelude.Nothing,
      $sel:acquisitionPointId:MsSmoothGroupSettings' :: Maybe Text
acquisitionPointId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:inputLossAction:MsSmoothGroupSettings' :: Maybe InputLossActionForMsSmoothOut
inputLossAction = Maybe InputLossActionForMsSmoothOut
forall a. Maybe a
Prelude.Nothing,
      $sel:timestampOffset:MsSmoothGroupSettings' :: Maybe Text
timestampOffset = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:certificateMode:MsSmoothGroupSettings' :: Maybe SmoothGroupCertificateMode
certificateMode = Maybe SmoothGroupCertificateMode
forall a. Maybe a
Prelude.Nothing,
      $sel:sparseTrackType:MsSmoothGroupSettings' :: Maybe SmoothGroupSparseTrackType
sparseTrackType = Maybe SmoothGroupSparseTrackType
forall a. Maybe a
Prelude.Nothing,
      $sel:connectionRetryInterval:MsSmoothGroupSettings' :: Maybe Natural
connectionRetryInterval = Maybe Natural
forall a. Maybe a
Prelude.Nothing,
      $sel:filecacheDuration:MsSmoothGroupSettings' :: Maybe Natural
filecacheDuration = Maybe Natural
forall a. Maybe a
Prelude.Nothing,
      $sel:restartDelay:MsSmoothGroupSettings' :: Maybe Natural
restartDelay = Maybe Natural
forall a. Maybe a
Prelude.Nothing,
      $sel:eventIdMode:MsSmoothGroupSettings' :: Maybe SmoothGroupEventIdMode
eventIdMode = Maybe SmoothGroupEventIdMode
forall a. Maybe a
Prelude.Nothing,
      $sel:audioOnlyTimecodeControl:MsSmoothGroupSettings' :: Maybe SmoothGroupAudioOnlyTimecodeControl
audioOnlyTimecodeControl = Maybe SmoothGroupAudioOnlyTimecodeControl
forall a. Maybe a
Prelude.Nothing,
      $sel:segmentationMode:MsSmoothGroupSettings' :: Maybe SmoothGroupSegmentationMode
segmentationMode = Maybe SmoothGroupSegmentationMode
forall a. Maybe a
Prelude.Nothing,
      $sel:eventId:MsSmoothGroupSettings' :: Maybe Text
eventId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:destination:MsSmoothGroupSettings' :: OutputLocationRef
destination = OutputLocationRef
pDestination_
    }

-- | Length of mp4 fragments to generate (in seconds). Fragment length must
-- be compatible with GOP size and framerate.
msSmoothGroupSettings_fragmentLength :: Lens.Lens' MsSmoothGroupSettings (Prelude.Maybe Prelude.Natural)
msSmoothGroupSettings_fragmentLength :: (Maybe Natural -> f (Maybe Natural))
-> MsSmoothGroupSettings -> f MsSmoothGroupSettings
msSmoothGroupSettings_fragmentLength = (MsSmoothGroupSettings -> Maybe Natural)
-> (MsSmoothGroupSettings
    -> Maybe Natural -> MsSmoothGroupSettings)
-> Lens
     MsSmoothGroupSettings
     MsSmoothGroupSettings
     (Maybe Natural)
     (Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\MsSmoothGroupSettings' {Maybe Natural
fragmentLength :: Maybe Natural
$sel:fragmentLength:MsSmoothGroupSettings' :: MsSmoothGroupSettings -> Maybe Natural
fragmentLength} -> Maybe Natural
fragmentLength) (\s :: MsSmoothGroupSettings
s@MsSmoothGroupSettings' {} Maybe Natural
a -> MsSmoothGroupSettings
s {$sel:fragmentLength:MsSmoothGroupSettings' :: Maybe Natural
fragmentLength = Maybe Natural
a} :: MsSmoothGroupSettings)

-- | When set to send, send stream manifest so publishing point doesn\'t
-- start until all streams start.
msSmoothGroupSettings_streamManifestBehavior :: Lens.Lens' MsSmoothGroupSettings (Prelude.Maybe SmoothGroupStreamManifestBehavior)
msSmoothGroupSettings_streamManifestBehavior :: (Maybe SmoothGroupStreamManifestBehavior
 -> f (Maybe SmoothGroupStreamManifestBehavior))
-> MsSmoothGroupSettings -> f MsSmoothGroupSettings
msSmoothGroupSettings_streamManifestBehavior = (MsSmoothGroupSettings -> Maybe SmoothGroupStreamManifestBehavior)
-> (MsSmoothGroupSettings
    -> Maybe SmoothGroupStreamManifestBehavior
    -> MsSmoothGroupSettings)
-> Lens
     MsSmoothGroupSettings
     MsSmoothGroupSettings
     (Maybe SmoothGroupStreamManifestBehavior)
     (Maybe SmoothGroupStreamManifestBehavior)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\MsSmoothGroupSettings' {Maybe SmoothGroupStreamManifestBehavior
streamManifestBehavior :: Maybe SmoothGroupStreamManifestBehavior
$sel:streamManifestBehavior:MsSmoothGroupSettings' :: MsSmoothGroupSettings -> Maybe SmoothGroupStreamManifestBehavior
streamManifestBehavior} -> Maybe SmoothGroupStreamManifestBehavior
streamManifestBehavior) (\s :: MsSmoothGroupSettings
s@MsSmoothGroupSettings' {} Maybe SmoothGroupStreamManifestBehavior
a -> MsSmoothGroupSettings
s {$sel:streamManifestBehavior:MsSmoothGroupSettings' :: Maybe SmoothGroupStreamManifestBehavior
streamManifestBehavior = Maybe SmoothGroupStreamManifestBehavior
a} :: MsSmoothGroupSettings)

-- | Number of milliseconds to delay the output from the second pipeline.
msSmoothGroupSettings_sendDelayMs :: Lens.Lens' MsSmoothGroupSettings (Prelude.Maybe Prelude.Natural)
msSmoothGroupSettings_sendDelayMs :: (Maybe Natural -> f (Maybe Natural))
-> MsSmoothGroupSettings -> f MsSmoothGroupSettings
msSmoothGroupSettings_sendDelayMs = (MsSmoothGroupSettings -> Maybe Natural)
-> (MsSmoothGroupSettings
    -> Maybe Natural -> MsSmoothGroupSettings)
-> Lens
     MsSmoothGroupSettings
     MsSmoothGroupSettings
     (Maybe Natural)
     (Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\MsSmoothGroupSettings' {Maybe Natural
sendDelayMs :: Maybe Natural
$sel:sendDelayMs:MsSmoothGroupSettings' :: MsSmoothGroupSettings -> Maybe Natural
sendDelayMs} -> Maybe Natural
sendDelayMs) (\s :: MsSmoothGroupSettings
s@MsSmoothGroupSettings' {} Maybe Natural
a -> MsSmoothGroupSettings
s {$sel:sendDelayMs:MsSmoothGroupSettings' :: Maybe Natural
sendDelayMs = Maybe Natural
a} :: MsSmoothGroupSettings)

-- | When set to sendEos, send EOS signal to IIS server when stopping the
-- event
msSmoothGroupSettings_eventStopBehavior :: Lens.Lens' MsSmoothGroupSettings (Prelude.Maybe SmoothGroupEventStopBehavior)
msSmoothGroupSettings_eventStopBehavior :: (Maybe SmoothGroupEventStopBehavior
 -> f (Maybe SmoothGroupEventStopBehavior))
-> MsSmoothGroupSettings -> f MsSmoothGroupSettings
msSmoothGroupSettings_eventStopBehavior = (MsSmoothGroupSettings -> Maybe SmoothGroupEventStopBehavior)
-> (MsSmoothGroupSettings
    -> Maybe SmoothGroupEventStopBehavior -> MsSmoothGroupSettings)
-> Lens
     MsSmoothGroupSettings
     MsSmoothGroupSettings
     (Maybe SmoothGroupEventStopBehavior)
     (Maybe SmoothGroupEventStopBehavior)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\MsSmoothGroupSettings' {Maybe SmoothGroupEventStopBehavior
eventStopBehavior :: Maybe SmoothGroupEventStopBehavior
$sel:eventStopBehavior:MsSmoothGroupSettings' :: MsSmoothGroupSettings -> Maybe SmoothGroupEventStopBehavior
eventStopBehavior} -> Maybe SmoothGroupEventStopBehavior
eventStopBehavior) (\s :: MsSmoothGroupSettings
s@MsSmoothGroupSettings' {} Maybe SmoothGroupEventStopBehavior
a -> MsSmoothGroupSettings
s {$sel:eventStopBehavior:MsSmoothGroupSettings' :: Maybe SmoothGroupEventStopBehavior
eventStopBehavior = Maybe SmoothGroupEventStopBehavior
a} :: MsSmoothGroupSettings)

-- | Type of timestamp date offset to use. - useEventStartDate: Use the date
-- the event was started as the offset - useConfiguredOffset: Use an
-- explicitly configured date as the offset
msSmoothGroupSettings_timestampOffsetMode :: Lens.Lens' MsSmoothGroupSettings (Prelude.Maybe SmoothGroupTimestampOffsetMode)
msSmoothGroupSettings_timestampOffsetMode :: (Maybe SmoothGroupTimestampOffsetMode
 -> f (Maybe SmoothGroupTimestampOffsetMode))
-> MsSmoothGroupSettings -> f MsSmoothGroupSettings
msSmoothGroupSettings_timestampOffsetMode = (MsSmoothGroupSettings -> Maybe SmoothGroupTimestampOffsetMode)
-> (MsSmoothGroupSettings
    -> Maybe SmoothGroupTimestampOffsetMode -> MsSmoothGroupSettings)
-> Lens
     MsSmoothGroupSettings
     MsSmoothGroupSettings
     (Maybe SmoothGroupTimestampOffsetMode)
     (Maybe SmoothGroupTimestampOffsetMode)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\MsSmoothGroupSettings' {Maybe SmoothGroupTimestampOffsetMode
timestampOffsetMode :: Maybe SmoothGroupTimestampOffsetMode
$sel:timestampOffsetMode:MsSmoothGroupSettings' :: MsSmoothGroupSettings -> Maybe SmoothGroupTimestampOffsetMode
timestampOffsetMode} -> Maybe SmoothGroupTimestampOffsetMode
timestampOffsetMode) (\s :: MsSmoothGroupSettings
s@MsSmoothGroupSettings' {} Maybe SmoothGroupTimestampOffsetMode
a -> MsSmoothGroupSettings
s {$sel:timestampOffsetMode:MsSmoothGroupSettings' :: Maybe SmoothGroupTimestampOffsetMode
timestampOffsetMode = Maybe SmoothGroupTimestampOffsetMode
a} :: MsSmoothGroupSettings)

-- | Number of retry attempts.
msSmoothGroupSettings_numRetries :: Lens.Lens' MsSmoothGroupSettings (Prelude.Maybe Prelude.Natural)
msSmoothGroupSettings_numRetries :: (Maybe Natural -> f (Maybe Natural))
-> MsSmoothGroupSettings -> f MsSmoothGroupSettings
msSmoothGroupSettings_numRetries = (MsSmoothGroupSettings -> Maybe Natural)
-> (MsSmoothGroupSettings
    -> Maybe Natural -> MsSmoothGroupSettings)
-> Lens
     MsSmoothGroupSettings
     MsSmoothGroupSettings
     (Maybe Natural)
     (Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\MsSmoothGroupSettings' {Maybe Natural
numRetries :: Maybe Natural
$sel:numRetries:MsSmoothGroupSettings' :: MsSmoothGroupSettings -> Maybe Natural
numRetries} -> Maybe Natural
numRetries) (\s :: MsSmoothGroupSettings
s@MsSmoothGroupSettings' {} Maybe Natural
a -> MsSmoothGroupSettings
s {$sel:numRetries:MsSmoothGroupSettings' :: Maybe Natural
numRetries = Maybe Natural
a} :: MsSmoothGroupSettings)

-- | The ID to include in each message in the sparse track. Ignored if
-- sparseTrackType is NONE.
msSmoothGroupSettings_acquisitionPointId :: Lens.Lens' MsSmoothGroupSettings (Prelude.Maybe Prelude.Text)
msSmoothGroupSettings_acquisitionPointId :: (Maybe Text -> f (Maybe Text))
-> MsSmoothGroupSettings -> f MsSmoothGroupSettings
msSmoothGroupSettings_acquisitionPointId = (MsSmoothGroupSettings -> Maybe Text)
-> (MsSmoothGroupSettings -> Maybe Text -> MsSmoothGroupSettings)
-> Lens
     MsSmoothGroupSettings
     MsSmoothGroupSettings
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\MsSmoothGroupSettings' {Maybe Text
acquisitionPointId :: Maybe Text
$sel:acquisitionPointId:MsSmoothGroupSettings' :: MsSmoothGroupSettings -> Maybe Text
acquisitionPointId} -> Maybe Text
acquisitionPointId) (\s :: MsSmoothGroupSettings
s@MsSmoothGroupSettings' {} Maybe Text
a -> MsSmoothGroupSettings
s {$sel:acquisitionPointId:MsSmoothGroupSettings' :: Maybe Text
acquisitionPointId = Maybe Text
a} :: MsSmoothGroupSettings)

-- | Parameter that control output group behavior on input loss.
msSmoothGroupSettings_inputLossAction :: Lens.Lens' MsSmoothGroupSettings (Prelude.Maybe InputLossActionForMsSmoothOut)
msSmoothGroupSettings_inputLossAction :: (Maybe InputLossActionForMsSmoothOut
 -> f (Maybe InputLossActionForMsSmoothOut))
-> MsSmoothGroupSettings -> f MsSmoothGroupSettings
msSmoothGroupSettings_inputLossAction = (MsSmoothGroupSettings -> Maybe InputLossActionForMsSmoothOut)
-> (MsSmoothGroupSettings
    -> Maybe InputLossActionForMsSmoothOut -> MsSmoothGroupSettings)
-> Lens
     MsSmoothGroupSettings
     MsSmoothGroupSettings
     (Maybe InputLossActionForMsSmoothOut)
     (Maybe InputLossActionForMsSmoothOut)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\MsSmoothGroupSettings' {Maybe InputLossActionForMsSmoothOut
inputLossAction :: Maybe InputLossActionForMsSmoothOut
$sel:inputLossAction:MsSmoothGroupSettings' :: MsSmoothGroupSettings -> Maybe InputLossActionForMsSmoothOut
inputLossAction} -> Maybe InputLossActionForMsSmoothOut
inputLossAction) (\s :: MsSmoothGroupSettings
s@MsSmoothGroupSettings' {} Maybe InputLossActionForMsSmoothOut
a -> MsSmoothGroupSettings
s {$sel:inputLossAction:MsSmoothGroupSettings' :: Maybe InputLossActionForMsSmoothOut
inputLossAction = Maybe InputLossActionForMsSmoothOut
a} :: MsSmoothGroupSettings)

-- | Timestamp offset for the event. Only used if timestampOffsetMode is set
-- to useConfiguredOffset.
msSmoothGroupSettings_timestampOffset :: Lens.Lens' MsSmoothGroupSettings (Prelude.Maybe Prelude.Text)
msSmoothGroupSettings_timestampOffset :: (Maybe Text -> f (Maybe Text))
-> MsSmoothGroupSettings -> f MsSmoothGroupSettings
msSmoothGroupSettings_timestampOffset = (MsSmoothGroupSettings -> Maybe Text)
-> (MsSmoothGroupSettings -> Maybe Text -> MsSmoothGroupSettings)
-> Lens
     MsSmoothGroupSettings
     MsSmoothGroupSettings
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\MsSmoothGroupSettings' {Maybe Text
timestampOffset :: Maybe Text
$sel:timestampOffset:MsSmoothGroupSettings' :: MsSmoothGroupSettings -> Maybe Text
timestampOffset} -> Maybe Text
timestampOffset) (\s :: MsSmoothGroupSettings
s@MsSmoothGroupSettings' {} Maybe Text
a -> MsSmoothGroupSettings
s {$sel:timestampOffset:MsSmoothGroupSettings' :: Maybe Text
timestampOffset = Maybe Text
a} :: MsSmoothGroupSettings)

-- | If set to verifyAuthenticity, verify the https certificate chain to a
-- trusted Certificate Authority (CA). This will cause https outputs to
-- self-signed certificates to fail.
msSmoothGroupSettings_certificateMode :: Lens.Lens' MsSmoothGroupSettings (Prelude.Maybe SmoothGroupCertificateMode)
msSmoothGroupSettings_certificateMode :: (Maybe SmoothGroupCertificateMode
 -> f (Maybe SmoothGroupCertificateMode))
-> MsSmoothGroupSettings -> f MsSmoothGroupSettings
msSmoothGroupSettings_certificateMode = (MsSmoothGroupSettings -> Maybe SmoothGroupCertificateMode)
-> (MsSmoothGroupSettings
    -> Maybe SmoothGroupCertificateMode -> MsSmoothGroupSettings)
-> Lens
     MsSmoothGroupSettings
     MsSmoothGroupSettings
     (Maybe SmoothGroupCertificateMode)
     (Maybe SmoothGroupCertificateMode)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\MsSmoothGroupSettings' {Maybe SmoothGroupCertificateMode
certificateMode :: Maybe SmoothGroupCertificateMode
$sel:certificateMode:MsSmoothGroupSettings' :: MsSmoothGroupSettings -> Maybe SmoothGroupCertificateMode
certificateMode} -> Maybe SmoothGroupCertificateMode
certificateMode) (\s :: MsSmoothGroupSettings
s@MsSmoothGroupSettings' {} Maybe SmoothGroupCertificateMode
a -> MsSmoothGroupSettings
s {$sel:certificateMode:MsSmoothGroupSettings' :: Maybe SmoothGroupCertificateMode
certificateMode = Maybe SmoothGroupCertificateMode
a} :: MsSmoothGroupSettings)

-- | Identifies the type of data to place in the sparse track: - SCTE35:
-- Insert SCTE-35 messages from the source content. With each message,
-- insert an IDR frame to start a new segment. -
-- SCTE35_WITHOUT_SEGMENTATION: Insert SCTE-35 messages from the source
-- content. With each message, insert an IDR frame but don\'t start a new
-- segment. - NONE: Don\'t generate a sparse track for any outputs in this
-- output group.
msSmoothGroupSettings_sparseTrackType :: Lens.Lens' MsSmoothGroupSettings (Prelude.Maybe SmoothGroupSparseTrackType)
msSmoothGroupSettings_sparseTrackType :: (Maybe SmoothGroupSparseTrackType
 -> f (Maybe SmoothGroupSparseTrackType))
-> MsSmoothGroupSettings -> f MsSmoothGroupSettings
msSmoothGroupSettings_sparseTrackType = (MsSmoothGroupSettings -> Maybe SmoothGroupSparseTrackType)
-> (MsSmoothGroupSettings
    -> Maybe SmoothGroupSparseTrackType -> MsSmoothGroupSettings)
-> Lens
     MsSmoothGroupSettings
     MsSmoothGroupSettings
     (Maybe SmoothGroupSparseTrackType)
     (Maybe SmoothGroupSparseTrackType)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\MsSmoothGroupSettings' {Maybe SmoothGroupSparseTrackType
sparseTrackType :: Maybe SmoothGroupSparseTrackType
$sel:sparseTrackType:MsSmoothGroupSettings' :: MsSmoothGroupSettings -> Maybe SmoothGroupSparseTrackType
sparseTrackType} -> Maybe SmoothGroupSparseTrackType
sparseTrackType) (\s :: MsSmoothGroupSettings
s@MsSmoothGroupSettings' {} Maybe SmoothGroupSparseTrackType
a -> MsSmoothGroupSettings
s {$sel:sparseTrackType:MsSmoothGroupSettings' :: Maybe SmoothGroupSparseTrackType
sparseTrackType = Maybe SmoothGroupSparseTrackType
a} :: MsSmoothGroupSettings)

-- | Number of seconds to wait before retrying connection to the IIS server
-- if the connection is lost. Content will be cached during this time and
-- the cache will be be delivered to the IIS server once the connection is
-- re-established.
msSmoothGroupSettings_connectionRetryInterval :: Lens.Lens' MsSmoothGroupSettings (Prelude.Maybe Prelude.Natural)
msSmoothGroupSettings_connectionRetryInterval :: (Maybe Natural -> f (Maybe Natural))
-> MsSmoothGroupSettings -> f MsSmoothGroupSettings
msSmoothGroupSettings_connectionRetryInterval = (MsSmoothGroupSettings -> Maybe Natural)
-> (MsSmoothGroupSettings
    -> Maybe Natural -> MsSmoothGroupSettings)
-> Lens
     MsSmoothGroupSettings
     MsSmoothGroupSettings
     (Maybe Natural)
     (Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\MsSmoothGroupSettings' {Maybe Natural
connectionRetryInterval :: Maybe Natural
$sel:connectionRetryInterval:MsSmoothGroupSettings' :: MsSmoothGroupSettings -> Maybe Natural
connectionRetryInterval} -> Maybe Natural
connectionRetryInterval) (\s :: MsSmoothGroupSettings
s@MsSmoothGroupSettings' {} Maybe Natural
a -> MsSmoothGroupSettings
s {$sel:connectionRetryInterval:MsSmoothGroupSettings' :: Maybe Natural
connectionRetryInterval = Maybe Natural
a} :: MsSmoothGroupSettings)

-- | Size in seconds of file cache for streaming outputs.
msSmoothGroupSettings_filecacheDuration :: Lens.Lens' MsSmoothGroupSettings (Prelude.Maybe Prelude.Natural)
msSmoothGroupSettings_filecacheDuration :: (Maybe Natural -> f (Maybe Natural))
-> MsSmoothGroupSettings -> f MsSmoothGroupSettings
msSmoothGroupSettings_filecacheDuration = (MsSmoothGroupSettings -> Maybe Natural)
-> (MsSmoothGroupSettings
    -> Maybe Natural -> MsSmoothGroupSettings)
-> Lens
     MsSmoothGroupSettings
     MsSmoothGroupSettings
     (Maybe Natural)
     (Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\MsSmoothGroupSettings' {Maybe Natural
filecacheDuration :: Maybe Natural
$sel:filecacheDuration:MsSmoothGroupSettings' :: MsSmoothGroupSettings -> Maybe Natural
filecacheDuration} -> Maybe Natural
filecacheDuration) (\s :: MsSmoothGroupSettings
s@MsSmoothGroupSettings' {} Maybe Natural
a -> MsSmoothGroupSettings
s {$sel:filecacheDuration:MsSmoothGroupSettings' :: Maybe Natural
filecacheDuration = Maybe Natural
a} :: MsSmoothGroupSettings)

-- | Number of seconds before initiating a restart due to output failure, due
-- to exhausting the numRetries on one segment, or exceeding
-- filecacheDuration.
msSmoothGroupSettings_restartDelay :: Lens.Lens' MsSmoothGroupSettings (Prelude.Maybe Prelude.Natural)
msSmoothGroupSettings_restartDelay :: (Maybe Natural -> f (Maybe Natural))
-> MsSmoothGroupSettings -> f MsSmoothGroupSettings
msSmoothGroupSettings_restartDelay = (MsSmoothGroupSettings -> Maybe Natural)
-> (MsSmoothGroupSettings
    -> Maybe Natural -> MsSmoothGroupSettings)
-> Lens
     MsSmoothGroupSettings
     MsSmoothGroupSettings
     (Maybe Natural)
     (Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\MsSmoothGroupSettings' {Maybe Natural
restartDelay :: Maybe Natural
$sel:restartDelay:MsSmoothGroupSettings' :: MsSmoothGroupSettings -> Maybe Natural
restartDelay} -> Maybe Natural
restartDelay) (\s :: MsSmoothGroupSettings
s@MsSmoothGroupSettings' {} Maybe Natural
a -> MsSmoothGroupSettings
s {$sel:restartDelay:MsSmoothGroupSettings' :: Maybe Natural
restartDelay = Maybe Natural
a} :: MsSmoothGroupSettings)

-- | Specifies whether or not to send an event ID to the IIS server. If no
-- event ID is sent and the same Live Event is used without changing the
-- publishing point, clients might see cached video from the previous run.
-- Options: - \"useConfigured\" - use the value provided in eventId -
-- \"useTimestamp\" - generate and send an event ID based on the current
-- timestamp - \"noEventId\" - do not send an event ID to the IIS server.
msSmoothGroupSettings_eventIdMode :: Lens.Lens' MsSmoothGroupSettings (Prelude.Maybe SmoothGroupEventIdMode)
msSmoothGroupSettings_eventIdMode :: (Maybe SmoothGroupEventIdMode -> f (Maybe SmoothGroupEventIdMode))
-> MsSmoothGroupSettings -> f MsSmoothGroupSettings
msSmoothGroupSettings_eventIdMode = (MsSmoothGroupSettings -> Maybe SmoothGroupEventIdMode)
-> (MsSmoothGroupSettings
    -> Maybe SmoothGroupEventIdMode -> MsSmoothGroupSettings)
-> Lens
     MsSmoothGroupSettings
     MsSmoothGroupSettings
     (Maybe SmoothGroupEventIdMode)
     (Maybe SmoothGroupEventIdMode)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\MsSmoothGroupSettings' {Maybe SmoothGroupEventIdMode
eventIdMode :: Maybe SmoothGroupEventIdMode
$sel:eventIdMode:MsSmoothGroupSettings' :: MsSmoothGroupSettings -> Maybe SmoothGroupEventIdMode
eventIdMode} -> Maybe SmoothGroupEventIdMode
eventIdMode) (\s :: MsSmoothGroupSettings
s@MsSmoothGroupSettings' {} Maybe SmoothGroupEventIdMode
a -> MsSmoothGroupSettings
s {$sel:eventIdMode:MsSmoothGroupSettings' :: Maybe SmoothGroupEventIdMode
eventIdMode = Maybe SmoothGroupEventIdMode
a} :: MsSmoothGroupSettings)

-- | If set to passthrough for an audio-only MS Smooth output, the fragment
-- absolute time will be set to the current timecode. This option does not
-- write timecodes to the audio elementary stream.
msSmoothGroupSettings_audioOnlyTimecodeControl :: Lens.Lens' MsSmoothGroupSettings (Prelude.Maybe SmoothGroupAudioOnlyTimecodeControl)
msSmoothGroupSettings_audioOnlyTimecodeControl :: (Maybe SmoothGroupAudioOnlyTimecodeControl
 -> f (Maybe SmoothGroupAudioOnlyTimecodeControl))
-> MsSmoothGroupSettings -> f MsSmoothGroupSettings
msSmoothGroupSettings_audioOnlyTimecodeControl = (MsSmoothGroupSettings
 -> Maybe SmoothGroupAudioOnlyTimecodeControl)
-> (MsSmoothGroupSettings
    -> Maybe SmoothGroupAudioOnlyTimecodeControl
    -> MsSmoothGroupSettings)
-> Lens
     MsSmoothGroupSettings
     MsSmoothGroupSettings
     (Maybe SmoothGroupAudioOnlyTimecodeControl)
     (Maybe SmoothGroupAudioOnlyTimecodeControl)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\MsSmoothGroupSettings' {Maybe SmoothGroupAudioOnlyTimecodeControl
audioOnlyTimecodeControl :: Maybe SmoothGroupAudioOnlyTimecodeControl
$sel:audioOnlyTimecodeControl:MsSmoothGroupSettings' :: MsSmoothGroupSettings -> Maybe SmoothGroupAudioOnlyTimecodeControl
audioOnlyTimecodeControl} -> Maybe SmoothGroupAudioOnlyTimecodeControl
audioOnlyTimecodeControl) (\s :: MsSmoothGroupSettings
s@MsSmoothGroupSettings' {} Maybe SmoothGroupAudioOnlyTimecodeControl
a -> MsSmoothGroupSettings
s {$sel:audioOnlyTimecodeControl:MsSmoothGroupSettings' :: Maybe SmoothGroupAudioOnlyTimecodeControl
audioOnlyTimecodeControl = Maybe SmoothGroupAudioOnlyTimecodeControl
a} :: MsSmoothGroupSettings)

-- | useInputSegmentation has been deprecated. The configured segment size is
-- always used.
msSmoothGroupSettings_segmentationMode :: Lens.Lens' MsSmoothGroupSettings (Prelude.Maybe SmoothGroupSegmentationMode)
msSmoothGroupSettings_segmentationMode :: (Maybe SmoothGroupSegmentationMode
 -> f (Maybe SmoothGroupSegmentationMode))
-> MsSmoothGroupSettings -> f MsSmoothGroupSettings
msSmoothGroupSettings_segmentationMode = (MsSmoothGroupSettings -> Maybe SmoothGroupSegmentationMode)
-> (MsSmoothGroupSettings
    -> Maybe SmoothGroupSegmentationMode -> MsSmoothGroupSettings)
-> Lens
     MsSmoothGroupSettings
     MsSmoothGroupSettings
     (Maybe SmoothGroupSegmentationMode)
     (Maybe SmoothGroupSegmentationMode)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\MsSmoothGroupSettings' {Maybe SmoothGroupSegmentationMode
segmentationMode :: Maybe SmoothGroupSegmentationMode
$sel:segmentationMode:MsSmoothGroupSettings' :: MsSmoothGroupSettings -> Maybe SmoothGroupSegmentationMode
segmentationMode} -> Maybe SmoothGroupSegmentationMode
segmentationMode) (\s :: MsSmoothGroupSettings
s@MsSmoothGroupSettings' {} Maybe SmoothGroupSegmentationMode
a -> MsSmoothGroupSettings
s {$sel:segmentationMode:MsSmoothGroupSettings' :: Maybe SmoothGroupSegmentationMode
segmentationMode = Maybe SmoothGroupSegmentationMode
a} :: MsSmoothGroupSettings)

-- | MS Smooth event ID to be sent to the IIS server. Should only be
-- specified if eventIdMode is set to useConfigured.
msSmoothGroupSettings_eventId :: Lens.Lens' MsSmoothGroupSettings (Prelude.Maybe Prelude.Text)
msSmoothGroupSettings_eventId :: (Maybe Text -> f (Maybe Text))
-> MsSmoothGroupSettings -> f MsSmoothGroupSettings
msSmoothGroupSettings_eventId = (MsSmoothGroupSettings -> Maybe Text)
-> (MsSmoothGroupSettings -> Maybe Text -> MsSmoothGroupSettings)
-> Lens
     MsSmoothGroupSettings
     MsSmoothGroupSettings
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\MsSmoothGroupSettings' {Maybe Text
eventId :: Maybe Text
$sel:eventId:MsSmoothGroupSettings' :: MsSmoothGroupSettings -> Maybe Text
eventId} -> Maybe Text
eventId) (\s :: MsSmoothGroupSettings
s@MsSmoothGroupSettings' {} Maybe Text
a -> MsSmoothGroupSettings
s {$sel:eventId:MsSmoothGroupSettings' :: Maybe Text
eventId = Maybe Text
a} :: MsSmoothGroupSettings)

-- | Smooth Streaming publish point on an IIS server. Elemental Live acts as
-- a \"Push\" encoder to IIS.
msSmoothGroupSettings_destination :: Lens.Lens' MsSmoothGroupSettings OutputLocationRef
msSmoothGroupSettings_destination :: (OutputLocationRef -> f OutputLocationRef)
-> MsSmoothGroupSettings -> f MsSmoothGroupSettings
msSmoothGroupSettings_destination = (MsSmoothGroupSettings -> OutputLocationRef)
-> (MsSmoothGroupSettings
    -> OutputLocationRef -> MsSmoothGroupSettings)
-> Lens
     MsSmoothGroupSettings
     MsSmoothGroupSettings
     OutputLocationRef
     OutputLocationRef
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\MsSmoothGroupSettings' {OutputLocationRef
destination :: OutputLocationRef
$sel:destination:MsSmoothGroupSettings' :: MsSmoothGroupSettings -> OutputLocationRef
destination} -> OutputLocationRef
destination) (\s :: MsSmoothGroupSettings
s@MsSmoothGroupSettings' {} OutputLocationRef
a -> MsSmoothGroupSettings
s {$sel:destination:MsSmoothGroupSettings' :: OutputLocationRef
destination = OutputLocationRef
a} :: MsSmoothGroupSettings)

instance Core.FromJSON MsSmoothGroupSettings where
  parseJSON :: Value -> Parser MsSmoothGroupSettings
parseJSON =
    String
-> (Object -> Parser MsSmoothGroupSettings)
-> Value
-> Parser MsSmoothGroupSettings
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Core.withObject
      String
"MsSmoothGroupSettings"
      ( \Object
x ->
          Maybe Natural
-> Maybe SmoothGroupStreamManifestBehavior
-> Maybe Natural
-> Maybe SmoothGroupEventStopBehavior
-> Maybe SmoothGroupTimestampOffsetMode
-> Maybe Natural
-> Maybe Text
-> Maybe InputLossActionForMsSmoothOut
-> Maybe Text
-> Maybe SmoothGroupCertificateMode
-> Maybe SmoothGroupSparseTrackType
-> Maybe Natural
-> Maybe Natural
-> Maybe Natural
-> Maybe SmoothGroupEventIdMode
-> Maybe SmoothGroupAudioOnlyTimecodeControl
-> Maybe SmoothGroupSegmentationMode
-> Maybe Text
-> OutputLocationRef
-> MsSmoothGroupSettings
MsSmoothGroupSettings'
            (Maybe Natural
 -> Maybe SmoothGroupStreamManifestBehavior
 -> Maybe Natural
 -> Maybe SmoothGroupEventStopBehavior
 -> Maybe SmoothGroupTimestampOffsetMode
 -> Maybe Natural
 -> Maybe Text
 -> Maybe InputLossActionForMsSmoothOut
 -> Maybe Text
 -> Maybe SmoothGroupCertificateMode
 -> Maybe SmoothGroupSparseTrackType
 -> Maybe Natural
 -> Maybe Natural
 -> Maybe Natural
 -> Maybe SmoothGroupEventIdMode
 -> Maybe SmoothGroupAudioOnlyTimecodeControl
 -> Maybe SmoothGroupSegmentationMode
 -> Maybe Text
 -> OutputLocationRef
 -> MsSmoothGroupSettings)
-> Parser (Maybe Natural)
-> Parser
     (Maybe SmoothGroupStreamManifestBehavior
      -> Maybe Natural
      -> Maybe SmoothGroupEventStopBehavior
      -> Maybe SmoothGroupTimestampOffsetMode
      -> Maybe Natural
      -> Maybe Text
      -> Maybe InputLossActionForMsSmoothOut
      -> Maybe Text
      -> Maybe SmoothGroupCertificateMode
      -> Maybe SmoothGroupSparseTrackType
      -> Maybe Natural
      -> Maybe Natural
      -> Maybe Natural
      -> Maybe SmoothGroupEventIdMode
      -> Maybe SmoothGroupAudioOnlyTimecodeControl
      -> Maybe SmoothGroupSegmentationMode
      -> Maybe Text
      -> OutputLocationRef
      -> MsSmoothGroupSettings)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Parser (Maybe Natural)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"fragmentLength")
            Parser
  (Maybe SmoothGroupStreamManifestBehavior
   -> Maybe Natural
   -> Maybe SmoothGroupEventStopBehavior
   -> Maybe SmoothGroupTimestampOffsetMode
   -> Maybe Natural
   -> Maybe Text
   -> Maybe InputLossActionForMsSmoothOut
   -> Maybe Text
   -> Maybe SmoothGroupCertificateMode
   -> Maybe SmoothGroupSparseTrackType
   -> Maybe Natural
   -> Maybe Natural
   -> Maybe Natural
   -> Maybe SmoothGroupEventIdMode
   -> Maybe SmoothGroupAudioOnlyTimecodeControl
   -> Maybe SmoothGroupSegmentationMode
   -> Maybe Text
   -> OutputLocationRef
   -> MsSmoothGroupSettings)
-> Parser (Maybe SmoothGroupStreamManifestBehavior)
-> Parser
     (Maybe Natural
      -> Maybe SmoothGroupEventStopBehavior
      -> Maybe SmoothGroupTimestampOffsetMode
      -> Maybe Natural
      -> Maybe Text
      -> Maybe InputLossActionForMsSmoothOut
      -> Maybe Text
      -> Maybe SmoothGroupCertificateMode
      -> Maybe SmoothGroupSparseTrackType
      -> Maybe Natural
      -> Maybe Natural
      -> Maybe Natural
      -> Maybe SmoothGroupEventIdMode
      -> Maybe SmoothGroupAudioOnlyTimecodeControl
      -> Maybe SmoothGroupSegmentationMode
      -> Maybe Text
      -> OutputLocationRef
      -> MsSmoothGroupSettings)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe SmoothGroupStreamManifestBehavior)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"streamManifestBehavior")
            Parser
  (Maybe Natural
   -> Maybe SmoothGroupEventStopBehavior
   -> Maybe SmoothGroupTimestampOffsetMode
   -> Maybe Natural
   -> Maybe Text
   -> Maybe InputLossActionForMsSmoothOut
   -> Maybe Text
   -> Maybe SmoothGroupCertificateMode
   -> Maybe SmoothGroupSparseTrackType
   -> Maybe Natural
   -> Maybe Natural
   -> Maybe Natural
   -> Maybe SmoothGroupEventIdMode
   -> Maybe SmoothGroupAudioOnlyTimecodeControl
   -> Maybe SmoothGroupSegmentationMode
   -> Maybe Text
   -> OutputLocationRef
   -> MsSmoothGroupSettings)
-> Parser (Maybe Natural)
-> Parser
     (Maybe SmoothGroupEventStopBehavior
      -> Maybe SmoothGroupTimestampOffsetMode
      -> Maybe Natural
      -> Maybe Text
      -> Maybe InputLossActionForMsSmoothOut
      -> Maybe Text
      -> Maybe SmoothGroupCertificateMode
      -> Maybe SmoothGroupSparseTrackType
      -> Maybe Natural
      -> Maybe Natural
      -> Maybe Natural
      -> Maybe SmoothGroupEventIdMode
      -> Maybe SmoothGroupAudioOnlyTimecodeControl
      -> Maybe SmoothGroupSegmentationMode
      -> Maybe Text
      -> OutputLocationRef
      -> MsSmoothGroupSettings)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Natural)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"sendDelayMs")
            Parser
  (Maybe SmoothGroupEventStopBehavior
   -> Maybe SmoothGroupTimestampOffsetMode
   -> Maybe Natural
   -> Maybe Text
   -> Maybe InputLossActionForMsSmoothOut
   -> Maybe Text
   -> Maybe SmoothGroupCertificateMode
   -> Maybe SmoothGroupSparseTrackType
   -> Maybe Natural
   -> Maybe Natural
   -> Maybe Natural
   -> Maybe SmoothGroupEventIdMode
   -> Maybe SmoothGroupAudioOnlyTimecodeControl
   -> Maybe SmoothGroupSegmentationMode
   -> Maybe Text
   -> OutputLocationRef
   -> MsSmoothGroupSettings)
-> Parser (Maybe SmoothGroupEventStopBehavior)
-> Parser
     (Maybe SmoothGroupTimestampOffsetMode
      -> Maybe Natural
      -> Maybe Text
      -> Maybe InputLossActionForMsSmoothOut
      -> Maybe Text
      -> Maybe SmoothGroupCertificateMode
      -> Maybe SmoothGroupSparseTrackType
      -> Maybe Natural
      -> Maybe Natural
      -> Maybe Natural
      -> Maybe SmoothGroupEventIdMode
      -> Maybe SmoothGroupAudioOnlyTimecodeControl
      -> Maybe SmoothGroupSegmentationMode
      -> Maybe Text
      -> OutputLocationRef
      -> MsSmoothGroupSettings)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe SmoothGroupEventStopBehavior)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"eventStopBehavior")
            Parser
  (Maybe SmoothGroupTimestampOffsetMode
   -> Maybe Natural
   -> Maybe Text
   -> Maybe InputLossActionForMsSmoothOut
   -> Maybe Text
   -> Maybe SmoothGroupCertificateMode
   -> Maybe SmoothGroupSparseTrackType
   -> Maybe Natural
   -> Maybe Natural
   -> Maybe Natural
   -> Maybe SmoothGroupEventIdMode
   -> Maybe SmoothGroupAudioOnlyTimecodeControl
   -> Maybe SmoothGroupSegmentationMode
   -> Maybe Text
   -> OutputLocationRef
   -> MsSmoothGroupSettings)
-> Parser (Maybe SmoothGroupTimestampOffsetMode)
-> Parser
     (Maybe Natural
      -> Maybe Text
      -> Maybe InputLossActionForMsSmoothOut
      -> Maybe Text
      -> Maybe SmoothGroupCertificateMode
      -> Maybe SmoothGroupSparseTrackType
      -> Maybe Natural
      -> Maybe Natural
      -> Maybe Natural
      -> Maybe SmoothGroupEventIdMode
      -> Maybe SmoothGroupAudioOnlyTimecodeControl
      -> Maybe SmoothGroupSegmentationMode
      -> Maybe Text
      -> OutputLocationRef
      -> MsSmoothGroupSettings)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe SmoothGroupTimestampOffsetMode)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"timestampOffsetMode")
            Parser
  (Maybe Natural
   -> Maybe Text
   -> Maybe InputLossActionForMsSmoothOut
   -> Maybe Text
   -> Maybe SmoothGroupCertificateMode
   -> Maybe SmoothGroupSparseTrackType
   -> Maybe Natural
   -> Maybe Natural
   -> Maybe Natural
   -> Maybe SmoothGroupEventIdMode
   -> Maybe SmoothGroupAudioOnlyTimecodeControl
   -> Maybe SmoothGroupSegmentationMode
   -> Maybe Text
   -> OutputLocationRef
   -> MsSmoothGroupSettings)
-> Parser (Maybe Natural)
-> Parser
     (Maybe Text
      -> Maybe InputLossActionForMsSmoothOut
      -> Maybe Text
      -> Maybe SmoothGroupCertificateMode
      -> Maybe SmoothGroupSparseTrackType
      -> Maybe Natural
      -> Maybe Natural
      -> Maybe Natural
      -> Maybe SmoothGroupEventIdMode
      -> Maybe SmoothGroupAudioOnlyTimecodeControl
      -> Maybe SmoothGroupSegmentationMode
      -> Maybe Text
      -> OutputLocationRef
      -> MsSmoothGroupSettings)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Natural)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"numRetries")
            Parser
  (Maybe Text
   -> Maybe InputLossActionForMsSmoothOut
   -> Maybe Text
   -> Maybe SmoothGroupCertificateMode
   -> Maybe SmoothGroupSparseTrackType
   -> Maybe Natural
   -> Maybe Natural
   -> Maybe Natural
   -> Maybe SmoothGroupEventIdMode
   -> Maybe SmoothGroupAudioOnlyTimecodeControl
   -> Maybe SmoothGroupSegmentationMode
   -> Maybe Text
   -> OutputLocationRef
   -> MsSmoothGroupSettings)
-> Parser (Maybe Text)
-> Parser
     (Maybe InputLossActionForMsSmoothOut
      -> Maybe Text
      -> Maybe SmoothGroupCertificateMode
      -> Maybe SmoothGroupSparseTrackType
      -> Maybe Natural
      -> Maybe Natural
      -> Maybe Natural
      -> Maybe SmoothGroupEventIdMode
      -> Maybe SmoothGroupAudioOnlyTimecodeControl
      -> Maybe SmoothGroupSegmentationMode
      -> Maybe Text
      -> OutputLocationRef
      -> MsSmoothGroupSettings)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"acquisitionPointId")
            Parser
  (Maybe InputLossActionForMsSmoothOut
   -> Maybe Text
   -> Maybe SmoothGroupCertificateMode
   -> Maybe SmoothGroupSparseTrackType
   -> Maybe Natural
   -> Maybe Natural
   -> Maybe Natural
   -> Maybe SmoothGroupEventIdMode
   -> Maybe SmoothGroupAudioOnlyTimecodeControl
   -> Maybe SmoothGroupSegmentationMode
   -> Maybe Text
   -> OutputLocationRef
   -> MsSmoothGroupSettings)
-> Parser (Maybe InputLossActionForMsSmoothOut)
-> Parser
     (Maybe Text
      -> Maybe SmoothGroupCertificateMode
      -> Maybe SmoothGroupSparseTrackType
      -> Maybe Natural
      -> Maybe Natural
      -> Maybe Natural
      -> Maybe SmoothGroupEventIdMode
      -> Maybe SmoothGroupAudioOnlyTimecodeControl
      -> Maybe SmoothGroupSegmentationMode
      -> Maybe Text
      -> OutputLocationRef
      -> MsSmoothGroupSettings)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe InputLossActionForMsSmoothOut)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"inputLossAction")
            Parser
  (Maybe Text
   -> Maybe SmoothGroupCertificateMode
   -> Maybe SmoothGroupSparseTrackType
   -> Maybe Natural
   -> Maybe Natural
   -> Maybe Natural
   -> Maybe SmoothGroupEventIdMode
   -> Maybe SmoothGroupAudioOnlyTimecodeControl
   -> Maybe SmoothGroupSegmentationMode
   -> Maybe Text
   -> OutputLocationRef
   -> MsSmoothGroupSettings)
-> Parser (Maybe Text)
-> Parser
     (Maybe SmoothGroupCertificateMode
      -> Maybe SmoothGroupSparseTrackType
      -> Maybe Natural
      -> Maybe Natural
      -> Maybe Natural
      -> Maybe SmoothGroupEventIdMode
      -> Maybe SmoothGroupAudioOnlyTimecodeControl
      -> Maybe SmoothGroupSegmentationMode
      -> Maybe Text
      -> OutputLocationRef
      -> MsSmoothGroupSettings)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"timestampOffset")
            Parser
  (Maybe SmoothGroupCertificateMode
   -> Maybe SmoothGroupSparseTrackType
   -> Maybe Natural
   -> Maybe Natural
   -> Maybe Natural
   -> Maybe SmoothGroupEventIdMode
   -> Maybe SmoothGroupAudioOnlyTimecodeControl
   -> Maybe SmoothGroupSegmentationMode
   -> Maybe Text
   -> OutputLocationRef
   -> MsSmoothGroupSettings)
-> Parser (Maybe SmoothGroupCertificateMode)
-> Parser
     (Maybe SmoothGroupSparseTrackType
      -> Maybe Natural
      -> Maybe Natural
      -> Maybe Natural
      -> Maybe SmoothGroupEventIdMode
      -> Maybe SmoothGroupAudioOnlyTimecodeControl
      -> Maybe SmoothGroupSegmentationMode
      -> Maybe Text
      -> OutputLocationRef
      -> MsSmoothGroupSettings)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe SmoothGroupCertificateMode)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"certificateMode")
            Parser
  (Maybe SmoothGroupSparseTrackType
   -> Maybe Natural
   -> Maybe Natural
   -> Maybe Natural
   -> Maybe SmoothGroupEventIdMode
   -> Maybe SmoothGroupAudioOnlyTimecodeControl
   -> Maybe SmoothGroupSegmentationMode
   -> Maybe Text
   -> OutputLocationRef
   -> MsSmoothGroupSettings)
-> Parser (Maybe SmoothGroupSparseTrackType)
-> Parser
     (Maybe Natural
      -> Maybe Natural
      -> Maybe Natural
      -> Maybe SmoothGroupEventIdMode
      -> Maybe SmoothGroupAudioOnlyTimecodeControl
      -> Maybe SmoothGroupSegmentationMode
      -> Maybe Text
      -> OutputLocationRef
      -> MsSmoothGroupSettings)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe SmoothGroupSparseTrackType)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"sparseTrackType")
            Parser
  (Maybe Natural
   -> Maybe Natural
   -> Maybe Natural
   -> Maybe SmoothGroupEventIdMode
   -> Maybe SmoothGroupAudioOnlyTimecodeControl
   -> Maybe SmoothGroupSegmentationMode
   -> Maybe Text
   -> OutputLocationRef
   -> MsSmoothGroupSettings)
-> Parser (Maybe Natural)
-> Parser
     (Maybe Natural
      -> Maybe Natural
      -> Maybe SmoothGroupEventIdMode
      -> Maybe SmoothGroupAudioOnlyTimecodeControl
      -> Maybe SmoothGroupSegmentationMode
      -> Maybe Text
      -> OutputLocationRef
      -> MsSmoothGroupSettings)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Natural)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"connectionRetryInterval")
            Parser
  (Maybe Natural
   -> Maybe Natural
   -> Maybe SmoothGroupEventIdMode
   -> Maybe SmoothGroupAudioOnlyTimecodeControl
   -> Maybe SmoothGroupSegmentationMode
   -> Maybe Text
   -> OutputLocationRef
   -> MsSmoothGroupSettings)
-> Parser (Maybe Natural)
-> Parser
     (Maybe Natural
      -> Maybe SmoothGroupEventIdMode
      -> Maybe SmoothGroupAudioOnlyTimecodeControl
      -> Maybe SmoothGroupSegmentationMode
      -> Maybe Text
      -> OutputLocationRef
      -> MsSmoothGroupSettings)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Natural)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"filecacheDuration")
            Parser
  (Maybe Natural
   -> Maybe SmoothGroupEventIdMode
   -> Maybe SmoothGroupAudioOnlyTimecodeControl
   -> Maybe SmoothGroupSegmentationMode
   -> Maybe Text
   -> OutputLocationRef
   -> MsSmoothGroupSettings)
-> Parser (Maybe Natural)
-> Parser
     (Maybe SmoothGroupEventIdMode
      -> Maybe SmoothGroupAudioOnlyTimecodeControl
      -> Maybe SmoothGroupSegmentationMode
      -> Maybe Text
      -> OutputLocationRef
      -> MsSmoothGroupSettings)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Natural)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"restartDelay")
            Parser
  (Maybe SmoothGroupEventIdMode
   -> Maybe SmoothGroupAudioOnlyTimecodeControl
   -> Maybe SmoothGroupSegmentationMode
   -> Maybe Text
   -> OutputLocationRef
   -> MsSmoothGroupSettings)
-> Parser (Maybe SmoothGroupEventIdMode)
-> Parser
     (Maybe SmoothGroupAudioOnlyTimecodeControl
      -> Maybe SmoothGroupSegmentationMode
      -> Maybe Text
      -> OutputLocationRef
      -> MsSmoothGroupSettings)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe SmoothGroupEventIdMode)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"eventIdMode")
            Parser
  (Maybe SmoothGroupAudioOnlyTimecodeControl
   -> Maybe SmoothGroupSegmentationMode
   -> Maybe Text
   -> OutputLocationRef
   -> MsSmoothGroupSettings)
-> Parser (Maybe SmoothGroupAudioOnlyTimecodeControl)
-> Parser
     (Maybe SmoothGroupSegmentationMode
      -> Maybe Text -> OutputLocationRef -> MsSmoothGroupSettings)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object
-> Text -> Parser (Maybe SmoothGroupAudioOnlyTimecodeControl)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"audioOnlyTimecodeControl")
            Parser
  (Maybe SmoothGroupSegmentationMode
   -> Maybe Text -> OutputLocationRef -> MsSmoothGroupSettings)
-> Parser (Maybe SmoothGroupSegmentationMode)
-> Parser
     (Maybe Text -> OutputLocationRef -> MsSmoothGroupSettings)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe SmoothGroupSegmentationMode)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"segmentationMode")
            Parser (Maybe Text -> OutputLocationRef -> MsSmoothGroupSettings)
-> Parser (Maybe Text)
-> Parser (OutputLocationRef -> MsSmoothGroupSettings)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"eventId")
            Parser (OutputLocationRef -> MsSmoothGroupSettings)
-> Parser OutputLocationRef -> Parser MsSmoothGroupSettings
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser OutputLocationRef
forall a. FromJSON a => Object -> Text -> Parser a
Core..: Text
"destination")
      )

instance Prelude.Hashable MsSmoothGroupSettings

instance Prelude.NFData MsSmoothGroupSettings

instance Core.ToJSON MsSmoothGroupSettings where
  toJSON :: MsSmoothGroupSettings -> Value
toJSON MsSmoothGroupSettings' {Maybe Natural
Maybe Text
Maybe InputLossActionForMsSmoothOut
Maybe SmoothGroupAudioOnlyTimecodeControl
Maybe SmoothGroupCertificateMode
Maybe SmoothGroupEventIdMode
Maybe SmoothGroupEventStopBehavior
Maybe SmoothGroupSegmentationMode
Maybe SmoothGroupSparseTrackType
Maybe SmoothGroupStreamManifestBehavior
Maybe SmoothGroupTimestampOffsetMode
OutputLocationRef
destination :: OutputLocationRef
eventId :: Maybe Text
segmentationMode :: Maybe SmoothGroupSegmentationMode
audioOnlyTimecodeControl :: Maybe SmoothGroupAudioOnlyTimecodeControl
eventIdMode :: Maybe SmoothGroupEventIdMode
restartDelay :: Maybe Natural
filecacheDuration :: Maybe Natural
connectionRetryInterval :: Maybe Natural
sparseTrackType :: Maybe SmoothGroupSparseTrackType
certificateMode :: Maybe SmoothGroupCertificateMode
timestampOffset :: Maybe Text
inputLossAction :: Maybe InputLossActionForMsSmoothOut
acquisitionPointId :: Maybe Text
numRetries :: Maybe Natural
timestampOffsetMode :: Maybe SmoothGroupTimestampOffsetMode
eventStopBehavior :: Maybe SmoothGroupEventStopBehavior
sendDelayMs :: Maybe Natural
streamManifestBehavior :: Maybe SmoothGroupStreamManifestBehavior
fragmentLength :: Maybe Natural
$sel:destination:MsSmoothGroupSettings' :: MsSmoothGroupSettings -> OutputLocationRef
$sel:eventId:MsSmoothGroupSettings' :: MsSmoothGroupSettings -> Maybe Text
$sel:segmentationMode:MsSmoothGroupSettings' :: MsSmoothGroupSettings -> Maybe SmoothGroupSegmentationMode
$sel:audioOnlyTimecodeControl:MsSmoothGroupSettings' :: MsSmoothGroupSettings -> Maybe SmoothGroupAudioOnlyTimecodeControl
$sel:eventIdMode:MsSmoothGroupSettings' :: MsSmoothGroupSettings -> Maybe SmoothGroupEventIdMode
$sel:restartDelay:MsSmoothGroupSettings' :: MsSmoothGroupSettings -> Maybe Natural
$sel:filecacheDuration:MsSmoothGroupSettings' :: MsSmoothGroupSettings -> Maybe Natural
$sel:connectionRetryInterval:MsSmoothGroupSettings' :: MsSmoothGroupSettings -> Maybe Natural
$sel:sparseTrackType:MsSmoothGroupSettings' :: MsSmoothGroupSettings -> Maybe SmoothGroupSparseTrackType
$sel:certificateMode:MsSmoothGroupSettings' :: MsSmoothGroupSettings -> Maybe SmoothGroupCertificateMode
$sel:timestampOffset:MsSmoothGroupSettings' :: MsSmoothGroupSettings -> Maybe Text
$sel:inputLossAction:MsSmoothGroupSettings' :: MsSmoothGroupSettings -> Maybe InputLossActionForMsSmoothOut
$sel:acquisitionPointId:MsSmoothGroupSettings' :: MsSmoothGroupSettings -> Maybe Text
$sel:numRetries:MsSmoothGroupSettings' :: MsSmoothGroupSettings -> Maybe Natural
$sel:timestampOffsetMode:MsSmoothGroupSettings' :: MsSmoothGroupSettings -> Maybe SmoothGroupTimestampOffsetMode
$sel:eventStopBehavior:MsSmoothGroupSettings' :: MsSmoothGroupSettings -> Maybe SmoothGroupEventStopBehavior
$sel:sendDelayMs:MsSmoothGroupSettings' :: MsSmoothGroupSettings -> Maybe Natural
$sel:streamManifestBehavior:MsSmoothGroupSettings' :: MsSmoothGroupSettings -> Maybe SmoothGroupStreamManifestBehavior
$sel:fragmentLength:MsSmoothGroupSettings' :: MsSmoothGroupSettings -> Maybe Natural
..} =
    [Pair] -> Value
Core.object
      ( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
          [ (Text
"fragmentLength" Text -> Natural -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
              (Natural -> Pair) -> Maybe Natural -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Natural
fragmentLength,
            (Text
"streamManifestBehavior" Text -> SmoothGroupStreamManifestBehavior -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
              (SmoothGroupStreamManifestBehavior -> Pair)
-> Maybe SmoothGroupStreamManifestBehavior -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe SmoothGroupStreamManifestBehavior
streamManifestBehavior,
            (Text
"sendDelayMs" Text -> Natural -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Natural -> Pair) -> Maybe Natural -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Natural
sendDelayMs,
            (Text
"eventStopBehavior" Text -> SmoothGroupEventStopBehavior -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
              (SmoothGroupEventStopBehavior -> Pair)
-> Maybe SmoothGroupEventStopBehavior -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe SmoothGroupEventStopBehavior
eventStopBehavior,
            (Text
"timestampOffsetMode" Text -> SmoothGroupTimestampOffsetMode -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
              (SmoothGroupTimestampOffsetMode -> Pair)
-> Maybe SmoothGroupTimestampOffsetMode -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe SmoothGroupTimestampOffsetMode
timestampOffsetMode,
            (Text
"numRetries" Text -> Natural -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Natural -> Pair) -> Maybe Natural -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Natural
numRetries,
            (Text
"acquisitionPointId" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
              (Text -> Pair) -> Maybe Text -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
acquisitionPointId,
            (Text
"inputLossAction" Text -> InputLossActionForMsSmoothOut -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
              (InputLossActionForMsSmoothOut -> Pair)
-> Maybe InputLossActionForMsSmoothOut -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe InputLossActionForMsSmoothOut
inputLossAction,
            (Text
"timestampOffset" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
              (Text -> Pair) -> Maybe Text -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
timestampOffset,
            (Text
"certificateMode" Text -> SmoothGroupCertificateMode -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
              (SmoothGroupCertificateMode -> Pair)
-> Maybe SmoothGroupCertificateMode -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe SmoothGroupCertificateMode
certificateMode,
            (Text
"sparseTrackType" Text -> SmoothGroupSparseTrackType -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
              (SmoothGroupSparseTrackType -> Pair)
-> Maybe SmoothGroupSparseTrackType -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe SmoothGroupSparseTrackType
sparseTrackType,
            (Text
"connectionRetryInterval" Text -> Natural -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
              (Natural -> Pair) -> Maybe Natural -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Natural
connectionRetryInterval,
            (Text
"filecacheDuration" Text -> Natural -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
              (Natural -> Pair) -> Maybe Natural -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Natural
filecacheDuration,
            (Text
"restartDelay" Text -> Natural -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Natural -> Pair) -> Maybe Natural -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Natural
restartDelay,
            (Text
"eventIdMode" Text -> SmoothGroupEventIdMode -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (SmoothGroupEventIdMode -> Pair)
-> Maybe SmoothGroupEventIdMode -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe SmoothGroupEventIdMode
eventIdMode,
            (Text
"audioOnlyTimecodeControl" Text -> SmoothGroupAudioOnlyTimecodeControl -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
              (SmoothGroupAudioOnlyTimecodeControl -> Pair)
-> Maybe SmoothGroupAudioOnlyTimecodeControl -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe SmoothGroupAudioOnlyTimecodeControl
audioOnlyTimecodeControl,
            (Text
"segmentationMode" Text -> SmoothGroupSegmentationMode -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
              (SmoothGroupSegmentationMode -> Pair)
-> Maybe SmoothGroupSegmentationMode -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe SmoothGroupSegmentationMode
segmentationMode,
            (Text
"eventId" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Text -> Pair) -> Maybe Text -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
eventId,
            Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"destination" Text -> OutputLocationRef -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= OutputLocationRef
destination)
          ]
      )