packages feed

stratosphere-bedrock-1.0.0: gen/Stratosphere/Bedrock/FlowVersion/FlowDataConnectionConfigurationProperty.hs

module Stratosphere.Bedrock.FlowVersion.FlowDataConnectionConfigurationProperty (
        FlowDataConnectionConfigurationProperty(..),
        mkFlowDataConnectionConfigurationProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data FlowDataConnectionConfigurationProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flowversion-flowdataconnectionconfiguration.html>
    FlowDataConnectionConfigurationProperty {haddock_workaround_ :: (),
                                             -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flowversion-flowdataconnectionconfiguration.html#cfn-bedrock-flowversion-flowdataconnectionconfiguration-sourceoutput>
                                             sourceOutput :: (Value Prelude.Text),
                                             -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flowversion-flowdataconnectionconfiguration.html#cfn-bedrock-flowversion-flowdataconnectionconfiguration-targetinput>
                                             targetInput :: (Value Prelude.Text)}
  deriving stock (Prelude.Eq, Prelude.Show)
mkFlowDataConnectionConfigurationProperty ::
  Value Prelude.Text
  -> Value Prelude.Text -> FlowDataConnectionConfigurationProperty
mkFlowDataConnectionConfigurationProperty sourceOutput targetInput
  = FlowDataConnectionConfigurationProperty
      {haddock_workaround_ = (), sourceOutput = sourceOutput,
       targetInput = targetInput}
instance ToResourceProperties FlowDataConnectionConfigurationProperty where
  toResourceProperties FlowDataConnectionConfigurationProperty {..}
    = ResourceProperties
        {awsType = "AWS::Bedrock::FlowVersion.FlowDataConnectionConfiguration",
         supportsTags = Prelude.False,
         properties = ["SourceOutput" JSON..= sourceOutput,
                       "TargetInput" JSON..= targetInput]}
instance JSON.ToJSON FlowDataConnectionConfigurationProperty where
  toJSON FlowDataConnectionConfigurationProperty {..}
    = JSON.object
        ["SourceOutput" JSON..= sourceOutput,
         "TargetInput" JSON..= targetInput]
instance Property "SourceOutput" FlowDataConnectionConfigurationProperty where
  type PropertyType "SourceOutput" FlowDataConnectionConfigurationProperty = Value Prelude.Text
  set newValue FlowDataConnectionConfigurationProperty {..}
    = FlowDataConnectionConfigurationProperty
        {sourceOutput = newValue, ..}
instance Property "TargetInput" FlowDataConnectionConfigurationProperty where
  type PropertyType "TargetInput" FlowDataConnectionConfigurationProperty = Value Prelude.Text
  set newValue FlowDataConnectionConfigurationProperty {..}
    = FlowDataConnectionConfigurationProperty
        {targetInput = newValue, ..}