module Stratosphere.SageMaker.InferenceComponent.InferenceComponentContainerSpecificationProperty (
module Exports,
InferenceComponentContainerSpecificationProperty(..),
mkInferenceComponentContainerSpecificationProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.SageMaker.InferenceComponent.DeployedImageProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Value
data InferenceComponentContainerSpecificationProperty
=
InferenceComponentContainerSpecificationProperty {InferenceComponentContainerSpecificationProperty -> ()
haddock_workaround_ :: (),
InferenceComponentContainerSpecificationProperty
-> Maybe (Value Text)
artifactUrl :: (Prelude.Maybe (Value Prelude.Text)),
InferenceComponentContainerSpecificationProperty
-> Maybe DeployedImageProperty
deployedImage :: (Prelude.Maybe DeployedImageProperty),
InferenceComponentContainerSpecificationProperty
-> Maybe (Map Text (Value Text))
environment :: (Prelude.Maybe (Prelude.Map Prelude.Text (Value Prelude.Text))),
InferenceComponentContainerSpecificationProperty
-> Maybe (Value Text)
image :: (Prelude.Maybe (Value Prelude.Text))}
deriving stock (InferenceComponentContainerSpecificationProperty
-> InferenceComponentContainerSpecificationProperty -> Bool
(InferenceComponentContainerSpecificationProperty
-> InferenceComponentContainerSpecificationProperty -> Bool)
-> (InferenceComponentContainerSpecificationProperty
-> InferenceComponentContainerSpecificationProperty -> Bool)
-> Eq InferenceComponentContainerSpecificationProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: InferenceComponentContainerSpecificationProperty
-> InferenceComponentContainerSpecificationProperty -> Bool
== :: InferenceComponentContainerSpecificationProperty
-> InferenceComponentContainerSpecificationProperty -> Bool
$c/= :: InferenceComponentContainerSpecificationProperty
-> InferenceComponentContainerSpecificationProperty -> Bool
/= :: InferenceComponentContainerSpecificationProperty
-> InferenceComponentContainerSpecificationProperty -> Bool
Prelude.Eq, Int -> InferenceComponentContainerSpecificationProperty -> ShowS
[InferenceComponentContainerSpecificationProperty] -> ShowS
InferenceComponentContainerSpecificationProperty -> String
(Int -> InferenceComponentContainerSpecificationProperty -> ShowS)
-> (InferenceComponentContainerSpecificationProperty -> String)
-> ([InferenceComponentContainerSpecificationProperty] -> ShowS)
-> Show InferenceComponentContainerSpecificationProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> InferenceComponentContainerSpecificationProperty -> ShowS
showsPrec :: Int -> InferenceComponentContainerSpecificationProperty -> ShowS
$cshow :: InferenceComponentContainerSpecificationProperty -> String
show :: InferenceComponentContainerSpecificationProperty -> String
$cshowList :: [InferenceComponentContainerSpecificationProperty] -> ShowS
showList :: [InferenceComponentContainerSpecificationProperty] -> ShowS
Prelude.Show)
mkInferenceComponentContainerSpecificationProperty ::
InferenceComponentContainerSpecificationProperty
mkInferenceComponentContainerSpecificationProperty :: InferenceComponentContainerSpecificationProperty
mkInferenceComponentContainerSpecificationProperty
= InferenceComponentContainerSpecificationProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), artifactUrl :: Maybe (Value Text)
artifactUrl = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
deployedImage :: Maybe DeployedImageProperty
deployedImage = Maybe DeployedImageProperty
forall a. Maybe a
Prelude.Nothing, environment :: Maybe (Map Text (Value Text))
environment = Maybe (Map Text (Value Text))
forall a. Maybe a
Prelude.Nothing,
image :: Maybe (Value Text)
image = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties InferenceComponentContainerSpecificationProperty where
toResourceProperties :: InferenceComponentContainerSpecificationProperty
-> ResourceProperties
toResourceProperties
InferenceComponentContainerSpecificationProperty {Maybe (Map Text (Value Text))
Maybe (Value Text)
Maybe DeployedImageProperty
()
haddock_workaround_ :: InferenceComponentContainerSpecificationProperty -> ()
artifactUrl :: InferenceComponentContainerSpecificationProperty
-> Maybe (Value Text)
deployedImage :: InferenceComponentContainerSpecificationProperty
-> Maybe DeployedImageProperty
environment :: InferenceComponentContainerSpecificationProperty
-> Maybe (Map Text (Value Text))
image :: InferenceComponentContainerSpecificationProperty
-> Maybe (Value Text)
haddock_workaround_ :: ()
artifactUrl :: Maybe (Value Text)
deployedImage :: Maybe DeployedImageProperty
environment :: Maybe (Map Text (Value Text))
image :: Maybe (Value Text)
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::SageMaker::InferenceComponent.InferenceComponentContainerSpecification",
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
"ArtifactUrl" (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)
artifactUrl,
Key -> DeployedImageProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"DeployedImage" (DeployedImageProperty -> (Key, Value))
-> Maybe DeployedImageProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe DeployedImageProperty
deployedImage,
Key -> Map Text (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
"Environment" (Map Text (Value Text) -> (Key, Value))
-> Maybe (Map Text (Value Text)) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Map Text (Value Text))
environment,
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
"Image" (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)
image])}
instance JSON.ToJSON InferenceComponentContainerSpecificationProperty where
toJSON :: InferenceComponentContainerSpecificationProperty -> Value
toJSON InferenceComponentContainerSpecificationProperty {Maybe (Map Text (Value Text))
Maybe (Value Text)
Maybe DeployedImageProperty
()
haddock_workaround_ :: InferenceComponentContainerSpecificationProperty -> ()
artifactUrl :: InferenceComponentContainerSpecificationProperty
-> Maybe (Value Text)
deployedImage :: InferenceComponentContainerSpecificationProperty
-> Maybe DeployedImageProperty
environment :: InferenceComponentContainerSpecificationProperty
-> Maybe (Map Text (Value Text))
image :: InferenceComponentContainerSpecificationProperty
-> Maybe (Value Text)
haddock_workaround_ :: ()
artifactUrl :: Maybe (Value Text)
deployedImage :: Maybe DeployedImageProperty
environment :: Maybe (Map Text (Value Text))
image :: 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
"ArtifactUrl" (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)
artifactUrl,
Key -> DeployedImageProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"DeployedImage" (DeployedImageProperty -> (Key, Value))
-> Maybe DeployedImageProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe DeployedImageProperty
deployedImage,
Key -> Map Text (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
"Environment" (Map Text (Value Text) -> (Key, Value))
-> Maybe (Map Text (Value Text)) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Map Text (Value Text))
environment,
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
"Image" (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)
image]))
instance Property "ArtifactUrl" InferenceComponentContainerSpecificationProperty where
type PropertyType "ArtifactUrl" InferenceComponentContainerSpecificationProperty = Value Prelude.Text
set :: PropertyType
"ArtifactUrl" InferenceComponentContainerSpecificationProperty
-> InferenceComponentContainerSpecificationProperty
-> InferenceComponentContainerSpecificationProperty
set PropertyType
"ArtifactUrl" InferenceComponentContainerSpecificationProperty
newValue InferenceComponentContainerSpecificationProperty {Maybe (Map Text (Value Text))
Maybe (Value Text)
Maybe DeployedImageProperty
()
haddock_workaround_ :: InferenceComponentContainerSpecificationProperty -> ()
artifactUrl :: InferenceComponentContainerSpecificationProperty
-> Maybe (Value Text)
deployedImage :: InferenceComponentContainerSpecificationProperty
-> Maybe DeployedImageProperty
environment :: InferenceComponentContainerSpecificationProperty
-> Maybe (Map Text (Value Text))
image :: InferenceComponentContainerSpecificationProperty
-> Maybe (Value Text)
haddock_workaround_ :: ()
artifactUrl :: Maybe (Value Text)
deployedImage :: Maybe DeployedImageProperty
environment :: Maybe (Map Text (Value Text))
image :: Maybe (Value Text)
..}
= InferenceComponentContainerSpecificationProperty
{artifactUrl :: Maybe (Value Text)
artifactUrl = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
"ArtifactUrl" InferenceComponentContainerSpecificationProperty
Value Text
newValue, Maybe (Map Text (Value Text))
Maybe (Value Text)
Maybe DeployedImageProperty
()
haddock_workaround_ :: ()
deployedImage :: Maybe DeployedImageProperty
environment :: Maybe (Map Text (Value Text))
image :: Maybe (Value Text)
haddock_workaround_ :: ()
deployedImage :: Maybe DeployedImageProperty
environment :: Maybe (Map Text (Value Text))
image :: Maybe (Value Text)
..}
instance Property "DeployedImage" InferenceComponentContainerSpecificationProperty where
type PropertyType "DeployedImage" InferenceComponentContainerSpecificationProperty = DeployedImageProperty
set :: PropertyType
"DeployedImage" InferenceComponentContainerSpecificationProperty
-> InferenceComponentContainerSpecificationProperty
-> InferenceComponentContainerSpecificationProperty
set PropertyType
"DeployedImage" InferenceComponentContainerSpecificationProperty
newValue InferenceComponentContainerSpecificationProperty {Maybe (Map Text (Value Text))
Maybe (Value Text)
Maybe DeployedImageProperty
()
haddock_workaround_ :: InferenceComponentContainerSpecificationProperty -> ()
artifactUrl :: InferenceComponentContainerSpecificationProperty
-> Maybe (Value Text)
deployedImage :: InferenceComponentContainerSpecificationProperty
-> Maybe DeployedImageProperty
environment :: InferenceComponentContainerSpecificationProperty
-> Maybe (Map Text (Value Text))
image :: InferenceComponentContainerSpecificationProperty
-> Maybe (Value Text)
haddock_workaround_ :: ()
artifactUrl :: Maybe (Value Text)
deployedImage :: Maybe DeployedImageProperty
environment :: Maybe (Map Text (Value Text))
image :: Maybe (Value Text)
..}
= InferenceComponentContainerSpecificationProperty
{deployedImage :: Maybe DeployedImageProperty
deployedImage = DeployedImageProperty -> Maybe DeployedImageProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
"DeployedImage" InferenceComponentContainerSpecificationProperty
DeployedImageProperty
newValue, Maybe (Map Text (Value Text))
Maybe (Value Text)
()
haddock_workaround_ :: ()
artifactUrl :: Maybe (Value Text)
environment :: Maybe (Map Text (Value Text))
image :: Maybe (Value Text)
haddock_workaround_ :: ()
artifactUrl :: Maybe (Value Text)
environment :: Maybe (Map Text (Value Text))
image :: Maybe (Value Text)
..}
instance Property "Environment" InferenceComponentContainerSpecificationProperty where
type PropertyType "Environment" InferenceComponentContainerSpecificationProperty = Prelude.Map Prelude.Text (Value Prelude.Text)
set :: PropertyType
"Environment" InferenceComponentContainerSpecificationProperty
-> InferenceComponentContainerSpecificationProperty
-> InferenceComponentContainerSpecificationProperty
set PropertyType
"Environment" InferenceComponentContainerSpecificationProperty
newValue InferenceComponentContainerSpecificationProperty {Maybe (Map Text (Value Text))
Maybe (Value Text)
Maybe DeployedImageProperty
()
haddock_workaround_ :: InferenceComponentContainerSpecificationProperty -> ()
artifactUrl :: InferenceComponentContainerSpecificationProperty
-> Maybe (Value Text)
deployedImage :: InferenceComponentContainerSpecificationProperty
-> Maybe DeployedImageProperty
environment :: InferenceComponentContainerSpecificationProperty
-> Maybe (Map Text (Value Text))
image :: InferenceComponentContainerSpecificationProperty
-> Maybe (Value Text)
haddock_workaround_ :: ()
artifactUrl :: Maybe (Value Text)
deployedImage :: Maybe DeployedImageProperty
environment :: Maybe (Map Text (Value Text))
image :: Maybe (Value Text)
..}
= InferenceComponentContainerSpecificationProperty
{environment :: Maybe (Map Text (Value Text))
environment = Map Text (Value Text) -> Maybe (Map Text (Value Text))
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure Map Text (Value Text)
PropertyType
"Environment" InferenceComponentContainerSpecificationProperty
newValue, Maybe (Value Text)
Maybe DeployedImageProperty
()
haddock_workaround_ :: ()
artifactUrl :: Maybe (Value Text)
deployedImage :: Maybe DeployedImageProperty
image :: Maybe (Value Text)
haddock_workaround_ :: ()
artifactUrl :: Maybe (Value Text)
deployedImage :: Maybe DeployedImageProperty
image :: Maybe (Value Text)
..}
instance Property "Image" InferenceComponentContainerSpecificationProperty where
type PropertyType "Image" InferenceComponentContainerSpecificationProperty = Value Prelude.Text
set :: PropertyType
"Image" InferenceComponentContainerSpecificationProperty
-> InferenceComponentContainerSpecificationProperty
-> InferenceComponentContainerSpecificationProperty
set PropertyType
"Image" InferenceComponentContainerSpecificationProperty
newValue InferenceComponentContainerSpecificationProperty {Maybe (Map Text (Value Text))
Maybe (Value Text)
Maybe DeployedImageProperty
()
haddock_workaround_ :: InferenceComponentContainerSpecificationProperty -> ()
artifactUrl :: InferenceComponentContainerSpecificationProperty
-> Maybe (Value Text)
deployedImage :: InferenceComponentContainerSpecificationProperty
-> Maybe DeployedImageProperty
environment :: InferenceComponentContainerSpecificationProperty
-> Maybe (Map Text (Value Text))
image :: InferenceComponentContainerSpecificationProperty
-> Maybe (Value Text)
haddock_workaround_ :: ()
artifactUrl :: Maybe (Value Text)
deployedImage :: Maybe DeployedImageProperty
environment :: Maybe (Map Text (Value Text))
image :: Maybe (Value Text)
..}
= InferenceComponentContainerSpecificationProperty
{image :: Maybe (Value Text)
image = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
"Image" InferenceComponentContainerSpecificationProperty
Value Text
newValue, Maybe (Map Text (Value Text))
Maybe (Value Text)
Maybe DeployedImageProperty
()
haddock_workaround_ :: ()
artifactUrl :: Maybe (Value Text)
deployedImage :: Maybe DeployedImageProperty
environment :: Maybe (Map Text (Value Text))
haddock_workaround_ :: ()
artifactUrl :: Maybe (Value Text)
deployedImage :: Maybe DeployedImageProperty
environment :: Maybe (Map Text (Value Text))
..}