module Stratosphere.MediaLive.Channel.SrtOutputDestinationSettingsProperty (
SrtOutputDestinationSettingsProperty(..),
mkSrtOutputDestinationSettingsProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data SrtOutputDestinationSettingsProperty
=
SrtOutputDestinationSettingsProperty {SrtOutputDestinationSettingsProperty -> ()
haddock_workaround_ :: (),
SrtOutputDestinationSettingsProperty -> Maybe (Value Text)
encryptionPassphraseSecretArn :: (Prelude.Maybe (Value Prelude.Text)),
SrtOutputDestinationSettingsProperty -> Maybe (Value Text)
streamId :: (Prelude.Maybe (Value Prelude.Text)),
SrtOutputDestinationSettingsProperty -> Maybe (Value Text)
url :: (Prelude.Maybe (Value Prelude.Text))}
deriving stock (SrtOutputDestinationSettingsProperty
-> SrtOutputDestinationSettingsProperty -> Bool
(SrtOutputDestinationSettingsProperty
-> SrtOutputDestinationSettingsProperty -> Bool)
-> (SrtOutputDestinationSettingsProperty
-> SrtOutputDestinationSettingsProperty -> Bool)
-> Eq SrtOutputDestinationSettingsProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: SrtOutputDestinationSettingsProperty
-> SrtOutputDestinationSettingsProperty -> Bool
== :: SrtOutputDestinationSettingsProperty
-> SrtOutputDestinationSettingsProperty -> Bool
$c/= :: SrtOutputDestinationSettingsProperty
-> SrtOutputDestinationSettingsProperty -> Bool
/= :: SrtOutputDestinationSettingsProperty
-> SrtOutputDestinationSettingsProperty -> Bool
Prelude.Eq, Int -> SrtOutputDestinationSettingsProperty -> ShowS
[SrtOutputDestinationSettingsProperty] -> ShowS
SrtOutputDestinationSettingsProperty -> String
(Int -> SrtOutputDestinationSettingsProperty -> ShowS)
-> (SrtOutputDestinationSettingsProperty -> String)
-> ([SrtOutputDestinationSettingsProperty] -> ShowS)
-> Show SrtOutputDestinationSettingsProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> SrtOutputDestinationSettingsProperty -> ShowS
showsPrec :: Int -> SrtOutputDestinationSettingsProperty -> ShowS
$cshow :: SrtOutputDestinationSettingsProperty -> String
show :: SrtOutputDestinationSettingsProperty -> String
$cshowList :: [SrtOutputDestinationSettingsProperty] -> ShowS
showList :: [SrtOutputDestinationSettingsProperty] -> ShowS
Prelude.Show)
mkSrtOutputDestinationSettingsProperty ::
SrtOutputDestinationSettingsProperty
mkSrtOutputDestinationSettingsProperty :: SrtOutputDestinationSettingsProperty
mkSrtOutputDestinationSettingsProperty
= SrtOutputDestinationSettingsProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (),
encryptionPassphraseSecretArn :: Maybe (Value Text)
encryptionPassphraseSecretArn = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
streamId :: Maybe (Value Text)
streamId = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing, url :: Maybe (Value Text)
url = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties SrtOutputDestinationSettingsProperty where
toResourceProperties :: SrtOutputDestinationSettingsProperty -> ResourceProperties
toResourceProperties SrtOutputDestinationSettingsProperty {Maybe (Value Text)
()
haddock_workaround_ :: SrtOutputDestinationSettingsProperty -> ()
encryptionPassphraseSecretArn :: SrtOutputDestinationSettingsProperty -> Maybe (Value Text)
streamId :: SrtOutputDestinationSettingsProperty -> Maybe (Value Text)
url :: SrtOutputDestinationSettingsProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
encryptionPassphraseSecretArn :: Maybe (Value Text)
streamId :: Maybe (Value Text)
url :: Maybe (Value Text)
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::MediaLive::Channel.SrtOutputDestinationSettings",
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
"EncryptionPassphraseSecretArn"
(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)
encryptionPassphraseSecretArn,
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
"StreamId" (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)
streamId,
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
"Url" (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)
url])}
instance JSON.ToJSON SrtOutputDestinationSettingsProperty where
toJSON :: SrtOutputDestinationSettingsProperty -> Value
toJSON SrtOutputDestinationSettingsProperty {Maybe (Value Text)
()
haddock_workaround_ :: SrtOutputDestinationSettingsProperty -> ()
encryptionPassphraseSecretArn :: SrtOutputDestinationSettingsProperty -> Maybe (Value Text)
streamId :: SrtOutputDestinationSettingsProperty -> Maybe (Value Text)
url :: SrtOutputDestinationSettingsProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
encryptionPassphraseSecretArn :: Maybe (Value Text)
streamId :: Maybe (Value Text)
url :: Maybe (Value Text)
..}
= [(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
"EncryptionPassphraseSecretArn"
(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)
encryptionPassphraseSecretArn,
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
"StreamId" (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)
streamId,
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
"Url" (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)
url]))
instance Property "EncryptionPassphraseSecretArn" SrtOutputDestinationSettingsProperty where
type PropertyType "EncryptionPassphraseSecretArn" SrtOutputDestinationSettingsProperty = Value Prelude.Text
set :: PropertyType
"EncryptionPassphraseSecretArn"
SrtOutputDestinationSettingsProperty
-> SrtOutputDestinationSettingsProperty
-> SrtOutputDestinationSettingsProperty
set PropertyType
"EncryptionPassphraseSecretArn"
SrtOutputDestinationSettingsProperty
newValue SrtOutputDestinationSettingsProperty {Maybe (Value Text)
()
haddock_workaround_ :: SrtOutputDestinationSettingsProperty -> ()
encryptionPassphraseSecretArn :: SrtOutputDestinationSettingsProperty -> Maybe (Value Text)
streamId :: SrtOutputDestinationSettingsProperty -> Maybe (Value Text)
url :: SrtOutputDestinationSettingsProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
encryptionPassphraseSecretArn :: Maybe (Value Text)
streamId :: Maybe (Value Text)
url :: Maybe (Value Text)
..}
= SrtOutputDestinationSettingsProperty
{encryptionPassphraseSecretArn :: Maybe (Value Text)
encryptionPassphraseSecretArn = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
"EncryptionPassphraseSecretArn"
SrtOutputDestinationSettingsProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
streamId :: Maybe (Value Text)
url :: Maybe (Value Text)
haddock_workaround_ :: ()
streamId :: Maybe (Value Text)
url :: Maybe (Value Text)
..}
instance Property "StreamId" SrtOutputDestinationSettingsProperty where
type PropertyType "StreamId" SrtOutputDestinationSettingsProperty = Value Prelude.Text
set :: PropertyType "StreamId" SrtOutputDestinationSettingsProperty
-> SrtOutputDestinationSettingsProperty
-> SrtOutputDestinationSettingsProperty
set PropertyType "StreamId" SrtOutputDestinationSettingsProperty
newValue SrtOutputDestinationSettingsProperty {Maybe (Value Text)
()
haddock_workaround_ :: SrtOutputDestinationSettingsProperty -> ()
encryptionPassphraseSecretArn :: SrtOutputDestinationSettingsProperty -> Maybe (Value Text)
streamId :: SrtOutputDestinationSettingsProperty -> Maybe (Value Text)
url :: SrtOutputDestinationSettingsProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
encryptionPassphraseSecretArn :: Maybe (Value Text)
streamId :: Maybe (Value Text)
url :: Maybe (Value Text)
..}
= SrtOutputDestinationSettingsProperty
{streamId :: Maybe (Value Text)
streamId = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "StreamId" SrtOutputDestinationSettingsProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
encryptionPassphraseSecretArn :: Maybe (Value Text)
url :: Maybe (Value Text)
haddock_workaround_ :: ()
encryptionPassphraseSecretArn :: Maybe (Value Text)
url :: Maybe (Value Text)
..}
instance Property "Url" SrtOutputDestinationSettingsProperty where
type PropertyType "Url" SrtOutputDestinationSettingsProperty = Value Prelude.Text
set :: PropertyType "Url" SrtOutputDestinationSettingsProperty
-> SrtOutputDestinationSettingsProperty
-> SrtOutputDestinationSettingsProperty
set PropertyType "Url" SrtOutputDestinationSettingsProperty
newValue SrtOutputDestinationSettingsProperty {Maybe (Value Text)
()
haddock_workaround_ :: SrtOutputDestinationSettingsProperty -> ()
encryptionPassphraseSecretArn :: SrtOutputDestinationSettingsProperty -> Maybe (Value Text)
streamId :: SrtOutputDestinationSettingsProperty -> Maybe (Value Text)
url :: SrtOutputDestinationSettingsProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
encryptionPassphraseSecretArn :: Maybe (Value Text)
streamId :: Maybe (Value Text)
url :: Maybe (Value Text)
..}
= SrtOutputDestinationSettingsProperty
{url :: Maybe (Value Text)
url = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Url" SrtOutputDestinationSettingsProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
encryptionPassphraseSecretArn :: Maybe (Value Text)
streamId :: Maybe (Value Text)
haddock_workaround_ :: ()
encryptionPassphraseSecretArn :: Maybe (Value Text)
streamId :: Maybe (Value Text)
..}