module Stratosphere.SageMaker.InferenceComponent.InferenceComponentStartupParametersProperty (
InferenceComponentStartupParametersProperty(..),
mkInferenceComponentStartupParametersProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data InferenceComponentStartupParametersProperty
=
InferenceComponentStartupParametersProperty {InferenceComponentStartupParametersProperty -> ()
haddock_workaround_ :: (),
InferenceComponentStartupParametersProperty
-> Maybe (Value Integer)
containerStartupHealthCheckTimeoutInSeconds :: (Prelude.Maybe (Value Prelude.Integer)),
InferenceComponentStartupParametersProperty
-> Maybe (Value Integer)
modelDataDownloadTimeoutInSeconds :: (Prelude.Maybe (Value Prelude.Integer))}
deriving stock (InferenceComponentStartupParametersProperty
-> InferenceComponentStartupParametersProperty -> Bool
(InferenceComponentStartupParametersProperty
-> InferenceComponentStartupParametersProperty -> Bool)
-> (InferenceComponentStartupParametersProperty
-> InferenceComponentStartupParametersProperty -> Bool)
-> Eq InferenceComponentStartupParametersProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: InferenceComponentStartupParametersProperty
-> InferenceComponentStartupParametersProperty -> Bool
== :: InferenceComponentStartupParametersProperty
-> InferenceComponentStartupParametersProperty -> Bool
$c/= :: InferenceComponentStartupParametersProperty
-> InferenceComponentStartupParametersProperty -> Bool
/= :: InferenceComponentStartupParametersProperty
-> InferenceComponentStartupParametersProperty -> Bool
Prelude.Eq, Int -> InferenceComponentStartupParametersProperty -> ShowS
[InferenceComponentStartupParametersProperty] -> ShowS
InferenceComponentStartupParametersProperty -> String
(Int -> InferenceComponentStartupParametersProperty -> ShowS)
-> (InferenceComponentStartupParametersProperty -> String)
-> ([InferenceComponentStartupParametersProperty] -> ShowS)
-> Show InferenceComponentStartupParametersProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> InferenceComponentStartupParametersProperty -> ShowS
showsPrec :: Int -> InferenceComponentStartupParametersProperty -> ShowS
$cshow :: InferenceComponentStartupParametersProperty -> String
show :: InferenceComponentStartupParametersProperty -> String
$cshowList :: [InferenceComponentStartupParametersProperty] -> ShowS
showList :: [InferenceComponentStartupParametersProperty] -> ShowS
Prelude.Show)
mkInferenceComponentStartupParametersProperty ::
InferenceComponentStartupParametersProperty
mkInferenceComponentStartupParametersProperty :: InferenceComponentStartupParametersProperty
mkInferenceComponentStartupParametersProperty
= InferenceComponentStartupParametersProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (),
containerStartupHealthCheckTimeoutInSeconds :: Maybe (Value Integer)
containerStartupHealthCheckTimeoutInSeconds = Maybe (Value Integer)
forall a. Maybe a
Prelude.Nothing,
modelDataDownloadTimeoutInSeconds :: Maybe (Value Integer)
modelDataDownloadTimeoutInSeconds = Maybe (Value Integer)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties InferenceComponentStartupParametersProperty where
toResourceProperties :: InferenceComponentStartupParametersProperty -> ResourceProperties
toResourceProperties
InferenceComponentStartupParametersProperty {Maybe (Value Integer)
()
haddock_workaround_ :: InferenceComponentStartupParametersProperty -> ()
containerStartupHealthCheckTimeoutInSeconds :: InferenceComponentStartupParametersProperty
-> Maybe (Value Integer)
modelDataDownloadTimeoutInSeconds :: InferenceComponentStartupParametersProperty
-> Maybe (Value Integer)
haddock_workaround_ :: ()
containerStartupHealthCheckTimeoutInSeconds :: Maybe (Value Integer)
modelDataDownloadTimeoutInSeconds :: Maybe (Value Integer)
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::SageMaker::InferenceComponent.InferenceComponentStartupParameters",
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
"ContainerStartupHealthCheckTimeoutInSeconds"
(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)
containerStartupHealthCheckTimeoutInSeconds,
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
"ModelDataDownloadTimeoutInSeconds"
(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)
modelDataDownloadTimeoutInSeconds])}
instance JSON.ToJSON InferenceComponentStartupParametersProperty where
toJSON :: InferenceComponentStartupParametersProperty -> Value
toJSON InferenceComponentStartupParametersProperty {Maybe (Value Integer)
()
haddock_workaround_ :: InferenceComponentStartupParametersProperty -> ()
containerStartupHealthCheckTimeoutInSeconds :: InferenceComponentStartupParametersProperty
-> Maybe (Value Integer)
modelDataDownloadTimeoutInSeconds :: InferenceComponentStartupParametersProperty
-> Maybe (Value Integer)
haddock_workaround_ :: ()
containerStartupHealthCheckTimeoutInSeconds :: Maybe (Value Integer)
modelDataDownloadTimeoutInSeconds :: 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
"ContainerStartupHealthCheckTimeoutInSeconds"
(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)
containerStartupHealthCheckTimeoutInSeconds,
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
"ModelDataDownloadTimeoutInSeconds"
(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)
modelDataDownloadTimeoutInSeconds]))
instance Property "ContainerStartupHealthCheckTimeoutInSeconds" InferenceComponentStartupParametersProperty where
type PropertyType "ContainerStartupHealthCheckTimeoutInSeconds" InferenceComponentStartupParametersProperty = Value Prelude.Integer
set :: PropertyType
"ContainerStartupHealthCheckTimeoutInSeconds"
InferenceComponentStartupParametersProperty
-> InferenceComponentStartupParametersProperty
-> InferenceComponentStartupParametersProperty
set PropertyType
"ContainerStartupHealthCheckTimeoutInSeconds"
InferenceComponentStartupParametersProperty
newValue InferenceComponentStartupParametersProperty {Maybe (Value Integer)
()
haddock_workaround_ :: InferenceComponentStartupParametersProperty -> ()
containerStartupHealthCheckTimeoutInSeconds :: InferenceComponentStartupParametersProperty
-> Maybe (Value Integer)
modelDataDownloadTimeoutInSeconds :: InferenceComponentStartupParametersProperty
-> Maybe (Value Integer)
haddock_workaround_ :: ()
containerStartupHealthCheckTimeoutInSeconds :: Maybe (Value Integer)
modelDataDownloadTimeoutInSeconds :: Maybe (Value Integer)
..}
= InferenceComponentStartupParametersProperty
{containerStartupHealthCheckTimeoutInSeconds :: Maybe (Value Integer)
containerStartupHealthCheckTimeoutInSeconds = Value Integer -> Maybe (Value Integer)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure
PropertyType
"ContainerStartupHealthCheckTimeoutInSeconds"
InferenceComponentStartupParametersProperty
Value Integer
newValue,
Maybe (Value Integer)
()
haddock_workaround_ :: ()
modelDataDownloadTimeoutInSeconds :: Maybe (Value Integer)
haddock_workaround_ :: ()
modelDataDownloadTimeoutInSeconds :: Maybe (Value Integer)
..}
instance Property "ModelDataDownloadTimeoutInSeconds" InferenceComponentStartupParametersProperty where
type PropertyType "ModelDataDownloadTimeoutInSeconds" InferenceComponentStartupParametersProperty = Value Prelude.Integer
set :: PropertyType
"ModelDataDownloadTimeoutInSeconds"
InferenceComponentStartupParametersProperty
-> InferenceComponentStartupParametersProperty
-> InferenceComponentStartupParametersProperty
set PropertyType
"ModelDataDownloadTimeoutInSeconds"
InferenceComponentStartupParametersProperty
newValue InferenceComponentStartupParametersProperty {Maybe (Value Integer)
()
haddock_workaround_ :: InferenceComponentStartupParametersProperty -> ()
containerStartupHealthCheckTimeoutInSeconds :: InferenceComponentStartupParametersProperty
-> Maybe (Value Integer)
modelDataDownloadTimeoutInSeconds :: InferenceComponentStartupParametersProperty
-> Maybe (Value Integer)
haddock_workaround_ :: ()
containerStartupHealthCheckTimeoutInSeconds :: Maybe (Value Integer)
modelDataDownloadTimeoutInSeconds :: Maybe (Value Integer)
..}
= InferenceComponentStartupParametersProperty
{modelDataDownloadTimeoutInSeconds :: Maybe (Value Integer)
modelDataDownloadTimeoutInSeconds = Value Integer -> Maybe (Value Integer)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
"ModelDataDownloadTimeoutInSeconds"
InferenceComponentStartupParametersProperty
Value Integer
newValue, Maybe (Value Integer)
()
haddock_workaround_ :: ()
containerStartupHealthCheckTimeoutInSeconds :: Maybe (Value Integer)
haddock_workaround_ :: ()
containerStartupHealthCheckTimeoutInSeconds :: Maybe (Value Integer)
..}