module Stratosphere.SageMaker.Domain.CodeEditorAppSettingsProperty ( module Exports, CodeEditorAppSettingsProperty(..), mkCodeEditorAppSettingsProperty ) where import qualified Data.Aeson as JSON import qualified Stratosphere.Prelude as Prelude import Stratosphere.Property import {-# SOURCE #-} Stratosphere.SageMaker.Domain.AppLifecycleManagementProperty as Exports import {-# SOURCE #-} Stratosphere.SageMaker.Domain.CustomImageProperty as Exports import {-# SOURCE #-} Stratosphere.SageMaker.Domain.ResourceSpecProperty as Exports import Stratosphere.ResourceProperties import Stratosphere.Value data CodeEditorAppSettingsProperty = -- | See: CodeEditorAppSettingsProperty {haddock_workaround_ :: (), -- | See: appLifecycleManagement :: (Prelude.Maybe AppLifecycleManagementProperty), -- | See: builtInLifecycleConfigArn :: (Prelude.Maybe (Value Prelude.Text)), -- | See: customImages :: (Prelude.Maybe [CustomImageProperty]), -- | See: defaultResourceSpec :: (Prelude.Maybe ResourceSpecProperty), -- | See: lifecycleConfigArns :: (Prelude.Maybe (ValueList Prelude.Text))} deriving stock (Prelude.Eq, Prelude.Show) mkCodeEditorAppSettingsProperty :: CodeEditorAppSettingsProperty mkCodeEditorAppSettingsProperty = CodeEditorAppSettingsProperty {haddock_workaround_ = (), appLifecycleManagement = Prelude.Nothing, builtInLifecycleConfigArn = Prelude.Nothing, customImages = Prelude.Nothing, defaultResourceSpec = Prelude.Nothing, lifecycleConfigArns = Prelude.Nothing} instance ToResourceProperties CodeEditorAppSettingsProperty where toResourceProperties CodeEditorAppSettingsProperty {..} = ResourceProperties {awsType = "AWS::SageMaker::Domain.CodeEditorAppSettings", supportsTags = Prelude.False, properties = Prelude.fromList (Prelude.catMaybes [(JSON..=) "AppLifecycleManagement" Prelude.<$> appLifecycleManagement, (JSON..=) "BuiltInLifecycleConfigArn" Prelude.<$> builtInLifecycleConfigArn, (JSON..=) "CustomImages" Prelude.<$> customImages, (JSON..=) "DefaultResourceSpec" Prelude.<$> defaultResourceSpec, (JSON..=) "LifecycleConfigArns" Prelude.<$> lifecycleConfigArns])} instance JSON.ToJSON CodeEditorAppSettingsProperty where toJSON CodeEditorAppSettingsProperty {..} = JSON.object (Prelude.fromList (Prelude.catMaybes [(JSON..=) "AppLifecycleManagement" Prelude.<$> appLifecycleManagement, (JSON..=) "BuiltInLifecycleConfigArn" Prelude.<$> builtInLifecycleConfigArn, (JSON..=) "CustomImages" Prelude.<$> customImages, (JSON..=) "DefaultResourceSpec" Prelude.<$> defaultResourceSpec, (JSON..=) "LifecycleConfigArns" Prelude.<$> lifecycleConfigArns])) instance Property "AppLifecycleManagement" CodeEditorAppSettingsProperty where type PropertyType "AppLifecycleManagement" CodeEditorAppSettingsProperty = AppLifecycleManagementProperty set newValue CodeEditorAppSettingsProperty {..} = CodeEditorAppSettingsProperty {appLifecycleManagement = Prelude.pure newValue, ..} instance Property "BuiltInLifecycleConfigArn" CodeEditorAppSettingsProperty where type PropertyType "BuiltInLifecycleConfigArn" CodeEditorAppSettingsProperty = Value Prelude.Text set newValue CodeEditorAppSettingsProperty {..} = CodeEditorAppSettingsProperty {builtInLifecycleConfigArn = Prelude.pure newValue, ..} instance Property "CustomImages" CodeEditorAppSettingsProperty where type PropertyType "CustomImages" CodeEditorAppSettingsProperty = [CustomImageProperty] set newValue CodeEditorAppSettingsProperty {..} = CodeEditorAppSettingsProperty {customImages = Prelude.pure newValue, ..} instance Property "DefaultResourceSpec" CodeEditorAppSettingsProperty where type PropertyType "DefaultResourceSpec" CodeEditorAppSettingsProperty = ResourceSpecProperty set newValue CodeEditorAppSettingsProperty {..} = CodeEditorAppSettingsProperty {defaultResourceSpec = Prelude.pure newValue, ..} instance Property "LifecycleConfigArns" CodeEditorAppSettingsProperty where type PropertyType "LifecycleConfigArns" CodeEditorAppSettingsProperty = ValueList Prelude.Text set newValue CodeEditorAppSettingsProperty {..} = CodeEditorAppSettingsProperty {lifecycleConfigArns = Prelude.pure newValue, ..}