module Stratosphere.MediaConnect.Bridge.BridgeFlowSourceProperty (
module Exports, BridgeFlowSourceProperty(..),
mkBridgeFlowSourceProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.MediaConnect.Bridge.VpcInterfaceAttachmentProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Value
data BridgeFlowSourceProperty
=
BridgeFlowSourceProperty {BridgeFlowSourceProperty -> ()
haddock_workaround_ :: (),
BridgeFlowSourceProperty -> Value Text
flowArn :: (Value Prelude.Text),
BridgeFlowSourceProperty -> Maybe VpcInterfaceAttachmentProperty
flowVpcInterfaceAttachment :: (Prelude.Maybe VpcInterfaceAttachmentProperty),
BridgeFlowSourceProperty -> Value Text
name :: (Value Prelude.Text)}
deriving stock (BridgeFlowSourceProperty -> BridgeFlowSourceProperty -> Bool
(BridgeFlowSourceProperty -> BridgeFlowSourceProperty -> Bool)
-> (BridgeFlowSourceProperty -> BridgeFlowSourceProperty -> Bool)
-> Eq BridgeFlowSourceProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: BridgeFlowSourceProperty -> BridgeFlowSourceProperty -> Bool
== :: BridgeFlowSourceProperty -> BridgeFlowSourceProperty -> Bool
$c/= :: BridgeFlowSourceProperty -> BridgeFlowSourceProperty -> Bool
/= :: BridgeFlowSourceProperty -> BridgeFlowSourceProperty -> Bool
Prelude.Eq, Int -> BridgeFlowSourceProperty -> ShowS
[BridgeFlowSourceProperty] -> ShowS
BridgeFlowSourceProperty -> String
(Int -> BridgeFlowSourceProperty -> ShowS)
-> (BridgeFlowSourceProperty -> String)
-> ([BridgeFlowSourceProperty] -> ShowS)
-> Show BridgeFlowSourceProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> BridgeFlowSourceProperty -> ShowS
showsPrec :: Int -> BridgeFlowSourceProperty -> ShowS
$cshow :: BridgeFlowSourceProperty -> String
show :: BridgeFlowSourceProperty -> String
$cshowList :: [BridgeFlowSourceProperty] -> ShowS
showList :: [BridgeFlowSourceProperty] -> ShowS
Prelude.Show)
mkBridgeFlowSourceProperty ::
Value Prelude.Text
-> Value Prelude.Text -> BridgeFlowSourceProperty
mkBridgeFlowSourceProperty :: Value Text -> Value Text -> BridgeFlowSourceProperty
mkBridgeFlowSourceProperty Value Text
flowArn Value Text
name
= BridgeFlowSourceProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), flowArn :: Value Text
flowArn = Value Text
flowArn, name :: Value Text
name = Value Text
name,
flowVpcInterfaceAttachment :: Maybe VpcInterfaceAttachmentProperty
flowVpcInterfaceAttachment = Maybe VpcInterfaceAttachmentProperty
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties BridgeFlowSourceProperty where
toResourceProperties :: BridgeFlowSourceProperty -> ResourceProperties
toResourceProperties BridgeFlowSourceProperty {Maybe VpcInterfaceAttachmentProperty
()
Value Text
haddock_workaround_ :: BridgeFlowSourceProperty -> ()
flowArn :: BridgeFlowSourceProperty -> Value Text
flowVpcInterfaceAttachment :: BridgeFlowSourceProperty -> Maybe VpcInterfaceAttachmentProperty
name :: BridgeFlowSourceProperty -> Value Text
haddock_workaround_ :: ()
flowArn :: Value Text
flowVpcInterfaceAttachment :: Maybe VpcInterfaceAttachmentProperty
name :: Value Text
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::MediaConnect::Bridge.BridgeFlowSource",
supportsTags :: Bool
supportsTags = Bool
Prelude.False,
properties :: Object
properties = [Item Object] -> Object
forall l. IsList l => [Item l] -> l
Prelude.fromList
([(Key, Value)] -> [(Key, Value)] -> [(Key, Value)]
forall a. Semigroup a => a -> a -> a
(Prelude.<>)
[Key
"FlowArn" 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..= Value Text
flowArn, Key
"Name" 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..= Value Text
name]
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[Key -> VpcInterfaceAttachmentProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"FlowVpcInterfaceAttachment"
(VpcInterfaceAttachmentProperty -> (Key, Value))
-> Maybe VpcInterfaceAttachmentProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe VpcInterfaceAttachmentProperty
flowVpcInterfaceAttachment]))}
instance JSON.ToJSON BridgeFlowSourceProperty where
toJSON :: BridgeFlowSourceProperty -> Value
toJSON BridgeFlowSourceProperty {Maybe VpcInterfaceAttachmentProperty
()
Value Text
haddock_workaround_ :: BridgeFlowSourceProperty -> ()
flowArn :: BridgeFlowSourceProperty -> Value Text
flowVpcInterfaceAttachment :: BridgeFlowSourceProperty -> Maybe VpcInterfaceAttachmentProperty
name :: BridgeFlowSourceProperty -> Value Text
haddock_workaround_ :: ()
flowArn :: Value Text
flowVpcInterfaceAttachment :: Maybe VpcInterfaceAttachmentProperty
name :: Value Text
..}
= [(Key, Value)] -> Value
JSON.object
([Item [(Key, Value)]] -> [(Key, Value)]
forall l. IsList l => [Item l] -> l
Prelude.fromList
([(Key, Value)] -> [(Key, Value)] -> [(Key, Value)]
forall a. Semigroup a => a -> a -> a
(Prelude.<>)
[Key
"FlowArn" 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..= Value Text
flowArn, Key
"Name" 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..= Value Text
name]
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[Key -> VpcInterfaceAttachmentProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"FlowVpcInterfaceAttachment"
(VpcInterfaceAttachmentProperty -> (Key, Value))
-> Maybe VpcInterfaceAttachmentProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe VpcInterfaceAttachmentProperty
flowVpcInterfaceAttachment])))
instance Property "FlowArn" BridgeFlowSourceProperty where
type PropertyType "FlowArn" BridgeFlowSourceProperty = Value Prelude.Text
set :: PropertyType "FlowArn" BridgeFlowSourceProperty
-> BridgeFlowSourceProperty -> BridgeFlowSourceProperty
set PropertyType "FlowArn" BridgeFlowSourceProperty
newValue BridgeFlowSourceProperty {Maybe VpcInterfaceAttachmentProperty
()
Value Text
haddock_workaround_ :: BridgeFlowSourceProperty -> ()
flowArn :: BridgeFlowSourceProperty -> Value Text
flowVpcInterfaceAttachment :: BridgeFlowSourceProperty -> Maybe VpcInterfaceAttachmentProperty
name :: BridgeFlowSourceProperty -> Value Text
haddock_workaround_ :: ()
flowArn :: Value Text
flowVpcInterfaceAttachment :: Maybe VpcInterfaceAttachmentProperty
name :: Value Text
..}
= BridgeFlowSourceProperty {flowArn :: Value Text
flowArn = PropertyType "FlowArn" BridgeFlowSourceProperty
Value Text
newValue, Maybe VpcInterfaceAttachmentProperty
()
Value Text
haddock_workaround_ :: ()
flowVpcInterfaceAttachment :: Maybe VpcInterfaceAttachmentProperty
name :: Value Text
haddock_workaround_ :: ()
flowVpcInterfaceAttachment :: Maybe VpcInterfaceAttachmentProperty
name :: Value Text
..}
instance Property "FlowVpcInterfaceAttachment" BridgeFlowSourceProperty where
type PropertyType "FlowVpcInterfaceAttachment" BridgeFlowSourceProperty = VpcInterfaceAttachmentProperty
set :: PropertyType "FlowVpcInterfaceAttachment" BridgeFlowSourceProperty
-> BridgeFlowSourceProperty -> BridgeFlowSourceProperty
set PropertyType "FlowVpcInterfaceAttachment" BridgeFlowSourceProperty
newValue BridgeFlowSourceProperty {Maybe VpcInterfaceAttachmentProperty
()
Value Text
haddock_workaround_ :: BridgeFlowSourceProperty -> ()
flowArn :: BridgeFlowSourceProperty -> Value Text
flowVpcInterfaceAttachment :: BridgeFlowSourceProperty -> Maybe VpcInterfaceAttachmentProperty
name :: BridgeFlowSourceProperty -> Value Text
haddock_workaround_ :: ()
flowArn :: Value Text
flowVpcInterfaceAttachment :: Maybe VpcInterfaceAttachmentProperty
name :: Value Text
..}
= BridgeFlowSourceProperty
{flowVpcInterfaceAttachment :: Maybe VpcInterfaceAttachmentProperty
flowVpcInterfaceAttachment = VpcInterfaceAttachmentProperty
-> Maybe VpcInterfaceAttachmentProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "FlowVpcInterfaceAttachment" BridgeFlowSourceProperty
VpcInterfaceAttachmentProperty
newValue, ()
Value Text
haddock_workaround_ :: ()
flowArn :: Value Text
name :: Value Text
haddock_workaround_ :: ()
flowArn :: Value Text
name :: Value Text
..}
instance Property "Name" BridgeFlowSourceProperty where
type PropertyType "Name" BridgeFlowSourceProperty = Value Prelude.Text
set :: PropertyType "Name" BridgeFlowSourceProperty
-> BridgeFlowSourceProperty -> BridgeFlowSourceProperty
set PropertyType "Name" BridgeFlowSourceProperty
newValue BridgeFlowSourceProperty {Maybe VpcInterfaceAttachmentProperty
()
Value Text
haddock_workaround_ :: BridgeFlowSourceProperty -> ()
flowArn :: BridgeFlowSourceProperty -> Value Text
flowVpcInterfaceAttachment :: BridgeFlowSourceProperty -> Maybe VpcInterfaceAttachmentProperty
name :: BridgeFlowSourceProperty -> Value Text
haddock_workaround_ :: ()
flowArn :: Value Text
flowVpcInterfaceAttachment :: Maybe VpcInterfaceAttachmentProperty
name :: Value Text
..}
= BridgeFlowSourceProperty {name :: Value Text
name = PropertyType "Name" BridgeFlowSourceProperty
Value Text
newValue, Maybe VpcInterfaceAttachmentProperty
()
Value Text
haddock_workaround_ :: ()
flowArn :: Value Text
flowVpcInterfaceAttachment :: Maybe VpcInterfaceAttachmentProperty
haddock_workaround_ :: ()
flowArn :: Value Text
flowVpcInterfaceAttachment :: Maybe VpcInterfaceAttachmentProperty
..}