stratosphere-bedrock-1.0.0: gen/Stratosphere/Bedrock/FlowVersion/PromptFlowNodeSourceConfigurationProperty.hs
module Stratosphere.Bedrock.FlowVersion.PromptFlowNodeSourceConfigurationProperty (
module Exports, PromptFlowNodeSourceConfigurationProperty(..),
mkPromptFlowNodeSourceConfigurationProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.Bedrock.FlowVersion.PromptFlowNodeInlineConfigurationProperty as Exports
import {-# SOURCE #-} Stratosphere.Bedrock.FlowVersion.PromptFlowNodeResourceConfigurationProperty as Exports
import Stratosphere.ResourceProperties
data PromptFlowNodeSourceConfigurationProperty
= -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flowversion-promptflownodesourceconfiguration.html>
PromptFlowNodeSourceConfigurationProperty {haddock_workaround_ :: (),
-- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flowversion-promptflownodesourceconfiguration.html#cfn-bedrock-flowversion-promptflownodesourceconfiguration-inline>
inline :: (Prelude.Maybe PromptFlowNodeInlineConfigurationProperty),
-- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flowversion-promptflownodesourceconfiguration.html#cfn-bedrock-flowversion-promptflownodesourceconfiguration-resource>
resource :: (Prelude.Maybe PromptFlowNodeResourceConfigurationProperty)}
deriving stock (Prelude.Eq, Prelude.Show)
mkPromptFlowNodeSourceConfigurationProperty ::
PromptFlowNodeSourceConfigurationProperty
mkPromptFlowNodeSourceConfigurationProperty
= PromptFlowNodeSourceConfigurationProperty
{haddock_workaround_ = (), inline = Prelude.Nothing,
resource = Prelude.Nothing}
instance ToResourceProperties PromptFlowNodeSourceConfigurationProperty where
toResourceProperties PromptFlowNodeSourceConfigurationProperty {..}
= ResourceProperties
{awsType = "AWS::Bedrock::FlowVersion.PromptFlowNodeSourceConfiguration",
supportsTags = Prelude.False,
properties = Prelude.fromList
(Prelude.catMaybes
[(JSON..=) "Inline" Prelude.<$> inline,
(JSON..=) "Resource" Prelude.<$> resource])}
instance JSON.ToJSON PromptFlowNodeSourceConfigurationProperty where
toJSON PromptFlowNodeSourceConfigurationProperty {..}
= JSON.object
(Prelude.fromList
(Prelude.catMaybes
[(JSON..=) "Inline" Prelude.<$> inline,
(JSON..=) "Resource" Prelude.<$> resource]))
instance Property "Inline" PromptFlowNodeSourceConfigurationProperty where
type PropertyType "Inline" PromptFlowNodeSourceConfigurationProperty = PromptFlowNodeInlineConfigurationProperty
set newValue PromptFlowNodeSourceConfigurationProperty {..}
= PromptFlowNodeSourceConfigurationProperty
{inline = Prelude.pure newValue, ..}
instance Property "Resource" PromptFlowNodeSourceConfigurationProperty where
type PropertyType "Resource" PromptFlowNodeSourceConfigurationProperty = PromptFlowNodeResourceConfigurationProperty
set newValue PromptFlowNodeSourceConfigurationProperty {..}
= PromptFlowNodeSourceConfigurationProperty
{resource = Prelude.pure newValue, ..}