stratosphere-bedrock-1.0.0: gen/Stratosphere/Bedrock/FlowVersion/FlowConnectionProperty.hs
module Stratosphere.Bedrock.FlowVersion.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.FlowVersion.FlowConnectionConfigurationProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Value
data FlowConnectionProperty
= -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flowversion-flowconnection.html>
FlowConnectionProperty {haddock_workaround_ :: (),
-- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flowversion-flowconnection.html#cfn-bedrock-flowversion-flowconnection-configuration>
configuration :: (Prelude.Maybe FlowConnectionConfigurationProperty),
-- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flowversion-flowconnection.html#cfn-bedrock-flowversion-flowconnection-name>
name :: (Value Prelude.Text),
-- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flowversion-flowconnection.html#cfn-bedrock-flowversion-flowconnection-source>
source :: (Value Prelude.Text),
-- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flowversion-flowconnection.html#cfn-bedrock-flowversion-flowconnection-target>
target :: (Value Prelude.Text),
-- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flowversion-flowconnection.html#cfn-bedrock-flowversion-flowconnection-type>
type' :: (Value Prelude.Text)}
deriving stock (Prelude.Eq, Prelude.Show)
mkFlowConnectionProperty ::
Value Prelude.Text
-> Value Prelude.Text
-> Value Prelude.Text
-> Value Prelude.Text -> FlowConnectionProperty
mkFlowConnectionProperty name source target type'
= FlowConnectionProperty
{haddock_workaround_ = (), name = name, source = source,
target = target, type' = type', configuration = Prelude.Nothing}
instance ToResourceProperties FlowConnectionProperty where
toResourceProperties FlowConnectionProperty {..}
= ResourceProperties
{awsType = "AWS::Bedrock::FlowVersion.FlowConnection",
supportsTags = Prelude.False,
properties = Prelude.fromList
((Prelude.<>)
["Name" JSON..= name, "Source" JSON..= source,
"Target" JSON..= target, "Type" JSON..= type']
(Prelude.catMaybes
[(JSON..=) "Configuration" Prelude.<$> configuration]))}
instance JSON.ToJSON FlowConnectionProperty where
toJSON FlowConnectionProperty {..}
= JSON.object
(Prelude.fromList
((Prelude.<>)
["Name" JSON..= name, "Source" JSON..= source,
"Target" JSON..= target, "Type" JSON..= type']
(Prelude.catMaybes
[(JSON..=) "Configuration" Prelude.<$> configuration])))
instance Property "Configuration" FlowConnectionProperty where
type PropertyType "Configuration" FlowConnectionProperty = FlowConnectionConfigurationProperty
set newValue FlowConnectionProperty {..}
= FlowConnectionProperty
{configuration = Prelude.pure newValue, ..}
instance Property "Name" FlowConnectionProperty where
type PropertyType "Name" FlowConnectionProperty = Value Prelude.Text
set newValue FlowConnectionProperty {..}
= FlowConnectionProperty {name = newValue, ..}
instance Property "Source" FlowConnectionProperty where
type PropertyType "Source" FlowConnectionProperty = Value Prelude.Text
set newValue FlowConnectionProperty {..}
= FlowConnectionProperty {source = newValue, ..}
instance Property "Target" FlowConnectionProperty where
type PropertyType "Target" FlowConnectionProperty = Value Prelude.Text
set newValue FlowConnectionProperty {..}
= FlowConnectionProperty {target = newValue, ..}
instance Property "Type" FlowConnectionProperty where
type PropertyType "Type" FlowConnectionProperty = Value Prelude.Text
set newValue FlowConnectionProperty {..}
= FlowConnectionProperty {type' = newValue, ..}