module Stratosphere.Wisdom.AIGuardrailVersion (
        AIGuardrailVersion(..), mkAIGuardrailVersion
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data AIGuardrailVersion
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wisdom-aiguardrailversion.html>
    AIGuardrailVersion {AIGuardrailVersion -> ()
haddock_workaround_ :: (),
                        -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wisdom-aiguardrailversion.html#cfn-wisdom-aiguardrailversion-aiguardrailid>
                        AIGuardrailVersion -> Value Text
aIGuardrailId :: (Value Prelude.Text),
                        -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wisdom-aiguardrailversion.html#cfn-wisdom-aiguardrailversion-assistantid>
                        AIGuardrailVersion -> Value Text
assistantId :: (Value Prelude.Text),
                        -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wisdom-aiguardrailversion.html#cfn-wisdom-aiguardrailversion-modifiedtimeseconds>
                        AIGuardrailVersion -> Maybe (Value Double)
modifiedTimeSeconds :: (Prelude.Maybe (Value Prelude.Double))}
  deriving stock (AIGuardrailVersion -> AIGuardrailVersion -> Bool
(AIGuardrailVersion -> AIGuardrailVersion -> Bool)
-> (AIGuardrailVersion -> AIGuardrailVersion -> Bool)
-> Eq AIGuardrailVersion
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: AIGuardrailVersion -> AIGuardrailVersion -> Bool
== :: AIGuardrailVersion -> AIGuardrailVersion -> Bool
$c/= :: AIGuardrailVersion -> AIGuardrailVersion -> Bool
/= :: AIGuardrailVersion -> AIGuardrailVersion -> Bool
Prelude.Eq, Int -> AIGuardrailVersion -> ShowS
[AIGuardrailVersion] -> ShowS
AIGuardrailVersion -> String
(Int -> AIGuardrailVersion -> ShowS)
-> (AIGuardrailVersion -> String)
-> ([AIGuardrailVersion] -> ShowS)
-> Show AIGuardrailVersion
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> AIGuardrailVersion -> ShowS
showsPrec :: Int -> AIGuardrailVersion -> ShowS
$cshow :: AIGuardrailVersion -> String
show :: AIGuardrailVersion -> String
$cshowList :: [AIGuardrailVersion] -> ShowS
showList :: [AIGuardrailVersion] -> ShowS
Prelude.Show)
mkAIGuardrailVersion ::
  Value Prelude.Text -> Value Prelude.Text -> AIGuardrailVersion
mkAIGuardrailVersion :: Value Text -> Value Text -> AIGuardrailVersion
mkAIGuardrailVersion Value Text
aIGuardrailId Value Text
assistantId
  = AIGuardrailVersion
      {haddock_workaround_ :: ()
haddock_workaround_ = (), aIGuardrailId :: Value Text
aIGuardrailId = Value Text
aIGuardrailId,
       assistantId :: Value Text
assistantId = Value Text
assistantId, modifiedTimeSeconds :: Maybe (Value Double)
modifiedTimeSeconds = Maybe (Value Double)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties AIGuardrailVersion where
  toResourceProperties :: AIGuardrailVersion -> ResourceProperties
toResourceProperties AIGuardrailVersion {Maybe (Value Double)
()
Value Text
haddock_workaround_ :: AIGuardrailVersion -> ()
aIGuardrailId :: AIGuardrailVersion -> Value Text
assistantId :: AIGuardrailVersion -> Value Text
modifiedTimeSeconds :: AIGuardrailVersion -> Maybe (Value Double)
haddock_workaround_ :: ()
aIGuardrailId :: Value Text
assistantId :: Value Text
modifiedTimeSeconds :: Maybe (Value Double)
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::Wisdom::AIGuardrailVersion",
         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
"AIGuardrailId" 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
aIGuardrailId,
                            Key
"AssistantId" 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
assistantId]
                           ([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
                              [Key -> Value Double -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"ModifiedTimeSeconds"
                                 (Value Double -> (Key, Value))
-> Maybe (Value Double) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Double)
modifiedTimeSeconds]))}
instance JSON.ToJSON AIGuardrailVersion where
  toJSON :: AIGuardrailVersion -> Value
toJSON AIGuardrailVersion {Maybe (Value Double)
()
Value Text
haddock_workaround_ :: AIGuardrailVersion -> ()
aIGuardrailId :: AIGuardrailVersion -> Value Text
assistantId :: AIGuardrailVersion -> Value Text
modifiedTimeSeconds :: AIGuardrailVersion -> Maybe (Value Double)
haddock_workaround_ :: ()
aIGuardrailId :: Value Text
assistantId :: Value Text
modifiedTimeSeconds :: Maybe (Value Double)
..}
    = [(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
"AIGuardrailId" 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
aIGuardrailId,
               Key
"AssistantId" 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
assistantId]
              ([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
                 [Key -> Value Double -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"ModifiedTimeSeconds"
                    (Value Double -> (Key, Value))
-> Maybe (Value Double) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Double)
modifiedTimeSeconds])))
instance Property "AIGuardrailId" AIGuardrailVersion where
  type PropertyType "AIGuardrailId" AIGuardrailVersion = Value Prelude.Text
  set :: PropertyType "AIGuardrailId" AIGuardrailVersion
-> AIGuardrailVersion -> AIGuardrailVersion
set PropertyType "AIGuardrailId" AIGuardrailVersion
newValue AIGuardrailVersion {Maybe (Value Double)
()
Value Text
haddock_workaround_ :: AIGuardrailVersion -> ()
aIGuardrailId :: AIGuardrailVersion -> Value Text
assistantId :: AIGuardrailVersion -> Value Text
modifiedTimeSeconds :: AIGuardrailVersion -> Maybe (Value Double)
haddock_workaround_ :: ()
aIGuardrailId :: Value Text
assistantId :: Value Text
modifiedTimeSeconds :: Maybe (Value Double)
..}
    = AIGuardrailVersion {aIGuardrailId :: Value Text
aIGuardrailId = PropertyType "AIGuardrailId" AIGuardrailVersion
Value Text
newValue, Maybe (Value Double)
()
Value Text
haddock_workaround_ :: ()
assistantId :: Value Text
modifiedTimeSeconds :: Maybe (Value Double)
haddock_workaround_ :: ()
assistantId :: Value Text
modifiedTimeSeconds :: Maybe (Value Double)
..}
instance Property "AssistantId" AIGuardrailVersion where
  type PropertyType "AssistantId" AIGuardrailVersion = Value Prelude.Text
  set :: PropertyType "AssistantId" AIGuardrailVersion
-> AIGuardrailVersion -> AIGuardrailVersion
set PropertyType "AssistantId" AIGuardrailVersion
newValue AIGuardrailVersion {Maybe (Value Double)
()
Value Text
haddock_workaround_ :: AIGuardrailVersion -> ()
aIGuardrailId :: AIGuardrailVersion -> Value Text
assistantId :: AIGuardrailVersion -> Value Text
modifiedTimeSeconds :: AIGuardrailVersion -> Maybe (Value Double)
haddock_workaround_ :: ()
aIGuardrailId :: Value Text
assistantId :: Value Text
modifiedTimeSeconds :: Maybe (Value Double)
..}
    = AIGuardrailVersion {assistantId :: Value Text
assistantId = PropertyType "AssistantId" AIGuardrailVersion
Value Text
newValue, Maybe (Value Double)
()
Value Text
haddock_workaround_ :: ()
aIGuardrailId :: Value Text
modifiedTimeSeconds :: Maybe (Value Double)
haddock_workaround_ :: ()
aIGuardrailId :: Value Text
modifiedTimeSeconds :: Maybe (Value Double)
..}
instance Property "ModifiedTimeSeconds" AIGuardrailVersion where
  type PropertyType "ModifiedTimeSeconds" AIGuardrailVersion = Value Prelude.Double
  set :: PropertyType "ModifiedTimeSeconds" AIGuardrailVersion
-> AIGuardrailVersion -> AIGuardrailVersion
set PropertyType "ModifiedTimeSeconds" AIGuardrailVersion
newValue AIGuardrailVersion {Maybe (Value Double)
()
Value Text
haddock_workaround_ :: AIGuardrailVersion -> ()
aIGuardrailId :: AIGuardrailVersion -> Value Text
assistantId :: AIGuardrailVersion -> Value Text
modifiedTimeSeconds :: AIGuardrailVersion -> Maybe (Value Double)
haddock_workaround_ :: ()
aIGuardrailId :: Value Text
assistantId :: Value Text
modifiedTimeSeconds :: Maybe (Value Double)
..}
    = AIGuardrailVersion
        {modifiedTimeSeconds :: Maybe (Value Double)
modifiedTimeSeconds = Value Double -> Maybe (Value Double)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "ModifiedTimeSeconds" AIGuardrailVersion
Value Double
newValue, ()
Value Text
haddock_workaround_ :: ()
aIGuardrailId :: Value Text
assistantId :: Value Text
haddock_workaround_ :: ()
aIGuardrailId :: Value Text
assistantId :: Value Text
..}