module Stratosphere.MediaLive.Channel.AvailConfigurationProperty (
module Exports, AvailConfigurationProperty(..),
mkAvailConfigurationProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.MediaLive.Channel.AvailSettingsProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Value
data AvailConfigurationProperty
=
AvailConfigurationProperty {AvailConfigurationProperty -> ()
haddock_workaround_ :: (),
AvailConfigurationProperty -> Maybe AvailSettingsProperty
availSettings :: (Prelude.Maybe AvailSettingsProperty),
AvailConfigurationProperty -> Maybe (Value Text)
scte35SegmentationScope :: (Prelude.Maybe (Value Prelude.Text))}
deriving stock (AvailConfigurationProperty -> AvailConfigurationProperty -> Bool
(AvailConfigurationProperty -> AvailConfigurationProperty -> Bool)
-> (AvailConfigurationProperty
-> AvailConfigurationProperty -> Bool)
-> Eq AvailConfigurationProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: AvailConfigurationProperty -> AvailConfigurationProperty -> Bool
== :: AvailConfigurationProperty -> AvailConfigurationProperty -> Bool
$c/= :: AvailConfigurationProperty -> AvailConfigurationProperty -> Bool
/= :: AvailConfigurationProperty -> AvailConfigurationProperty -> Bool
Prelude.Eq, Int -> AvailConfigurationProperty -> ShowS
[AvailConfigurationProperty] -> ShowS
AvailConfigurationProperty -> String
(Int -> AvailConfigurationProperty -> ShowS)
-> (AvailConfigurationProperty -> String)
-> ([AvailConfigurationProperty] -> ShowS)
-> Show AvailConfigurationProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> AvailConfigurationProperty -> ShowS
showsPrec :: Int -> AvailConfigurationProperty -> ShowS
$cshow :: AvailConfigurationProperty -> String
show :: AvailConfigurationProperty -> String
$cshowList :: [AvailConfigurationProperty] -> ShowS
showList :: [AvailConfigurationProperty] -> ShowS
Prelude.Show)
mkAvailConfigurationProperty :: AvailConfigurationProperty
mkAvailConfigurationProperty :: AvailConfigurationProperty
mkAvailConfigurationProperty
= AvailConfigurationProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), availSettings :: Maybe AvailSettingsProperty
availSettings = Maybe AvailSettingsProperty
forall a. Maybe a
Prelude.Nothing,
scte35SegmentationScope :: Maybe (Value Text)
scte35SegmentationScope = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties AvailConfigurationProperty where
toResourceProperties :: AvailConfigurationProperty -> ResourceProperties
toResourceProperties AvailConfigurationProperty {Maybe (Value Text)
Maybe AvailSettingsProperty
()
haddock_workaround_ :: AvailConfigurationProperty -> ()
availSettings :: AvailConfigurationProperty -> Maybe AvailSettingsProperty
scte35SegmentationScope :: AvailConfigurationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
availSettings :: Maybe AvailSettingsProperty
scte35SegmentationScope :: Maybe (Value Text)
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::MediaLive::Channel.AvailConfiguration",
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 -> AvailSettingsProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"AvailSettings" (AvailSettingsProperty -> (Key, Value))
-> Maybe AvailSettingsProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe AvailSettingsProperty
availSettings,
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
"Scte35SegmentationScope"
(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)
scte35SegmentationScope])}
instance JSON.ToJSON AvailConfigurationProperty where
toJSON :: AvailConfigurationProperty -> Value
toJSON AvailConfigurationProperty {Maybe (Value Text)
Maybe AvailSettingsProperty
()
haddock_workaround_ :: AvailConfigurationProperty -> ()
availSettings :: AvailConfigurationProperty -> Maybe AvailSettingsProperty
scte35SegmentationScope :: AvailConfigurationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
availSettings :: Maybe AvailSettingsProperty
scte35SegmentationScope :: 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 -> AvailSettingsProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"AvailSettings" (AvailSettingsProperty -> (Key, Value))
-> Maybe AvailSettingsProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe AvailSettingsProperty
availSettings,
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
"Scte35SegmentationScope"
(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)
scte35SegmentationScope]))
instance Property "AvailSettings" AvailConfigurationProperty where
type PropertyType "AvailSettings" AvailConfigurationProperty = AvailSettingsProperty
set :: PropertyType "AvailSettings" AvailConfigurationProperty
-> AvailConfigurationProperty -> AvailConfigurationProperty
set PropertyType "AvailSettings" AvailConfigurationProperty
newValue AvailConfigurationProperty {Maybe (Value Text)
Maybe AvailSettingsProperty
()
haddock_workaround_ :: AvailConfigurationProperty -> ()
availSettings :: AvailConfigurationProperty -> Maybe AvailSettingsProperty
scte35SegmentationScope :: AvailConfigurationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
availSettings :: Maybe AvailSettingsProperty
scte35SegmentationScope :: Maybe (Value Text)
..}
= AvailConfigurationProperty
{availSettings :: Maybe AvailSettingsProperty
availSettings = AvailSettingsProperty -> Maybe AvailSettingsProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "AvailSettings" AvailConfigurationProperty
AvailSettingsProperty
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
scte35SegmentationScope :: Maybe (Value Text)
haddock_workaround_ :: ()
scte35SegmentationScope :: Maybe (Value Text)
..}
instance Property "Scte35SegmentationScope" AvailConfigurationProperty where
type PropertyType "Scte35SegmentationScope" AvailConfigurationProperty = Value Prelude.Text
set :: PropertyType "Scte35SegmentationScope" AvailConfigurationProperty
-> AvailConfigurationProperty -> AvailConfigurationProperty
set PropertyType "Scte35SegmentationScope" AvailConfigurationProperty
newValue AvailConfigurationProperty {Maybe (Value Text)
Maybe AvailSettingsProperty
()
haddock_workaround_ :: AvailConfigurationProperty -> ()
availSettings :: AvailConfigurationProperty -> Maybe AvailSettingsProperty
scte35SegmentationScope :: AvailConfigurationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
availSettings :: Maybe AvailSettingsProperty
scte35SegmentationScope :: Maybe (Value Text)
..}
= AvailConfigurationProperty
{scte35SegmentationScope :: Maybe (Value Text)
scte35SegmentationScope = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Scte35SegmentationScope" AvailConfigurationProperty
Value Text
newValue, Maybe AvailSettingsProperty
()
haddock_workaround_ :: ()
availSettings :: Maybe AvailSettingsProperty
haddock_workaround_ :: ()
availSettings :: Maybe AvailSettingsProperty
..}