module Stratosphere.SageMaker.StudioLifecycleConfig (
StudioLifecycleConfig(..), mkStudioLifecycleConfig
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Tag
import Stratosphere.Value
data StudioLifecycleConfig
=
StudioLifecycleConfig {StudioLifecycleConfig -> ()
haddock_workaround_ :: (),
StudioLifecycleConfig -> Value Text
studioLifecycleConfigAppType :: (Value Prelude.Text),
StudioLifecycleConfig -> Value Text
studioLifecycleConfigContent :: (Value Prelude.Text),
StudioLifecycleConfig -> Value Text
studioLifecycleConfigName :: (Value Prelude.Text),
StudioLifecycleConfig -> Maybe [Tag]
tags :: (Prelude.Maybe [Tag])}
deriving stock (StudioLifecycleConfig -> StudioLifecycleConfig -> Bool
(StudioLifecycleConfig -> StudioLifecycleConfig -> Bool)
-> (StudioLifecycleConfig -> StudioLifecycleConfig -> Bool)
-> Eq StudioLifecycleConfig
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: StudioLifecycleConfig -> StudioLifecycleConfig -> Bool
== :: StudioLifecycleConfig -> StudioLifecycleConfig -> Bool
$c/= :: StudioLifecycleConfig -> StudioLifecycleConfig -> Bool
/= :: StudioLifecycleConfig -> StudioLifecycleConfig -> Bool
Prelude.Eq, Int -> StudioLifecycleConfig -> ShowS
[StudioLifecycleConfig] -> ShowS
StudioLifecycleConfig -> String
(Int -> StudioLifecycleConfig -> ShowS)
-> (StudioLifecycleConfig -> String)
-> ([StudioLifecycleConfig] -> ShowS)
-> Show StudioLifecycleConfig
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> StudioLifecycleConfig -> ShowS
showsPrec :: Int -> StudioLifecycleConfig -> ShowS
$cshow :: StudioLifecycleConfig -> String
show :: StudioLifecycleConfig -> String
$cshowList :: [StudioLifecycleConfig] -> ShowS
showList :: [StudioLifecycleConfig] -> ShowS
Prelude.Show)
mkStudioLifecycleConfig ::
Value Prelude.Text
-> Value Prelude.Text
-> Value Prelude.Text -> StudioLifecycleConfig
mkStudioLifecycleConfig :: Value Text -> Value Text -> Value Text -> StudioLifecycleConfig
mkStudioLifecycleConfig
Value Text
studioLifecycleConfigAppType
Value Text
studioLifecycleConfigContent
Value Text
studioLifecycleConfigName
= StudioLifecycleConfig
{haddock_workaround_ :: ()
haddock_workaround_ = (),
studioLifecycleConfigAppType :: Value Text
studioLifecycleConfigAppType = Value Text
studioLifecycleConfigAppType,
studioLifecycleConfigContent :: Value Text
studioLifecycleConfigContent = Value Text
studioLifecycleConfigContent,
studioLifecycleConfigName :: Value Text
studioLifecycleConfigName = Value Text
studioLifecycleConfigName,
tags :: Maybe [Tag]
tags = Maybe [Tag]
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties StudioLifecycleConfig where
toResourceProperties :: StudioLifecycleConfig -> ResourceProperties
toResourceProperties StudioLifecycleConfig {Maybe [Tag]
()
Value Text
haddock_workaround_ :: StudioLifecycleConfig -> ()
studioLifecycleConfigAppType :: StudioLifecycleConfig -> Value Text
studioLifecycleConfigContent :: StudioLifecycleConfig -> Value Text
studioLifecycleConfigName :: StudioLifecycleConfig -> Value Text
tags :: StudioLifecycleConfig -> Maybe [Tag]
haddock_workaround_ :: ()
studioLifecycleConfigAppType :: Value Text
studioLifecycleConfigContent :: Value Text
studioLifecycleConfigName :: Value Text
tags :: Maybe [Tag]
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::SageMaker::StudioLifecycleConfig",
supportsTags :: Bool
supportsTags = Bool
Prelude.True,
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
"StudioLifecycleConfigAppType"
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..= Value Text
studioLifecycleConfigAppType,
Key
"StudioLifecycleConfigContent"
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..= Value Text
studioLifecycleConfigContent,
Key
"StudioLifecycleConfigName" 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..= Value Text
studioLifecycleConfigName]
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes [Key -> [Tag] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Tags" ([Tag] -> (Key, Value)) -> Maybe [Tag] -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [Tag]
tags]))}
instance JSON.ToJSON StudioLifecycleConfig where
toJSON :: StudioLifecycleConfig -> Value
toJSON StudioLifecycleConfig {Maybe [Tag]
()
Value Text
haddock_workaround_ :: StudioLifecycleConfig -> ()
studioLifecycleConfigAppType :: StudioLifecycleConfig -> Value Text
studioLifecycleConfigContent :: StudioLifecycleConfig -> Value Text
studioLifecycleConfigName :: StudioLifecycleConfig -> Value Text
tags :: StudioLifecycleConfig -> Maybe [Tag]
haddock_workaround_ :: ()
studioLifecycleConfigAppType :: Value Text
studioLifecycleConfigContent :: Value Text
studioLifecycleConfigName :: Value Text
tags :: Maybe [Tag]
..}
= [(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
"StudioLifecycleConfigAppType"
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..= Value Text
studioLifecycleConfigAppType,
Key
"StudioLifecycleConfigContent"
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..= Value Text
studioLifecycleConfigContent,
Key
"StudioLifecycleConfigName" 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..= Value Text
studioLifecycleConfigName]
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes [Key -> [Tag] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Tags" ([Tag] -> (Key, Value)) -> Maybe [Tag] -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [Tag]
tags])))
instance Property "StudioLifecycleConfigAppType" StudioLifecycleConfig where
type PropertyType "StudioLifecycleConfigAppType" StudioLifecycleConfig = Value Prelude.Text
set :: PropertyType "StudioLifecycleConfigAppType" StudioLifecycleConfig
-> StudioLifecycleConfig -> StudioLifecycleConfig
set PropertyType "StudioLifecycleConfigAppType" StudioLifecycleConfig
newValue StudioLifecycleConfig {Maybe [Tag]
()
Value Text
haddock_workaround_ :: StudioLifecycleConfig -> ()
studioLifecycleConfigAppType :: StudioLifecycleConfig -> Value Text
studioLifecycleConfigContent :: StudioLifecycleConfig -> Value Text
studioLifecycleConfigName :: StudioLifecycleConfig -> Value Text
tags :: StudioLifecycleConfig -> Maybe [Tag]
haddock_workaround_ :: ()
studioLifecycleConfigAppType :: Value Text
studioLifecycleConfigContent :: Value Text
studioLifecycleConfigName :: Value Text
tags :: Maybe [Tag]
..}
= StudioLifecycleConfig
{studioLifecycleConfigAppType :: Value Text
studioLifecycleConfigAppType = PropertyType "StudioLifecycleConfigAppType" StudioLifecycleConfig
Value Text
newValue, Maybe [Tag]
()
Value Text
haddock_workaround_ :: ()
studioLifecycleConfigContent :: Value Text
studioLifecycleConfigName :: Value Text
tags :: Maybe [Tag]
haddock_workaround_ :: ()
studioLifecycleConfigContent :: Value Text
studioLifecycleConfigName :: Value Text
tags :: Maybe [Tag]
..}
instance Property "StudioLifecycleConfigContent" StudioLifecycleConfig where
type PropertyType "StudioLifecycleConfigContent" StudioLifecycleConfig = Value Prelude.Text
set :: PropertyType "StudioLifecycleConfigContent" StudioLifecycleConfig
-> StudioLifecycleConfig -> StudioLifecycleConfig
set PropertyType "StudioLifecycleConfigContent" StudioLifecycleConfig
newValue StudioLifecycleConfig {Maybe [Tag]
()
Value Text
haddock_workaround_ :: StudioLifecycleConfig -> ()
studioLifecycleConfigAppType :: StudioLifecycleConfig -> Value Text
studioLifecycleConfigContent :: StudioLifecycleConfig -> Value Text
studioLifecycleConfigName :: StudioLifecycleConfig -> Value Text
tags :: StudioLifecycleConfig -> Maybe [Tag]
haddock_workaround_ :: ()
studioLifecycleConfigAppType :: Value Text
studioLifecycleConfigContent :: Value Text
studioLifecycleConfigName :: Value Text
tags :: Maybe [Tag]
..}
= StudioLifecycleConfig
{studioLifecycleConfigContent :: Value Text
studioLifecycleConfigContent = PropertyType "StudioLifecycleConfigContent" StudioLifecycleConfig
Value Text
newValue, Maybe [Tag]
()
Value Text
haddock_workaround_ :: ()
studioLifecycleConfigAppType :: Value Text
studioLifecycleConfigName :: Value Text
tags :: Maybe [Tag]
haddock_workaround_ :: ()
studioLifecycleConfigAppType :: Value Text
studioLifecycleConfigName :: Value Text
tags :: Maybe [Tag]
..}
instance Property "StudioLifecycleConfigName" StudioLifecycleConfig where
type PropertyType "StudioLifecycleConfigName" StudioLifecycleConfig = Value Prelude.Text
set :: PropertyType "StudioLifecycleConfigName" StudioLifecycleConfig
-> StudioLifecycleConfig -> StudioLifecycleConfig
set PropertyType "StudioLifecycleConfigName" StudioLifecycleConfig
newValue StudioLifecycleConfig {Maybe [Tag]
()
Value Text
haddock_workaround_ :: StudioLifecycleConfig -> ()
studioLifecycleConfigAppType :: StudioLifecycleConfig -> Value Text
studioLifecycleConfigContent :: StudioLifecycleConfig -> Value Text
studioLifecycleConfigName :: StudioLifecycleConfig -> Value Text
tags :: StudioLifecycleConfig -> Maybe [Tag]
haddock_workaround_ :: ()
studioLifecycleConfigAppType :: Value Text
studioLifecycleConfigContent :: Value Text
studioLifecycleConfigName :: Value Text
tags :: Maybe [Tag]
..}
= StudioLifecycleConfig {studioLifecycleConfigName :: Value Text
studioLifecycleConfigName = PropertyType "StudioLifecycleConfigName" StudioLifecycleConfig
Value Text
newValue, Maybe [Tag]
()
Value Text
haddock_workaround_ :: ()
studioLifecycleConfigAppType :: Value Text
studioLifecycleConfigContent :: Value Text
tags :: Maybe [Tag]
haddock_workaround_ :: ()
studioLifecycleConfigAppType :: Value Text
studioLifecycleConfigContent :: Value Text
tags :: Maybe [Tag]
..}
instance Property "Tags" StudioLifecycleConfig where
type PropertyType "Tags" StudioLifecycleConfig = [Tag]
set :: PropertyType "Tags" StudioLifecycleConfig
-> StudioLifecycleConfig -> StudioLifecycleConfig
set PropertyType "Tags" StudioLifecycleConfig
newValue StudioLifecycleConfig {Maybe [Tag]
()
Value Text
haddock_workaround_ :: StudioLifecycleConfig -> ()
studioLifecycleConfigAppType :: StudioLifecycleConfig -> Value Text
studioLifecycleConfigContent :: StudioLifecycleConfig -> Value Text
studioLifecycleConfigName :: StudioLifecycleConfig -> Value Text
tags :: StudioLifecycleConfig -> Maybe [Tag]
haddock_workaround_ :: ()
studioLifecycleConfigAppType :: Value Text
studioLifecycleConfigContent :: Value Text
studioLifecycleConfigName :: Value Text
tags :: Maybe [Tag]
..}
= StudioLifecycleConfig {tags :: Maybe [Tag]
tags = [Tag] -> Maybe [Tag]
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure [Tag]
PropertyType "Tags" StudioLifecycleConfig
newValue, ()
Value Text
haddock_workaround_ :: ()
studioLifecycleConfigAppType :: Value Text
studioLifecycleConfigContent :: Value Text
studioLifecycleConfigName :: Value Text
haddock_workaround_ :: ()
studioLifecycleConfigAppType :: Value Text
studioLifecycleConfigContent :: Value Text
studioLifecycleConfigName :: Value Text
..}