module Stratosphere.BedrockAgentCore.Memory.InvocationConfigurationInputProperty (
InvocationConfigurationInputProperty(..),
mkInvocationConfigurationInputProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data InvocationConfigurationInputProperty
=
InvocationConfigurationInputProperty {InvocationConfigurationInputProperty -> ()
haddock_workaround_ :: (),
InvocationConfigurationInputProperty -> Maybe (Value Text)
payloadDeliveryBucketName :: (Prelude.Maybe (Value Prelude.Text)),
InvocationConfigurationInputProperty -> Maybe (Value Text)
topicArn :: (Prelude.Maybe (Value Prelude.Text))}
deriving stock (InvocationConfigurationInputProperty
-> InvocationConfigurationInputProperty -> Bool
(InvocationConfigurationInputProperty
-> InvocationConfigurationInputProperty -> Bool)
-> (InvocationConfigurationInputProperty
-> InvocationConfigurationInputProperty -> Bool)
-> Eq InvocationConfigurationInputProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: InvocationConfigurationInputProperty
-> InvocationConfigurationInputProperty -> Bool
== :: InvocationConfigurationInputProperty
-> InvocationConfigurationInputProperty -> Bool
$c/= :: InvocationConfigurationInputProperty
-> InvocationConfigurationInputProperty -> Bool
/= :: InvocationConfigurationInputProperty
-> InvocationConfigurationInputProperty -> Bool
Prelude.Eq, Int -> InvocationConfigurationInputProperty -> ShowS
[InvocationConfigurationInputProperty] -> ShowS
InvocationConfigurationInputProperty -> String
(Int -> InvocationConfigurationInputProperty -> ShowS)
-> (InvocationConfigurationInputProperty -> String)
-> ([InvocationConfigurationInputProperty] -> ShowS)
-> Show InvocationConfigurationInputProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> InvocationConfigurationInputProperty -> ShowS
showsPrec :: Int -> InvocationConfigurationInputProperty -> ShowS
$cshow :: InvocationConfigurationInputProperty -> String
show :: InvocationConfigurationInputProperty -> String
$cshowList :: [InvocationConfigurationInputProperty] -> ShowS
showList :: [InvocationConfigurationInputProperty] -> ShowS
Prelude.Show)
mkInvocationConfigurationInputProperty ::
InvocationConfigurationInputProperty
mkInvocationConfigurationInputProperty :: InvocationConfigurationInputProperty
mkInvocationConfigurationInputProperty
= InvocationConfigurationInputProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (),
payloadDeliveryBucketName :: Maybe (Value Text)
payloadDeliveryBucketName = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
topicArn :: Maybe (Value Text)
topicArn = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties InvocationConfigurationInputProperty where
toResourceProperties :: InvocationConfigurationInputProperty -> ResourceProperties
toResourceProperties InvocationConfigurationInputProperty {Maybe (Value Text)
()
haddock_workaround_ :: InvocationConfigurationInputProperty -> ()
payloadDeliveryBucketName :: InvocationConfigurationInputProperty -> Maybe (Value Text)
topicArn :: InvocationConfigurationInputProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
payloadDeliveryBucketName :: Maybe (Value Text)
topicArn :: Maybe (Value Text)
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::BedrockAgentCore::Memory.InvocationConfigurationInput",
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 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
"PayloadDeliveryBucketName"
(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)
payloadDeliveryBucketName,
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
"TopicArn" (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)
topicArn])}
instance JSON.ToJSON InvocationConfigurationInputProperty where
toJSON :: InvocationConfigurationInputProperty -> Value
toJSON InvocationConfigurationInputProperty {Maybe (Value Text)
()
haddock_workaround_ :: InvocationConfigurationInputProperty -> ()
payloadDeliveryBucketName :: InvocationConfigurationInputProperty -> Maybe (Value Text)
topicArn :: InvocationConfigurationInputProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
payloadDeliveryBucketName :: Maybe (Value Text)
topicArn :: Maybe (Value Text)
..}
= [(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 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
"PayloadDeliveryBucketName"
(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)
payloadDeliveryBucketName,
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
"TopicArn" (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)
topicArn]))
instance Property "PayloadDeliveryBucketName" InvocationConfigurationInputProperty where
type PropertyType "PayloadDeliveryBucketName" InvocationConfigurationInputProperty = Value Prelude.Text
set :: PropertyType
"PayloadDeliveryBucketName" InvocationConfigurationInputProperty
-> InvocationConfigurationInputProperty
-> InvocationConfigurationInputProperty
set PropertyType
"PayloadDeliveryBucketName" InvocationConfigurationInputProperty
newValue InvocationConfigurationInputProperty {Maybe (Value Text)
()
haddock_workaround_ :: InvocationConfigurationInputProperty -> ()
payloadDeliveryBucketName :: InvocationConfigurationInputProperty -> Maybe (Value Text)
topicArn :: InvocationConfigurationInputProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
payloadDeliveryBucketName :: Maybe (Value Text)
topicArn :: Maybe (Value Text)
..}
= InvocationConfigurationInputProperty
{payloadDeliveryBucketName :: Maybe (Value Text)
payloadDeliveryBucketName = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
"PayloadDeliveryBucketName" InvocationConfigurationInputProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
topicArn :: Maybe (Value Text)
haddock_workaround_ :: ()
topicArn :: Maybe (Value Text)
..}
instance Property "TopicArn" InvocationConfigurationInputProperty where
type PropertyType "TopicArn" InvocationConfigurationInputProperty = Value Prelude.Text
set :: PropertyType "TopicArn" InvocationConfigurationInputProperty
-> InvocationConfigurationInputProperty
-> InvocationConfigurationInputProperty
set PropertyType "TopicArn" InvocationConfigurationInputProperty
newValue InvocationConfigurationInputProperty {Maybe (Value Text)
()
haddock_workaround_ :: InvocationConfigurationInputProperty -> ()
payloadDeliveryBucketName :: InvocationConfigurationInputProperty -> Maybe (Value Text)
topicArn :: InvocationConfigurationInputProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
payloadDeliveryBucketName :: Maybe (Value Text)
topicArn :: Maybe (Value Text)
..}
= InvocationConfigurationInputProperty
{topicArn :: Maybe (Value Text)
topicArn = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "TopicArn" InvocationConfigurationInputProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
payloadDeliveryBucketName :: Maybe (Value Text)
haddock_workaround_ :: ()
payloadDeliveryBucketName :: Maybe (Value Text)
..}