module Stratosphere.SageMaker.Domain.IdleSettingsProperty (
        IdleSettingsProperty(..), mkIdleSettingsProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data IdleSettingsProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-domain-idlesettings.html>
    IdleSettingsProperty {IdleSettingsProperty -> ()
haddock_workaround_ :: (),
                          -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-domain-idlesettings.html#cfn-sagemaker-domain-idlesettings-idletimeoutinminutes>
                          IdleSettingsProperty -> Maybe (Value Integer)
idleTimeoutInMinutes :: (Prelude.Maybe (Value Prelude.Integer)),
                          -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-domain-idlesettings.html#cfn-sagemaker-domain-idlesettings-lifecyclemanagement>
                          IdleSettingsProperty -> Maybe (Value Text)
lifecycleManagement :: (Prelude.Maybe (Value Prelude.Text)),
                          -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-domain-idlesettings.html#cfn-sagemaker-domain-idlesettings-maxidletimeoutinminutes>
                          IdleSettingsProperty -> Maybe (Value Integer)
maxIdleTimeoutInMinutes :: (Prelude.Maybe (Value Prelude.Integer)),
                          -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-domain-idlesettings.html#cfn-sagemaker-domain-idlesettings-minidletimeoutinminutes>
                          IdleSettingsProperty -> Maybe (Value Integer)
minIdleTimeoutInMinutes :: (Prelude.Maybe (Value Prelude.Integer))}
  deriving stock (IdleSettingsProperty -> IdleSettingsProperty -> Bool
(IdleSettingsProperty -> IdleSettingsProperty -> Bool)
-> (IdleSettingsProperty -> IdleSettingsProperty -> Bool)
-> Eq IdleSettingsProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: IdleSettingsProperty -> IdleSettingsProperty -> Bool
== :: IdleSettingsProperty -> IdleSettingsProperty -> Bool
$c/= :: IdleSettingsProperty -> IdleSettingsProperty -> Bool
/= :: IdleSettingsProperty -> IdleSettingsProperty -> Bool
Prelude.Eq, Int -> IdleSettingsProperty -> ShowS
[IdleSettingsProperty] -> ShowS
IdleSettingsProperty -> String
(Int -> IdleSettingsProperty -> ShowS)
-> (IdleSettingsProperty -> String)
-> ([IdleSettingsProperty] -> ShowS)
-> Show IdleSettingsProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> IdleSettingsProperty -> ShowS
showsPrec :: Int -> IdleSettingsProperty -> ShowS
$cshow :: IdleSettingsProperty -> String
show :: IdleSettingsProperty -> String
$cshowList :: [IdleSettingsProperty] -> ShowS
showList :: [IdleSettingsProperty] -> ShowS
Prelude.Show)
mkIdleSettingsProperty :: IdleSettingsProperty
mkIdleSettingsProperty :: IdleSettingsProperty
mkIdleSettingsProperty
  = IdleSettingsProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), idleTimeoutInMinutes :: Maybe (Value Integer)
idleTimeoutInMinutes = Maybe (Value Integer)
forall a. Maybe a
Prelude.Nothing,
       lifecycleManagement :: Maybe (Value Text)
lifecycleManagement = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
       maxIdleTimeoutInMinutes :: Maybe (Value Integer)
maxIdleTimeoutInMinutes = Maybe (Value Integer)
forall a. Maybe a
Prelude.Nothing,
       minIdleTimeoutInMinutes :: Maybe (Value Integer)
minIdleTimeoutInMinutes = Maybe (Value Integer)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties IdleSettingsProperty where
  toResourceProperties :: IdleSettingsProperty -> ResourceProperties
toResourceProperties IdleSettingsProperty {Maybe (Value Integer)
Maybe (Value Text)
()
haddock_workaround_ :: IdleSettingsProperty -> ()
idleTimeoutInMinutes :: IdleSettingsProperty -> Maybe (Value Integer)
lifecycleManagement :: IdleSettingsProperty -> Maybe (Value Text)
maxIdleTimeoutInMinutes :: IdleSettingsProperty -> Maybe (Value Integer)
minIdleTimeoutInMinutes :: IdleSettingsProperty -> Maybe (Value Integer)
haddock_workaround_ :: ()
idleTimeoutInMinutes :: Maybe (Value Integer)
lifecycleManagement :: Maybe (Value Text)
maxIdleTimeoutInMinutes :: Maybe (Value Integer)
minIdleTimeoutInMinutes :: Maybe (Value Integer)
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::SageMaker::Domain.IdleSettings",
         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
"IdleTimeoutInMinutes" (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)
idleTimeoutInMinutes,
                            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
"LifecycleManagement" (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)
lifecycleManagement,
                            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
"MaxIdleTimeoutInMinutes"
                              (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)
maxIdleTimeoutInMinutes,
                            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
"MinIdleTimeoutInMinutes"
                              (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)
minIdleTimeoutInMinutes])}
instance JSON.ToJSON IdleSettingsProperty where
  toJSON :: IdleSettingsProperty -> Value
toJSON IdleSettingsProperty {Maybe (Value Integer)
Maybe (Value Text)
()
haddock_workaround_ :: IdleSettingsProperty -> ()
idleTimeoutInMinutes :: IdleSettingsProperty -> Maybe (Value Integer)
lifecycleManagement :: IdleSettingsProperty -> Maybe (Value Text)
maxIdleTimeoutInMinutes :: IdleSettingsProperty -> Maybe (Value Integer)
minIdleTimeoutInMinutes :: IdleSettingsProperty -> Maybe (Value Integer)
haddock_workaround_ :: ()
idleTimeoutInMinutes :: Maybe (Value Integer)
lifecycleManagement :: Maybe (Value Text)
maxIdleTimeoutInMinutes :: Maybe (Value Integer)
minIdleTimeoutInMinutes :: 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
"IdleTimeoutInMinutes" (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)
idleTimeoutInMinutes,
               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
"LifecycleManagement" (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)
lifecycleManagement,
               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
"MaxIdleTimeoutInMinutes"
                 (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)
maxIdleTimeoutInMinutes,
               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
"MinIdleTimeoutInMinutes"
                 (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)
minIdleTimeoutInMinutes]))
instance Property "IdleTimeoutInMinutes" IdleSettingsProperty where
  type PropertyType "IdleTimeoutInMinutes" IdleSettingsProperty = Value Prelude.Integer
  set :: PropertyType "IdleTimeoutInMinutes" IdleSettingsProperty
-> IdleSettingsProperty -> IdleSettingsProperty
set PropertyType "IdleTimeoutInMinutes" IdleSettingsProperty
newValue IdleSettingsProperty {Maybe (Value Integer)
Maybe (Value Text)
()
haddock_workaround_ :: IdleSettingsProperty -> ()
idleTimeoutInMinutes :: IdleSettingsProperty -> Maybe (Value Integer)
lifecycleManagement :: IdleSettingsProperty -> Maybe (Value Text)
maxIdleTimeoutInMinutes :: IdleSettingsProperty -> Maybe (Value Integer)
minIdleTimeoutInMinutes :: IdleSettingsProperty -> Maybe (Value Integer)
haddock_workaround_ :: ()
idleTimeoutInMinutes :: Maybe (Value Integer)
lifecycleManagement :: Maybe (Value Text)
maxIdleTimeoutInMinutes :: Maybe (Value Integer)
minIdleTimeoutInMinutes :: Maybe (Value Integer)
..}
    = IdleSettingsProperty
        {idleTimeoutInMinutes :: Maybe (Value Integer)
idleTimeoutInMinutes = Value Integer -> Maybe (Value Integer)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "IdleTimeoutInMinutes" IdleSettingsProperty
Value Integer
newValue, Maybe (Value Integer)
Maybe (Value Text)
()
haddock_workaround_ :: ()
lifecycleManagement :: Maybe (Value Text)
maxIdleTimeoutInMinutes :: Maybe (Value Integer)
minIdleTimeoutInMinutes :: Maybe (Value Integer)
haddock_workaround_ :: ()
lifecycleManagement :: Maybe (Value Text)
maxIdleTimeoutInMinutes :: Maybe (Value Integer)
minIdleTimeoutInMinutes :: Maybe (Value Integer)
..}
instance Property "LifecycleManagement" IdleSettingsProperty where
  type PropertyType "LifecycleManagement" IdleSettingsProperty = Value Prelude.Text
  set :: PropertyType "LifecycleManagement" IdleSettingsProperty
-> IdleSettingsProperty -> IdleSettingsProperty
set PropertyType "LifecycleManagement" IdleSettingsProperty
newValue IdleSettingsProperty {Maybe (Value Integer)
Maybe (Value Text)
()
haddock_workaround_ :: IdleSettingsProperty -> ()
idleTimeoutInMinutes :: IdleSettingsProperty -> Maybe (Value Integer)
lifecycleManagement :: IdleSettingsProperty -> Maybe (Value Text)
maxIdleTimeoutInMinutes :: IdleSettingsProperty -> Maybe (Value Integer)
minIdleTimeoutInMinutes :: IdleSettingsProperty -> Maybe (Value Integer)
haddock_workaround_ :: ()
idleTimeoutInMinutes :: Maybe (Value Integer)
lifecycleManagement :: Maybe (Value Text)
maxIdleTimeoutInMinutes :: Maybe (Value Integer)
minIdleTimeoutInMinutes :: Maybe (Value Integer)
..}
    = IdleSettingsProperty
        {lifecycleManagement :: Maybe (Value Text)
lifecycleManagement = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "LifecycleManagement" IdleSettingsProperty
Value Text
newValue, Maybe (Value Integer)
()
haddock_workaround_ :: ()
idleTimeoutInMinutes :: Maybe (Value Integer)
maxIdleTimeoutInMinutes :: Maybe (Value Integer)
minIdleTimeoutInMinutes :: Maybe (Value Integer)
haddock_workaround_ :: ()
idleTimeoutInMinutes :: Maybe (Value Integer)
maxIdleTimeoutInMinutes :: Maybe (Value Integer)
minIdleTimeoutInMinutes :: Maybe (Value Integer)
..}
instance Property "MaxIdleTimeoutInMinutes" IdleSettingsProperty where
  type PropertyType "MaxIdleTimeoutInMinutes" IdleSettingsProperty = Value Prelude.Integer
  set :: PropertyType "MaxIdleTimeoutInMinutes" IdleSettingsProperty
-> IdleSettingsProperty -> IdleSettingsProperty
set PropertyType "MaxIdleTimeoutInMinutes" IdleSettingsProperty
newValue IdleSettingsProperty {Maybe (Value Integer)
Maybe (Value Text)
()
haddock_workaround_ :: IdleSettingsProperty -> ()
idleTimeoutInMinutes :: IdleSettingsProperty -> Maybe (Value Integer)
lifecycleManagement :: IdleSettingsProperty -> Maybe (Value Text)
maxIdleTimeoutInMinutes :: IdleSettingsProperty -> Maybe (Value Integer)
minIdleTimeoutInMinutes :: IdleSettingsProperty -> Maybe (Value Integer)
haddock_workaround_ :: ()
idleTimeoutInMinutes :: Maybe (Value Integer)
lifecycleManagement :: Maybe (Value Text)
maxIdleTimeoutInMinutes :: Maybe (Value Integer)
minIdleTimeoutInMinutes :: Maybe (Value Integer)
..}
    = IdleSettingsProperty
        {maxIdleTimeoutInMinutes :: Maybe (Value Integer)
maxIdleTimeoutInMinutes = Value Integer -> Maybe (Value Integer)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "MaxIdleTimeoutInMinutes" IdleSettingsProperty
Value Integer
newValue, Maybe (Value Integer)
Maybe (Value Text)
()
haddock_workaround_ :: ()
idleTimeoutInMinutes :: Maybe (Value Integer)
lifecycleManagement :: Maybe (Value Text)
minIdleTimeoutInMinutes :: Maybe (Value Integer)
haddock_workaround_ :: ()
idleTimeoutInMinutes :: Maybe (Value Integer)
lifecycleManagement :: Maybe (Value Text)
minIdleTimeoutInMinutes :: Maybe (Value Integer)
..}
instance Property "MinIdleTimeoutInMinutes" IdleSettingsProperty where
  type PropertyType "MinIdleTimeoutInMinutes" IdleSettingsProperty = Value Prelude.Integer
  set :: PropertyType "MinIdleTimeoutInMinutes" IdleSettingsProperty
-> IdleSettingsProperty -> IdleSettingsProperty
set PropertyType "MinIdleTimeoutInMinutes" IdleSettingsProperty
newValue IdleSettingsProperty {Maybe (Value Integer)
Maybe (Value Text)
()
haddock_workaround_ :: IdleSettingsProperty -> ()
idleTimeoutInMinutes :: IdleSettingsProperty -> Maybe (Value Integer)
lifecycleManagement :: IdleSettingsProperty -> Maybe (Value Text)
maxIdleTimeoutInMinutes :: IdleSettingsProperty -> Maybe (Value Integer)
minIdleTimeoutInMinutes :: IdleSettingsProperty -> Maybe (Value Integer)
haddock_workaround_ :: ()
idleTimeoutInMinutes :: Maybe (Value Integer)
lifecycleManagement :: Maybe (Value Text)
maxIdleTimeoutInMinutes :: Maybe (Value Integer)
minIdleTimeoutInMinutes :: Maybe (Value Integer)
..}
    = IdleSettingsProperty
        {minIdleTimeoutInMinutes :: Maybe (Value Integer)
minIdleTimeoutInMinutes = Value Integer -> Maybe (Value Integer)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "MinIdleTimeoutInMinutes" IdleSettingsProperty
Value Integer
newValue, Maybe (Value Integer)
Maybe (Value Text)
()
haddock_workaround_ :: ()
idleTimeoutInMinutes :: Maybe (Value Integer)
lifecycleManagement :: Maybe (Value Text)
maxIdleTimeoutInMinutes :: Maybe (Value Integer)
haddock_workaround_ :: ()
idleTimeoutInMinutes :: Maybe (Value Integer)
lifecycleManagement :: Maybe (Value Text)
maxIdleTimeoutInMinutes :: Maybe (Value Integer)
..}