module Stratosphere.Wisdom.AIPromptVersion (
AIPromptVersion(..), mkAIPromptVersion
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data AIPromptVersion
=
AIPromptVersion {AIPromptVersion -> ()
haddock_workaround_ :: (),
AIPromptVersion -> Value Text
aIPromptId :: (Value Prelude.Text),
AIPromptVersion -> Value Text
assistantId :: (Value Prelude.Text),
AIPromptVersion -> Maybe (Value Double)
modifiedTimeSeconds :: (Prelude.Maybe (Value Prelude.Double))}
deriving stock (AIPromptVersion -> AIPromptVersion -> Bool
(AIPromptVersion -> AIPromptVersion -> Bool)
-> (AIPromptVersion -> AIPromptVersion -> Bool)
-> Eq AIPromptVersion
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: AIPromptVersion -> AIPromptVersion -> Bool
== :: AIPromptVersion -> AIPromptVersion -> Bool
$c/= :: AIPromptVersion -> AIPromptVersion -> Bool
/= :: AIPromptVersion -> AIPromptVersion -> Bool
Prelude.Eq, Int -> AIPromptVersion -> ShowS
[AIPromptVersion] -> ShowS
AIPromptVersion -> String
(Int -> AIPromptVersion -> ShowS)
-> (AIPromptVersion -> String)
-> ([AIPromptVersion] -> ShowS)
-> Show AIPromptVersion
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> AIPromptVersion -> ShowS
showsPrec :: Int -> AIPromptVersion -> ShowS
$cshow :: AIPromptVersion -> String
show :: AIPromptVersion -> String
$cshowList :: [AIPromptVersion] -> ShowS
showList :: [AIPromptVersion] -> ShowS
Prelude.Show)
mkAIPromptVersion ::
Value Prelude.Text -> Value Prelude.Text -> AIPromptVersion
mkAIPromptVersion :: Value Text -> Value Text -> AIPromptVersion
mkAIPromptVersion Value Text
aIPromptId Value Text
assistantId
= AIPromptVersion
{haddock_workaround_ :: ()
haddock_workaround_ = (), aIPromptId :: Value Text
aIPromptId = Value Text
aIPromptId,
assistantId :: Value Text
assistantId = Value Text
assistantId, modifiedTimeSeconds :: Maybe (Value Double)
modifiedTimeSeconds = Maybe (Value Double)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties AIPromptVersion where
toResourceProperties :: AIPromptVersion -> ResourceProperties
toResourceProperties AIPromptVersion {Maybe (Value Double)
()
Value Text
haddock_workaround_ :: AIPromptVersion -> ()
aIPromptId :: AIPromptVersion -> Value Text
assistantId :: AIPromptVersion -> Value Text
modifiedTimeSeconds :: AIPromptVersion -> Maybe (Value Double)
haddock_workaround_ :: ()
aIPromptId :: Value Text
assistantId :: Value Text
modifiedTimeSeconds :: Maybe (Value Double)
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::Wisdom::AIPromptVersion",
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
"AIPromptId" 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
aIPromptId,
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 AIPromptVersion where
toJSON :: AIPromptVersion -> Value
toJSON AIPromptVersion {Maybe (Value Double)
()
Value Text
haddock_workaround_ :: AIPromptVersion -> ()
aIPromptId :: AIPromptVersion -> Value Text
assistantId :: AIPromptVersion -> Value Text
modifiedTimeSeconds :: AIPromptVersion -> Maybe (Value Double)
haddock_workaround_ :: ()
aIPromptId :: 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
"AIPromptId" 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
aIPromptId,
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 "AIPromptId" AIPromptVersion where
type PropertyType "AIPromptId" AIPromptVersion = Value Prelude.Text
set :: PropertyType "AIPromptId" AIPromptVersion
-> AIPromptVersion -> AIPromptVersion
set PropertyType "AIPromptId" AIPromptVersion
newValue AIPromptVersion {Maybe (Value Double)
()
Value Text
haddock_workaround_ :: AIPromptVersion -> ()
aIPromptId :: AIPromptVersion -> Value Text
assistantId :: AIPromptVersion -> Value Text
modifiedTimeSeconds :: AIPromptVersion -> Maybe (Value Double)
haddock_workaround_ :: ()
aIPromptId :: Value Text
assistantId :: Value Text
modifiedTimeSeconds :: Maybe (Value Double)
..}
= AIPromptVersion {aIPromptId :: Value Text
aIPromptId = PropertyType "AIPromptId" AIPromptVersion
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" AIPromptVersion where
type PropertyType "AssistantId" AIPromptVersion = Value Prelude.Text
set :: PropertyType "AssistantId" AIPromptVersion
-> AIPromptVersion -> AIPromptVersion
set PropertyType "AssistantId" AIPromptVersion
newValue AIPromptVersion {Maybe (Value Double)
()
Value Text
haddock_workaround_ :: AIPromptVersion -> ()
aIPromptId :: AIPromptVersion -> Value Text
assistantId :: AIPromptVersion -> Value Text
modifiedTimeSeconds :: AIPromptVersion -> Maybe (Value Double)
haddock_workaround_ :: ()
aIPromptId :: Value Text
assistantId :: Value Text
modifiedTimeSeconds :: Maybe (Value Double)
..}
= AIPromptVersion {assistantId :: Value Text
assistantId = PropertyType "AssistantId" AIPromptVersion
Value Text
newValue, Maybe (Value Double)
()
Value Text
haddock_workaround_ :: ()
aIPromptId :: Value Text
modifiedTimeSeconds :: Maybe (Value Double)
haddock_workaround_ :: ()
aIPromptId :: Value Text
modifiedTimeSeconds :: Maybe (Value Double)
..}
instance Property "ModifiedTimeSeconds" AIPromptVersion where
type PropertyType "ModifiedTimeSeconds" AIPromptVersion = Value Prelude.Double
set :: PropertyType "ModifiedTimeSeconds" AIPromptVersion
-> AIPromptVersion -> AIPromptVersion
set PropertyType "ModifiedTimeSeconds" AIPromptVersion
newValue AIPromptVersion {Maybe (Value Double)
()
Value Text
haddock_workaround_ :: AIPromptVersion -> ()
aIPromptId :: AIPromptVersion -> Value Text
assistantId :: AIPromptVersion -> Value Text
modifiedTimeSeconds :: AIPromptVersion -> Maybe (Value Double)
haddock_workaround_ :: ()
aIPromptId :: Value Text
assistantId :: Value Text
modifiedTimeSeconds :: Maybe (Value Double)
..}
= AIPromptVersion {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" AIPromptVersion
Value Double
newValue, ()
Value Text
haddock_workaround_ :: ()
aIPromptId :: Value Text
assistantId :: Value Text
haddock_workaround_ :: ()
aIPromptId :: Value Text
assistantId :: Value Text
..}