module Stratosphere.SageMaker.ModelBiasJobDefinition.NetworkConfigProperty ( module Exports, NetworkConfigProperty(..), mkNetworkConfigProperty ) where import qualified Data.Aeson as JSON import qualified Stratosphere.Prelude as Prelude import Stratosphere.Property import {-# SOURCE #-} Stratosphere.SageMaker.ModelBiasJobDefinition.VpcConfigProperty as Exports import Stratosphere.ResourceProperties import Stratosphere.Value data NetworkConfigProperty = -- | See: NetworkConfigProperty {haddock_workaround_ :: (), -- | See: enableInterContainerTrafficEncryption :: (Prelude.Maybe (Value Prelude.Bool)), -- | See: enableNetworkIsolation :: (Prelude.Maybe (Value Prelude.Bool)), -- | See: vpcConfig :: (Prelude.Maybe VpcConfigProperty)} deriving stock (Prelude.Eq, Prelude.Show) mkNetworkConfigProperty :: NetworkConfigProperty mkNetworkConfigProperty = NetworkConfigProperty {haddock_workaround_ = (), enableInterContainerTrafficEncryption = Prelude.Nothing, enableNetworkIsolation = Prelude.Nothing, vpcConfig = Prelude.Nothing} instance ToResourceProperties NetworkConfigProperty where toResourceProperties NetworkConfigProperty {..} = ResourceProperties {awsType = "AWS::SageMaker::ModelBiasJobDefinition.NetworkConfig", supportsTags = Prelude.False, properties = Prelude.fromList (Prelude.catMaybes [(JSON..=) "EnableInterContainerTrafficEncryption" Prelude.<$> enableInterContainerTrafficEncryption, (JSON..=) "EnableNetworkIsolation" Prelude.<$> enableNetworkIsolation, (JSON..=) "VpcConfig" Prelude.<$> vpcConfig])} instance JSON.ToJSON NetworkConfigProperty where toJSON NetworkConfigProperty {..} = JSON.object (Prelude.fromList (Prelude.catMaybes [(JSON..=) "EnableInterContainerTrafficEncryption" Prelude.<$> enableInterContainerTrafficEncryption, (JSON..=) "EnableNetworkIsolation" Prelude.<$> enableNetworkIsolation, (JSON..=) "VpcConfig" Prelude.<$> vpcConfig])) instance Property "EnableInterContainerTrafficEncryption" NetworkConfigProperty where type PropertyType "EnableInterContainerTrafficEncryption" NetworkConfigProperty = Value Prelude.Bool set newValue NetworkConfigProperty {..} = NetworkConfigProperty {enableInterContainerTrafficEncryption = Prelude.pure newValue, ..} instance Property "EnableNetworkIsolation" NetworkConfigProperty where type PropertyType "EnableNetworkIsolation" NetworkConfigProperty = Value Prelude.Bool set newValue NetworkConfigProperty {..} = NetworkConfigProperty {enableNetworkIsolation = Prelude.pure newValue, ..} instance Property "VpcConfig" NetworkConfigProperty where type PropertyType "VpcConfig" NetworkConfigProperty = VpcConfigProperty set newValue NetworkConfigProperty {..} = NetworkConfigProperty {vpcConfig = Prelude.pure newValue, ..}