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
=
LexFlowNodeConfigurationProperty {LexFlowNodeConfigurationProperty -> ()
haddock_workaround_ :: (),
LexFlowNodeConfigurationProperty -> Value Text
botAliasArn :: (Value Prelude.Text),
LexFlowNodeConfigurationProperty -> Value Text
localeId :: (Value Prelude.Text)}
deriving stock (LexFlowNodeConfigurationProperty
-> LexFlowNodeConfigurationProperty -> Bool
(LexFlowNodeConfigurationProperty
-> LexFlowNodeConfigurationProperty -> Bool)
-> (LexFlowNodeConfigurationProperty
-> LexFlowNodeConfigurationProperty -> Bool)
-> Eq LexFlowNodeConfigurationProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: LexFlowNodeConfigurationProperty
-> LexFlowNodeConfigurationProperty -> Bool
== :: LexFlowNodeConfigurationProperty
-> LexFlowNodeConfigurationProperty -> Bool
$c/= :: LexFlowNodeConfigurationProperty
-> LexFlowNodeConfigurationProperty -> Bool
/= :: LexFlowNodeConfigurationProperty
-> LexFlowNodeConfigurationProperty -> Bool
Prelude.Eq, Int -> LexFlowNodeConfigurationProperty -> ShowS
[LexFlowNodeConfigurationProperty] -> ShowS
LexFlowNodeConfigurationProperty -> String
(Int -> LexFlowNodeConfigurationProperty -> ShowS)
-> (LexFlowNodeConfigurationProperty -> String)
-> ([LexFlowNodeConfigurationProperty] -> ShowS)
-> Show LexFlowNodeConfigurationProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> LexFlowNodeConfigurationProperty -> ShowS
showsPrec :: Int -> LexFlowNodeConfigurationProperty -> ShowS
$cshow :: LexFlowNodeConfigurationProperty -> String
show :: LexFlowNodeConfigurationProperty -> String
$cshowList :: [LexFlowNodeConfigurationProperty] -> ShowS
showList :: [LexFlowNodeConfigurationProperty] -> ShowS
Prelude.Show)
mkLexFlowNodeConfigurationProperty ::
Value Prelude.Text
-> Value Prelude.Text -> LexFlowNodeConfigurationProperty
mkLexFlowNodeConfigurationProperty :: Value Text -> Value Text -> LexFlowNodeConfigurationProperty
mkLexFlowNodeConfigurationProperty Value Text
botAliasArn Value Text
localeId
= LexFlowNodeConfigurationProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), botAliasArn :: Value Text
botAliasArn = Value Text
botAliasArn,
localeId :: Value Text
localeId = Value Text
localeId}
instance ToResourceProperties LexFlowNodeConfigurationProperty where
toResourceProperties :: LexFlowNodeConfigurationProperty -> ResourceProperties
toResourceProperties LexFlowNodeConfigurationProperty {()
Value Text
haddock_workaround_ :: LexFlowNodeConfigurationProperty -> ()
botAliasArn :: LexFlowNodeConfigurationProperty -> Value Text
localeId :: LexFlowNodeConfigurationProperty -> Value Text
haddock_workaround_ :: ()
botAliasArn :: Value Text
localeId :: Value Text
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::Bedrock::FlowVersion.LexFlowNodeConfiguration",
supportsTags :: Bool
supportsTags = Bool
Prelude.False,
properties :: Object
properties = [Key
"BotAliasArn" Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= Value Text
botAliasArn,
Key
"LocaleId" Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= Value Text
localeId]}
instance JSON.ToJSON LexFlowNodeConfigurationProperty where
toJSON :: LexFlowNodeConfigurationProperty -> Value
toJSON LexFlowNodeConfigurationProperty {()
Value Text
haddock_workaround_ :: LexFlowNodeConfigurationProperty -> ()
botAliasArn :: LexFlowNodeConfigurationProperty -> Value Text
localeId :: LexFlowNodeConfigurationProperty -> Value Text
haddock_workaround_ :: ()
botAliasArn :: Value Text
localeId :: Value Text
..}
= [(Key, Value)] -> Value
JSON.object
[Key
"BotAliasArn" Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= Value Text
botAliasArn, Key
"LocaleId" Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= Value Text
localeId]
instance Property "BotAliasArn" LexFlowNodeConfigurationProperty where
type PropertyType "BotAliasArn" LexFlowNodeConfigurationProperty = Value Prelude.Text
set :: PropertyType "BotAliasArn" LexFlowNodeConfigurationProperty
-> LexFlowNodeConfigurationProperty
-> LexFlowNodeConfigurationProperty
set PropertyType "BotAliasArn" LexFlowNodeConfigurationProperty
newValue LexFlowNodeConfigurationProperty {()
Value Text
haddock_workaround_ :: LexFlowNodeConfigurationProperty -> ()
botAliasArn :: LexFlowNodeConfigurationProperty -> Value Text
localeId :: LexFlowNodeConfigurationProperty -> Value Text
haddock_workaround_ :: ()
botAliasArn :: Value Text
localeId :: Value Text
..}
= LexFlowNodeConfigurationProperty {botAliasArn :: Value Text
botAliasArn = PropertyType "BotAliasArn" LexFlowNodeConfigurationProperty
Value Text
newValue, ()
Value Text
haddock_workaround_ :: ()
localeId :: Value Text
haddock_workaround_ :: ()
localeId :: Value Text
..}
instance Property "LocaleId" LexFlowNodeConfigurationProperty where
type PropertyType "LocaleId" LexFlowNodeConfigurationProperty = Value Prelude.Text
set :: PropertyType "LocaleId" LexFlowNodeConfigurationProperty
-> LexFlowNodeConfigurationProperty
-> LexFlowNodeConfigurationProperty
set PropertyType "LocaleId" LexFlowNodeConfigurationProperty
newValue LexFlowNodeConfigurationProperty {()
Value Text
haddock_workaround_ :: LexFlowNodeConfigurationProperty -> ()
botAliasArn :: LexFlowNodeConfigurationProperty -> Value Text
localeId :: LexFlowNodeConfigurationProperty -> Value Text
haddock_workaround_ :: ()
botAliasArn :: Value Text
localeId :: Value Text
..}
= LexFlowNodeConfigurationProperty {localeId :: Value Text
localeId = PropertyType "LocaleId" LexFlowNodeConfigurationProperty
Value Text
newValue, ()
Value Text
haddock_workaround_ :: ()
botAliasArn :: Value Text
haddock_workaround_ :: ()
botAliasArn :: Value Text
..}