module Stratosphere.BedrockAgentCore.Memory.TimeBasedTriggerInputProperty (
TimeBasedTriggerInputProperty(..), mkTimeBasedTriggerInputProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data TimeBasedTriggerInputProperty
=
TimeBasedTriggerInputProperty {TimeBasedTriggerInputProperty -> ()
haddock_workaround_ :: (),
TimeBasedTriggerInputProperty -> Maybe (Value Integer)
idleSessionTimeout :: (Prelude.Maybe (Value Prelude.Integer))}
deriving stock (TimeBasedTriggerInputProperty
-> TimeBasedTriggerInputProperty -> Bool
(TimeBasedTriggerInputProperty
-> TimeBasedTriggerInputProperty -> Bool)
-> (TimeBasedTriggerInputProperty
-> TimeBasedTriggerInputProperty -> Bool)
-> Eq TimeBasedTriggerInputProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: TimeBasedTriggerInputProperty
-> TimeBasedTriggerInputProperty -> Bool
== :: TimeBasedTriggerInputProperty
-> TimeBasedTriggerInputProperty -> Bool
$c/= :: TimeBasedTriggerInputProperty
-> TimeBasedTriggerInputProperty -> Bool
/= :: TimeBasedTriggerInputProperty
-> TimeBasedTriggerInputProperty -> Bool
Prelude.Eq, Int -> TimeBasedTriggerInputProperty -> ShowS
[TimeBasedTriggerInputProperty] -> ShowS
TimeBasedTriggerInputProperty -> String
(Int -> TimeBasedTriggerInputProperty -> ShowS)
-> (TimeBasedTriggerInputProperty -> String)
-> ([TimeBasedTriggerInputProperty] -> ShowS)
-> Show TimeBasedTriggerInputProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> TimeBasedTriggerInputProperty -> ShowS
showsPrec :: Int -> TimeBasedTriggerInputProperty -> ShowS
$cshow :: TimeBasedTriggerInputProperty -> String
show :: TimeBasedTriggerInputProperty -> String
$cshowList :: [TimeBasedTriggerInputProperty] -> ShowS
showList :: [TimeBasedTriggerInputProperty] -> ShowS
Prelude.Show)
mkTimeBasedTriggerInputProperty :: TimeBasedTriggerInputProperty
mkTimeBasedTriggerInputProperty :: TimeBasedTriggerInputProperty
mkTimeBasedTriggerInputProperty
= TimeBasedTriggerInputProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), idleSessionTimeout :: Maybe (Value Integer)
idleSessionTimeout = Maybe (Value Integer)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties TimeBasedTriggerInputProperty where
toResourceProperties :: TimeBasedTriggerInputProperty -> ResourceProperties
toResourceProperties TimeBasedTriggerInputProperty {Maybe (Value Integer)
()
haddock_workaround_ :: TimeBasedTriggerInputProperty -> ()
idleSessionTimeout :: TimeBasedTriggerInputProperty -> Maybe (Value Integer)
haddock_workaround_ :: ()
idleSessionTimeout :: Maybe (Value Integer)
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::BedrockAgentCore::Memory.TimeBasedTriggerInput",
supportsTags :: Bool
supportsTags = Bool
Prelude.False,
properties :: Object
properties = [Item Object] -> Object
forall l. IsList l => [Item l] -> l
Prelude.fromList
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[Key -> Value Integer -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"IdleSessionTimeout" (Value Integer -> (Key, Value))
-> Maybe (Value Integer) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Integer)
idleSessionTimeout])}
instance JSON.ToJSON TimeBasedTriggerInputProperty where
toJSON :: TimeBasedTriggerInputProperty -> Value
toJSON TimeBasedTriggerInputProperty {Maybe (Value Integer)
()
haddock_workaround_ :: TimeBasedTriggerInputProperty -> ()
idleSessionTimeout :: TimeBasedTriggerInputProperty -> Maybe (Value Integer)
haddock_workaround_ :: ()
idleSessionTimeout :: Maybe (Value Integer)
..}
= [(Key, Value)] -> Value
JSON.object
([Item [(Key, Value)]] -> [(Key, Value)]
forall l. IsList l => [Item l] -> l
Prelude.fromList
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[Key -> Value Integer -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"IdleSessionTimeout" (Value Integer -> (Key, Value))
-> Maybe (Value Integer) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Integer)
idleSessionTimeout]))
instance Property "IdleSessionTimeout" TimeBasedTriggerInputProperty where
type PropertyType "IdleSessionTimeout" TimeBasedTriggerInputProperty = Value Prelude.Integer
set :: PropertyType "IdleSessionTimeout" TimeBasedTriggerInputProperty
-> TimeBasedTriggerInputProperty -> TimeBasedTriggerInputProperty
set PropertyType "IdleSessionTimeout" TimeBasedTriggerInputProperty
newValue TimeBasedTriggerInputProperty {Maybe (Value Integer)
()
haddock_workaround_ :: TimeBasedTriggerInputProperty -> ()
idleSessionTimeout :: TimeBasedTriggerInputProperty -> Maybe (Value Integer)
haddock_workaround_ :: ()
idleSessionTimeout :: Maybe (Value Integer)
..}
= TimeBasedTriggerInputProperty
{idleSessionTimeout :: Maybe (Value Integer)
idleSessionTimeout = Value Integer -> Maybe (Value Integer)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "IdleSessionTimeout" TimeBasedTriggerInputProperty
Value Integer
newValue, ()
haddock_workaround_ :: ()
haddock_workaround_ :: ()
..}