module Stratosphere.SageMaker.Cluster.ClusterLifeCycleConfigProperty (
ClusterLifeCycleConfigProperty(..),
mkClusterLifeCycleConfigProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data ClusterLifeCycleConfigProperty
=
ClusterLifeCycleConfigProperty {ClusterLifeCycleConfigProperty -> ()
haddock_workaround_ :: (),
ClusterLifeCycleConfigProperty -> Value Text
onCreate :: (Value Prelude.Text),
ClusterLifeCycleConfigProperty -> Value Text
sourceS3Uri :: (Value Prelude.Text)}
deriving stock (ClusterLifeCycleConfigProperty
-> ClusterLifeCycleConfigProperty -> Bool
(ClusterLifeCycleConfigProperty
-> ClusterLifeCycleConfigProperty -> Bool)
-> (ClusterLifeCycleConfigProperty
-> ClusterLifeCycleConfigProperty -> Bool)
-> Eq ClusterLifeCycleConfigProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: ClusterLifeCycleConfigProperty
-> ClusterLifeCycleConfigProperty -> Bool
== :: ClusterLifeCycleConfigProperty
-> ClusterLifeCycleConfigProperty -> Bool
$c/= :: ClusterLifeCycleConfigProperty
-> ClusterLifeCycleConfigProperty -> Bool
/= :: ClusterLifeCycleConfigProperty
-> ClusterLifeCycleConfigProperty -> Bool
Prelude.Eq, Int -> ClusterLifeCycleConfigProperty -> ShowS
[ClusterLifeCycleConfigProperty] -> ShowS
ClusterLifeCycleConfigProperty -> String
(Int -> ClusterLifeCycleConfigProperty -> ShowS)
-> (ClusterLifeCycleConfigProperty -> String)
-> ([ClusterLifeCycleConfigProperty] -> ShowS)
-> Show ClusterLifeCycleConfigProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> ClusterLifeCycleConfigProperty -> ShowS
showsPrec :: Int -> ClusterLifeCycleConfigProperty -> ShowS
$cshow :: ClusterLifeCycleConfigProperty -> String
show :: ClusterLifeCycleConfigProperty -> String
$cshowList :: [ClusterLifeCycleConfigProperty] -> ShowS
showList :: [ClusterLifeCycleConfigProperty] -> ShowS
Prelude.Show)
mkClusterLifeCycleConfigProperty ::
Value Prelude.Text
-> Value Prelude.Text -> ClusterLifeCycleConfigProperty
mkClusterLifeCycleConfigProperty :: Value Text -> Value Text -> ClusterLifeCycleConfigProperty
mkClusterLifeCycleConfigProperty Value Text
onCreate Value Text
sourceS3Uri
= ClusterLifeCycleConfigProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), onCreate :: Value Text
onCreate = Value Text
onCreate,
sourceS3Uri :: Value Text
sourceS3Uri = Value Text
sourceS3Uri}
instance ToResourceProperties ClusterLifeCycleConfigProperty where
toResourceProperties :: ClusterLifeCycleConfigProperty -> ResourceProperties
toResourceProperties ClusterLifeCycleConfigProperty {()
Value Text
haddock_workaround_ :: ClusterLifeCycleConfigProperty -> ()
onCreate :: ClusterLifeCycleConfigProperty -> Value Text
sourceS3Uri :: ClusterLifeCycleConfigProperty -> Value Text
haddock_workaround_ :: ()
onCreate :: Value Text
sourceS3Uri :: Value Text
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::SageMaker::Cluster.ClusterLifeCycleConfig",
supportsTags :: Bool
supportsTags = Bool
Prelude.False,
properties :: Object
properties = [Key
"OnCreate" 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
onCreate,
Key
"SourceS3Uri" 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
sourceS3Uri]}
instance JSON.ToJSON ClusterLifeCycleConfigProperty where
toJSON :: ClusterLifeCycleConfigProperty -> Value
toJSON ClusterLifeCycleConfigProperty {()
Value Text
haddock_workaround_ :: ClusterLifeCycleConfigProperty -> ()
onCreate :: ClusterLifeCycleConfigProperty -> Value Text
sourceS3Uri :: ClusterLifeCycleConfigProperty -> Value Text
haddock_workaround_ :: ()
onCreate :: Value Text
sourceS3Uri :: Value Text
..}
= [(Key, Value)] -> Value
JSON.object
[Key
"OnCreate" 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
onCreate, Key
"SourceS3Uri" 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
sourceS3Uri]
instance Property "OnCreate" ClusterLifeCycleConfigProperty where
type PropertyType "OnCreate" ClusterLifeCycleConfigProperty = Value Prelude.Text
set :: PropertyType "OnCreate" ClusterLifeCycleConfigProperty
-> ClusterLifeCycleConfigProperty -> ClusterLifeCycleConfigProperty
set PropertyType "OnCreate" ClusterLifeCycleConfigProperty
newValue ClusterLifeCycleConfigProperty {()
Value Text
haddock_workaround_ :: ClusterLifeCycleConfigProperty -> ()
onCreate :: ClusterLifeCycleConfigProperty -> Value Text
sourceS3Uri :: ClusterLifeCycleConfigProperty -> Value Text
haddock_workaround_ :: ()
onCreate :: Value Text
sourceS3Uri :: Value Text
..}
= ClusterLifeCycleConfigProperty {onCreate :: Value Text
onCreate = PropertyType "OnCreate" ClusterLifeCycleConfigProperty
Value Text
newValue, ()
Value Text
haddock_workaround_ :: ()
sourceS3Uri :: Value Text
haddock_workaround_ :: ()
sourceS3Uri :: Value Text
..}
instance Property "SourceS3Uri" ClusterLifeCycleConfigProperty where
type PropertyType "SourceS3Uri" ClusterLifeCycleConfigProperty = Value Prelude.Text
set :: PropertyType "SourceS3Uri" ClusterLifeCycleConfigProperty
-> ClusterLifeCycleConfigProperty -> ClusterLifeCycleConfigProperty
set PropertyType "SourceS3Uri" ClusterLifeCycleConfigProperty
newValue ClusterLifeCycleConfigProperty {()
Value Text
haddock_workaround_ :: ClusterLifeCycleConfigProperty -> ()
onCreate :: ClusterLifeCycleConfigProperty -> Value Text
sourceS3Uri :: ClusterLifeCycleConfigProperty -> Value Text
haddock_workaround_ :: ()
onCreate :: Value Text
sourceS3Uri :: Value Text
..}
= ClusterLifeCycleConfigProperty {sourceS3Uri :: Value Text
sourceS3Uri = PropertyType "SourceS3Uri" ClusterLifeCycleConfigProperty
Value Text
newValue, ()
Value Text
haddock_workaround_ :: ()
onCreate :: Value Text
haddock_workaround_ :: ()
onCreate :: Value Text
..}