module Stratosphere.SageMaker.Cluster.DeploymentConfigProperty (
module Exports, DeploymentConfigProperty(..),
mkDeploymentConfigProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.SageMaker.Cluster.AlarmDetailsProperty as Exports
import {-# SOURCE #-} Stratosphere.SageMaker.Cluster.RollingUpdatePolicyProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Value
data DeploymentConfigProperty
=
DeploymentConfigProperty {DeploymentConfigProperty -> ()
haddock_workaround_ :: (),
DeploymentConfigProperty -> Maybe [AlarmDetailsProperty]
autoRollbackConfiguration :: (Prelude.Maybe [AlarmDetailsProperty]),
DeploymentConfigProperty -> Maybe RollingUpdatePolicyProperty
rollingUpdatePolicy :: (Prelude.Maybe RollingUpdatePolicyProperty),
DeploymentConfigProperty -> Maybe (Value Integer)
waitIntervalInSeconds :: (Prelude.Maybe (Value Prelude.Integer))}
deriving stock (DeploymentConfigProperty -> DeploymentConfigProperty -> Bool
(DeploymentConfigProperty -> DeploymentConfigProperty -> Bool)
-> (DeploymentConfigProperty -> DeploymentConfigProperty -> Bool)
-> Eq DeploymentConfigProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: DeploymentConfigProperty -> DeploymentConfigProperty -> Bool
== :: DeploymentConfigProperty -> DeploymentConfigProperty -> Bool
$c/= :: DeploymentConfigProperty -> DeploymentConfigProperty -> Bool
/= :: DeploymentConfigProperty -> DeploymentConfigProperty -> Bool
Prelude.Eq, Int -> DeploymentConfigProperty -> ShowS
[DeploymentConfigProperty] -> ShowS
DeploymentConfigProperty -> String
(Int -> DeploymentConfigProperty -> ShowS)
-> (DeploymentConfigProperty -> String)
-> ([DeploymentConfigProperty] -> ShowS)
-> Show DeploymentConfigProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> DeploymentConfigProperty -> ShowS
showsPrec :: Int -> DeploymentConfigProperty -> ShowS
$cshow :: DeploymentConfigProperty -> String
show :: DeploymentConfigProperty -> String
$cshowList :: [DeploymentConfigProperty] -> ShowS
showList :: [DeploymentConfigProperty] -> ShowS
Prelude.Show)
mkDeploymentConfigProperty :: DeploymentConfigProperty
mkDeploymentConfigProperty :: DeploymentConfigProperty
mkDeploymentConfigProperty
= DeploymentConfigProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (),
autoRollbackConfiguration :: Maybe [AlarmDetailsProperty]
autoRollbackConfiguration = Maybe [AlarmDetailsProperty]
forall a. Maybe a
Prelude.Nothing,
rollingUpdatePolicy :: Maybe RollingUpdatePolicyProperty
rollingUpdatePolicy = Maybe RollingUpdatePolicyProperty
forall a. Maybe a
Prelude.Nothing,
waitIntervalInSeconds :: Maybe (Value Integer)
waitIntervalInSeconds = Maybe (Value Integer)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties DeploymentConfigProperty where
toResourceProperties :: DeploymentConfigProperty -> ResourceProperties
toResourceProperties DeploymentConfigProperty {Maybe [AlarmDetailsProperty]
Maybe (Value Integer)
Maybe RollingUpdatePolicyProperty
()
haddock_workaround_ :: DeploymentConfigProperty -> ()
autoRollbackConfiguration :: DeploymentConfigProperty -> Maybe [AlarmDetailsProperty]
rollingUpdatePolicy :: DeploymentConfigProperty -> Maybe RollingUpdatePolicyProperty
waitIntervalInSeconds :: DeploymentConfigProperty -> Maybe (Value Integer)
haddock_workaround_ :: ()
autoRollbackConfiguration :: Maybe [AlarmDetailsProperty]
rollingUpdatePolicy :: Maybe RollingUpdatePolicyProperty
waitIntervalInSeconds :: Maybe (Value Integer)
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::SageMaker::Cluster.DeploymentConfig",
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 -> [AlarmDetailsProperty] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"AutoRollbackConfiguration"
([AlarmDetailsProperty] -> (Key, Value))
-> Maybe [AlarmDetailsProperty] -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [AlarmDetailsProperty]
autoRollbackConfiguration,
Key -> RollingUpdatePolicyProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"RollingUpdatePolicy" (RollingUpdatePolicyProperty -> (Key, Value))
-> Maybe RollingUpdatePolicyProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe RollingUpdatePolicyProperty
rollingUpdatePolicy,
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
"WaitIntervalInSeconds"
(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)
waitIntervalInSeconds])}
instance JSON.ToJSON DeploymentConfigProperty where
toJSON :: DeploymentConfigProperty -> Value
toJSON DeploymentConfigProperty {Maybe [AlarmDetailsProperty]
Maybe (Value Integer)
Maybe RollingUpdatePolicyProperty
()
haddock_workaround_ :: DeploymentConfigProperty -> ()
autoRollbackConfiguration :: DeploymentConfigProperty -> Maybe [AlarmDetailsProperty]
rollingUpdatePolicy :: DeploymentConfigProperty -> Maybe RollingUpdatePolicyProperty
waitIntervalInSeconds :: DeploymentConfigProperty -> Maybe (Value Integer)
haddock_workaround_ :: ()
autoRollbackConfiguration :: Maybe [AlarmDetailsProperty]
rollingUpdatePolicy :: Maybe RollingUpdatePolicyProperty
waitIntervalInSeconds :: 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 -> [AlarmDetailsProperty] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"AutoRollbackConfiguration"
([AlarmDetailsProperty] -> (Key, Value))
-> Maybe [AlarmDetailsProperty] -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [AlarmDetailsProperty]
autoRollbackConfiguration,
Key -> RollingUpdatePolicyProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"RollingUpdatePolicy" (RollingUpdatePolicyProperty -> (Key, Value))
-> Maybe RollingUpdatePolicyProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe RollingUpdatePolicyProperty
rollingUpdatePolicy,
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
"WaitIntervalInSeconds"
(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)
waitIntervalInSeconds]))
instance Property "AutoRollbackConfiguration" DeploymentConfigProperty where
type PropertyType "AutoRollbackConfiguration" DeploymentConfigProperty = [AlarmDetailsProperty]
set :: PropertyType "AutoRollbackConfiguration" DeploymentConfigProperty
-> DeploymentConfigProperty -> DeploymentConfigProperty
set PropertyType "AutoRollbackConfiguration" DeploymentConfigProperty
newValue DeploymentConfigProperty {Maybe [AlarmDetailsProperty]
Maybe (Value Integer)
Maybe RollingUpdatePolicyProperty
()
haddock_workaround_ :: DeploymentConfigProperty -> ()
autoRollbackConfiguration :: DeploymentConfigProperty -> Maybe [AlarmDetailsProperty]
rollingUpdatePolicy :: DeploymentConfigProperty -> Maybe RollingUpdatePolicyProperty
waitIntervalInSeconds :: DeploymentConfigProperty -> Maybe (Value Integer)
haddock_workaround_ :: ()
autoRollbackConfiguration :: Maybe [AlarmDetailsProperty]
rollingUpdatePolicy :: Maybe RollingUpdatePolicyProperty
waitIntervalInSeconds :: Maybe (Value Integer)
..}
= DeploymentConfigProperty
{autoRollbackConfiguration :: Maybe [AlarmDetailsProperty]
autoRollbackConfiguration = [AlarmDetailsProperty] -> Maybe [AlarmDetailsProperty]
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure [AlarmDetailsProperty]
PropertyType "AutoRollbackConfiguration" DeploymentConfigProperty
newValue, Maybe (Value Integer)
Maybe RollingUpdatePolicyProperty
()
haddock_workaround_ :: ()
rollingUpdatePolicy :: Maybe RollingUpdatePolicyProperty
waitIntervalInSeconds :: Maybe (Value Integer)
haddock_workaround_ :: ()
rollingUpdatePolicy :: Maybe RollingUpdatePolicyProperty
waitIntervalInSeconds :: Maybe (Value Integer)
..}
instance Property "RollingUpdatePolicy" DeploymentConfigProperty where
type PropertyType "RollingUpdatePolicy" DeploymentConfigProperty = RollingUpdatePolicyProperty
set :: PropertyType "RollingUpdatePolicy" DeploymentConfigProperty
-> DeploymentConfigProperty -> DeploymentConfigProperty
set PropertyType "RollingUpdatePolicy" DeploymentConfigProperty
newValue DeploymentConfigProperty {Maybe [AlarmDetailsProperty]
Maybe (Value Integer)
Maybe RollingUpdatePolicyProperty
()
haddock_workaround_ :: DeploymentConfigProperty -> ()
autoRollbackConfiguration :: DeploymentConfigProperty -> Maybe [AlarmDetailsProperty]
rollingUpdatePolicy :: DeploymentConfigProperty -> Maybe RollingUpdatePolicyProperty
waitIntervalInSeconds :: DeploymentConfigProperty -> Maybe (Value Integer)
haddock_workaround_ :: ()
autoRollbackConfiguration :: Maybe [AlarmDetailsProperty]
rollingUpdatePolicy :: Maybe RollingUpdatePolicyProperty
waitIntervalInSeconds :: Maybe (Value Integer)
..}
= DeploymentConfigProperty
{rollingUpdatePolicy :: Maybe RollingUpdatePolicyProperty
rollingUpdatePolicy = RollingUpdatePolicyProperty -> Maybe RollingUpdatePolicyProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "RollingUpdatePolicy" DeploymentConfigProperty
RollingUpdatePolicyProperty
newValue, Maybe [AlarmDetailsProperty]
Maybe (Value Integer)
()
haddock_workaround_ :: ()
autoRollbackConfiguration :: Maybe [AlarmDetailsProperty]
waitIntervalInSeconds :: Maybe (Value Integer)
haddock_workaround_ :: ()
autoRollbackConfiguration :: Maybe [AlarmDetailsProperty]
waitIntervalInSeconds :: Maybe (Value Integer)
..}
instance Property "WaitIntervalInSeconds" DeploymentConfigProperty where
type PropertyType "WaitIntervalInSeconds" DeploymentConfigProperty = Value Prelude.Integer
set :: PropertyType "WaitIntervalInSeconds" DeploymentConfigProperty
-> DeploymentConfigProperty -> DeploymentConfigProperty
set PropertyType "WaitIntervalInSeconds" DeploymentConfigProperty
newValue DeploymentConfigProperty {Maybe [AlarmDetailsProperty]
Maybe (Value Integer)
Maybe RollingUpdatePolicyProperty
()
haddock_workaround_ :: DeploymentConfigProperty -> ()
autoRollbackConfiguration :: DeploymentConfigProperty -> Maybe [AlarmDetailsProperty]
rollingUpdatePolicy :: DeploymentConfigProperty -> Maybe RollingUpdatePolicyProperty
waitIntervalInSeconds :: DeploymentConfigProperty -> Maybe (Value Integer)
haddock_workaround_ :: ()
autoRollbackConfiguration :: Maybe [AlarmDetailsProperty]
rollingUpdatePolicy :: Maybe RollingUpdatePolicyProperty
waitIntervalInSeconds :: Maybe (Value Integer)
..}
= DeploymentConfigProperty
{waitIntervalInSeconds :: Maybe (Value Integer)
waitIntervalInSeconds = Value Integer -> Maybe (Value Integer)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "WaitIntervalInSeconds" DeploymentConfigProperty
Value Integer
newValue, Maybe [AlarmDetailsProperty]
Maybe RollingUpdatePolicyProperty
()
haddock_workaround_ :: ()
autoRollbackConfiguration :: Maybe [AlarmDetailsProperty]
rollingUpdatePolicy :: Maybe RollingUpdatePolicyProperty
haddock_workaround_ :: ()
autoRollbackConfiguration :: Maybe [AlarmDetailsProperty]
rollingUpdatePolicy :: Maybe RollingUpdatePolicyProperty
..}