module Stratosphere.Wisdom.AIGuardrail.GuardrailPiiEntityConfigProperty (
GuardrailPiiEntityConfigProperty(..),
mkGuardrailPiiEntityConfigProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data GuardrailPiiEntityConfigProperty
=
GuardrailPiiEntityConfigProperty {GuardrailPiiEntityConfigProperty -> ()
haddock_workaround_ :: (),
GuardrailPiiEntityConfigProperty -> Value Text
action :: (Value Prelude.Text),
GuardrailPiiEntityConfigProperty -> Value Text
type' :: (Value Prelude.Text)}
deriving stock (GuardrailPiiEntityConfigProperty
-> GuardrailPiiEntityConfigProperty -> Bool
(GuardrailPiiEntityConfigProperty
-> GuardrailPiiEntityConfigProperty -> Bool)
-> (GuardrailPiiEntityConfigProperty
-> GuardrailPiiEntityConfigProperty -> Bool)
-> Eq GuardrailPiiEntityConfigProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: GuardrailPiiEntityConfigProperty
-> GuardrailPiiEntityConfigProperty -> Bool
== :: GuardrailPiiEntityConfigProperty
-> GuardrailPiiEntityConfigProperty -> Bool
$c/= :: GuardrailPiiEntityConfigProperty
-> GuardrailPiiEntityConfigProperty -> Bool
/= :: GuardrailPiiEntityConfigProperty
-> GuardrailPiiEntityConfigProperty -> Bool
Prelude.Eq, Int -> GuardrailPiiEntityConfigProperty -> ShowS
[GuardrailPiiEntityConfigProperty] -> ShowS
GuardrailPiiEntityConfigProperty -> String
(Int -> GuardrailPiiEntityConfigProperty -> ShowS)
-> (GuardrailPiiEntityConfigProperty -> String)
-> ([GuardrailPiiEntityConfigProperty] -> ShowS)
-> Show GuardrailPiiEntityConfigProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> GuardrailPiiEntityConfigProperty -> ShowS
showsPrec :: Int -> GuardrailPiiEntityConfigProperty -> ShowS
$cshow :: GuardrailPiiEntityConfigProperty -> String
show :: GuardrailPiiEntityConfigProperty -> String
$cshowList :: [GuardrailPiiEntityConfigProperty] -> ShowS
showList :: [GuardrailPiiEntityConfigProperty] -> ShowS
Prelude.Show)
mkGuardrailPiiEntityConfigProperty ::
Value Prelude.Text
-> Value Prelude.Text -> GuardrailPiiEntityConfigProperty
mkGuardrailPiiEntityConfigProperty :: Value Text -> Value Text -> GuardrailPiiEntityConfigProperty
mkGuardrailPiiEntityConfigProperty Value Text
action Value Text
type'
= GuardrailPiiEntityConfigProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), action :: Value Text
action = Value Text
action, type' :: Value Text
type' = Value Text
type'}
instance ToResourceProperties GuardrailPiiEntityConfigProperty where
toResourceProperties :: GuardrailPiiEntityConfigProperty -> ResourceProperties
toResourceProperties GuardrailPiiEntityConfigProperty {()
Value Text
haddock_workaround_ :: GuardrailPiiEntityConfigProperty -> ()
action :: GuardrailPiiEntityConfigProperty -> Value Text
type' :: GuardrailPiiEntityConfigProperty -> Value Text
haddock_workaround_ :: ()
action :: Value Text
type' :: Value Text
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::Wisdom::AIGuardrail.GuardrailPiiEntityConfig",
supportsTags :: Bool
supportsTags = Bool
Prelude.False,
properties :: Object
properties = [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']}
instance JSON.ToJSON GuardrailPiiEntityConfigProperty where
toJSON :: GuardrailPiiEntityConfigProperty -> Value
toJSON GuardrailPiiEntityConfigProperty {()
Value Text
haddock_workaround_ :: GuardrailPiiEntityConfigProperty -> ()
action :: GuardrailPiiEntityConfigProperty -> Value Text
type' :: GuardrailPiiEntityConfigProperty -> Value Text
haddock_workaround_ :: ()
action :: Value Text
type' :: Value Text
..}
= [(Key, Value)] -> Value
JSON.object [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']
instance Property "Action" GuardrailPiiEntityConfigProperty where
type PropertyType "Action" GuardrailPiiEntityConfigProperty = Value Prelude.Text
set :: PropertyType "Action" GuardrailPiiEntityConfigProperty
-> GuardrailPiiEntityConfigProperty
-> GuardrailPiiEntityConfigProperty
set PropertyType "Action" GuardrailPiiEntityConfigProperty
newValue GuardrailPiiEntityConfigProperty {()
Value Text
haddock_workaround_ :: GuardrailPiiEntityConfigProperty -> ()
action :: GuardrailPiiEntityConfigProperty -> Value Text
type' :: GuardrailPiiEntityConfigProperty -> Value Text
haddock_workaround_ :: ()
action :: Value Text
type' :: Value Text
..}
= GuardrailPiiEntityConfigProperty {action :: Value Text
action = PropertyType "Action" GuardrailPiiEntityConfigProperty
Value Text
newValue, ()
Value Text
haddock_workaround_ :: ()
type' :: Value Text
haddock_workaround_ :: ()
type' :: Value Text
..}
instance Property "Type" GuardrailPiiEntityConfigProperty where
type PropertyType "Type" GuardrailPiiEntityConfigProperty = Value Prelude.Text
set :: PropertyType "Type" GuardrailPiiEntityConfigProperty
-> GuardrailPiiEntityConfigProperty
-> GuardrailPiiEntityConfigProperty
set PropertyType "Type" GuardrailPiiEntityConfigProperty
newValue GuardrailPiiEntityConfigProperty {()
Value Text
haddock_workaround_ :: GuardrailPiiEntityConfigProperty -> ()
action :: GuardrailPiiEntityConfigProperty -> Value Text
type' :: GuardrailPiiEntityConfigProperty -> Value Text
haddock_workaround_ :: ()
action :: Value Text
type' :: Value Text
..}
= GuardrailPiiEntityConfigProperty {type' :: Value Text
type' = PropertyType "Type" GuardrailPiiEntityConfigProperty
Value Text
newValue, ()
Value Text
haddock_workaround_ :: ()
action :: Value Text
haddock_workaround_ :: ()
action :: Value Text
..}