module Stratosphere.Bedrock.Flow.FlowConnectionProperty (
        module Exports, FlowConnectionProperty(..),
        mkFlowConnectionProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.Bedrock.Flow.FlowConnectionConfigurationProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Value
data FlowConnectionProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flow-flowconnection.html>
    FlowConnectionProperty {FlowConnectionProperty -> ()
haddock_workaround_ :: (),
                            -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flow-flowconnection.html#cfn-bedrock-flow-flowconnection-configuration>
                            FlowConnectionProperty -> Maybe FlowConnectionConfigurationProperty
configuration :: (Prelude.Maybe FlowConnectionConfigurationProperty),
                            -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flow-flowconnection.html#cfn-bedrock-flow-flowconnection-name>
                            FlowConnectionProperty -> Value Text
name :: (Value Prelude.Text),
                            -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flow-flowconnection.html#cfn-bedrock-flow-flowconnection-source>
                            FlowConnectionProperty -> Value Text
source :: (Value Prelude.Text),
                            -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flow-flowconnection.html#cfn-bedrock-flow-flowconnection-target>
                            FlowConnectionProperty -> Value Text
target :: (Value Prelude.Text),
                            -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flow-flowconnection.html#cfn-bedrock-flow-flowconnection-type>
                            FlowConnectionProperty -> Value Text
type' :: (Value Prelude.Text)}
  deriving stock (FlowConnectionProperty -> FlowConnectionProperty -> Bool
(FlowConnectionProperty -> FlowConnectionProperty -> Bool)
-> (FlowConnectionProperty -> FlowConnectionProperty -> Bool)
-> Eq FlowConnectionProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: FlowConnectionProperty -> FlowConnectionProperty -> Bool
== :: FlowConnectionProperty -> FlowConnectionProperty -> Bool
$c/= :: FlowConnectionProperty -> FlowConnectionProperty -> Bool
/= :: FlowConnectionProperty -> FlowConnectionProperty -> Bool
Prelude.Eq, Int -> FlowConnectionProperty -> ShowS
[FlowConnectionProperty] -> ShowS
FlowConnectionProperty -> String
(Int -> FlowConnectionProperty -> ShowS)
-> (FlowConnectionProperty -> String)
-> ([FlowConnectionProperty] -> ShowS)
-> Show FlowConnectionProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> FlowConnectionProperty -> ShowS
showsPrec :: Int -> FlowConnectionProperty -> ShowS
$cshow :: FlowConnectionProperty -> String
show :: FlowConnectionProperty -> String
$cshowList :: [FlowConnectionProperty] -> ShowS
showList :: [FlowConnectionProperty] -> ShowS
Prelude.Show)
mkFlowConnectionProperty ::
  Value Prelude.Text
  -> Value Prelude.Text
     -> Value Prelude.Text
        -> Value Prelude.Text -> FlowConnectionProperty
mkFlowConnectionProperty :: Value Text
-> Value Text -> Value Text -> Value Text -> FlowConnectionProperty
mkFlowConnectionProperty Value Text
name Value Text
source Value Text
target Value Text
type'
  = FlowConnectionProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), name :: Value Text
name = Value Text
name, source :: Value Text
source = Value Text
source,
       target :: Value Text
target = Value Text
target, type' :: Value Text
type' = Value Text
type', configuration :: Maybe FlowConnectionConfigurationProperty
configuration = Maybe FlowConnectionConfigurationProperty
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties FlowConnectionProperty where
  toResourceProperties :: FlowConnectionProperty -> ResourceProperties
toResourceProperties FlowConnectionProperty {Maybe FlowConnectionConfigurationProperty
()
Value Text
haddock_workaround_ :: FlowConnectionProperty -> ()
configuration :: FlowConnectionProperty -> Maybe FlowConnectionConfigurationProperty
name :: FlowConnectionProperty -> Value Text
source :: FlowConnectionProperty -> Value Text
target :: FlowConnectionProperty -> Value Text
type' :: FlowConnectionProperty -> Value Text
haddock_workaround_ :: ()
configuration :: Maybe FlowConnectionConfigurationProperty
name :: Value Text
source :: Value Text
target :: Value Text
type' :: Value Text
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::Bedrock::Flow.FlowConnection",
         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
"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, Key
"Source" 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
source,
                            Key
"Target" 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
target, Key
"Type" 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
type']
                           ([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
                              [Key -> FlowConnectionConfigurationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Configuration" (FlowConnectionConfigurationProperty -> (Key, Value))
-> Maybe FlowConnectionConfigurationProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe FlowConnectionConfigurationProperty
configuration]))}
instance JSON.ToJSON FlowConnectionProperty where
  toJSON :: FlowConnectionProperty -> Value
toJSON FlowConnectionProperty {Maybe FlowConnectionConfigurationProperty
()
Value Text
haddock_workaround_ :: FlowConnectionProperty -> ()
configuration :: FlowConnectionProperty -> Maybe FlowConnectionConfigurationProperty
name :: FlowConnectionProperty -> Value Text
source :: FlowConnectionProperty -> Value Text
target :: FlowConnectionProperty -> Value Text
type' :: FlowConnectionProperty -> Value Text
haddock_workaround_ :: ()
configuration :: Maybe FlowConnectionConfigurationProperty
name :: Value Text
source :: Value Text
target :: Value Text
type' :: 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
"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, Key
"Source" 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
source,
               Key
"Target" 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
target, Key
"Type" 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
type']
              ([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
                 [Key -> FlowConnectionConfigurationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Configuration" (FlowConnectionConfigurationProperty -> (Key, Value))
-> Maybe FlowConnectionConfigurationProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe FlowConnectionConfigurationProperty
configuration])))
instance Property "Configuration" FlowConnectionProperty where
  type PropertyType "Configuration" FlowConnectionProperty = FlowConnectionConfigurationProperty
  set :: PropertyType "Configuration" FlowConnectionProperty
-> FlowConnectionProperty -> FlowConnectionProperty
set PropertyType "Configuration" FlowConnectionProperty
newValue FlowConnectionProperty {Maybe FlowConnectionConfigurationProperty
()
Value Text
haddock_workaround_ :: FlowConnectionProperty -> ()
configuration :: FlowConnectionProperty -> Maybe FlowConnectionConfigurationProperty
name :: FlowConnectionProperty -> Value Text
source :: FlowConnectionProperty -> Value Text
target :: FlowConnectionProperty -> Value Text
type' :: FlowConnectionProperty -> Value Text
haddock_workaround_ :: ()
configuration :: Maybe FlowConnectionConfigurationProperty
name :: Value Text
source :: Value Text
target :: Value Text
type' :: Value Text
..}
    = FlowConnectionProperty
        {configuration :: Maybe FlowConnectionConfigurationProperty
configuration = FlowConnectionConfigurationProperty
-> Maybe FlowConnectionConfigurationProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Configuration" FlowConnectionProperty
FlowConnectionConfigurationProperty
newValue, ()
Value Text
haddock_workaround_ :: ()
name :: Value Text
source :: Value Text
target :: Value Text
type' :: Value Text
haddock_workaround_ :: ()
name :: Value Text
source :: Value Text
target :: Value Text
type' :: Value Text
..}
instance Property "Name" FlowConnectionProperty where
  type PropertyType "Name" FlowConnectionProperty = Value Prelude.Text
  set :: PropertyType "Name" FlowConnectionProperty
-> FlowConnectionProperty -> FlowConnectionProperty
set PropertyType "Name" FlowConnectionProperty
newValue FlowConnectionProperty {Maybe FlowConnectionConfigurationProperty
()
Value Text
haddock_workaround_ :: FlowConnectionProperty -> ()
configuration :: FlowConnectionProperty -> Maybe FlowConnectionConfigurationProperty
name :: FlowConnectionProperty -> Value Text
source :: FlowConnectionProperty -> Value Text
target :: FlowConnectionProperty -> Value Text
type' :: FlowConnectionProperty -> Value Text
haddock_workaround_ :: ()
configuration :: Maybe FlowConnectionConfigurationProperty
name :: Value Text
source :: Value Text
target :: Value Text
type' :: Value Text
..}
    = FlowConnectionProperty {name :: Value Text
name = PropertyType "Name" FlowConnectionProperty
Value Text
newValue, Maybe FlowConnectionConfigurationProperty
()
Value Text
haddock_workaround_ :: ()
configuration :: Maybe FlowConnectionConfigurationProperty
source :: Value Text
target :: Value Text
type' :: Value Text
haddock_workaround_ :: ()
configuration :: Maybe FlowConnectionConfigurationProperty
source :: Value Text
target :: Value Text
type' :: Value Text
..}
instance Property "Source" FlowConnectionProperty where
  type PropertyType "Source" FlowConnectionProperty = Value Prelude.Text
  set :: PropertyType "Source" FlowConnectionProperty
-> FlowConnectionProperty -> FlowConnectionProperty
set PropertyType "Source" FlowConnectionProperty
newValue FlowConnectionProperty {Maybe FlowConnectionConfigurationProperty
()
Value Text
haddock_workaround_ :: FlowConnectionProperty -> ()
configuration :: FlowConnectionProperty -> Maybe FlowConnectionConfigurationProperty
name :: FlowConnectionProperty -> Value Text
source :: FlowConnectionProperty -> Value Text
target :: FlowConnectionProperty -> Value Text
type' :: FlowConnectionProperty -> Value Text
haddock_workaround_ :: ()
configuration :: Maybe FlowConnectionConfigurationProperty
name :: Value Text
source :: Value Text
target :: Value Text
type' :: Value Text
..}
    = FlowConnectionProperty {source :: Value Text
source = PropertyType "Source" FlowConnectionProperty
Value Text
newValue, Maybe FlowConnectionConfigurationProperty
()
Value Text
haddock_workaround_ :: ()
configuration :: Maybe FlowConnectionConfigurationProperty
name :: Value Text
target :: Value Text
type' :: Value Text
haddock_workaround_ :: ()
configuration :: Maybe FlowConnectionConfigurationProperty
name :: Value Text
target :: Value Text
type' :: Value Text
..}
instance Property "Target" FlowConnectionProperty where
  type PropertyType "Target" FlowConnectionProperty = Value Prelude.Text
  set :: PropertyType "Target" FlowConnectionProperty
-> FlowConnectionProperty -> FlowConnectionProperty
set PropertyType "Target" FlowConnectionProperty
newValue FlowConnectionProperty {Maybe FlowConnectionConfigurationProperty
()
Value Text
haddock_workaround_ :: FlowConnectionProperty -> ()
configuration :: FlowConnectionProperty -> Maybe FlowConnectionConfigurationProperty
name :: FlowConnectionProperty -> Value Text
source :: FlowConnectionProperty -> Value Text
target :: FlowConnectionProperty -> Value Text
type' :: FlowConnectionProperty -> Value Text
haddock_workaround_ :: ()
configuration :: Maybe FlowConnectionConfigurationProperty
name :: Value Text
source :: Value Text
target :: Value Text
type' :: Value Text
..}
    = FlowConnectionProperty {target :: Value Text
target = PropertyType "Target" FlowConnectionProperty
Value Text
newValue, Maybe FlowConnectionConfigurationProperty
()
Value Text
haddock_workaround_ :: ()
configuration :: Maybe FlowConnectionConfigurationProperty
name :: Value Text
source :: Value Text
type' :: Value Text
haddock_workaround_ :: ()
configuration :: Maybe FlowConnectionConfigurationProperty
name :: Value Text
source :: Value Text
type' :: Value Text
..}
instance Property "Type" FlowConnectionProperty where
  type PropertyType "Type" FlowConnectionProperty = Value Prelude.Text
  set :: PropertyType "Type" FlowConnectionProperty
-> FlowConnectionProperty -> FlowConnectionProperty
set PropertyType "Type" FlowConnectionProperty
newValue FlowConnectionProperty {Maybe FlowConnectionConfigurationProperty
()
Value Text
haddock_workaround_ :: FlowConnectionProperty -> ()
configuration :: FlowConnectionProperty -> Maybe FlowConnectionConfigurationProperty
name :: FlowConnectionProperty -> Value Text
source :: FlowConnectionProperty -> Value Text
target :: FlowConnectionProperty -> Value Text
type' :: FlowConnectionProperty -> Value Text
haddock_workaround_ :: ()
configuration :: Maybe FlowConnectionConfigurationProperty
name :: Value Text
source :: Value Text
target :: Value Text
type' :: Value Text
..}
    = FlowConnectionProperty {type' :: Value Text
type' = PropertyType "Type" FlowConnectionProperty
Value Text
newValue, Maybe FlowConnectionConfigurationProperty
()
Value Text
haddock_workaround_ :: ()
configuration :: Maybe FlowConnectionConfigurationProperty
name :: Value Text
source :: Value Text
target :: Value Text
haddock_workaround_ :: ()
configuration :: Maybe FlowConnectionConfigurationProperty
name :: Value Text
source :: Value Text
target :: Value Text
..}