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