stratosphere-bedrock-1.0.0: gen/Stratosphere/Bedrock/FlowVersion/LexFlowNodeConfigurationProperty.hs
module Stratosphere.Bedrock.FlowVersion.LexFlowNodeConfigurationProperty (
LexFlowNodeConfigurationProperty(..),
mkLexFlowNodeConfigurationProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data LexFlowNodeConfigurationProperty
= -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flowversion-lexflownodeconfiguration.html>
LexFlowNodeConfigurationProperty {haddock_workaround_ :: (),
-- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flowversion-lexflownodeconfiguration.html#cfn-bedrock-flowversion-lexflownodeconfiguration-botaliasarn>
botAliasArn :: (Value Prelude.Text),
-- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flowversion-lexflownodeconfiguration.html#cfn-bedrock-flowversion-lexflownodeconfiguration-localeid>
localeId :: (Value Prelude.Text)}
deriving stock (Prelude.Eq, Prelude.Show)
mkLexFlowNodeConfigurationProperty ::
Value Prelude.Text
-> Value Prelude.Text -> LexFlowNodeConfigurationProperty
mkLexFlowNodeConfigurationProperty botAliasArn localeId
= LexFlowNodeConfigurationProperty
{haddock_workaround_ = (), botAliasArn = botAliasArn,
localeId = localeId}
instance ToResourceProperties LexFlowNodeConfigurationProperty where
toResourceProperties LexFlowNodeConfigurationProperty {..}
= ResourceProperties
{awsType = "AWS::Bedrock::FlowVersion.LexFlowNodeConfiguration",
supportsTags = Prelude.False,
properties = ["BotAliasArn" JSON..= botAliasArn,
"LocaleId" JSON..= localeId]}
instance JSON.ToJSON LexFlowNodeConfigurationProperty where
toJSON LexFlowNodeConfigurationProperty {..}
= JSON.object
["BotAliasArn" JSON..= botAliasArn, "LocaleId" JSON..= localeId]
instance Property "BotAliasArn" LexFlowNodeConfigurationProperty where
type PropertyType "BotAliasArn" LexFlowNodeConfigurationProperty = Value Prelude.Text
set newValue LexFlowNodeConfigurationProperty {..}
= LexFlowNodeConfigurationProperty {botAliasArn = newValue, ..}
instance Property "LocaleId" LexFlowNodeConfigurationProperty where
type PropertyType "LocaleId" LexFlowNodeConfigurationProperty = Value Prelude.Text
set newValue LexFlowNodeConfigurationProperty {..}
= LexFlowNodeConfigurationProperty {localeId = newValue, ..}