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