module Stratosphere.BedrockAgentCore.Runtime.AgentRuntimeArtifactProperty (
module Exports, AgentRuntimeArtifactProperty(..),
mkAgentRuntimeArtifactProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.BedrockAgentCore.Runtime.ContainerConfigurationProperty as Exports
import Stratosphere.ResourceProperties
data AgentRuntimeArtifactProperty
=
AgentRuntimeArtifactProperty {AgentRuntimeArtifactProperty -> ()
haddock_workaround_ :: (),
AgentRuntimeArtifactProperty
-> Maybe ContainerConfigurationProperty
containerConfiguration :: (Prelude.Maybe ContainerConfigurationProperty)}
deriving stock (AgentRuntimeArtifactProperty
-> AgentRuntimeArtifactProperty -> Bool
(AgentRuntimeArtifactProperty
-> AgentRuntimeArtifactProperty -> Bool)
-> (AgentRuntimeArtifactProperty
-> AgentRuntimeArtifactProperty -> Bool)
-> Eq AgentRuntimeArtifactProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: AgentRuntimeArtifactProperty
-> AgentRuntimeArtifactProperty -> Bool
== :: AgentRuntimeArtifactProperty
-> AgentRuntimeArtifactProperty -> Bool
$c/= :: AgentRuntimeArtifactProperty
-> AgentRuntimeArtifactProperty -> Bool
/= :: AgentRuntimeArtifactProperty
-> AgentRuntimeArtifactProperty -> Bool
Prelude.Eq, Int -> AgentRuntimeArtifactProperty -> ShowS
[AgentRuntimeArtifactProperty] -> ShowS
AgentRuntimeArtifactProperty -> String
(Int -> AgentRuntimeArtifactProperty -> ShowS)
-> (AgentRuntimeArtifactProperty -> String)
-> ([AgentRuntimeArtifactProperty] -> ShowS)
-> Show AgentRuntimeArtifactProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> AgentRuntimeArtifactProperty -> ShowS
showsPrec :: Int -> AgentRuntimeArtifactProperty -> ShowS
$cshow :: AgentRuntimeArtifactProperty -> String
show :: AgentRuntimeArtifactProperty -> String
$cshowList :: [AgentRuntimeArtifactProperty] -> ShowS
showList :: [AgentRuntimeArtifactProperty] -> ShowS
Prelude.Show)
mkAgentRuntimeArtifactProperty :: AgentRuntimeArtifactProperty
mkAgentRuntimeArtifactProperty :: AgentRuntimeArtifactProperty
mkAgentRuntimeArtifactProperty
= AgentRuntimeArtifactProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (),
containerConfiguration :: Maybe ContainerConfigurationProperty
containerConfiguration = Maybe ContainerConfigurationProperty
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties AgentRuntimeArtifactProperty where
toResourceProperties :: AgentRuntimeArtifactProperty -> ResourceProperties
toResourceProperties AgentRuntimeArtifactProperty {Maybe ContainerConfigurationProperty
()
haddock_workaround_ :: AgentRuntimeArtifactProperty -> ()
containerConfiguration :: AgentRuntimeArtifactProperty
-> Maybe ContainerConfigurationProperty
haddock_workaround_ :: ()
containerConfiguration :: Maybe ContainerConfigurationProperty
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::BedrockAgentCore::Runtime.AgentRuntimeArtifact",
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 -> ContainerConfigurationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"ContainerConfiguration"
(ContainerConfigurationProperty -> (Key, Value))
-> Maybe ContainerConfigurationProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe ContainerConfigurationProperty
containerConfiguration])}
instance JSON.ToJSON AgentRuntimeArtifactProperty where
toJSON :: AgentRuntimeArtifactProperty -> Value
toJSON AgentRuntimeArtifactProperty {Maybe ContainerConfigurationProperty
()
haddock_workaround_ :: AgentRuntimeArtifactProperty -> ()
containerConfiguration :: AgentRuntimeArtifactProperty
-> Maybe ContainerConfigurationProperty
haddock_workaround_ :: ()
containerConfiguration :: Maybe ContainerConfigurationProperty
..}
= [(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 -> ContainerConfigurationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"ContainerConfiguration"
(ContainerConfigurationProperty -> (Key, Value))
-> Maybe ContainerConfigurationProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe ContainerConfigurationProperty
containerConfiguration]))
instance Property "ContainerConfiguration" AgentRuntimeArtifactProperty where
type PropertyType "ContainerConfiguration" AgentRuntimeArtifactProperty = ContainerConfigurationProperty
set :: PropertyType "ContainerConfiguration" AgentRuntimeArtifactProperty
-> AgentRuntimeArtifactProperty -> AgentRuntimeArtifactProperty
set PropertyType "ContainerConfiguration" AgentRuntimeArtifactProperty
newValue AgentRuntimeArtifactProperty {Maybe ContainerConfigurationProperty
()
haddock_workaround_ :: AgentRuntimeArtifactProperty -> ()
containerConfiguration :: AgentRuntimeArtifactProperty
-> Maybe ContainerConfigurationProperty
haddock_workaround_ :: ()
containerConfiguration :: Maybe ContainerConfigurationProperty
..}
= AgentRuntimeArtifactProperty
{containerConfiguration :: Maybe ContainerConfigurationProperty
containerConfiguration = ContainerConfigurationProperty
-> Maybe ContainerConfigurationProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "ContainerConfiguration" AgentRuntimeArtifactProperty
ContainerConfigurationProperty
newValue, ()
haddock_workaround_ :: ()
haddock_workaround_ :: ()
..}