module Stratosphere.MediaLive.Channel.EsamProperty (
EsamProperty(..), mkEsamProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data EsamProperty
=
EsamProperty {EsamProperty -> ()
haddock_workaround_ :: (),
EsamProperty -> Maybe (Value Text)
acquisitionPointId :: (Prelude.Maybe (Value Prelude.Text)),
EsamProperty -> Maybe (Value Integer)
adAvailOffset :: (Prelude.Maybe (Value Prelude.Integer)),
EsamProperty -> Maybe (Value Text)
passwordParam :: (Prelude.Maybe (Value Prelude.Text)),
EsamProperty -> Maybe (Value Text)
poisEndpoint :: (Prelude.Maybe (Value Prelude.Text)),
EsamProperty -> Maybe (Value Text)
username :: (Prelude.Maybe (Value Prelude.Text)),
EsamProperty -> Maybe (Value Text)
zoneIdentity :: (Prelude.Maybe (Value Prelude.Text))}
deriving stock (EsamProperty -> EsamProperty -> Bool
(EsamProperty -> EsamProperty -> Bool)
-> (EsamProperty -> EsamProperty -> Bool) -> Eq EsamProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: EsamProperty -> EsamProperty -> Bool
== :: EsamProperty -> EsamProperty -> Bool
$c/= :: EsamProperty -> EsamProperty -> Bool
/= :: EsamProperty -> EsamProperty -> Bool
Prelude.Eq, Int -> EsamProperty -> ShowS
[EsamProperty] -> ShowS
EsamProperty -> String
(Int -> EsamProperty -> ShowS)
-> (EsamProperty -> String)
-> ([EsamProperty] -> ShowS)
-> Show EsamProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> EsamProperty -> ShowS
showsPrec :: Int -> EsamProperty -> ShowS
$cshow :: EsamProperty -> String
show :: EsamProperty -> String
$cshowList :: [EsamProperty] -> ShowS
showList :: [EsamProperty] -> ShowS
Prelude.Show)
mkEsamProperty :: EsamProperty
mkEsamProperty :: EsamProperty
mkEsamProperty
= EsamProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), acquisitionPointId :: Maybe (Value Text)
acquisitionPointId = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
adAvailOffset :: Maybe (Value Integer)
adAvailOffset = Maybe (Value Integer)
forall a. Maybe a
Prelude.Nothing, passwordParam :: Maybe (Value Text)
passwordParam = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
poisEndpoint :: Maybe (Value Text)
poisEndpoint = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing, username :: Maybe (Value Text)
username = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
zoneIdentity :: Maybe (Value Text)
zoneIdentity = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties EsamProperty where
toResourceProperties :: EsamProperty -> ResourceProperties
toResourceProperties EsamProperty {Maybe (Value Integer)
Maybe (Value Text)
()
haddock_workaround_ :: EsamProperty -> ()
acquisitionPointId :: EsamProperty -> Maybe (Value Text)
adAvailOffset :: EsamProperty -> Maybe (Value Integer)
passwordParam :: EsamProperty -> Maybe (Value Text)
poisEndpoint :: EsamProperty -> Maybe (Value Text)
username :: EsamProperty -> Maybe (Value Text)
zoneIdentity :: EsamProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
acquisitionPointId :: Maybe (Value Text)
adAvailOffset :: Maybe (Value Integer)
passwordParam :: Maybe (Value Text)
poisEndpoint :: Maybe (Value Text)
username :: Maybe (Value Text)
zoneIdentity :: Maybe (Value Text)
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::MediaLive::Channel.Esam",
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
"AcquisitionPointId" (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)
acquisitionPointId,
Key -> Value Integer -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"AdAvailOffset" (Value Integer -> (Key, Value))
-> Maybe (Value Integer) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Integer)
adAvailOffset,
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
"PoisEndpoint" (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)
poisEndpoint,
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,
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
"ZoneIdentity" (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)
zoneIdentity])}
instance JSON.ToJSON EsamProperty where
toJSON :: EsamProperty -> Value
toJSON EsamProperty {Maybe (Value Integer)
Maybe (Value Text)
()
haddock_workaround_ :: EsamProperty -> ()
acquisitionPointId :: EsamProperty -> Maybe (Value Text)
adAvailOffset :: EsamProperty -> Maybe (Value Integer)
passwordParam :: EsamProperty -> Maybe (Value Text)
poisEndpoint :: EsamProperty -> Maybe (Value Text)
username :: EsamProperty -> Maybe (Value Text)
zoneIdentity :: EsamProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
acquisitionPointId :: Maybe (Value Text)
adAvailOffset :: Maybe (Value Integer)
passwordParam :: Maybe (Value Text)
poisEndpoint :: Maybe (Value Text)
username :: Maybe (Value Text)
zoneIdentity :: 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
"AcquisitionPointId" (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)
acquisitionPointId,
Key -> Value Integer -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"AdAvailOffset" (Value Integer -> (Key, Value))
-> Maybe (Value Integer) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Integer)
adAvailOffset,
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
"PoisEndpoint" (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)
poisEndpoint,
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,
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
"ZoneIdentity" (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)
zoneIdentity]))
instance Property "AcquisitionPointId" EsamProperty where
type PropertyType "AcquisitionPointId" EsamProperty = Value Prelude.Text
set :: PropertyType "AcquisitionPointId" EsamProperty
-> EsamProperty -> EsamProperty
set PropertyType "AcquisitionPointId" EsamProperty
newValue EsamProperty {Maybe (Value Integer)
Maybe (Value Text)
()
haddock_workaround_ :: EsamProperty -> ()
acquisitionPointId :: EsamProperty -> Maybe (Value Text)
adAvailOffset :: EsamProperty -> Maybe (Value Integer)
passwordParam :: EsamProperty -> Maybe (Value Text)
poisEndpoint :: EsamProperty -> Maybe (Value Text)
username :: EsamProperty -> Maybe (Value Text)
zoneIdentity :: EsamProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
acquisitionPointId :: Maybe (Value Text)
adAvailOffset :: Maybe (Value Integer)
passwordParam :: Maybe (Value Text)
poisEndpoint :: Maybe (Value Text)
username :: Maybe (Value Text)
zoneIdentity :: Maybe (Value Text)
..}
= EsamProperty {acquisitionPointId :: Maybe (Value Text)
acquisitionPointId = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "AcquisitionPointId" EsamProperty
Value Text
newValue, Maybe (Value Integer)
Maybe (Value Text)
()
haddock_workaround_ :: ()
adAvailOffset :: Maybe (Value Integer)
passwordParam :: Maybe (Value Text)
poisEndpoint :: Maybe (Value Text)
username :: Maybe (Value Text)
zoneIdentity :: Maybe (Value Text)
haddock_workaround_ :: ()
adAvailOffset :: Maybe (Value Integer)
passwordParam :: Maybe (Value Text)
poisEndpoint :: Maybe (Value Text)
username :: Maybe (Value Text)
zoneIdentity :: Maybe (Value Text)
..}
instance Property "AdAvailOffset" EsamProperty where
type PropertyType "AdAvailOffset" EsamProperty = Value Prelude.Integer
set :: PropertyType "AdAvailOffset" EsamProperty
-> EsamProperty -> EsamProperty
set PropertyType "AdAvailOffset" EsamProperty
newValue EsamProperty {Maybe (Value Integer)
Maybe (Value Text)
()
haddock_workaround_ :: EsamProperty -> ()
acquisitionPointId :: EsamProperty -> Maybe (Value Text)
adAvailOffset :: EsamProperty -> Maybe (Value Integer)
passwordParam :: EsamProperty -> Maybe (Value Text)
poisEndpoint :: EsamProperty -> Maybe (Value Text)
username :: EsamProperty -> Maybe (Value Text)
zoneIdentity :: EsamProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
acquisitionPointId :: Maybe (Value Text)
adAvailOffset :: Maybe (Value Integer)
passwordParam :: Maybe (Value Text)
poisEndpoint :: Maybe (Value Text)
username :: Maybe (Value Text)
zoneIdentity :: Maybe (Value Text)
..}
= EsamProperty {adAvailOffset :: Maybe (Value Integer)
adAvailOffset = Value Integer -> Maybe (Value Integer)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "AdAvailOffset" EsamProperty
Value Integer
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
acquisitionPointId :: Maybe (Value Text)
passwordParam :: Maybe (Value Text)
poisEndpoint :: Maybe (Value Text)
username :: Maybe (Value Text)
zoneIdentity :: Maybe (Value Text)
haddock_workaround_ :: ()
acquisitionPointId :: Maybe (Value Text)
passwordParam :: Maybe (Value Text)
poisEndpoint :: Maybe (Value Text)
username :: Maybe (Value Text)
zoneIdentity :: Maybe (Value Text)
..}
instance Property "PasswordParam" EsamProperty where
type PropertyType "PasswordParam" EsamProperty = Value Prelude.Text
set :: PropertyType "PasswordParam" EsamProperty
-> EsamProperty -> EsamProperty
set PropertyType "PasswordParam" EsamProperty
newValue EsamProperty {Maybe (Value Integer)
Maybe (Value Text)
()
haddock_workaround_ :: EsamProperty -> ()
acquisitionPointId :: EsamProperty -> Maybe (Value Text)
adAvailOffset :: EsamProperty -> Maybe (Value Integer)
passwordParam :: EsamProperty -> Maybe (Value Text)
poisEndpoint :: EsamProperty -> Maybe (Value Text)
username :: EsamProperty -> Maybe (Value Text)
zoneIdentity :: EsamProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
acquisitionPointId :: Maybe (Value Text)
adAvailOffset :: Maybe (Value Integer)
passwordParam :: Maybe (Value Text)
poisEndpoint :: Maybe (Value Text)
username :: Maybe (Value Text)
zoneIdentity :: Maybe (Value Text)
..}
= EsamProperty {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" EsamProperty
Value Text
newValue, Maybe (Value Integer)
Maybe (Value Text)
()
haddock_workaround_ :: ()
acquisitionPointId :: Maybe (Value Text)
adAvailOffset :: Maybe (Value Integer)
poisEndpoint :: Maybe (Value Text)
username :: Maybe (Value Text)
zoneIdentity :: Maybe (Value Text)
haddock_workaround_ :: ()
acquisitionPointId :: Maybe (Value Text)
adAvailOffset :: Maybe (Value Integer)
poisEndpoint :: Maybe (Value Text)
username :: Maybe (Value Text)
zoneIdentity :: Maybe (Value Text)
..}
instance Property "PoisEndpoint" EsamProperty where
type PropertyType "PoisEndpoint" EsamProperty = Value Prelude.Text
set :: PropertyType "PoisEndpoint" EsamProperty
-> EsamProperty -> EsamProperty
set PropertyType "PoisEndpoint" EsamProperty
newValue EsamProperty {Maybe (Value Integer)
Maybe (Value Text)
()
haddock_workaround_ :: EsamProperty -> ()
acquisitionPointId :: EsamProperty -> Maybe (Value Text)
adAvailOffset :: EsamProperty -> Maybe (Value Integer)
passwordParam :: EsamProperty -> Maybe (Value Text)
poisEndpoint :: EsamProperty -> Maybe (Value Text)
username :: EsamProperty -> Maybe (Value Text)
zoneIdentity :: EsamProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
acquisitionPointId :: Maybe (Value Text)
adAvailOffset :: Maybe (Value Integer)
passwordParam :: Maybe (Value Text)
poisEndpoint :: Maybe (Value Text)
username :: Maybe (Value Text)
zoneIdentity :: Maybe (Value Text)
..}
= EsamProperty {poisEndpoint :: Maybe (Value Text)
poisEndpoint = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "PoisEndpoint" EsamProperty
Value Text
newValue, Maybe (Value Integer)
Maybe (Value Text)
()
haddock_workaround_ :: ()
acquisitionPointId :: Maybe (Value Text)
adAvailOffset :: Maybe (Value Integer)
passwordParam :: Maybe (Value Text)
username :: Maybe (Value Text)
zoneIdentity :: Maybe (Value Text)
haddock_workaround_ :: ()
acquisitionPointId :: Maybe (Value Text)
adAvailOffset :: Maybe (Value Integer)
passwordParam :: Maybe (Value Text)
username :: Maybe (Value Text)
zoneIdentity :: Maybe (Value Text)
..}
instance Property "Username" EsamProperty where
type PropertyType "Username" EsamProperty = Value Prelude.Text
set :: PropertyType "Username" EsamProperty
-> EsamProperty -> EsamProperty
set PropertyType "Username" EsamProperty
newValue EsamProperty {Maybe (Value Integer)
Maybe (Value Text)
()
haddock_workaround_ :: EsamProperty -> ()
acquisitionPointId :: EsamProperty -> Maybe (Value Text)
adAvailOffset :: EsamProperty -> Maybe (Value Integer)
passwordParam :: EsamProperty -> Maybe (Value Text)
poisEndpoint :: EsamProperty -> Maybe (Value Text)
username :: EsamProperty -> Maybe (Value Text)
zoneIdentity :: EsamProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
acquisitionPointId :: Maybe (Value Text)
adAvailOffset :: Maybe (Value Integer)
passwordParam :: Maybe (Value Text)
poisEndpoint :: Maybe (Value Text)
username :: Maybe (Value Text)
zoneIdentity :: Maybe (Value Text)
..}
= EsamProperty {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" EsamProperty
Value Text
newValue, Maybe (Value Integer)
Maybe (Value Text)
()
haddock_workaround_ :: ()
acquisitionPointId :: Maybe (Value Text)
adAvailOffset :: Maybe (Value Integer)
passwordParam :: Maybe (Value Text)
poisEndpoint :: Maybe (Value Text)
zoneIdentity :: Maybe (Value Text)
haddock_workaround_ :: ()
acquisitionPointId :: Maybe (Value Text)
adAvailOffset :: Maybe (Value Integer)
passwordParam :: Maybe (Value Text)
poisEndpoint :: Maybe (Value Text)
zoneIdentity :: Maybe (Value Text)
..}
instance Property "ZoneIdentity" EsamProperty where
type PropertyType "ZoneIdentity" EsamProperty = Value Prelude.Text
set :: PropertyType "ZoneIdentity" EsamProperty
-> EsamProperty -> EsamProperty
set PropertyType "ZoneIdentity" EsamProperty
newValue EsamProperty {Maybe (Value Integer)
Maybe (Value Text)
()
haddock_workaround_ :: EsamProperty -> ()
acquisitionPointId :: EsamProperty -> Maybe (Value Text)
adAvailOffset :: EsamProperty -> Maybe (Value Integer)
passwordParam :: EsamProperty -> Maybe (Value Text)
poisEndpoint :: EsamProperty -> Maybe (Value Text)
username :: EsamProperty -> Maybe (Value Text)
zoneIdentity :: EsamProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
acquisitionPointId :: Maybe (Value Text)
adAvailOffset :: Maybe (Value Integer)
passwordParam :: Maybe (Value Text)
poisEndpoint :: Maybe (Value Text)
username :: Maybe (Value Text)
zoneIdentity :: Maybe (Value Text)
..}
= EsamProperty {zoneIdentity :: Maybe (Value Text)
zoneIdentity = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "ZoneIdentity" EsamProperty
Value Text
newValue, Maybe (Value Integer)
Maybe (Value Text)
()
haddock_workaround_ :: ()
acquisitionPointId :: Maybe (Value Text)
adAvailOffset :: Maybe (Value Integer)
passwordParam :: Maybe (Value Text)
poisEndpoint :: Maybe (Value Text)
username :: Maybe (Value Text)
haddock_workaround_ :: ()
acquisitionPointId :: Maybe (Value Text)
adAvailOffset :: Maybe (Value Integer)
passwordParam :: Maybe (Value Text)
poisEndpoint :: Maybe (Value Text)
username :: Maybe (Value Text)
..}