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