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