module Stratosphere.Bedrock.Guardrail.PiiEntityConfigProperty (
PiiEntityConfigProperty(..), mkPiiEntityConfigProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data PiiEntityConfigProperty
=
PiiEntityConfigProperty {PiiEntityConfigProperty -> ()
haddock_workaround_ :: (),
PiiEntityConfigProperty -> Value Text
action :: (Value Prelude.Text),
PiiEntityConfigProperty -> Maybe (Value Text)
inputAction :: (Prelude.Maybe (Value Prelude.Text)),
PiiEntityConfigProperty -> Maybe (Value Bool)
inputEnabled :: (Prelude.Maybe (Value Prelude.Bool)),
PiiEntityConfigProperty -> Maybe (Value Text)
outputAction :: (Prelude.Maybe (Value Prelude.Text)),
PiiEntityConfigProperty -> Maybe (Value Bool)
outputEnabled :: (Prelude.Maybe (Value Prelude.Bool)),
PiiEntityConfigProperty -> Value Text
type' :: (Value Prelude.Text)}
deriving stock (PiiEntityConfigProperty -> PiiEntityConfigProperty -> Bool
(PiiEntityConfigProperty -> PiiEntityConfigProperty -> Bool)
-> (PiiEntityConfigProperty -> PiiEntityConfigProperty -> Bool)
-> Eq PiiEntityConfigProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: PiiEntityConfigProperty -> PiiEntityConfigProperty -> Bool
== :: PiiEntityConfigProperty -> PiiEntityConfigProperty -> Bool
$c/= :: PiiEntityConfigProperty -> PiiEntityConfigProperty -> Bool
/= :: PiiEntityConfigProperty -> PiiEntityConfigProperty -> Bool
Prelude.Eq, Int -> PiiEntityConfigProperty -> ShowS
[PiiEntityConfigProperty] -> ShowS
PiiEntityConfigProperty -> String
(Int -> PiiEntityConfigProperty -> ShowS)
-> (PiiEntityConfigProperty -> String)
-> ([PiiEntityConfigProperty] -> ShowS)
-> Show PiiEntityConfigProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> PiiEntityConfigProperty -> ShowS
showsPrec :: Int -> PiiEntityConfigProperty -> ShowS
$cshow :: PiiEntityConfigProperty -> String
show :: PiiEntityConfigProperty -> String
$cshowList :: [PiiEntityConfigProperty] -> ShowS
showList :: [PiiEntityConfigProperty] -> ShowS
Prelude.Show)
mkPiiEntityConfigProperty ::
Value Prelude.Text -> Value Prelude.Text -> PiiEntityConfigProperty
mkPiiEntityConfigProperty :: Value Text -> Value Text -> PiiEntityConfigProperty
mkPiiEntityConfigProperty Value Text
action Value Text
type'
= PiiEntityConfigProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), action :: Value Text
action = Value Text
action, type' :: Value Text
type' = Value Text
type',
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 PiiEntityConfigProperty where
toResourceProperties :: PiiEntityConfigProperty -> ResourceProperties
toResourceProperties PiiEntityConfigProperty {Maybe (Value Bool)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: PiiEntityConfigProperty -> ()
action :: PiiEntityConfigProperty -> Value Text
inputAction :: PiiEntityConfigProperty -> Maybe (Value Text)
inputEnabled :: PiiEntityConfigProperty -> Maybe (Value Bool)
outputAction :: PiiEntityConfigProperty -> Maybe (Value Text)
outputEnabled :: PiiEntityConfigProperty -> Maybe (Value Bool)
type' :: PiiEntityConfigProperty -> Value Text
haddock_workaround_ :: ()
action :: Value Text
inputAction :: Maybe (Value Text)
inputEnabled :: Maybe (Value Bool)
outputAction :: Maybe (Value Text)
outputEnabled :: Maybe (Value Bool)
type' :: Value Text
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::Bedrock::Guardrail.PiiEntityConfig",
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
"Action" 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
action, Key
"Type" 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
type']
([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 PiiEntityConfigProperty where
toJSON :: PiiEntityConfigProperty -> Value
toJSON PiiEntityConfigProperty {Maybe (Value Bool)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: PiiEntityConfigProperty -> ()
action :: PiiEntityConfigProperty -> Value Text
inputAction :: PiiEntityConfigProperty -> Maybe (Value Text)
inputEnabled :: PiiEntityConfigProperty -> Maybe (Value Bool)
outputAction :: PiiEntityConfigProperty -> Maybe (Value Text)
outputEnabled :: PiiEntityConfigProperty -> Maybe (Value Bool)
type' :: PiiEntityConfigProperty -> Value Text
haddock_workaround_ :: ()
action :: Value Text
inputAction :: Maybe (Value Text)
inputEnabled :: Maybe (Value Bool)
outputAction :: Maybe (Value Text)
outputEnabled :: Maybe (Value Bool)
type' :: 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
"Action" 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
action, Key
"Type" 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
type']
([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 "Action" PiiEntityConfigProperty where
type PropertyType "Action" PiiEntityConfigProperty = Value Prelude.Text
set :: PropertyType "Action" PiiEntityConfigProperty
-> PiiEntityConfigProperty -> PiiEntityConfigProperty
set PropertyType "Action" PiiEntityConfigProperty
newValue PiiEntityConfigProperty {Maybe (Value Bool)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: PiiEntityConfigProperty -> ()
action :: PiiEntityConfigProperty -> Value Text
inputAction :: PiiEntityConfigProperty -> Maybe (Value Text)
inputEnabled :: PiiEntityConfigProperty -> Maybe (Value Bool)
outputAction :: PiiEntityConfigProperty -> Maybe (Value Text)
outputEnabled :: PiiEntityConfigProperty -> Maybe (Value Bool)
type' :: PiiEntityConfigProperty -> Value Text
haddock_workaround_ :: ()
action :: Value Text
inputAction :: Maybe (Value Text)
inputEnabled :: Maybe (Value Bool)
outputAction :: Maybe (Value Text)
outputEnabled :: Maybe (Value Bool)
type' :: Value Text
..}
= PiiEntityConfigProperty {action :: Value Text
action = PropertyType "Action" PiiEntityConfigProperty
Value Text
newValue, Maybe (Value Bool)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
inputAction :: Maybe (Value Text)
inputEnabled :: Maybe (Value Bool)
outputAction :: Maybe (Value Text)
outputEnabled :: Maybe (Value Bool)
type' :: Value Text
haddock_workaround_ :: ()
inputAction :: Maybe (Value Text)
inputEnabled :: Maybe (Value Bool)
outputAction :: Maybe (Value Text)
outputEnabled :: Maybe (Value Bool)
type' :: Value Text
..}
instance Property "InputAction" PiiEntityConfigProperty where
type PropertyType "InputAction" PiiEntityConfigProperty = Value Prelude.Text
set :: PropertyType "InputAction" PiiEntityConfigProperty
-> PiiEntityConfigProperty -> PiiEntityConfigProperty
set PropertyType "InputAction" PiiEntityConfigProperty
newValue PiiEntityConfigProperty {Maybe (Value Bool)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: PiiEntityConfigProperty -> ()
action :: PiiEntityConfigProperty -> Value Text
inputAction :: PiiEntityConfigProperty -> Maybe (Value Text)
inputEnabled :: PiiEntityConfigProperty -> Maybe (Value Bool)
outputAction :: PiiEntityConfigProperty -> Maybe (Value Text)
outputEnabled :: PiiEntityConfigProperty -> Maybe (Value Bool)
type' :: PiiEntityConfigProperty -> Value Text
haddock_workaround_ :: ()
action :: Value Text
inputAction :: Maybe (Value Text)
inputEnabled :: Maybe (Value Bool)
outputAction :: Maybe (Value Text)
outputEnabled :: Maybe (Value Bool)
type' :: Value Text
..}
= PiiEntityConfigProperty {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" PiiEntityConfigProperty
Value Text
newValue, Maybe (Value Bool)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
action :: Value Text
inputEnabled :: Maybe (Value Bool)
outputAction :: Maybe (Value Text)
outputEnabled :: Maybe (Value Bool)
type' :: Value Text
haddock_workaround_ :: ()
action :: Value Text
inputEnabled :: Maybe (Value Bool)
outputAction :: Maybe (Value Text)
outputEnabled :: Maybe (Value Bool)
type' :: Value Text
..}
instance Property "InputEnabled" PiiEntityConfigProperty where
type PropertyType "InputEnabled" PiiEntityConfigProperty = Value Prelude.Bool
set :: PropertyType "InputEnabled" PiiEntityConfigProperty
-> PiiEntityConfigProperty -> PiiEntityConfigProperty
set PropertyType "InputEnabled" PiiEntityConfigProperty
newValue PiiEntityConfigProperty {Maybe (Value Bool)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: PiiEntityConfigProperty -> ()
action :: PiiEntityConfigProperty -> Value Text
inputAction :: PiiEntityConfigProperty -> Maybe (Value Text)
inputEnabled :: PiiEntityConfigProperty -> Maybe (Value Bool)
outputAction :: PiiEntityConfigProperty -> Maybe (Value Text)
outputEnabled :: PiiEntityConfigProperty -> Maybe (Value Bool)
type' :: PiiEntityConfigProperty -> Value Text
haddock_workaround_ :: ()
action :: Value Text
inputAction :: Maybe (Value Text)
inputEnabled :: Maybe (Value Bool)
outputAction :: Maybe (Value Text)
outputEnabled :: Maybe (Value Bool)
type' :: Value Text
..}
= PiiEntityConfigProperty
{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" PiiEntityConfigProperty
Value Bool
newValue, Maybe (Value Bool)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
action :: Value Text
inputAction :: Maybe (Value Text)
outputAction :: Maybe (Value Text)
outputEnabled :: Maybe (Value Bool)
type' :: Value Text
haddock_workaround_ :: ()
action :: Value Text
inputAction :: Maybe (Value Text)
outputAction :: Maybe (Value Text)
outputEnabled :: Maybe (Value Bool)
type' :: Value Text
..}
instance Property "OutputAction" PiiEntityConfigProperty where
type PropertyType "OutputAction" PiiEntityConfigProperty = Value Prelude.Text
set :: PropertyType "OutputAction" PiiEntityConfigProperty
-> PiiEntityConfigProperty -> PiiEntityConfigProperty
set PropertyType "OutputAction" PiiEntityConfigProperty
newValue PiiEntityConfigProperty {Maybe (Value Bool)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: PiiEntityConfigProperty -> ()
action :: PiiEntityConfigProperty -> Value Text
inputAction :: PiiEntityConfigProperty -> Maybe (Value Text)
inputEnabled :: PiiEntityConfigProperty -> Maybe (Value Bool)
outputAction :: PiiEntityConfigProperty -> Maybe (Value Text)
outputEnabled :: PiiEntityConfigProperty -> Maybe (Value Bool)
type' :: PiiEntityConfigProperty -> Value Text
haddock_workaround_ :: ()
action :: Value Text
inputAction :: Maybe (Value Text)
inputEnabled :: Maybe (Value Bool)
outputAction :: Maybe (Value Text)
outputEnabled :: Maybe (Value Bool)
type' :: Value Text
..}
= PiiEntityConfigProperty
{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" PiiEntityConfigProperty
Value Text
newValue, Maybe (Value Bool)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
action :: Value Text
inputAction :: Maybe (Value Text)
inputEnabled :: Maybe (Value Bool)
outputEnabled :: Maybe (Value Bool)
type' :: Value Text
haddock_workaround_ :: ()
action :: Value Text
inputAction :: Maybe (Value Text)
inputEnabled :: Maybe (Value Bool)
outputEnabled :: Maybe (Value Bool)
type' :: Value Text
..}
instance Property "OutputEnabled" PiiEntityConfigProperty where
type PropertyType "OutputEnabled" PiiEntityConfigProperty = Value Prelude.Bool
set :: PropertyType "OutputEnabled" PiiEntityConfigProperty
-> PiiEntityConfigProperty -> PiiEntityConfigProperty
set PropertyType "OutputEnabled" PiiEntityConfigProperty
newValue PiiEntityConfigProperty {Maybe (Value Bool)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: PiiEntityConfigProperty -> ()
action :: PiiEntityConfigProperty -> Value Text
inputAction :: PiiEntityConfigProperty -> Maybe (Value Text)
inputEnabled :: PiiEntityConfigProperty -> Maybe (Value Bool)
outputAction :: PiiEntityConfigProperty -> Maybe (Value Text)
outputEnabled :: PiiEntityConfigProperty -> Maybe (Value Bool)
type' :: PiiEntityConfigProperty -> Value Text
haddock_workaround_ :: ()
action :: Value Text
inputAction :: Maybe (Value Text)
inputEnabled :: Maybe (Value Bool)
outputAction :: Maybe (Value Text)
outputEnabled :: Maybe (Value Bool)
type' :: Value Text
..}
= PiiEntityConfigProperty
{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" PiiEntityConfigProperty
Value Bool
newValue, Maybe (Value Bool)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
action :: Value Text
inputAction :: Maybe (Value Text)
inputEnabled :: Maybe (Value Bool)
outputAction :: Maybe (Value Text)
type' :: Value Text
haddock_workaround_ :: ()
action :: Value Text
inputAction :: Maybe (Value Text)
inputEnabled :: Maybe (Value Bool)
outputAction :: Maybe (Value Text)
type' :: Value Text
..}
instance Property "Type" PiiEntityConfigProperty where
type PropertyType "Type" PiiEntityConfigProperty = Value Prelude.Text
set :: PropertyType "Type" PiiEntityConfigProperty
-> PiiEntityConfigProperty -> PiiEntityConfigProperty
set PropertyType "Type" PiiEntityConfigProperty
newValue PiiEntityConfigProperty {Maybe (Value Bool)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: PiiEntityConfigProperty -> ()
action :: PiiEntityConfigProperty -> Value Text
inputAction :: PiiEntityConfigProperty -> Maybe (Value Text)
inputEnabled :: PiiEntityConfigProperty -> Maybe (Value Bool)
outputAction :: PiiEntityConfigProperty -> Maybe (Value Text)
outputEnabled :: PiiEntityConfigProperty -> Maybe (Value Bool)
type' :: PiiEntityConfigProperty -> Value Text
haddock_workaround_ :: ()
action :: Value Text
inputAction :: Maybe (Value Text)
inputEnabled :: Maybe (Value Bool)
outputAction :: Maybe (Value Text)
outputEnabled :: Maybe (Value Bool)
type' :: Value Text
..}
= PiiEntityConfigProperty {type' :: Value Text
type' = PropertyType "Type" PiiEntityConfigProperty
Value Text
newValue, Maybe (Value Bool)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
action :: Value Text
inputAction :: Maybe (Value Text)
inputEnabled :: Maybe (Value Bool)
outputAction :: Maybe (Value Text)
outputEnabled :: Maybe (Value Bool)
haddock_workaround_ :: ()
action :: Value Text
inputAction :: Maybe (Value Text)
inputEnabled :: Maybe (Value Bool)
outputAction :: Maybe (Value Text)
outputEnabled :: Maybe (Value Bool)
..}