module Stratosphere.Lex.Bot.BedrockGuardrailConfigurationProperty (
        BedrockGuardrailConfigurationProperty(..),
        mkBedrockGuardrailConfigurationProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data BedrockGuardrailConfigurationProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lex-bot-bedrockguardrailconfiguration.html>
    BedrockGuardrailConfigurationProperty {BedrockGuardrailConfigurationProperty -> ()
haddock_workaround_ :: (),
                                           -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lex-bot-bedrockguardrailconfiguration.html#cfn-lex-bot-bedrockguardrailconfiguration-bedrockguardrailidentifier>
                                           BedrockGuardrailConfigurationProperty -> Maybe (Value Text)
bedrockGuardrailIdentifier :: (Prelude.Maybe (Value Prelude.Text)),
                                           -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lex-bot-bedrockguardrailconfiguration.html#cfn-lex-bot-bedrockguardrailconfiguration-bedrockguardrailversion>
                                           BedrockGuardrailConfigurationProperty -> Maybe (Value Text)
bedrockGuardrailVersion :: (Prelude.Maybe (Value Prelude.Text))}
  deriving stock (BedrockGuardrailConfigurationProperty
-> BedrockGuardrailConfigurationProperty -> Bool
(BedrockGuardrailConfigurationProperty
 -> BedrockGuardrailConfigurationProperty -> Bool)
-> (BedrockGuardrailConfigurationProperty
    -> BedrockGuardrailConfigurationProperty -> Bool)
-> Eq BedrockGuardrailConfigurationProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: BedrockGuardrailConfigurationProperty
-> BedrockGuardrailConfigurationProperty -> Bool
== :: BedrockGuardrailConfigurationProperty
-> BedrockGuardrailConfigurationProperty -> Bool
$c/= :: BedrockGuardrailConfigurationProperty
-> BedrockGuardrailConfigurationProperty -> Bool
/= :: BedrockGuardrailConfigurationProperty
-> BedrockGuardrailConfigurationProperty -> Bool
Prelude.Eq, Int -> BedrockGuardrailConfigurationProperty -> ShowS
[BedrockGuardrailConfigurationProperty] -> ShowS
BedrockGuardrailConfigurationProperty -> String
(Int -> BedrockGuardrailConfigurationProperty -> ShowS)
-> (BedrockGuardrailConfigurationProperty -> String)
-> ([BedrockGuardrailConfigurationProperty] -> ShowS)
-> Show BedrockGuardrailConfigurationProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> BedrockGuardrailConfigurationProperty -> ShowS
showsPrec :: Int -> BedrockGuardrailConfigurationProperty -> ShowS
$cshow :: BedrockGuardrailConfigurationProperty -> String
show :: BedrockGuardrailConfigurationProperty -> String
$cshowList :: [BedrockGuardrailConfigurationProperty] -> ShowS
showList :: [BedrockGuardrailConfigurationProperty] -> ShowS
Prelude.Show)
mkBedrockGuardrailConfigurationProperty ::
  BedrockGuardrailConfigurationProperty
mkBedrockGuardrailConfigurationProperty :: BedrockGuardrailConfigurationProperty
mkBedrockGuardrailConfigurationProperty
  = BedrockGuardrailConfigurationProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (),
       bedrockGuardrailIdentifier :: Maybe (Value Text)
bedrockGuardrailIdentifier = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
       bedrockGuardrailVersion :: Maybe (Value Text)
bedrockGuardrailVersion = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties BedrockGuardrailConfigurationProperty where
  toResourceProperties :: BedrockGuardrailConfigurationProperty -> ResourceProperties
toResourceProperties BedrockGuardrailConfigurationProperty {Maybe (Value Text)
()
haddock_workaround_ :: BedrockGuardrailConfigurationProperty -> ()
bedrockGuardrailIdentifier :: BedrockGuardrailConfigurationProperty -> Maybe (Value Text)
bedrockGuardrailVersion :: BedrockGuardrailConfigurationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
bedrockGuardrailIdentifier :: Maybe (Value Text)
bedrockGuardrailVersion :: Maybe (Value Text)
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::Lex::Bot.BedrockGuardrailConfiguration",
         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
"BedrockGuardrailIdentifier"
                              (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)
bedrockGuardrailIdentifier,
                            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
"BedrockGuardrailVersion"
                              (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)
bedrockGuardrailVersion])}
instance JSON.ToJSON BedrockGuardrailConfigurationProperty where
  toJSON :: BedrockGuardrailConfigurationProperty -> Value
toJSON BedrockGuardrailConfigurationProperty {Maybe (Value Text)
()
haddock_workaround_ :: BedrockGuardrailConfigurationProperty -> ()
bedrockGuardrailIdentifier :: BedrockGuardrailConfigurationProperty -> Maybe (Value Text)
bedrockGuardrailVersion :: BedrockGuardrailConfigurationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
bedrockGuardrailIdentifier :: Maybe (Value Text)
bedrockGuardrailVersion :: 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
"BedrockGuardrailIdentifier"
                 (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)
bedrockGuardrailIdentifier,
               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
"BedrockGuardrailVersion"
                 (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)
bedrockGuardrailVersion]))
instance Property "BedrockGuardrailIdentifier" BedrockGuardrailConfigurationProperty where
  type PropertyType "BedrockGuardrailIdentifier" BedrockGuardrailConfigurationProperty = Value Prelude.Text
  set :: PropertyType
  "BedrockGuardrailIdentifier" BedrockGuardrailConfigurationProperty
-> BedrockGuardrailConfigurationProperty
-> BedrockGuardrailConfigurationProperty
set PropertyType
  "BedrockGuardrailIdentifier" BedrockGuardrailConfigurationProperty
newValue BedrockGuardrailConfigurationProperty {Maybe (Value Text)
()
haddock_workaround_ :: BedrockGuardrailConfigurationProperty -> ()
bedrockGuardrailIdentifier :: BedrockGuardrailConfigurationProperty -> Maybe (Value Text)
bedrockGuardrailVersion :: BedrockGuardrailConfigurationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
bedrockGuardrailIdentifier :: Maybe (Value Text)
bedrockGuardrailVersion :: Maybe (Value Text)
..}
    = BedrockGuardrailConfigurationProperty
        {bedrockGuardrailIdentifier :: Maybe (Value Text)
bedrockGuardrailIdentifier = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
  "BedrockGuardrailIdentifier" BedrockGuardrailConfigurationProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
bedrockGuardrailVersion :: Maybe (Value Text)
haddock_workaround_ :: ()
bedrockGuardrailVersion :: Maybe (Value Text)
..}
instance Property "BedrockGuardrailVersion" BedrockGuardrailConfigurationProperty where
  type PropertyType "BedrockGuardrailVersion" BedrockGuardrailConfigurationProperty = Value Prelude.Text
  set :: PropertyType
  "BedrockGuardrailVersion" BedrockGuardrailConfigurationProperty
-> BedrockGuardrailConfigurationProperty
-> BedrockGuardrailConfigurationProperty
set PropertyType
  "BedrockGuardrailVersion" BedrockGuardrailConfigurationProperty
newValue BedrockGuardrailConfigurationProperty {Maybe (Value Text)
()
haddock_workaround_ :: BedrockGuardrailConfigurationProperty -> ()
bedrockGuardrailIdentifier :: BedrockGuardrailConfigurationProperty -> Maybe (Value Text)
bedrockGuardrailVersion :: BedrockGuardrailConfigurationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
bedrockGuardrailIdentifier :: Maybe (Value Text)
bedrockGuardrailVersion :: Maybe (Value Text)
..}
    = BedrockGuardrailConfigurationProperty
        {bedrockGuardrailVersion :: Maybe (Value Text)
bedrockGuardrailVersion = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
  "BedrockGuardrailVersion" BedrockGuardrailConfigurationProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
bedrockGuardrailIdentifier :: Maybe (Value Text)
haddock_workaround_ :: ()
bedrockGuardrailIdentifier :: Maybe (Value Text)
..}