module Stratosphere.Bedrock.AutomatedReasoningPolicy.PolicyDefinitionTypeValueProperty (
PolicyDefinitionTypeValueProperty(..),
mkPolicyDefinitionTypeValueProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data PolicyDefinitionTypeValueProperty
=
PolicyDefinitionTypeValueProperty {PolicyDefinitionTypeValueProperty -> ()
haddock_workaround_ :: (),
PolicyDefinitionTypeValueProperty -> Maybe (Value Text)
description :: (Prelude.Maybe (Value Prelude.Text)),
PolicyDefinitionTypeValueProperty -> Value Text
value :: (Value Prelude.Text)}
deriving stock (PolicyDefinitionTypeValueProperty
-> PolicyDefinitionTypeValueProperty -> Bool
(PolicyDefinitionTypeValueProperty
-> PolicyDefinitionTypeValueProperty -> Bool)
-> (PolicyDefinitionTypeValueProperty
-> PolicyDefinitionTypeValueProperty -> Bool)
-> Eq PolicyDefinitionTypeValueProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: PolicyDefinitionTypeValueProperty
-> PolicyDefinitionTypeValueProperty -> Bool
== :: PolicyDefinitionTypeValueProperty
-> PolicyDefinitionTypeValueProperty -> Bool
$c/= :: PolicyDefinitionTypeValueProperty
-> PolicyDefinitionTypeValueProperty -> Bool
/= :: PolicyDefinitionTypeValueProperty
-> PolicyDefinitionTypeValueProperty -> Bool
Prelude.Eq, Int -> PolicyDefinitionTypeValueProperty -> ShowS
[PolicyDefinitionTypeValueProperty] -> ShowS
PolicyDefinitionTypeValueProperty -> String
(Int -> PolicyDefinitionTypeValueProperty -> ShowS)
-> (PolicyDefinitionTypeValueProperty -> String)
-> ([PolicyDefinitionTypeValueProperty] -> ShowS)
-> Show PolicyDefinitionTypeValueProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> PolicyDefinitionTypeValueProperty -> ShowS
showsPrec :: Int -> PolicyDefinitionTypeValueProperty -> ShowS
$cshow :: PolicyDefinitionTypeValueProperty -> String
show :: PolicyDefinitionTypeValueProperty -> String
$cshowList :: [PolicyDefinitionTypeValueProperty] -> ShowS
showList :: [PolicyDefinitionTypeValueProperty] -> ShowS
Prelude.Show)
mkPolicyDefinitionTypeValueProperty ::
Value Prelude.Text -> PolicyDefinitionTypeValueProperty
mkPolicyDefinitionTypeValueProperty :: Value Text -> PolicyDefinitionTypeValueProperty
mkPolicyDefinitionTypeValueProperty Value Text
value
= PolicyDefinitionTypeValueProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), value :: Value Text
value = Value Text
value,
description :: Maybe (Value Text)
description = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties PolicyDefinitionTypeValueProperty where
toResourceProperties :: PolicyDefinitionTypeValueProperty -> ResourceProperties
toResourceProperties PolicyDefinitionTypeValueProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: PolicyDefinitionTypeValueProperty -> ()
description :: PolicyDefinitionTypeValueProperty -> Maybe (Value Text)
value :: PolicyDefinitionTypeValueProperty -> Value Text
haddock_workaround_ :: ()
description :: Maybe (Value Text)
value :: Value Text
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::Bedrock::AutomatedReasoningPolicy.PolicyDefinitionTypeValue",
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
"Value" 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
value]
([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
"Description" (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)
description]))}
instance JSON.ToJSON PolicyDefinitionTypeValueProperty where
toJSON :: PolicyDefinitionTypeValueProperty -> Value
toJSON PolicyDefinitionTypeValueProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: PolicyDefinitionTypeValueProperty -> ()
description :: PolicyDefinitionTypeValueProperty -> Maybe (Value Text)
value :: PolicyDefinitionTypeValueProperty -> Value Text
haddock_workaround_ :: ()
description :: Maybe (Value Text)
value :: 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
"Value" 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
value]
([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
"Description" (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)
description])))
instance Property "Description" PolicyDefinitionTypeValueProperty where
type PropertyType "Description" PolicyDefinitionTypeValueProperty = Value Prelude.Text
set :: PropertyType "Description" PolicyDefinitionTypeValueProperty
-> PolicyDefinitionTypeValueProperty
-> PolicyDefinitionTypeValueProperty
set PropertyType "Description" PolicyDefinitionTypeValueProperty
newValue PolicyDefinitionTypeValueProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: PolicyDefinitionTypeValueProperty -> ()
description :: PolicyDefinitionTypeValueProperty -> Maybe (Value Text)
value :: PolicyDefinitionTypeValueProperty -> Value Text
haddock_workaround_ :: ()
description :: Maybe (Value Text)
value :: Value Text
..}
= PolicyDefinitionTypeValueProperty
{description :: Maybe (Value Text)
description = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Description" PolicyDefinitionTypeValueProperty
Value Text
newValue, ()
Value Text
haddock_workaround_ :: ()
value :: Value Text
haddock_workaround_ :: ()
value :: Value Text
..}
instance Property "Value" PolicyDefinitionTypeValueProperty where
type PropertyType "Value" PolicyDefinitionTypeValueProperty = Value Prelude.Text
set :: PropertyType "Value" PolicyDefinitionTypeValueProperty
-> PolicyDefinitionTypeValueProperty
-> PolicyDefinitionTypeValueProperty
set PropertyType "Value" PolicyDefinitionTypeValueProperty
newValue PolicyDefinitionTypeValueProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: PolicyDefinitionTypeValueProperty -> ()
description :: PolicyDefinitionTypeValueProperty -> Maybe (Value Text)
value :: PolicyDefinitionTypeValueProperty -> Value Text
haddock_workaround_ :: ()
description :: Maybe (Value Text)
value :: Value Text
..}
= PolicyDefinitionTypeValueProperty {value :: Value Text
value = PropertyType "Value" PolicyDefinitionTypeValueProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
description :: Maybe (Value Text)
haddock_workaround_ :: ()
description :: Maybe (Value Text)
..}