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