module Stratosphere.SageMaker.Model ( module Exports, Model(..), mkModel ) where import qualified Data.Aeson as JSON import qualified Stratosphere.Prelude as Prelude import Stratosphere.Property import {-# SOURCE #-} Stratosphere.SageMaker.Model.ContainerDefinitionProperty as Exports import {-# SOURCE #-} Stratosphere.SageMaker.Model.InferenceExecutionConfigProperty as Exports import {-# SOURCE #-} Stratosphere.SageMaker.Model.VpcConfigProperty as Exports import Stratosphere.ResourceProperties import Stratosphere.Tag import Stratosphere.Value data Model = -- | See: Model {haddock_workaround_ :: (), -- | See: containers :: (Prelude.Maybe [ContainerDefinitionProperty]), -- | See: enableNetworkIsolation :: (Prelude.Maybe (Value Prelude.Bool)), -- | See: executionRoleArn :: (Prelude.Maybe (Value Prelude.Text)), -- | See: inferenceExecutionConfig :: (Prelude.Maybe InferenceExecutionConfigProperty), -- | See: modelName :: (Prelude.Maybe (Value Prelude.Text)), -- | See: primaryContainer :: (Prelude.Maybe ContainerDefinitionProperty), -- | See: tags :: (Prelude.Maybe [Tag]), -- | See: vpcConfig :: (Prelude.Maybe VpcConfigProperty)} deriving stock (Prelude.Eq, Prelude.Show) mkModel :: Model mkModel = Model {haddock_workaround_ = (), containers = Prelude.Nothing, enableNetworkIsolation = Prelude.Nothing, executionRoleArn = Prelude.Nothing, inferenceExecutionConfig = Prelude.Nothing, modelName = Prelude.Nothing, primaryContainer = Prelude.Nothing, tags = Prelude.Nothing, vpcConfig = Prelude.Nothing} instance ToResourceProperties Model where toResourceProperties Model {..} = ResourceProperties {awsType = "AWS::SageMaker::Model", supportsTags = Prelude.True, properties = Prelude.fromList (Prelude.catMaybes [(JSON..=) "Containers" Prelude.<$> containers, (JSON..=) "EnableNetworkIsolation" Prelude.<$> enableNetworkIsolation, (JSON..=) "ExecutionRoleArn" Prelude.<$> executionRoleArn, (JSON..=) "InferenceExecutionConfig" Prelude.<$> inferenceExecutionConfig, (JSON..=) "ModelName" Prelude.<$> modelName, (JSON..=) "PrimaryContainer" Prelude.<$> primaryContainer, (JSON..=) "Tags" Prelude.<$> tags, (JSON..=) "VpcConfig" Prelude.<$> vpcConfig])} instance JSON.ToJSON Model where toJSON Model {..} = JSON.object (Prelude.fromList (Prelude.catMaybes [(JSON..=) "Containers" Prelude.<$> containers, (JSON..=) "EnableNetworkIsolation" Prelude.<$> enableNetworkIsolation, (JSON..=) "ExecutionRoleArn" Prelude.<$> executionRoleArn, (JSON..=) "InferenceExecutionConfig" Prelude.<$> inferenceExecutionConfig, (JSON..=) "ModelName" Prelude.<$> modelName, (JSON..=) "PrimaryContainer" Prelude.<$> primaryContainer, (JSON..=) "Tags" Prelude.<$> tags, (JSON..=) "VpcConfig" Prelude.<$> vpcConfig])) instance Property "Containers" Model where type PropertyType "Containers" Model = [ContainerDefinitionProperty] set newValue Model {..} = Model {containers = Prelude.pure newValue, ..} instance Property "EnableNetworkIsolation" Model where type PropertyType "EnableNetworkIsolation" Model = Value Prelude.Bool set newValue Model {..} = Model {enableNetworkIsolation = Prelude.pure newValue, ..} instance Property "ExecutionRoleArn" Model where type PropertyType "ExecutionRoleArn" Model = Value Prelude.Text set newValue Model {..} = Model {executionRoleArn = Prelude.pure newValue, ..} instance Property "InferenceExecutionConfig" Model where type PropertyType "InferenceExecutionConfig" Model = InferenceExecutionConfigProperty set newValue Model {..} = Model {inferenceExecutionConfig = Prelude.pure newValue, ..} instance Property "ModelName" Model where type PropertyType "ModelName" Model = Value Prelude.Text set newValue Model {..} = Model {modelName = Prelude.pure newValue, ..} instance Property "PrimaryContainer" Model where type PropertyType "PrimaryContainer" Model = ContainerDefinitionProperty set newValue Model {..} = Model {primaryContainer = Prelude.pure newValue, ..} instance Property "Tags" Model where type PropertyType "Tags" Model = [Tag] set newValue Model {..} = Model {tags = Prelude.pure newValue, ..} instance Property "VpcConfig" Model where type PropertyType "VpcConfig" Model = VpcConfigProperty set newValue Model {..} = Model {vpcConfig = Prelude.pure newValue, ..}