module Stratosphere.Lex.Bot.BedrockAgentConfigurationProperty (
BedrockAgentConfigurationProperty(..),
mkBedrockAgentConfigurationProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data BedrockAgentConfigurationProperty
=
BedrockAgentConfigurationProperty {BedrockAgentConfigurationProperty -> ()
haddock_workaround_ :: (),
BedrockAgentConfigurationProperty -> Maybe (Value Text)
bedrockAgentAliasId :: (Prelude.Maybe (Value Prelude.Text)),
BedrockAgentConfigurationProperty -> Maybe (Value Text)
bedrockAgentId :: (Prelude.Maybe (Value Prelude.Text))}
deriving stock (BedrockAgentConfigurationProperty
-> BedrockAgentConfigurationProperty -> Bool
(BedrockAgentConfigurationProperty
-> BedrockAgentConfigurationProperty -> Bool)
-> (BedrockAgentConfigurationProperty
-> BedrockAgentConfigurationProperty -> Bool)
-> Eq BedrockAgentConfigurationProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: BedrockAgentConfigurationProperty
-> BedrockAgentConfigurationProperty -> Bool
== :: BedrockAgentConfigurationProperty
-> BedrockAgentConfigurationProperty -> Bool
$c/= :: BedrockAgentConfigurationProperty
-> BedrockAgentConfigurationProperty -> Bool
/= :: BedrockAgentConfigurationProperty
-> BedrockAgentConfigurationProperty -> Bool
Prelude.Eq, Int -> BedrockAgentConfigurationProperty -> ShowS
[BedrockAgentConfigurationProperty] -> ShowS
BedrockAgentConfigurationProperty -> String
(Int -> BedrockAgentConfigurationProperty -> ShowS)
-> (BedrockAgentConfigurationProperty -> String)
-> ([BedrockAgentConfigurationProperty] -> ShowS)
-> Show BedrockAgentConfigurationProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> BedrockAgentConfigurationProperty -> ShowS
showsPrec :: Int -> BedrockAgentConfigurationProperty -> ShowS
$cshow :: BedrockAgentConfigurationProperty -> String
show :: BedrockAgentConfigurationProperty -> String
$cshowList :: [BedrockAgentConfigurationProperty] -> ShowS
showList :: [BedrockAgentConfigurationProperty] -> ShowS
Prelude.Show)
mkBedrockAgentConfigurationProperty ::
BedrockAgentConfigurationProperty
mkBedrockAgentConfigurationProperty :: BedrockAgentConfigurationProperty
mkBedrockAgentConfigurationProperty
= BedrockAgentConfigurationProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), bedrockAgentAliasId :: Maybe (Value Text)
bedrockAgentAliasId = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
bedrockAgentId :: Maybe (Value Text)
bedrockAgentId = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties BedrockAgentConfigurationProperty where
toResourceProperties :: BedrockAgentConfigurationProperty -> ResourceProperties
toResourceProperties BedrockAgentConfigurationProperty {Maybe (Value Text)
()
haddock_workaround_ :: BedrockAgentConfigurationProperty -> ()
bedrockAgentAliasId :: BedrockAgentConfigurationProperty -> Maybe (Value Text)
bedrockAgentId :: BedrockAgentConfigurationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
bedrockAgentAliasId :: Maybe (Value Text)
bedrockAgentId :: Maybe (Value Text)
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::Lex::Bot.BedrockAgentConfiguration",
supportsTags :: Bool
supportsTags = Bool
Prelude.False,
properties :: Object
properties = [Item Object] -> Object
forall l. IsList l => [Item l] -> l
Prelude.fromList
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[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..=) Key
"BedrockAgentAliasId" (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
bedrockAgentAliasId,
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..=) Key
"BedrockAgentId" (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
bedrockAgentId])}
instance JSON.ToJSON BedrockAgentConfigurationProperty where
toJSON :: BedrockAgentConfigurationProperty -> Value
toJSON BedrockAgentConfigurationProperty {Maybe (Value Text)
()
haddock_workaround_ :: BedrockAgentConfigurationProperty -> ()
bedrockAgentAliasId :: BedrockAgentConfigurationProperty -> Maybe (Value Text)
bedrockAgentId :: BedrockAgentConfigurationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
bedrockAgentAliasId :: Maybe (Value Text)
bedrockAgentId :: Maybe (Value Text)
..}
= [(Key, Value)] -> Value
JSON.object
([Item [(Key, Value)]] -> [(Key, Value)]
forall l. IsList l => [Item l] -> l
Prelude.fromList
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[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..=) Key
"BedrockAgentAliasId" (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
bedrockAgentAliasId,
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..=) Key
"BedrockAgentId" (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
bedrockAgentId]))
instance Property "BedrockAgentAliasId" BedrockAgentConfigurationProperty where
type PropertyType "BedrockAgentAliasId" BedrockAgentConfigurationProperty = Value Prelude.Text
set :: PropertyType
"BedrockAgentAliasId" BedrockAgentConfigurationProperty
-> BedrockAgentConfigurationProperty
-> BedrockAgentConfigurationProperty
set PropertyType
"BedrockAgentAliasId" BedrockAgentConfigurationProperty
newValue BedrockAgentConfigurationProperty {Maybe (Value Text)
()
haddock_workaround_ :: BedrockAgentConfigurationProperty -> ()
bedrockAgentAliasId :: BedrockAgentConfigurationProperty -> Maybe (Value Text)
bedrockAgentId :: BedrockAgentConfigurationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
bedrockAgentAliasId :: Maybe (Value Text)
bedrockAgentId :: Maybe (Value Text)
..}
= BedrockAgentConfigurationProperty
{bedrockAgentAliasId :: Maybe (Value Text)
bedrockAgentAliasId = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
"BedrockAgentAliasId" BedrockAgentConfigurationProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
bedrockAgentId :: Maybe (Value Text)
haddock_workaround_ :: ()
bedrockAgentId :: Maybe (Value Text)
..}
instance Property "BedrockAgentId" BedrockAgentConfigurationProperty where
type PropertyType "BedrockAgentId" BedrockAgentConfigurationProperty = Value Prelude.Text
set :: PropertyType "BedrockAgentId" BedrockAgentConfigurationProperty
-> BedrockAgentConfigurationProperty
-> BedrockAgentConfigurationProperty
set PropertyType "BedrockAgentId" BedrockAgentConfigurationProperty
newValue BedrockAgentConfigurationProperty {Maybe (Value Text)
()
haddock_workaround_ :: BedrockAgentConfigurationProperty -> ()
bedrockAgentAliasId :: BedrockAgentConfigurationProperty -> Maybe (Value Text)
bedrockAgentId :: BedrockAgentConfigurationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
bedrockAgentAliasId :: Maybe (Value Text)
bedrockAgentId :: Maybe (Value Text)
..}
= BedrockAgentConfigurationProperty
{bedrockAgentId :: Maybe (Value Text)
bedrockAgentId = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "BedrockAgentId" BedrockAgentConfigurationProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
bedrockAgentAliasId :: Maybe (Value Text)
haddock_workaround_ :: ()
bedrockAgentAliasId :: Maybe (Value Text)
..}