module Stratosphere.Bedrock.Guardrail.WordConfigProperty (
        WordConfigProperty(..), mkWordConfigProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data WordConfigProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-guardrail-wordconfig.html>
    WordConfigProperty {WordConfigProperty -> ()
haddock_workaround_ :: (),
                        -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-guardrail-wordconfig.html#cfn-bedrock-guardrail-wordconfig-inputaction>
                        WordConfigProperty -> Maybe (Value Text)
inputAction :: (Prelude.Maybe (Value Prelude.Text)),
                        -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-guardrail-wordconfig.html#cfn-bedrock-guardrail-wordconfig-inputenabled>
                        WordConfigProperty -> Maybe (Value Bool)
inputEnabled :: (Prelude.Maybe (Value Prelude.Bool)),
                        -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-guardrail-wordconfig.html#cfn-bedrock-guardrail-wordconfig-outputaction>
                        WordConfigProperty -> Maybe (Value Text)
outputAction :: (Prelude.Maybe (Value Prelude.Text)),
                        -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-guardrail-wordconfig.html#cfn-bedrock-guardrail-wordconfig-outputenabled>
                        WordConfigProperty -> Maybe (Value Bool)
outputEnabled :: (Prelude.Maybe (Value Prelude.Bool)),
                        -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-guardrail-wordconfig.html#cfn-bedrock-guardrail-wordconfig-text>
                        WordConfigProperty -> Value Text
text :: (Value Prelude.Text)}
  deriving stock (WordConfigProperty -> WordConfigProperty -> Bool
(WordConfigProperty -> WordConfigProperty -> Bool)
-> (WordConfigProperty -> WordConfigProperty -> Bool)
-> Eq WordConfigProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: WordConfigProperty -> WordConfigProperty -> Bool
== :: WordConfigProperty -> WordConfigProperty -> Bool
$c/= :: WordConfigProperty -> WordConfigProperty -> Bool
/= :: WordConfigProperty -> WordConfigProperty -> Bool
Prelude.Eq, Int -> WordConfigProperty -> ShowS
[WordConfigProperty] -> ShowS
WordConfigProperty -> String
(Int -> WordConfigProperty -> ShowS)
-> (WordConfigProperty -> String)
-> ([WordConfigProperty] -> ShowS)
-> Show WordConfigProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> WordConfigProperty -> ShowS
showsPrec :: Int -> WordConfigProperty -> ShowS
$cshow :: WordConfigProperty -> String
show :: WordConfigProperty -> String
$cshowList :: [WordConfigProperty] -> ShowS
showList :: [WordConfigProperty] -> ShowS
Prelude.Show)
mkWordConfigProperty :: Value Prelude.Text -> WordConfigProperty
mkWordConfigProperty :: Value Text -> WordConfigProperty
mkWordConfigProperty Value Text
text
  = WordConfigProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), text :: Value Text
text = Value Text
text,
       inputAction :: Maybe (Value Text)
inputAction = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing, inputEnabled :: Maybe (Value Bool)
inputEnabled = Maybe (Value Bool)
forall a. Maybe a
Prelude.Nothing,
       outputAction :: Maybe (Value Text)
outputAction = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing, outputEnabled :: Maybe (Value Bool)
outputEnabled = Maybe (Value Bool)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties WordConfigProperty where
  toResourceProperties :: WordConfigProperty -> ResourceProperties
toResourceProperties WordConfigProperty {Maybe (Value Bool)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: WordConfigProperty -> ()
inputAction :: WordConfigProperty -> Maybe (Value Text)
inputEnabled :: WordConfigProperty -> Maybe (Value Bool)
outputAction :: WordConfigProperty -> Maybe (Value Text)
outputEnabled :: WordConfigProperty -> Maybe (Value Bool)
text :: WordConfigProperty -> Value Text
haddock_workaround_ :: ()
inputAction :: Maybe (Value Text)
inputEnabled :: Maybe (Value Bool)
outputAction :: Maybe (Value Text)
outputEnabled :: Maybe (Value Bool)
text :: Value Text
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::Bedrock::Guardrail.WordConfig",
         supportsTags :: Bool
supportsTags = Bool
Prelude.False,
         properties :: Object
properties = [Item Object] -> Object
forall l. IsList l => [Item l] -> l
Prelude.fromList
                        ([(Key, Value)] -> [(Key, Value)] -> [(Key, Value)]
forall a. Semigroup a => a -> a -> a
(Prelude.<>)
                           [Key
"Text" 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
text]
                           ([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
"InputAction" (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)
inputAction,
                               Key -> Value Bool -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"InputEnabled" (Value Bool -> (Key, Value))
-> Maybe (Value Bool) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Bool)
inputEnabled,
                               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
"OutputAction" (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)
outputAction,
                               Key -> Value Bool -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"OutputEnabled" (Value Bool -> (Key, Value))
-> Maybe (Value Bool) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Bool)
outputEnabled]))}
instance JSON.ToJSON WordConfigProperty where
  toJSON :: WordConfigProperty -> Value
toJSON WordConfigProperty {Maybe (Value Bool)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: WordConfigProperty -> ()
inputAction :: WordConfigProperty -> Maybe (Value Text)
inputEnabled :: WordConfigProperty -> Maybe (Value Bool)
outputAction :: WordConfigProperty -> Maybe (Value Text)
outputEnabled :: WordConfigProperty -> Maybe (Value Bool)
text :: WordConfigProperty -> Value Text
haddock_workaround_ :: ()
inputAction :: Maybe (Value Text)
inputEnabled :: Maybe (Value Bool)
outputAction :: Maybe (Value Text)
outputEnabled :: Maybe (Value Bool)
text :: Value Text
..}
    = [(Key, Value)] -> Value
JSON.object
        ([Item [(Key, Value)]] -> [(Key, Value)]
forall l. IsList l => [Item l] -> l
Prelude.fromList
           ([(Key, Value)] -> [(Key, Value)] -> [(Key, Value)]
forall a. Semigroup a => a -> a -> a
(Prelude.<>)
              [Key
"Text" 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
text]
              ([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
"InputAction" (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)
inputAction,
                  Key -> Value Bool -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"InputEnabled" (Value Bool -> (Key, Value))
-> Maybe (Value Bool) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Bool)
inputEnabled,
                  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
"OutputAction" (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)
outputAction,
                  Key -> Value Bool -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"OutputEnabled" (Value Bool -> (Key, Value))
-> Maybe (Value Bool) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Bool)
outputEnabled])))
instance Property "InputAction" WordConfigProperty where
  type PropertyType "InputAction" WordConfigProperty = Value Prelude.Text
  set :: PropertyType "InputAction" WordConfigProperty
-> WordConfigProperty -> WordConfigProperty
set PropertyType "InputAction" WordConfigProperty
newValue WordConfigProperty {Maybe (Value Bool)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: WordConfigProperty -> ()
inputAction :: WordConfigProperty -> Maybe (Value Text)
inputEnabled :: WordConfigProperty -> Maybe (Value Bool)
outputAction :: WordConfigProperty -> Maybe (Value Text)
outputEnabled :: WordConfigProperty -> Maybe (Value Bool)
text :: WordConfigProperty -> Value Text
haddock_workaround_ :: ()
inputAction :: Maybe (Value Text)
inputEnabled :: Maybe (Value Bool)
outputAction :: Maybe (Value Text)
outputEnabled :: Maybe (Value Bool)
text :: Value Text
..}
    = WordConfigProperty {inputAction :: Maybe (Value Text)
inputAction = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "InputAction" WordConfigProperty
Value Text
newValue, Maybe (Value Bool)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
inputEnabled :: Maybe (Value Bool)
outputAction :: Maybe (Value Text)
outputEnabled :: Maybe (Value Bool)
text :: Value Text
haddock_workaround_ :: ()
inputEnabled :: Maybe (Value Bool)
outputAction :: Maybe (Value Text)
outputEnabled :: Maybe (Value Bool)
text :: Value Text
..}
instance Property "InputEnabled" WordConfigProperty where
  type PropertyType "InputEnabled" WordConfigProperty = Value Prelude.Bool
  set :: PropertyType "InputEnabled" WordConfigProperty
-> WordConfigProperty -> WordConfigProperty
set PropertyType "InputEnabled" WordConfigProperty
newValue WordConfigProperty {Maybe (Value Bool)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: WordConfigProperty -> ()
inputAction :: WordConfigProperty -> Maybe (Value Text)
inputEnabled :: WordConfigProperty -> Maybe (Value Bool)
outputAction :: WordConfigProperty -> Maybe (Value Text)
outputEnabled :: WordConfigProperty -> Maybe (Value Bool)
text :: WordConfigProperty -> Value Text
haddock_workaround_ :: ()
inputAction :: Maybe (Value Text)
inputEnabled :: Maybe (Value Bool)
outputAction :: Maybe (Value Text)
outputEnabled :: Maybe (Value Bool)
text :: Value Text
..}
    = WordConfigProperty {inputEnabled :: Maybe (Value Bool)
inputEnabled = Value Bool -> Maybe (Value Bool)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "InputEnabled" WordConfigProperty
Value Bool
newValue, Maybe (Value Bool)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
inputAction :: Maybe (Value Text)
outputAction :: Maybe (Value Text)
outputEnabled :: Maybe (Value Bool)
text :: Value Text
haddock_workaround_ :: ()
inputAction :: Maybe (Value Text)
outputAction :: Maybe (Value Text)
outputEnabled :: Maybe (Value Bool)
text :: Value Text
..}
instance Property "OutputAction" WordConfigProperty where
  type PropertyType "OutputAction" WordConfigProperty = Value Prelude.Text
  set :: PropertyType "OutputAction" WordConfigProperty
-> WordConfigProperty -> WordConfigProperty
set PropertyType "OutputAction" WordConfigProperty
newValue WordConfigProperty {Maybe (Value Bool)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: WordConfigProperty -> ()
inputAction :: WordConfigProperty -> Maybe (Value Text)
inputEnabled :: WordConfigProperty -> Maybe (Value Bool)
outputAction :: WordConfigProperty -> Maybe (Value Text)
outputEnabled :: WordConfigProperty -> Maybe (Value Bool)
text :: WordConfigProperty -> Value Text
haddock_workaround_ :: ()
inputAction :: Maybe (Value Text)
inputEnabled :: Maybe (Value Bool)
outputAction :: Maybe (Value Text)
outputEnabled :: Maybe (Value Bool)
text :: Value Text
..}
    = WordConfigProperty {outputAction :: Maybe (Value Text)
outputAction = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "OutputAction" WordConfigProperty
Value Text
newValue, Maybe (Value Bool)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
inputAction :: Maybe (Value Text)
inputEnabled :: Maybe (Value Bool)
outputEnabled :: Maybe (Value Bool)
text :: Value Text
haddock_workaround_ :: ()
inputAction :: Maybe (Value Text)
inputEnabled :: Maybe (Value Bool)
outputEnabled :: Maybe (Value Bool)
text :: Value Text
..}
instance Property "OutputEnabled" WordConfigProperty where
  type PropertyType "OutputEnabled" WordConfigProperty = Value Prelude.Bool
  set :: PropertyType "OutputEnabled" WordConfigProperty
-> WordConfigProperty -> WordConfigProperty
set PropertyType "OutputEnabled" WordConfigProperty
newValue WordConfigProperty {Maybe (Value Bool)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: WordConfigProperty -> ()
inputAction :: WordConfigProperty -> Maybe (Value Text)
inputEnabled :: WordConfigProperty -> Maybe (Value Bool)
outputAction :: WordConfigProperty -> Maybe (Value Text)
outputEnabled :: WordConfigProperty -> Maybe (Value Bool)
text :: WordConfigProperty -> Value Text
haddock_workaround_ :: ()
inputAction :: Maybe (Value Text)
inputEnabled :: Maybe (Value Bool)
outputAction :: Maybe (Value Text)
outputEnabled :: Maybe (Value Bool)
text :: Value Text
..}
    = WordConfigProperty {outputEnabled :: Maybe (Value Bool)
outputEnabled = Value Bool -> Maybe (Value Bool)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "OutputEnabled" WordConfigProperty
Value Bool
newValue, Maybe (Value Bool)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
inputAction :: Maybe (Value Text)
inputEnabled :: Maybe (Value Bool)
outputAction :: Maybe (Value Text)
text :: Value Text
haddock_workaround_ :: ()
inputAction :: Maybe (Value Text)
inputEnabled :: Maybe (Value Bool)
outputAction :: Maybe (Value Text)
text :: Value Text
..}
instance Property "Text" WordConfigProperty where
  type PropertyType "Text" WordConfigProperty = Value Prelude.Text
  set :: PropertyType "Text" WordConfigProperty
-> WordConfigProperty -> WordConfigProperty
set PropertyType "Text" WordConfigProperty
newValue WordConfigProperty {Maybe (Value Bool)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: WordConfigProperty -> ()
inputAction :: WordConfigProperty -> Maybe (Value Text)
inputEnabled :: WordConfigProperty -> Maybe (Value Bool)
outputAction :: WordConfigProperty -> Maybe (Value Text)
outputEnabled :: WordConfigProperty -> Maybe (Value Bool)
text :: WordConfigProperty -> Value Text
haddock_workaround_ :: ()
inputAction :: Maybe (Value Text)
inputEnabled :: Maybe (Value Bool)
outputAction :: Maybe (Value Text)
outputEnabled :: Maybe (Value Bool)
text :: Value Text
..}
    = WordConfigProperty {text :: Value Text
text = PropertyType "Text" WordConfigProperty
Value Text
newValue, Maybe (Value Bool)
Maybe (Value Text)
()
haddock_workaround_ :: ()
inputAction :: Maybe (Value Text)
inputEnabled :: Maybe (Value Bool)
outputAction :: Maybe (Value Text)
outputEnabled :: Maybe (Value Bool)
haddock_workaround_ :: ()
inputAction :: Maybe (Value Text)
inputEnabled :: Maybe (Value Bool)
outputAction :: Maybe (Value Text)
outputEnabled :: Maybe (Value Bool)
..}