module Stratosphere.SageMaker.Endpoint.BlueGreenUpdatePolicyProperty (
module Exports, BlueGreenUpdatePolicyProperty(..),
mkBlueGreenUpdatePolicyProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.SageMaker.Endpoint.TrafficRoutingConfigProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Value
data BlueGreenUpdatePolicyProperty
=
BlueGreenUpdatePolicyProperty {BlueGreenUpdatePolicyProperty -> ()
haddock_workaround_ :: (),
BlueGreenUpdatePolicyProperty -> Maybe (Value Integer)
maximumExecutionTimeoutInSeconds :: (Prelude.Maybe (Value Prelude.Integer)),
BlueGreenUpdatePolicyProperty -> Maybe (Value Integer)
terminationWaitInSeconds :: (Prelude.Maybe (Value Prelude.Integer)),
BlueGreenUpdatePolicyProperty -> TrafficRoutingConfigProperty
trafficRoutingConfiguration :: TrafficRoutingConfigProperty}
deriving stock (BlueGreenUpdatePolicyProperty
-> BlueGreenUpdatePolicyProperty -> Bool
(BlueGreenUpdatePolicyProperty
-> BlueGreenUpdatePolicyProperty -> Bool)
-> (BlueGreenUpdatePolicyProperty
-> BlueGreenUpdatePolicyProperty -> Bool)
-> Eq BlueGreenUpdatePolicyProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: BlueGreenUpdatePolicyProperty
-> BlueGreenUpdatePolicyProperty -> Bool
== :: BlueGreenUpdatePolicyProperty
-> BlueGreenUpdatePolicyProperty -> Bool
$c/= :: BlueGreenUpdatePolicyProperty
-> BlueGreenUpdatePolicyProperty -> Bool
/= :: BlueGreenUpdatePolicyProperty
-> BlueGreenUpdatePolicyProperty -> Bool
Prelude.Eq, Int -> BlueGreenUpdatePolicyProperty -> ShowS
[BlueGreenUpdatePolicyProperty] -> ShowS
BlueGreenUpdatePolicyProperty -> String
(Int -> BlueGreenUpdatePolicyProperty -> ShowS)
-> (BlueGreenUpdatePolicyProperty -> String)
-> ([BlueGreenUpdatePolicyProperty] -> ShowS)
-> Show BlueGreenUpdatePolicyProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> BlueGreenUpdatePolicyProperty -> ShowS
showsPrec :: Int -> BlueGreenUpdatePolicyProperty -> ShowS
$cshow :: BlueGreenUpdatePolicyProperty -> String
show :: BlueGreenUpdatePolicyProperty -> String
$cshowList :: [BlueGreenUpdatePolicyProperty] -> ShowS
showList :: [BlueGreenUpdatePolicyProperty] -> ShowS
Prelude.Show)
mkBlueGreenUpdatePolicyProperty ::
TrafficRoutingConfigProperty -> BlueGreenUpdatePolicyProperty
mkBlueGreenUpdatePolicyProperty :: TrafficRoutingConfigProperty -> BlueGreenUpdatePolicyProperty
mkBlueGreenUpdatePolicyProperty TrafficRoutingConfigProperty
trafficRoutingConfiguration
= BlueGreenUpdatePolicyProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (),
trafficRoutingConfiguration :: TrafficRoutingConfigProperty
trafficRoutingConfiguration = TrafficRoutingConfigProperty
trafficRoutingConfiguration,
maximumExecutionTimeoutInSeconds :: Maybe (Value Integer)
maximumExecutionTimeoutInSeconds = Maybe (Value Integer)
forall a. Maybe a
Prelude.Nothing,
terminationWaitInSeconds :: Maybe (Value Integer)
terminationWaitInSeconds = Maybe (Value Integer)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties BlueGreenUpdatePolicyProperty where
toResourceProperties :: BlueGreenUpdatePolicyProperty -> ResourceProperties
toResourceProperties BlueGreenUpdatePolicyProperty {Maybe (Value Integer)
()
TrafficRoutingConfigProperty
haddock_workaround_ :: BlueGreenUpdatePolicyProperty -> ()
maximumExecutionTimeoutInSeconds :: BlueGreenUpdatePolicyProperty -> Maybe (Value Integer)
terminationWaitInSeconds :: BlueGreenUpdatePolicyProperty -> Maybe (Value Integer)
trafficRoutingConfiguration :: BlueGreenUpdatePolicyProperty -> TrafficRoutingConfigProperty
haddock_workaround_ :: ()
maximumExecutionTimeoutInSeconds :: Maybe (Value Integer)
terminationWaitInSeconds :: Maybe (Value Integer)
trafficRoutingConfiguration :: TrafficRoutingConfigProperty
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::SageMaker::Endpoint.BlueGreenUpdatePolicy",
supportsTags :: Bool
supportsTags = Bool
Prelude.False,
properties :: Object
properties = [Item Object] -> Object
forall l. IsList l => [Item l] -> l
Prelude.fromList
([(Key, Value)] -> [(Key, Value)] -> [(Key, Value)]
forall a. Semigroup a => a -> a -> a
(Prelude.<>)
[Key
"TrafficRoutingConfiguration" Key -> TrafficRoutingConfigProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= TrafficRoutingConfigProperty
trafficRoutingConfiguration]
([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
"MaximumExecutionTimeoutInSeconds"
(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)
maximumExecutionTimeoutInSeconds,
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
"TerminationWaitInSeconds"
(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)
terminationWaitInSeconds]))}
instance JSON.ToJSON BlueGreenUpdatePolicyProperty where
toJSON :: BlueGreenUpdatePolicyProperty -> Value
toJSON BlueGreenUpdatePolicyProperty {Maybe (Value Integer)
()
TrafficRoutingConfigProperty
haddock_workaround_ :: BlueGreenUpdatePolicyProperty -> ()
maximumExecutionTimeoutInSeconds :: BlueGreenUpdatePolicyProperty -> Maybe (Value Integer)
terminationWaitInSeconds :: BlueGreenUpdatePolicyProperty -> Maybe (Value Integer)
trafficRoutingConfiguration :: BlueGreenUpdatePolicyProperty -> TrafficRoutingConfigProperty
haddock_workaround_ :: ()
maximumExecutionTimeoutInSeconds :: Maybe (Value Integer)
terminationWaitInSeconds :: Maybe (Value Integer)
trafficRoutingConfiguration :: TrafficRoutingConfigProperty
..}
= [(Key, Value)] -> Value
JSON.object
([Item [(Key, Value)]] -> [(Key, Value)]
forall l. IsList l => [Item l] -> l
Prelude.fromList
([(Key, Value)] -> [(Key, Value)] -> [(Key, Value)]
forall a. Semigroup a => a -> a -> a
(Prelude.<>)
[Key
"TrafficRoutingConfiguration" Key -> TrafficRoutingConfigProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= TrafficRoutingConfigProperty
trafficRoutingConfiguration]
([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
"MaximumExecutionTimeoutInSeconds"
(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)
maximumExecutionTimeoutInSeconds,
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
"TerminationWaitInSeconds"
(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)
terminationWaitInSeconds])))
instance Property "MaximumExecutionTimeoutInSeconds" BlueGreenUpdatePolicyProperty where
type PropertyType "MaximumExecutionTimeoutInSeconds" BlueGreenUpdatePolicyProperty = Value Prelude.Integer
set :: PropertyType
"MaximumExecutionTimeoutInSeconds" BlueGreenUpdatePolicyProperty
-> BlueGreenUpdatePolicyProperty -> BlueGreenUpdatePolicyProperty
set PropertyType
"MaximumExecutionTimeoutInSeconds" BlueGreenUpdatePolicyProperty
newValue BlueGreenUpdatePolicyProperty {Maybe (Value Integer)
()
TrafficRoutingConfigProperty
haddock_workaround_ :: BlueGreenUpdatePolicyProperty -> ()
maximumExecutionTimeoutInSeconds :: BlueGreenUpdatePolicyProperty -> Maybe (Value Integer)
terminationWaitInSeconds :: BlueGreenUpdatePolicyProperty -> Maybe (Value Integer)
trafficRoutingConfiguration :: BlueGreenUpdatePolicyProperty -> TrafficRoutingConfigProperty
haddock_workaround_ :: ()
maximumExecutionTimeoutInSeconds :: Maybe (Value Integer)
terminationWaitInSeconds :: Maybe (Value Integer)
trafficRoutingConfiguration :: TrafficRoutingConfigProperty
..}
= BlueGreenUpdatePolicyProperty
{maximumExecutionTimeoutInSeconds :: Maybe (Value Integer)
maximumExecutionTimeoutInSeconds = Value Integer -> Maybe (Value Integer)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
"MaximumExecutionTimeoutInSeconds" BlueGreenUpdatePolicyProperty
Value Integer
newValue, Maybe (Value Integer)
()
TrafficRoutingConfigProperty
haddock_workaround_ :: ()
terminationWaitInSeconds :: Maybe (Value Integer)
trafficRoutingConfiguration :: TrafficRoutingConfigProperty
haddock_workaround_ :: ()
terminationWaitInSeconds :: Maybe (Value Integer)
trafficRoutingConfiguration :: TrafficRoutingConfigProperty
..}
instance Property "TerminationWaitInSeconds" BlueGreenUpdatePolicyProperty where
type PropertyType "TerminationWaitInSeconds" BlueGreenUpdatePolicyProperty = Value Prelude.Integer
set :: PropertyType
"TerminationWaitInSeconds" BlueGreenUpdatePolicyProperty
-> BlueGreenUpdatePolicyProperty -> BlueGreenUpdatePolicyProperty
set PropertyType
"TerminationWaitInSeconds" BlueGreenUpdatePolicyProperty
newValue BlueGreenUpdatePolicyProperty {Maybe (Value Integer)
()
TrafficRoutingConfigProperty
haddock_workaround_ :: BlueGreenUpdatePolicyProperty -> ()
maximumExecutionTimeoutInSeconds :: BlueGreenUpdatePolicyProperty -> Maybe (Value Integer)
terminationWaitInSeconds :: BlueGreenUpdatePolicyProperty -> Maybe (Value Integer)
trafficRoutingConfiguration :: BlueGreenUpdatePolicyProperty -> TrafficRoutingConfigProperty
haddock_workaround_ :: ()
maximumExecutionTimeoutInSeconds :: Maybe (Value Integer)
terminationWaitInSeconds :: Maybe (Value Integer)
trafficRoutingConfiguration :: TrafficRoutingConfigProperty
..}
= BlueGreenUpdatePolicyProperty
{terminationWaitInSeconds :: Maybe (Value Integer)
terminationWaitInSeconds = Value Integer -> Maybe (Value Integer)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
"TerminationWaitInSeconds" BlueGreenUpdatePolicyProperty
Value Integer
newValue, Maybe (Value Integer)
()
TrafficRoutingConfigProperty
haddock_workaround_ :: ()
maximumExecutionTimeoutInSeconds :: Maybe (Value Integer)
trafficRoutingConfiguration :: TrafficRoutingConfigProperty
haddock_workaround_ :: ()
maximumExecutionTimeoutInSeconds :: Maybe (Value Integer)
trafficRoutingConfiguration :: TrafficRoutingConfigProperty
..}
instance Property "TrafficRoutingConfiguration" BlueGreenUpdatePolicyProperty where
type PropertyType "TrafficRoutingConfiguration" BlueGreenUpdatePolicyProperty = TrafficRoutingConfigProperty
set :: PropertyType
"TrafficRoutingConfiguration" BlueGreenUpdatePolicyProperty
-> BlueGreenUpdatePolicyProperty -> BlueGreenUpdatePolicyProperty
set PropertyType
"TrafficRoutingConfiguration" BlueGreenUpdatePolicyProperty
newValue BlueGreenUpdatePolicyProperty {Maybe (Value Integer)
()
TrafficRoutingConfigProperty
haddock_workaround_ :: BlueGreenUpdatePolicyProperty -> ()
maximumExecutionTimeoutInSeconds :: BlueGreenUpdatePolicyProperty -> Maybe (Value Integer)
terminationWaitInSeconds :: BlueGreenUpdatePolicyProperty -> Maybe (Value Integer)
trafficRoutingConfiguration :: BlueGreenUpdatePolicyProperty -> TrafficRoutingConfigProperty
haddock_workaround_ :: ()
maximumExecutionTimeoutInSeconds :: Maybe (Value Integer)
terminationWaitInSeconds :: Maybe (Value Integer)
trafficRoutingConfiguration :: TrafficRoutingConfigProperty
..}
= BlueGreenUpdatePolicyProperty
{trafficRoutingConfiguration :: TrafficRoutingConfigProperty
trafficRoutingConfiguration = PropertyType
"TrafficRoutingConfiguration" BlueGreenUpdatePolicyProperty
TrafficRoutingConfigProperty
newValue, Maybe (Value Integer)
()
haddock_workaround_ :: ()
maximumExecutionTimeoutInSeconds :: Maybe (Value Integer)
terminationWaitInSeconds :: Maybe (Value Integer)
haddock_workaround_ :: ()
maximumExecutionTimeoutInSeconds :: Maybe (Value Integer)
terminationWaitInSeconds :: Maybe (Value Integer)
..}