module Stratosphere.Wisdom.AIGuardrail.GuardrailTopicConfigProperty (
GuardrailTopicConfigProperty(..), mkGuardrailTopicConfigProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data GuardrailTopicConfigProperty
=
GuardrailTopicConfigProperty {GuardrailTopicConfigProperty -> ()
haddock_workaround_ :: (),
GuardrailTopicConfigProperty -> Value Text
definition :: (Value Prelude.Text),
GuardrailTopicConfigProperty -> Maybe (ValueList Text)
examples :: (Prelude.Maybe (ValueList Prelude.Text)),
GuardrailTopicConfigProperty -> Value Text
name :: (Value Prelude.Text),
GuardrailTopicConfigProperty -> Value Text
type' :: (Value Prelude.Text)}
deriving stock (GuardrailTopicConfigProperty
-> GuardrailTopicConfigProperty -> Bool
(GuardrailTopicConfigProperty
-> GuardrailTopicConfigProperty -> Bool)
-> (GuardrailTopicConfigProperty
-> GuardrailTopicConfigProperty -> Bool)
-> Eq GuardrailTopicConfigProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: GuardrailTopicConfigProperty
-> GuardrailTopicConfigProperty -> Bool
== :: GuardrailTopicConfigProperty
-> GuardrailTopicConfigProperty -> Bool
$c/= :: GuardrailTopicConfigProperty
-> GuardrailTopicConfigProperty -> Bool
/= :: GuardrailTopicConfigProperty
-> GuardrailTopicConfigProperty -> Bool
Prelude.Eq, Int -> GuardrailTopicConfigProperty -> ShowS
[GuardrailTopicConfigProperty] -> ShowS
GuardrailTopicConfigProperty -> String
(Int -> GuardrailTopicConfigProperty -> ShowS)
-> (GuardrailTopicConfigProperty -> String)
-> ([GuardrailTopicConfigProperty] -> ShowS)
-> Show GuardrailTopicConfigProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> GuardrailTopicConfigProperty -> ShowS
showsPrec :: Int -> GuardrailTopicConfigProperty -> ShowS
$cshow :: GuardrailTopicConfigProperty -> String
show :: GuardrailTopicConfigProperty -> String
$cshowList :: [GuardrailTopicConfigProperty] -> ShowS
showList :: [GuardrailTopicConfigProperty] -> ShowS
Prelude.Show)
mkGuardrailTopicConfigProperty ::
Value Prelude.Text
-> Value Prelude.Text
-> Value Prelude.Text -> GuardrailTopicConfigProperty
mkGuardrailTopicConfigProperty :: Value Text
-> Value Text -> Value Text -> GuardrailTopicConfigProperty
mkGuardrailTopicConfigProperty Value Text
definition Value Text
name Value Text
type'
= GuardrailTopicConfigProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), definition :: Value Text
definition = Value Text
definition, name :: Value Text
name = Value Text
name,
type' :: Value Text
type' = Value Text
type', examples :: Maybe (ValueList Text)
examples = Maybe (ValueList Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties GuardrailTopicConfigProperty where
toResourceProperties :: GuardrailTopicConfigProperty -> ResourceProperties
toResourceProperties GuardrailTopicConfigProperty {Maybe (ValueList Text)
()
Value Text
haddock_workaround_ :: GuardrailTopicConfigProperty -> ()
definition :: GuardrailTopicConfigProperty -> Value Text
examples :: GuardrailTopicConfigProperty -> Maybe (ValueList Text)
name :: GuardrailTopicConfigProperty -> Value Text
type' :: GuardrailTopicConfigProperty -> Value Text
haddock_workaround_ :: ()
definition :: Value Text
examples :: Maybe (ValueList Text)
name :: Value Text
type' :: Value Text
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::Wisdom::AIGuardrail.GuardrailTopicConfig",
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
"Definition" 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
definition, Key
"Name" 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
name,
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 -> ValueList 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
"Examples" (ValueList Text -> (Key, Value))
-> Maybe (ValueList Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (ValueList Text)
examples]))}
instance JSON.ToJSON GuardrailTopicConfigProperty where
toJSON :: GuardrailTopicConfigProperty -> Value
toJSON GuardrailTopicConfigProperty {Maybe (ValueList Text)
()
Value Text
haddock_workaround_ :: GuardrailTopicConfigProperty -> ()
definition :: GuardrailTopicConfigProperty -> Value Text
examples :: GuardrailTopicConfigProperty -> Maybe (ValueList Text)
name :: GuardrailTopicConfigProperty -> Value Text
type' :: GuardrailTopicConfigProperty -> Value Text
haddock_workaround_ :: ()
definition :: Value Text
examples :: Maybe (ValueList Text)
name :: Value Text
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
"Definition" 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
definition, Key
"Name" 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
name,
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 -> ValueList 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
"Examples" (ValueList Text -> (Key, Value))
-> Maybe (ValueList Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (ValueList Text)
examples])))
instance Property "Definition" GuardrailTopicConfigProperty where
type PropertyType "Definition" GuardrailTopicConfigProperty = Value Prelude.Text
set :: PropertyType "Definition" GuardrailTopicConfigProperty
-> GuardrailTopicConfigProperty -> GuardrailTopicConfigProperty
set PropertyType "Definition" GuardrailTopicConfigProperty
newValue GuardrailTopicConfigProperty {Maybe (ValueList Text)
()
Value Text
haddock_workaround_ :: GuardrailTopicConfigProperty -> ()
definition :: GuardrailTopicConfigProperty -> Value Text
examples :: GuardrailTopicConfigProperty -> Maybe (ValueList Text)
name :: GuardrailTopicConfigProperty -> Value Text
type' :: GuardrailTopicConfigProperty -> Value Text
haddock_workaround_ :: ()
definition :: Value Text
examples :: Maybe (ValueList Text)
name :: Value Text
type' :: Value Text
..}
= GuardrailTopicConfigProperty {definition :: Value Text
definition = PropertyType "Definition" GuardrailTopicConfigProperty
Value Text
newValue, Maybe (ValueList Text)
()
Value Text
haddock_workaround_ :: ()
examples :: Maybe (ValueList Text)
name :: Value Text
type' :: Value Text
haddock_workaround_ :: ()
examples :: Maybe (ValueList Text)
name :: Value Text
type' :: Value Text
..}
instance Property "Examples" GuardrailTopicConfigProperty where
type PropertyType "Examples" GuardrailTopicConfigProperty = ValueList Prelude.Text
set :: PropertyType "Examples" GuardrailTopicConfigProperty
-> GuardrailTopicConfigProperty -> GuardrailTopicConfigProperty
set PropertyType "Examples" GuardrailTopicConfigProperty
newValue GuardrailTopicConfigProperty {Maybe (ValueList Text)
()
Value Text
haddock_workaround_ :: GuardrailTopicConfigProperty -> ()
definition :: GuardrailTopicConfigProperty -> Value Text
examples :: GuardrailTopicConfigProperty -> Maybe (ValueList Text)
name :: GuardrailTopicConfigProperty -> Value Text
type' :: GuardrailTopicConfigProperty -> Value Text
haddock_workaround_ :: ()
definition :: Value Text
examples :: Maybe (ValueList Text)
name :: Value Text
type' :: Value Text
..}
= GuardrailTopicConfigProperty
{examples :: Maybe (ValueList Text)
examples = ValueList Text -> Maybe (ValueList Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Examples" GuardrailTopicConfigProperty
ValueList Text
newValue, ()
Value Text
haddock_workaround_ :: ()
definition :: Value Text
name :: Value Text
type' :: Value Text
haddock_workaround_ :: ()
definition :: Value Text
name :: Value Text
type' :: Value Text
..}
instance Property "Name" GuardrailTopicConfigProperty where
type PropertyType "Name" GuardrailTopicConfigProperty = Value Prelude.Text
set :: PropertyType "Name" GuardrailTopicConfigProperty
-> GuardrailTopicConfigProperty -> GuardrailTopicConfigProperty
set PropertyType "Name" GuardrailTopicConfigProperty
newValue GuardrailTopicConfigProperty {Maybe (ValueList Text)
()
Value Text
haddock_workaround_ :: GuardrailTopicConfigProperty -> ()
definition :: GuardrailTopicConfigProperty -> Value Text
examples :: GuardrailTopicConfigProperty -> Maybe (ValueList Text)
name :: GuardrailTopicConfigProperty -> Value Text
type' :: GuardrailTopicConfigProperty -> Value Text
haddock_workaround_ :: ()
definition :: Value Text
examples :: Maybe (ValueList Text)
name :: Value Text
type' :: Value Text
..}
= GuardrailTopicConfigProperty {name :: Value Text
name = PropertyType "Name" GuardrailTopicConfigProperty
Value Text
newValue, Maybe (ValueList Text)
()
Value Text
haddock_workaround_ :: ()
definition :: Value Text
examples :: Maybe (ValueList Text)
type' :: Value Text
haddock_workaround_ :: ()
definition :: Value Text
examples :: Maybe (ValueList Text)
type' :: Value Text
..}
instance Property "Type" GuardrailTopicConfigProperty where
type PropertyType "Type" GuardrailTopicConfigProperty = Value Prelude.Text
set :: PropertyType "Type" GuardrailTopicConfigProperty
-> GuardrailTopicConfigProperty -> GuardrailTopicConfigProperty
set PropertyType "Type" GuardrailTopicConfigProperty
newValue GuardrailTopicConfigProperty {Maybe (ValueList Text)
()
Value Text
haddock_workaround_ :: GuardrailTopicConfigProperty -> ()
definition :: GuardrailTopicConfigProperty -> Value Text
examples :: GuardrailTopicConfigProperty -> Maybe (ValueList Text)
name :: GuardrailTopicConfigProperty -> Value Text
type' :: GuardrailTopicConfigProperty -> Value Text
haddock_workaround_ :: ()
definition :: Value Text
examples :: Maybe (ValueList Text)
name :: Value Text
type' :: Value Text
..}
= GuardrailTopicConfigProperty {type' :: Value Text
type' = PropertyType "Type" GuardrailTopicConfigProperty
Value Text
newValue, Maybe (ValueList Text)
()
Value Text
haddock_workaround_ :: ()
definition :: Value Text
examples :: Maybe (ValueList Text)
name :: Value Text
haddock_workaround_ :: ()
definition :: Value Text
examples :: Maybe (ValueList Text)
name :: Value Text
..}