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: FlowConnectionProperty {haddock_workaround_ :: (), -- | See: configuration :: (Prelude.Maybe FlowConnectionConfigurationProperty), -- | See: name :: (Value Prelude.Text), -- | See: source :: (Value Prelude.Text), -- | See: target :: (Value Prelude.Text), -- | See: 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, ..}