module Stratosphere.Bedrock.AutomatedReasoningPolicyVersion (
AutomatedReasoningPolicyVersion(..),
mkAutomatedReasoningPolicyVersion
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Tag
import Stratosphere.Value
data AutomatedReasoningPolicyVersion
=
AutomatedReasoningPolicyVersion {AutomatedReasoningPolicyVersion -> ()
haddock_workaround_ :: (),
AutomatedReasoningPolicyVersion -> Maybe (Value Text)
lastUpdatedDefinitionHash :: (Prelude.Maybe (Value Prelude.Text)),
AutomatedReasoningPolicyVersion -> Value Text
policyArn :: (Value Prelude.Text),
AutomatedReasoningPolicyVersion -> Maybe [Tag]
tags :: (Prelude.Maybe [Tag])}
deriving stock (AutomatedReasoningPolicyVersion
-> AutomatedReasoningPolicyVersion -> Bool
(AutomatedReasoningPolicyVersion
-> AutomatedReasoningPolicyVersion -> Bool)
-> (AutomatedReasoningPolicyVersion
-> AutomatedReasoningPolicyVersion -> Bool)
-> Eq AutomatedReasoningPolicyVersion
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: AutomatedReasoningPolicyVersion
-> AutomatedReasoningPolicyVersion -> Bool
== :: AutomatedReasoningPolicyVersion
-> AutomatedReasoningPolicyVersion -> Bool
$c/= :: AutomatedReasoningPolicyVersion
-> AutomatedReasoningPolicyVersion -> Bool
/= :: AutomatedReasoningPolicyVersion
-> AutomatedReasoningPolicyVersion -> Bool
Prelude.Eq, Int -> AutomatedReasoningPolicyVersion -> ShowS
[AutomatedReasoningPolicyVersion] -> ShowS
AutomatedReasoningPolicyVersion -> String
(Int -> AutomatedReasoningPolicyVersion -> ShowS)
-> (AutomatedReasoningPolicyVersion -> String)
-> ([AutomatedReasoningPolicyVersion] -> ShowS)
-> Show AutomatedReasoningPolicyVersion
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> AutomatedReasoningPolicyVersion -> ShowS
showsPrec :: Int -> AutomatedReasoningPolicyVersion -> ShowS
$cshow :: AutomatedReasoningPolicyVersion -> String
show :: AutomatedReasoningPolicyVersion -> String
$cshowList :: [AutomatedReasoningPolicyVersion] -> ShowS
showList :: [AutomatedReasoningPolicyVersion] -> ShowS
Prelude.Show)
mkAutomatedReasoningPolicyVersion ::
Value Prelude.Text -> AutomatedReasoningPolicyVersion
mkAutomatedReasoningPolicyVersion :: Value Text -> AutomatedReasoningPolicyVersion
mkAutomatedReasoningPolicyVersion Value Text
policyArn
= AutomatedReasoningPolicyVersion
{haddock_workaround_ :: ()
haddock_workaround_ = (), policyArn :: Value Text
policyArn = Value Text
policyArn,
lastUpdatedDefinitionHash :: Maybe (Value Text)
lastUpdatedDefinitionHash = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
tags :: Maybe [Tag]
tags = Maybe [Tag]
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties AutomatedReasoningPolicyVersion where
toResourceProperties :: AutomatedReasoningPolicyVersion -> ResourceProperties
toResourceProperties AutomatedReasoningPolicyVersion {Maybe [Tag]
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: AutomatedReasoningPolicyVersion -> ()
lastUpdatedDefinitionHash :: AutomatedReasoningPolicyVersion -> Maybe (Value Text)
policyArn :: AutomatedReasoningPolicyVersion -> Value Text
tags :: AutomatedReasoningPolicyVersion -> Maybe [Tag]
haddock_workaround_ :: ()
lastUpdatedDefinitionHash :: Maybe (Value Text)
policyArn :: Value Text
tags :: Maybe [Tag]
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::Bedrock::AutomatedReasoningPolicyVersion",
supportsTags :: Bool
supportsTags = Bool
Prelude.True,
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
"PolicyArn" 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
policyArn]
([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
"LastUpdatedDefinitionHash"
(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)
lastUpdatedDefinitionHash,
Key -> [Tag] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Tags" ([Tag] -> (Key, Value)) -> Maybe [Tag] -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [Tag]
tags]))}
instance JSON.ToJSON AutomatedReasoningPolicyVersion where
toJSON :: AutomatedReasoningPolicyVersion -> Value
toJSON AutomatedReasoningPolicyVersion {Maybe [Tag]
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: AutomatedReasoningPolicyVersion -> ()
lastUpdatedDefinitionHash :: AutomatedReasoningPolicyVersion -> Maybe (Value Text)
policyArn :: AutomatedReasoningPolicyVersion -> Value Text
tags :: AutomatedReasoningPolicyVersion -> Maybe [Tag]
haddock_workaround_ :: ()
lastUpdatedDefinitionHash :: Maybe (Value Text)
policyArn :: Value Text
tags :: Maybe [Tag]
..}
= [(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
"PolicyArn" 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
policyArn]
([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
"LastUpdatedDefinitionHash"
(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)
lastUpdatedDefinitionHash,
Key -> [Tag] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Tags" ([Tag] -> (Key, Value)) -> Maybe [Tag] -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [Tag]
tags])))
instance Property "LastUpdatedDefinitionHash" AutomatedReasoningPolicyVersion where
type PropertyType "LastUpdatedDefinitionHash" AutomatedReasoningPolicyVersion = Value Prelude.Text
set :: PropertyType
"LastUpdatedDefinitionHash" AutomatedReasoningPolicyVersion
-> AutomatedReasoningPolicyVersion
-> AutomatedReasoningPolicyVersion
set PropertyType
"LastUpdatedDefinitionHash" AutomatedReasoningPolicyVersion
newValue AutomatedReasoningPolicyVersion {Maybe [Tag]
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: AutomatedReasoningPolicyVersion -> ()
lastUpdatedDefinitionHash :: AutomatedReasoningPolicyVersion -> Maybe (Value Text)
policyArn :: AutomatedReasoningPolicyVersion -> Value Text
tags :: AutomatedReasoningPolicyVersion -> Maybe [Tag]
haddock_workaround_ :: ()
lastUpdatedDefinitionHash :: Maybe (Value Text)
policyArn :: Value Text
tags :: Maybe [Tag]
..}
= AutomatedReasoningPolicyVersion
{lastUpdatedDefinitionHash :: Maybe (Value Text)
lastUpdatedDefinitionHash = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
"LastUpdatedDefinitionHash" AutomatedReasoningPolicyVersion
Value Text
newValue, Maybe [Tag]
()
Value Text
haddock_workaround_ :: ()
policyArn :: Value Text
tags :: Maybe [Tag]
haddock_workaround_ :: ()
policyArn :: Value Text
tags :: Maybe [Tag]
..}
instance Property "PolicyArn" AutomatedReasoningPolicyVersion where
type PropertyType "PolicyArn" AutomatedReasoningPolicyVersion = Value Prelude.Text
set :: PropertyType "PolicyArn" AutomatedReasoningPolicyVersion
-> AutomatedReasoningPolicyVersion
-> AutomatedReasoningPolicyVersion
set PropertyType "PolicyArn" AutomatedReasoningPolicyVersion
newValue AutomatedReasoningPolicyVersion {Maybe [Tag]
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: AutomatedReasoningPolicyVersion -> ()
lastUpdatedDefinitionHash :: AutomatedReasoningPolicyVersion -> Maybe (Value Text)
policyArn :: AutomatedReasoningPolicyVersion -> Value Text
tags :: AutomatedReasoningPolicyVersion -> Maybe [Tag]
haddock_workaround_ :: ()
lastUpdatedDefinitionHash :: Maybe (Value Text)
policyArn :: Value Text
tags :: Maybe [Tag]
..}
= AutomatedReasoningPolicyVersion {policyArn :: Value Text
policyArn = PropertyType "PolicyArn" AutomatedReasoningPolicyVersion
Value Text
newValue, Maybe [Tag]
Maybe (Value Text)
()
haddock_workaround_ :: ()
lastUpdatedDefinitionHash :: Maybe (Value Text)
tags :: Maybe [Tag]
haddock_workaround_ :: ()
lastUpdatedDefinitionHash :: Maybe (Value Text)
tags :: Maybe [Tag]
..}
instance Property "Tags" AutomatedReasoningPolicyVersion where
type PropertyType "Tags" AutomatedReasoningPolicyVersion = [Tag]
set :: PropertyType "Tags" AutomatedReasoningPolicyVersion
-> AutomatedReasoningPolicyVersion
-> AutomatedReasoningPolicyVersion
set PropertyType "Tags" AutomatedReasoningPolicyVersion
newValue AutomatedReasoningPolicyVersion {Maybe [Tag]
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: AutomatedReasoningPolicyVersion -> ()
lastUpdatedDefinitionHash :: AutomatedReasoningPolicyVersion -> Maybe (Value Text)
policyArn :: AutomatedReasoningPolicyVersion -> Value Text
tags :: AutomatedReasoningPolicyVersion -> Maybe [Tag]
haddock_workaround_ :: ()
lastUpdatedDefinitionHash :: Maybe (Value Text)
policyArn :: Value Text
tags :: Maybe [Tag]
..}
= AutomatedReasoningPolicyVersion
{tags :: Maybe [Tag]
tags = [Tag] -> Maybe [Tag]
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure [Tag]
PropertyType "Tags" AutomatedReasoningPolicyVersion
newValue, Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
lastUpdatedDefinitionHash :: Maybe (Value Text)
policyArn :: Value Text
haddock_workaround_ :: ()
lastUpdatedDefinitionHash :: Maybe (Value Text)
policyArn :: Value Text
..}