packages feed

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

module Stratosphere.Bedrock.FlowVersion.LambdaFunctionFlowNodeConfigurationProperty (
        LambdaFunctionFlowNodeConfigurationProperty(..),
        mkLambdaFunctionFlowNodeConfigurationProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data LambdaFunctionFlowNodeConfigurationProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flowversion-lambdafunctionflownodeconfiguration.html>
    LambdaFunctionFlowNodeConfigurationProperty {haddock_workaround_ :: (),
                                                 -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flowversion-lambdafunctionflownodeconfiguration.html#cfn-bedrock-flowversion-lambdafunctionflownodeconfiguration-lambdaarn>
                                                 lambdaArn :: (Value Prelude.Text)}
  deriving stock (Prelude.Eq, Prelude.Show)
mkLambdaFunctionFlowNodeConfigurationProperty ::
  Value Prelude.Text -> LambdaFunctionFlowNodeConfigurationProperty
mkLambdaFunctionFlowNodeConfigurationProperty lambdaArn
  = LambdaFunctionFlowNodeConfigurationProperty
      {haddock_workaround_ = (), lambdaArn = lambdaArn}
instance ToResourceProperties LambdaFunctionFlowNodeConfigurationProperty where
  toResourceProperties
    LambdaFunctionFlowNodeConfigurationProperty {..}
    = ResourceProperties
        {awsType = "AWS::Bedrock::FlowVersion.LambdaFunctionFlowNodeConfiguration",
         supportsTags = Prelude.False,
         properties = ["LambdaArn" JSON..= lambdaArn]}
instance JSON.ToJSON LambdaFunctionFlowNodeConfigurationProperty where
  toJSON LambdaFunctionFlowNodeConfigurationProperty {..}
    = JSON.object ["LambdaArn" JSON..= lambdaArn]
instance Property "LambdaArn" LambdaFunctionFlowNodeConfigurationProperty where
  type PropertyType "LambdaArn" LambdaFunctionFlowNodeConfigurationProperty = Value Prelude.Text
  set newValue LambdaFunctionFlowNodeConfigurationProperty {..}
    = LambdaFunctionFlowNodeConfigurationProperty
        {lambdaArn = newValue, ..}