module Stratosphere.MediaLive.Channel.RtmpOutputSettingsProperty (
        module Exports, RtmpOutputSettingsProperty(..),
        mkRtmpOutputSettingsProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.MediaLive.Channel.OutputLocationRefProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Value
data RtmpOutputSettingsProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-medialive-channel-rtmpoutputsettings.html>
    RtmpOutputSettingsProperty {RtmpOutputSettingsProperty -> ()
haddock_workaround_ :: (),
                                -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-medialive-channel-rtmpoutputsettings.html#cfn-medialive-channel-rtmpoutputsettings-certificatemode>
                                RtmpOutputSettingsProperty -> Maybe (Value Text)
certificateMode :: (Prelude.Maybe (Value Prelude.Text)),
                                -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-medialive-channel-rtmpoutputsettings.html#cfn-medialive-channel-rtmpoutputsettings-connectionretryinterval>
                                RtmpOutputSettingsProperty -> Maybe (Value Integer)
connectionRetryInterval :: (Prelude.Maybe (Value Prelude.Integer)),
                                -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-medialive-channel-rtmpoutputsettings.html#cfn-medialive-channel-rtmpoutputsettings-destination>
                                RtmpOutputSettingsProperty -> Maybe OutputLocationRefProperty
destination :: (Prelude.Maybe OutputLocationRefProperty),
                                -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-medialive-channel-rtmpoutputsettings.html#cfn-medialive-channel-rtmpoutputsettings-numretries>
                                RtmpOutputSettingsProperty -> Maybe (Value Integer)
numRetries :: (Prelude.Maybe (Value Prelude.Integer))}
  deriving stock (RtmpOutputSettingsProperty -> RtmpOutputSettingsProperty -> Bool
(RtmpOutputSettingsProperty -> RtmpOutputSettingsProperty -> Bool)
-> (RtmpOutputSettingsProperty
    -> RtmpOutputSettingsProperty -> Bool)
-> Eq RtmpOutputSettingsProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: RtmpOutputSettingsProperty -> RtmpOutputSettingsProperty -> Bool
== :: RtmpOutputSettingsProperty -> RtmpOutputSettingsProperty -> Bool
$c/= :: RtmpOutputSettingsProperty -> RtmpOutputSettingsProperty -> Bool
/= :: RtmpOutputSettingsProperty -> RtmpOutputSettingsProperty -> Bool
Prelude.Eq, Int -> RtmpOutputSettingsProperty -> ShowS
[RtmpOutputSettingsProperty] -> ShowS
RtmpOutputSettingsProperty -> String
(Int -> RtmpOutputSettingsProperty -> ShowS)
-> (RtmpOutputSettingsProperty -> String)
-> ([RtmpOutputSettingsProperty] -> ShowS)
-> Show RtmpOutputSettingsProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> RtmpOutputSettingsProperty -> ShowS
showsPrec :: Int -> RtmpOutputSettingsProperty -> ShowS
$cshow :: RtmpOutputSettingsProperty -> String
show :: RtmpOutputSettingsProperty -> String
$cshowList :: [RtmpOutputSettingsProperty] -> ShowS
showList :: [RtmpOutputSettingsProperty] -> ShowS
Prelude.Show)
mkRtmpOutputSettingsProperty :: RtmpOutputSettingsProperty
mkRtmpOutputSettingsProperty :: RtmpOutputSettingsProperty
mkRtmpOutputSettingsProperty
  = RtmpOutputSettingsProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), certificateMode :: Maybe (Value Text)
certificateMode = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
       connectionRetryInterval :: Maybe (Value Integer)
connectionRetryInterval = Maybe (Value Integer)
forall a. Maybe a
Prelude.Nothing,
       destination :: Maybe OutputLocationRefProperty
destination = Maybe OutputLocationRefProperty
forall a. Maybe a
Prelude.Nothing, numRetries :: Maybe (Value Integer)
numRetries = Maybe (Value Integer)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties RtmpOutputSettingsProperty where
  toResourceProperties :: RtmpOutputSettingsProperty -> ResourceProperties
toResourceProperties RtmpOutputSettingsProperty {Maybe (Value Integer)
Maybe (Value Text)
Maybe OutputLocationRefProperty
()
haddock_workaround_ :: RtmpOutputSettingsProperty -> ()
certificateMode :: RtmpOutputSettingsProperty -> Maybe (Value Text)
connectionRetryInterval :: RtmpOutputSettingsProperty -> Maybe (Value Integer)
destination :: RtmpOutputSettingsProperty -> Maybe OutputLocationRefProperty
numRetries :: RtmpOutputSettingsProperty -> Maybe (Value Integer)
haddock_workaround_ :: ()
certificateMode :: Maybe (Value Text)
connectionRetryInterval :: Maybe (Value Integer)
destination :: Maybe OutputLocationRefProperty
numRetries :: Maybe (Value Integer)
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::MediaLive::Channel.RtmpOutputSettings",
         supportsTags :: Bool
supportsTags = Bool
Prelude.False,
         properties :: Object
properties = [Item Object] -> Object
forall l. IsList l => [Item l] -> l
Prelude.fromList
                        ([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
                           [Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"CertificateMode" (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
certificateMode,
                            Key -> Value Integer -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"ConnectionRetryInterval"
                              (Value Integer -> (Key, Value))
-> Maybe (Value Integer) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Integer)
connectionRetryInterval,
                            Key -> OutputLocationRefProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Destination" (OutputLocationRefProperty -> (Key, Value))
-> Maybe OutputLocationRefProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe OutputLocationRefProperty
destination,
                            Key -> Value Integer -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"NumRetries" (Value Integer -> (Key, Value))
-> Maybe (Value Integer) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Integer)
numRetries])}
instance JSON.ToJSON RtmpOutputSettingsProperty where
  toJSON :: RtmpOutputSettingsProperty -> Value
toJSON RtmpOutputSettingsProperty {Maybe (Value Integer)
Maybe (Value Text)
Maybe OutputLocationRefProperty
()
haddock_workaround_ :: RtmpOutputSettingsProperty -> ()
certificateMode :: RtmpOutputSettingsProperty -> Maybe (Value Text)
connectionRetryInterval :: RtmpOutputSettingsProperty -> Maybe (Value Integer)
destination :: RtmpOutputSettingsProperty -> Maybe OutputLocationRefProperty
numRetries :: RtmpOutputSettingsProperty -> Maybe (Value Integer)
haddock_workaround_ :: ()
certificateMode :: Maybe (Value Text)
connectionRetryInterval :: Maybe (Value Integer)
destination :: Maybe OutputLocationRefProperty
numRetries :: Maybe (Value Integer)
..}
    = [(Key, Value)] -> Value
JSON.object
        ([Item [(Key, Value)]] -> [(Key, Value)]
forall l. IsList l => [Item l] -> l
Prelude.fromList
           ([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
              [Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"CertificateMode" (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
certificateMode,
               Key -> Value Integer -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"ConnectionRetryInterval"
                 (Value Integer -> (Key, Value))
-> Maybe (Value Integer) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Integer)
connectionRetryInterval,
               Key -> OutputLocationRefProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Destination" (OutputLocationRefProperty -> (Key, Value))
-> Maybe OutputLocationRefProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe OutputLocationRefProperty
destination,
               Key -> Value Integer -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"NumRetries" (Value Integer -> (Key, Value))
-> Maybe (Value Integer) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Integer)
numRetries]))
instance Property "CertificateMode" RtmpOutputSettingsProperty where
  type PropertyType "CertificateMode" RtmpOutputSettingsProperty = Value Prelude.Text
  set :: PropertyType "CertificateMode" RtmpOutputSettingsProperty
-> RtmpOutputSettingsProperty -> RtmpOutputSettingsProperty
set PropertyType "CertificateMode" RtmpOutputSettingsProperty
newValue RtmpOutputSettingsProperty {Maybe (Value Integer)
Maybe (Value Text)
Maybe OutputLocationRefProperty
()
haddock_workaround_ :: RtmpOutputSettingsProperty -> ()
certificateMode :: RtmpOutputSettingsProperty -> Maybe (Value Text)
connectionRetryInterval :: RtmpOutputSettingsProperty -> Maybe (Value Integer)
destination :: RtmpOutputSettingsProperty -> Maybe OutputLocationRefProperty
numRetries :: RtmpOutputSettingsProperty -> Maybe (Value Integer)
haddock_workaround_ :: ()
certificateMode :: Maybe (Value Text)
connectionRetryInterval :: Maybe (Value Integer)
destination :: Maybe OutputLocationRefProperty
numRetries :: Maybe (Value Integer)
..}
    = RtmpOutputSettingsProperty
        {certificateMode :: Maybe (Value Text)
certificateMode = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "CertificateMode" RtmpOutputSettingsProperty
Value Text
newValue, Maybe (Value Integer)
Maybe OutputLocationRefProperty
()
haddock_workaround_ :: ()
connectionRetryInterval :: Maybe (Value Integer)
destination :: Maybe OutputLocationRefProperty
numRetries :: Maybe (Value Integer)
haddock_workaround_ :: ()
connectionRetryInterval :: Maybe (Value Integer)
destination :: Maybe OutputLocationRefProperty
numRetries :: Maybe (Value Integer)
..}
instance Property "ConnectionRetryInterval" RtmpOutputSettingsProperty where
  type PropertyType "ConnectionRetryInterval" RtmpOutputSettingsProperty = Value Prelude.Integer
  set :: PropertyType "ConnectionRetryInterval" RtmpOutputSettingsProperty
-> RtmpOutputSettingsProperty -> RtmpOutputSettingsProperty
set PropertyType "ConnectionRetryInterval" RtmpOutputSettingsProperty
newValue RtmpOutputSettingsProperty {Maybe (Value Integer)
Maybe (Value Text)
Maybe OutputLocationRefProperty
()
haddock_workaround_ :: RtmpOutputSettingsProperty -> ()
certificateMode :: RtmpOutputSettingsProperty -> Maybe (Value Text)
connectionRetryInterval :: RtmpOutputSettingsProperty -> Maybe (Value Integer)
destination :: RtmpOutputSettingsProperty -> Maybe OutputLocationRefProperty
numRetries :: RtmpOutputSettingsProperty -> Maybe (Value Integer)
haddock_workaround_ :: ()
certificateMode :: Maybe (Value Text)
connectionRetryInterval :: Maybe (Value Integer)
destination :: Maybe OutputLocationRefProperty
numRetries :: Maybe (Value Integer)
..}
    = RtmpOutputSettingsProperty
        {connectionRetryInterval :: Maybe (Value Integer)
connectionRetryInterval = Value Integer -> Maybe (Value Integer)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "ConnectionRetryInterval" RtmpOutputSettingsProperty
Value Integer
newValue, Maybe (Value Integer)
Maybe (Value Text)
Maybe OutputLocationRefProperty
()
haddock_workaround_ :: ()
certificateMode :: Maybe (Value Text)
destination :: Maybe OutputLocationRefProperty
numRetries :: Maybe (Value Integer)
haddock_workaround_ :: ()
certificateMode :: Maybe (Value Text)
destination :: Maybe OutputLocationRefProperty
numRetries :: Maybe (Value Integer)
..}
instance Property "Destination" RtmpOutputSettingsProperty where
  type PropertyType "Destination" RtmpOutputSettingsProperty = OutputLocationRefProperty
  set :: PropertyType "Destination" RtmpOutputSettingsProperty
-> RtmpOutputSettingsProperty -> RtmpOutputSettingsProperty
set PropertyType "Destination" RtmpOutputSettingsProperty
newValue RtmpOutputSettingsProperty {Maybe (Value Integer)
Maybe (Value Text)
Maybe OutputLocationRefProperty
()
haddock_workaround_ :: RtmpOutputSettingsProperty -> ()
certificateMode :: RtmpOutputSettingsProperty -> Maybe (Value Text)
connectionRetryInterval :: RtmpOutputSettingsProperty -> Maybe (Value Integer)
destination :: RtmpOutputSettingsProperty -> Maybe OutputLocationRefProperty
numRetries :: RtmpOutputSettingsProperty -> Maybe (Value Integer)
haddock_workaround_ :: ()
certificateMode :: Maybe (Value Text)
connectionRetryInterval :: Maybe (Value Integer)
destination :: Maybe OutputLocationRefProperty
numRetries :: Maybe (Value Integer)
..}
    = RtmpOutputSettingsProperty
        {destination :: Maybe OutputLocationRefProperty
destination = OutputLocationRefProperty -> Maybe OutputLocationRefProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Destination" RtmpOutputSettingsProperty
OutputLocationRefProperty
newValue, Maybe (Value Integer)
Maybe (Value Text)
()
haddock_workaround_ :: ()
certificateMode :: Maybe (Value Text)
connectionRetryInterval :: Maybe (Value Integer)
numRetries :: Maybe (Value Integer)
haddock_workaround_ :: ()
certificateMode :: Maybe (Value Text)
connectionRetryInterval :: Maybe (Value Integer)
numRetries :: Maybe (Value Integer)
..}
instance Property "NumRetries" RtmpOutputSettingsProperty where
  type PropertyType "NumRetries" RtmpOutputSettingsProperty = Value Prelude.Integer
  set :: PropertyType "NumRetries" RtmpOutputSettingsProperty
-> RtmpOutputSettingsProperty -> RtmpOutputSettingsProperty
set PropertyType "NumRetries" RtmpOutputSettingsProperty
newValue RtmpOutputSettingsProperty {Maybe (Value Integer)
Maybe (Value Text)
Maybe OutputLocationRefProperty
()
haddock_workaround_ :: RtmpOutputSettingsProperty -> ()
certificateMode :: RtmpOutputSettingsProperty -> Maybe (Value Text)
connectionRetryInterval :: RtmpOutputSettingsProperty -> Maybe (Value Integer)
destination :: RtmpOutputSettingsProperty -> Maybe OutputLocationRefProperty
numRetries :: RtmpOutputSettingsProperty -> Maybe (Value Integer)
haddock_workaround_ :: ()
certificateMode :: Maybe (Value Text)
connectionRetryInterval :: Maybe (Value Integer)
destination :: Maybe OutputLocationRefProperty
numRetries :: Maybe (Value Integer)
..}
    = RtmpOutputSettingsProperty
        {numRetries :: Maybe (Value Integer)
numRetries = Value Integer -> Maybe (Value Integer)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "NumRetries" RtmpOutputSettingsProperty
Value Integer
newValue, Maybe (Value Integer)
Maybe (Value Text)
Maybe OutputLocationRefProperty
()
haddock_workaround_ :: ()
certificateMode :: Maybe (Value Text)
connectionRetryInterval :: Maybe (Value Integer)
destination :: Maybe OutputLocationRefProperty
haddock_workaround_ :: ()
certificateMode :: Maybe (Value Text)
connectionRetryInterval :: Maybe (Value Integer)
destination :: Maybe OutputLocationRefProperty
..}