module Stratosphere.MediaLive.Channel.MediaPackageV2DestinationSettingsProperty (
MediaPackageV2DestinationSettingsProperty(..),
mkMediaPackageV2DestinationSettingsProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data MediaPackageV2DestinationSettingsProperty
=
MediaPackageV2DestinationSettingsProperty {MediaPackageV2DestinationSettingsProperty -> ()
haddock_workaround_ :: (),
MediaPackageV2DestinationSettingsProperty -> Maybe (Value Text)
audioGroupId :: (Prelude.Maybe (Value Prelude.Text)),
MediaPackageV2DestinationSettingsProperty -> Maybe (Value Text)
audioRenditionSets :: (Prelude.Maybe (Value Prelude.Text)),
MediaPackageV2DestinationSettingsProperty -> Maybe (Value Text)
hlsAutoSelect :: (Prelude.Maybe (Value Prelude.Text)),
MediaPackageV2DestinationSettingsProperty -> Maybe (Value Text)
hlsDefault :: (Prelude.Maybe (Value Prelude.Text))}
deriving stock (MediaPackageV2DestinationSettingsProperty
-> MediaPackageV2DestinationSettingsProperty -> Bool
(MediaPackageV2DestinationSettingsProperty
-> MediaPackageV2DestinationSettingsProperty -> Bool)
-> (MediaPackageV2DestinationSettingsProperty
-> MediaPackageV2DestinationSettingsProperty -> Bool)
-> Eq MediaPackageV2DestinationSettingsProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: MediaPackageV2DestinationSettingsProperty
-> MediaPackageV2DestinationSettingsProperty -> Bool
== :: MediaPackageV2DestinationSettingsProperty
-> MediaPackageV2DestinationSettingsProperty -> Bool
$c/= :: MediaPackageV2DestinationSettingsProperty
-> MediaPackageV2DestinationSettingsProperty -> Bool
/= :: MediaPackageV2DestinationSettingsProperty
-> MediaPackageV2DestinationSettingsProperty -> Bool
Prelude.Eq, Int -> MediaPackageV2DestinationSettingsProperty -> ShowS
[MediaPackageV2DestinationSettingsProperty] -> ShowS
MediaPackageV2DestinationSettingsProperty -> String
(Int -> MediaPackageV2DestinationSettingsProperty -> ShowS)
-> (MediaPackageV2DestinationSettingsProperty -> String)
-> ([MediaPackageV2DestinationSettingsProperty] -> ShowS)
-> Show MediaPackageV2DestinationSettingsProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> MediaPackageV2DestinationSettingsProperty -> ShowS
showsPrec :: Int -> MediaPackageV2DestinationSettingsProperty -> ShowS
$cshow :: MediaPackageV2DestinationSettingsProperty -> String
show :: MediaPackageV2DestinationSettingsProperty -> String
$cshowList :: [MediaPackageV2DestinationSettingsProperty] -> ShowS
showList :: [MediaPackageV2DestinationSettingsProperty] -> ShowS
Prelude.Show)
mkMediaPackageV2DestinationSettingsProperty ::
MediaPackageV2DestinationSettingsProperty
mkMediaPackageV2DestinationSettingsProperty :: MediaPackageV2DestinationSettingsProperty
mkMediaPackageV2DestinationSettingsProperty
= MediaPackageV2DestinationSettingsProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), audioGroupId :: Maybe (Value Text)
audioGroupId = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
audioRenditionSets :: Maybe (Value Text)
audioRenditionSets = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
hlsAutoSelect :: Maybe (Value Text)
hlsAutoSelect = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing, hlsDefault :: Maybe (Value Text)
hlsDefault = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties MediaPackageV2DestinationSettingsProperty where
toResourceProperties :: MediaPackageV2DestinationSettingsProperty -> ResourceProperties
toResourceProperties MediaPackageV2DestinationSettingsProperty {Maybe (Value Text)
()
haddock_workaround_ :: MediaPackageV2DestinationSettingsProperty -> ()
audioGroupId :: MediaPackageV2DestinationSettingsProperty -> Maybe (Value Text)
audioRenditionSets :: MediaPackageV2DestinationSettingsProperty -> Maybe (Value Text)
hlsAutoSelect :: MediaPackageV2DestinationSettingsProperty -> Maybe (Value Text)
hlsDefault :: MediaPackageV2DestinationSettingsProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
audioGroupId :: Maybe (Value Text)
audioRenditionSets :: Maybe (Value Text)
hlsAutoSelect :: Maybe (Value Text)
hlsDefault :: Maybe (Value Text)
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::MediaLive::Channel.MediaPackageV2DestinationSettings",
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
"AudioGroupId" (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)
audioGroupId,
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
"AudioRenditionSets" (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)
audioRenditionSets,
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
"HlsAutoSelect" (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)
hlsAutoSelect,
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
"HlsDefault" (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)
hlsDefault])}
instance JSON.ToJSON MediaPackageV2DestinationSettingsProperty where
toJSON :: MediaPackageV2DestinationSettingsProperty -> Value
toJSON MediaPackageV2DestinationSettingsProperty {Maybe (Value Text)
()
haddock_workaround_ :: MediaPackageV2DestinationSettingsProperty -> ()
audioGroupId :: MediaPackageV2DestinationSettingsProperty -> Maybe (Value Text)
audioRenditionSets :: MediaPackageV2DestinationSettingsProperty -> Maybe (Value Text)
hlsAutoSelect :: MediaPackageV2DestinationSettingsProperty -> Maybe (Value Text)
hlsDefault :: MediaPackageV2DestinationSettingsProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
audioGroupId :: Maybe (Value Text)
audioRenditionSets :: Maybe (Value Text)
hlsAutoSelect :: Maybe (Value Text)
hlsDefault :: 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
"AudioGroupId" (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)
audioGroupId,
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
"AudioRenditionSets" (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)
audioRenditionSets,
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
"HlsAutoSelect" (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)
hlsAutoSelect,
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
"HlsDefault" (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)
hlsDefault]))
instance Property "AudioGroupId" MediaPackageV2DestinationSettingsProperty where
type PropertyType "AudioGroupId" MediaPackageV2DestinationSettingsProperty = Value Prelude.Text
set :: PropertyType
"AudioGroupId" MediaPackageV2DestinationSettingsProperty
-> MediaPackageV2DestinationSettingsProperty
-> MediaPackageV2DestinationSettingsProperty
set PropertyType
"AudioGroupId" MediaPackageV2DestinationSettingsProperty
newValue MediaPackageV2DestinationSettingsProperty {Maybe (Value Text)
()
haddock_workaround_ :: MediaPackageV2DestinationSettingsProperty -> ()
audioGroupId :: MediaPackageV2DestinationSettingsProperty -> Maybe (Value Text)
audioRenditionSets :: MediaPackageV2DestinationSettingsProperty -> Maybe (Value Text)
hlsAutoSelect :: MediaPackageV2DestinationSettingsProperty -> Maybe (Value Text)
hlsDefault :: MediaPackageV2DestinationSettingsProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
audioGroupId :: Maybe (Value Text)
audioRenditionSets :: Maybe (Value Text)
hlsAutoSelect :: Maybe (Value Text)
hlsDefault :: Maybe (Value Text)
..}
= MediaPackageV2DestinationSettingsProperty
{audioGroupId :: Maybe (Value Text)
audioGroupId = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
"AudioGroupId" MediaPackageV2DestinationSettingsProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
audioRenditionSets :: Maybe (Value Text)
hlsAutoSelect :: Maybe (Value Text)
hlsDefault :: Maybe (Value Text)
haddock_workaround_ :: ()
audioRenditionSets :: Maybe (Value Text)
hlsAutoSelect :: Maybe (Value Text)
hlsDefault :: Maybe (Value Text)
..}
instance Property "AudioRenditionSets" MediaPackageV2DestinationSettingsProperty where
type PropertyType "AudioRenditionSets" MediaPackageV2DestinationSettingsProperty = Value Prelude.Text
set :: PropertyType
"AudioRenditionSets" MediaPackageV2DestinationSettingsProperty
-> MediaPackageV2DestinationSettingsProperty
-> MediaPackageV2DestinationSettingsProperty
set PropertyType
"AudioRenditionSets" MediaPackageV2DestinationSettingsProperty
newValue MediaPackageV2DestinationSettingsProperty {Maybe (Value Text)
()
haddock_workaround_ :: MediaPackageV2DestinationSettingsProperty -> ()
audioGroupId :: MediaPackageV2DestinationSettingsProperty -> Maybe (Value Text)
audioRenditionSets :: MediaPackageV2DestinationSettingsProperty -> Maybe (Value Text)
hlsAutoSelect :: MediaPackageV2DestinationSettingsProperty -> Maybe (Value Text)
hlsDefault :: MediaPackageV2DestinationSettingsProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
audioGroupId :: Maybe (Value Text)
audioRenditionSets :: Maybe (Value Text)
hlsAutoSelect :: Maybe (Value Text)
hlsDefault :: Maybe (Value Text)
..}
= MediaPackageV2DestinationSettingsProperty
{audioRenditionSets :: Maybe (Value Text)
audioRenditionSets = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
"AudioRenditionSets" MediaPackageV2DestinationSettingsProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
audioGroupId :: Maybe (Value Text)
hlsAutoSelect :: Maybe (Value Text)
hlsDefault :: Maybe (Value Text)
haddock_workaround_ :: ()
audioGroupId :: Maybe (Value Text)
hlsAutoSelect :: Maybe (Value Text)
hlsDefault :: Maybe (Value Text)
..}
instance Property "HlsAutoSelect" MediaPackageV2DestinationSettingsProperty where
type PropertyType "HlsAutoSelect" MediaPackageV2DestinationSettingsProperty = Value Prelude.Text
set :: PropertyType
"HlsAutoSelect" MediaPackageV2DestinationSettingsProperty
-> MediaPackageV2DestinationSettingsProperty
-> MediaPackageV2DestinationSettingsProperty
set PropertyType
"HlsAutoSelect" MediaPackageV2DestinationSettingsProperty
newValue MediaPackageV2DestinationSettingsProperty {Maybe (Value Text)
()
haddock_workaround_ :: MediaPackageV2DestinationSettingsProperty -> ()
audioGroupId :: MediaPackageV2DestinationSettingsProperty -> Maybe (Value Text)
audioRenditionSets :: MediaPackageV2DestinationSettingsProperty -> Maybe (Value Text)
hlsAutoSelect :: MediaPackageV2DestinationSettingsProperty -> Maybe (Value Text)
hlsDefault :: MediaPackageV2DestinationSettingsProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
audioGroupId :: Maybe (Value Text)
audioRenditionSets :: Maybe (Value Text)
hlsAutoSelect :: Maybe (Value Text)
hlsDefault :: Maybe (Value Text)
..}
= MediaPackageV2DestinationSettingsProperty
{hlsAutoSelect :: Maybe (Value Text)
hlsAutoSelect = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
"HlsAutoSelect" MediaPackageV2DestinationSettingsProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
audioGroupId :: Maybe (Value Text)
audioRenditionSets :: Maybe (Value Text)
hlsDefault :: Maybe (Value Text)
haddock_workaround_ :: ()
audioGroupId :: Maybe (Value Text)
audioRenditionSets :: Maybe (Value Text)
hlsDefault :: Maybe (Value Text)
..}
instance Property "HlsDefault" MediaPackageV2DestinationSettingsProperty where
type PropertyType "HlsDefault" MediaPackageV2DestinationSettingsProperty = Value Prelude.Text
set :: PropertyType "HlsDefault" MediaPackageV2DestinationSettingsProperty
-> MediaPackageV2DestinationSettingsProperty
-> MediaPackageV2DestinationSettingsProperty
set PropertyType "HlsDefault" MediaPackageV2DestinationSettingsProperty
newValue MediaPackageV2DestinationSettingsProperty {Maybe (Value Text)
()
haddock_workaround_ :: MediaPackageV2DestinationSettingsProperty -> ()
audioGroupId :: MediaPackageV2DestinationSettingsProperty -> Maybe (Value Text)
audioRenditionSets :: MediaPackageV2DestinationSettingsProperty -> Maybe (Value Text)
hlsAutoSelect :: MediaPackageV2DestinationSettingsProperty -> Maybe (Value Text)
hlsDefault :: MediaPackageV2DestinationSettingsProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
audioGroupId :: Maybe (Value Text)
audioRenditionSets :: Maybe (Value Text)
hlsAutoSelect :: Maybe (Value Text)
hlsDefault :: Maybe (Value Text)
..}
= MediaPackageV2DestinationSettingsProperty
{hlsDefault :: Maybe (Value Text)
hlsDefault = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "HlsDefault" MediaPackageV2DestinationSettingsProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
audioGroupId :: Maybe (Value Text)
audioRenditionSets :: Maybe (Value Text)
hlsAutoSelect :: Maybe (Value Text)
haddock_workaround_ :: ()
audioGroupId :: Maybe (Value Text)
audioRenditionSets :: Maybe (Value Text)
hlsAutoSelect :: Maybe (Value Text)
..}