module Stratosphere.Bedrock.Agent.MemoryConfigurationProperty (
module Exports, MemoryConfigurationProperty(..),
mkMemoryConfigurationProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.Bedrock.Agent.SessionSummaryConfigurationProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Value
data MemoryConfigurationProperty
=
MemoryConfigurationProperty {MemoryConfigurationProperty -> ()
haddock_workaround_ :: (),
MemoryConfigurationProperty -> Maybe (ValueList Text)
enabledMemoryTypes :: (Prelude.Maybe (ValueList Prelude.Text)),
MemoryConfigurationProperty
-> Maybe SessionSummaryConfigurationProperty
sessionSummaryConfiguration :: (Prelude.Maybe SessionSummaryConfigurationProperty),
MemoryConfigurationProperty -> Maybe (Value Double)
storageDays :: (Prelude.Maybe (Value Prelude.Double))}
deriving stock (MemoryConfigurationProperty -> MemoryConfigurationProperty -> Bool
(MemoryConfigurationProperty
-> MemoryConfigurationProperty -> Bool)
-> (MemoryConfigurationProperty
-> MemoryConfigurationProperty -> Bool)
-> Eq MemoryConfigurationProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: MemoryConfigurationProperty -> MemoryConfigurationProperty -> Bool
== :: MemoryConfigurationProperty -> MemoryConfigurationProperty -> Bool
$c/= :: MemoryConfigurationProperty -> MemoryConfigurationProperty -> Bool
/= :: MemoryConfigurationProperty -> MemoryConfigurationProperty -> Bool
Prelude.Eq, Int -> MemoryConfigurationProperty -> ShowS
[MemoryConfigurationProperty] -> ShowS
MemoryConfigurationProperty -> String
(Int -> MemoryConfigurationProperty -> ShowS)
-> (MemoryConfigurationProperty -> String)
-> ([MemoryConfigurationProperty] -> ShowS)
-> Show MemoryConfigurationProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> MemoryConfigurationProperty -> ShowS
showsPrec :: Int -> MemoryConfigurationProperty -> ShowS
$cshow :: MemoryConfigurationProperty -> String
show :: MemoryConfigurationProperty -> String
$cshowList :: [MemoryConfigurationProperty] -> ShowS
showList :: [MemoryConfigurationProperty] -> ShowS
Prelude.Show)
mkMemoryConfigurationProperty :: MemoryConfigurationProperty
mkMemoryConfigurationProperty :: MemoryConfigurationProperty
mkMemoryConfigurationProperty
= MemoryConfigurationProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), enabledMemoryTypes :: Maybe (ValueList Text)
enabledMemoryTypes = Maybe (ValueList Text)
forall a. Maybe a
Prelude.Nothing,
sessionSummaryConfiguration :: Maybe SessionSummaryConfigurationProperty
sessionSummaryConfiguration = Maybe SessionSummaryConfigurationProperty
forall a. Maybe a
Prelude.Nothing,
storageDays :: Maybe (Value Double)
storageDays = Maybe (Value Double)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties MemoryConfigurationProperty where
toResourceProperties :: MemoryConfigurationProperty -> ResourceProperties
toResourceProperties MemoryConfigurationProperty {Maybe (ValueList Text)
Maybe (Value Double)
Maybe SessionSummaryConfigurationProperty
()
haddock_workaround_ :: MemoryConfigurationProperty -> ()
enabledMemoryTypes :: MemoryConfigurationProperty -> Maybe (ValueList Text)
sessionSummaryConfiguration :: MemoryConfigurationProperty
-> Maybe SessionSummaryConfigurationProperty
storageDays :: MemoryConfigurationProperty -> Maybe (Value Double)
haddock_workaround_ :: ()
enabledMemoryTypes :: Maybe (ValueList Text)
sessionSummaryConfiguration :: Maybe SessionSummaryConfigurationProperty
storageDays :: Maybe (Value Double)
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::Bedrock::Agent.MemoryConfiguration",
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 -> ValueList 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
"EnabledMemoryTypes" (ValueList Text -> (Key, Value))
-> Maybe (ValueList Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (ValueList Text)
enabledMemoryTypes,
Key -> SessionSummaryConfigurationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"SessionSummaryConfiguration"
(SessionSummaryConfigurationProperty -> (Key, Value))
-> Maybe SessionSummaryConfigurationProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe SessionSummaryConfigurationProperty
sessionSummaryConfiguration,
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
"StorageDays" (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)
storageDays])}
instance JSON.ToJSON MemoryConfigurationProperty where
toJSON :: MemoryConfigurationProperty -> Value
toJSON MemoryConfigurationProperty {Maybe (ValueList Text)
Maybe (Value Double)
Maybe SessionSummaryConfigurationProperty
()
haddock_workaround_ :: MemoryConfigurationProperty -> ()
enabledMemoryTypes :: MemoryConfigurationProperty -> Maybe (ValueList Text)
sessionSummaryConfiguration :: MemoryConfigurationProperty
-> Maybe SessionSummaryConfigurationProperty
storageDays :: MemoryConfigurationProperty -> Maybe (Value Double)
haddock_workaround_ :: ()
enabledMemoryTypes :: Maybe (ValueList Text)
sessionSummaryConfiguration :: Maybe SessionSummaryConfigurationProperty
storageDays :: Maybe (Value Double)
..}
= [(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 -> ValueList 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
"EnabledMemoryTypes" (ValueList Text -> (Key, Value))
-> Maybe (ValueList Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (ValueList Text)
enabledMemoryTypes,
Key -> SessionSummaryConfigurationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"SessionSummaryConfiguration"
(SessionSummaryConfigurationProperty -> (Key, Value))
-> Maybe SessionSummaryConfigurationProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe SessionSummaryConfigurationProperty
sessionSummaryConfiguration,
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
"StorageDays" (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)
storageDays]))
instance Property "EnabledMemoryTypes" MemoryConfigurationProperty where
type PropertyType "EnabledMemoryTypes" MemoryConfigurationProperty = ValueList Prelude.Text
set :: PropertyType "EnabledMemoryTypes" MemoryConfigurationProperty
-> MemoryConfigurationProperty -> MemoryConfigurationProperty
set PropertyType "EnabledMemoryTypes" MemoryConfigurationProperty
newValue MemoryConfigurationProperty {Maybe (ValueList Text)
Maybe (Value Double)
Maybe SessionSummaryConfigurationProperty
()
haddock_workaround_ :: MemoryConfigurationProperty -> ()
enabledMemoryTypes :: MemoryConfigurationProperty -> Maybe (ValueList Text)
sessionSummaryConfiguration :: MemoryConfigurationProperty
-> Maybe SessionSummaryConfigurationProperty
storageDays :: MemoryConfigurationProperty -> Maybe (Value Double)
haddock_workaround_ :: ()
enabledMemoryTypes :: Maybe (ValueList Text)
sessionSummaryConfiguration :: Maybe SessionSummaryConfigurationProperty
storageDays :: Maybe (Value Double)
..}
= MemoryConfigurationProperty
{enabledMemoryTypes :: Maybe (ValueList Text)
enabledMemoryTypes = ValueList Text -> Maybe (ValueList Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "EnabledMemoryTypes" MemoryConfigurationProperty
ValueList Text
newValue, Maybe (Value Double)
Maybe SessionSummaryConfigurationProperty
()
haddock_workaround_ :: ()
sessionSummaryConfiguration :: Maybe SessionSummaryConfigurationProperty
storageDays :: Maybe (Value Double)
haddock_workaround_ :: ()
sessionSummaryConfiguration :: Maybe SessionSummaryConfigurationProperty
storageDays :: Maybe (Value Double)
..}
instance Property "SessionSummaryConfiguration" MemoryConfigurationProperty where
type PropertyType "SessionSummaryConfiguration" MemoryConfigurationProperty = SessionSummaryConfigurationProperty
set :: PropertyType
"SessionSummaryConfiguration" MemoryConfigurationProperty
-> MemoryConfigurationProperty -> MemoryConfigurationProperty
set PropertyType
"SessionSummaryConfiguration" MemoryConfigurationProperty
newValue MemoryConfigurationProperty {Maybe (ValueList Text)
Maybe (Value Double)
Maybe SessionSummaryConfigurationProperty
()
haddock_workaround_ :: MemoryConfigurationProperty -> ()
enabledMemoryTypes :: MemoryConfigurationProperty -> Maybe (ValueList Text)
sessionSummaryConfiguration :: MemoryConfigurationProperty
-> Maybe SessionSummaryConfigurationProperty
storageDays :: MemoryConfigurationProperty -> Maybe (Value Double)
haddock_workaround_ :: ()
enabledMemoryTypes :: Maybe (ValueList Text)
sessionSummaryConfiguration :: Maybe SessionSummaryConfigurationProperty
storageDays :: Maybe (Value Double)
..}
= MemoryConfigurationProperty
{sessionSummaryConfiguration :: Maybe SessionSummaryConfigurationProperty
sessionSummaryConfiguration = SessionSummaryConfigurationProperty
-> Maybe SessionSummaryConfigurationProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
"SessionSummaryConfiguration" MemoryConfigurationProperty
SessionSummaryConfigurationProperty
newValue, Maybe (ValueList Text)
Maybe (Value Double)
()
haddock_workaround_ :: ()
enabledMemoryTypes :: Maybe (ValueList Text)
storageDays :: Maybe (Value Double)
haddock_workaround_ :: ()
enabledMemoryTypes :: Maybe (ValueList Text)
storageDays :: Maybe (Value Double)
..}
instance Property "StorageDays" MemoryConfigurationProperty where
type PropertyType "StorageDays" MemoryConfigurationProperty = Value Prelude.Double
set :: PropertyType "StorageDays" MemoryConfigurationProperty
-> MemoryConfigurationProperty -> MemoryConfigurationProperty
set PropertyType "StorageDays" MemoryConfigurationProperty
newValue MemoryConfigurationProperty {Maybe (ValueList Text)
Maybe (Value Double)
Maybe SessionSummaryConfigurationProperty
()
haddock_workaround_ :: MemoryConfigurationProperty -> ()
enabledMemoryTypes :: MemoryConfigurationProperty -> Maybe (ValueList Text)
sessionSummaryConfiguration :: MemoryConfigurationProperty
-> Maybe SessionSummaryConfigurationProperty
storageDays :: MemoryConfigurationProperty -> Maybe (Value Double)
haddock_workaround_ :: ()
enabledMemoryTypes :: Maybe (ValueList Text)
sessionSummaryConfiguration :: Maybe SessionSummaryConfigurationProperty
storageDays :: Maybe (Value Double)
..}
= MemoryConfigurationProperty
{storageDays :: Maybe (Value Double)
storageDays = Value Double -> Maybe (Value Double)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "StorageDays" MemoryConfigurationProperty
Value Double
newValue, Maybe (ValueList Text)
Maybe SessionSummaryConfigurationProperty
()
haddock_workaround_ :: ()
enabledMemoryTypes :: Maybe (ValueList Text)
sessionSummaryConfiguration :: Maybe SessionSummaryConfigurationProperty
haddock_workaround_ :: ()
enabledMemoryTypes :: Maybe (ValueList Text)
sessionSummaryConfiguration :: Maybe SessionSummaryConfigurationProperty
..}