module Stratosphere.SageMaker.MonitoringSchedule.ClusterConfigProperty (
        ClusterConfigProperty(..), mkClusterConfigProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data ClusterConfigProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-monitoringschedule-clusterconfig.html>
    ClusterConfigProperty {ClusterConfigProperty -> ()
haddock_workaround_ :: (),
                           -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-monitoringschedule-clusterconfig.html#cfn-sagemaker-monitoringschedule-clusterconfig-instancecount>
                           ClusterConfigProperty -> Value Integer
instanceCount :: (Value Prelude.Integer),
                           -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-monitoringschedule-clusterconfig.html#cfn-sagemaker-monitoringschedule-clusterconfig-instancetype>
                           ClusterConfigProperty -> Value Text
instanceType :: (Value Prelude.Text),
                           -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-monitoringschedule-clusterconfig.html#cfn-sagemaker-monitoringschedule-clusterconfig-volumekmskeyid>
                           ClusterConfigProperty -> Maybe (Value Text)
volumeKmsKeyId :: (Prelude.Maybe (Value Prelude.Text)),
                           -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-monitoringschedule-clusterconfig.html#cfn-sagemaker-monitoringschedule-clusterconfig-volumesizeingb>
                           ClusterConfigProperty -> Value Integer
volumeSizeInGB :: (Value Prelude.Integer)}
  deriving stock (ClusterConfigProperty -> ClusterConfigProperty -> Bool
(ClusterConfigProperty -> ClusterConfigProperty -> Bool)
-> (ClusterConfigProperty -> ClusterConfigProperty -> Bool)
-> Eq ClusterConfigProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: ClusterConfigProperty -> ClusterConfigProperty -> Bool
== :: ClusterConfigProperty -> ClusterConfigProperty -> Bool
$c/= :: ClusterConfigProperty -> ClusterConfigProperty -> Bool
/= :: ClusterConfigProperty -> ClusterConfigProperty -> Bool
Prelude.Eq, Int -> ClusterConfigProperty -> ShowS
[ClusterConfigProperty] -> ShowS
ClusterConfigProperty -> String
(Int -> ClusterConfigProperty -> ShowS)
-> (ClusterConfigProperty -> String)
-> ([ClusterConfigProperty] -> ShowS)
-> Show ClusterConfigProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> ClusterConfigProperty -> ShowS
showsPrec :: Int -> ClusterConfigProperty -> ShowS
$cshow :: ClusterConfigProperty -> String
show :: ClusterConfigProperty -> String
$cshowList :: [ClusterConfigProperty] -> ShowS
showList :: [ClusterConfigProperty] -> ShowS
Prelude.Show)
mkClusterConfigProperty ::
  Value Prelude.Integer
  -> Value Prelude.Text
     -> Value Prelude.Integer -> ClusterConfigProperty
mkClusterConfigProperty :: Value Integer
-> Value Text -> Value Integer -> ClusterConfigProperty
mkClusterConfigProperty Value Integer
instanceCount Value Text
instanceType Value Integer
volumeSizeInGB
  = ClusterConfigProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), instanceCount :: Value Integer
instanceCount = Value Integer
instanceCount,
       instanceType :: Value Text
instanceType = Value Text
instanceType, volumeSizeInGB :: Value Integer
volumeSizeInGB = Value Integer
volumeSizeInGB,
       volumeKmsKeyId :: Maybe (Value Text)
volumeKmsKeyId = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties ClusterConfigProperty where
  toResourceProperties :: ClusterConfigProperty -> ResourceProperties
toResourceProperties ClusterConfigProperty {Maybe (Value Text)
()
Value Integer
Value Text
haddock_workaround_ :: ClusterConfigProperty -> ()
instanceCount :: ClusterConfigProperty -> Value Integer
instanceType :: ClusterConfigProperty -> Value Text
volumeKmsKeyId :: ClusterConfigProperty -> Maybe (Value Text)
volumeSizeInGB :: ClusterConfigProperty -> Value Integer
haddock_workaround_ :: ()
instanceCount :: Value Integer
instanceType :: Value Text
volumeKmsKeyId :: Maybe (Value Text)
volumeSizeInGB :: Value Integer
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::SageMaker::MonitoringSchedule.ClusterConfig",
         supportsTags :: Bool
supportsTags = Bool
Prelude.False,
         properties :: Object
properties = [Item Object] -> Object
forall l. IsList l => [Item l] -> l
Prelude.fromList
                        ([(Key, Value)] -> [(Key, Value)] -> [(Key, Value)]
forall a. Semigroup a => a -> a -> a
(Prelude.<>)
                           [Key
"InstanceCount" Key -> Value Integer -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= Value Integer
instanceCount,
                            Key
"InstanceType" 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
instanceType,
                            Key
"VolumeSizeInGB" Key -> Value Integer -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= Value Integer
volumeSizeInGB]
                           ([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
                              [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..=) Key
"VolumeKmsKeyId" (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
volumeKmsKeyId]))}
instance JSON.ToJSON ClusterConfigProperty where
  toJSON :: ClusterConfigProperty -> Value
toJSON ClusterConfigProperty {Maybe (Value Text)
()
Value Integer
Value Text
haddock_workaround_ :: ClusterConfigProperty -> ()
instanceCount :: ClusterConfigProperty -> Value Integer
instanceType :: ClusterConfigProperty -> Value Text
volumeKmsKeyId :: ClusterConfigProperty -> Maybe (Value Text)
volumeSizeInGB :: ClusterConfigProperty -> Value Integer
haddock_workaround_ :: ()
instanceCount :: Value Integer
instanceType :: Value Text
volumeKmsKeyId :: Maybe (Value Text)
volumeSizeInGB :: Value Integer
..}
    = [(Key, Value)] -> Value
JSON.object
        ([Item [(Key, Value)]] -> [(Key, Value)]
forall l. IsList l => [Item l] -> l
Prelude.fromList
           ([(Key, Value)] -> [(Key, Value)] -> [(Key, Value)]
forall a. Semigroup a => a -> a -> a
(Prelude.<>)
              [Key
"InstanceCount" Key -> Value Integer -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= Value Integer
instanceCount,
               Key
"InstanceType" 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
instanceType,
               Key
"VolumeSizeInGB" Key -> Value Integer -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= Value Integer
volumeSizeInGB]
              ([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
                 [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..=) Key
"VolumeKmsKeyId" (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
volumeKmsKeyId])))
instance Property "InstanceCount" ClusterConfigProperty where
  type PropertyType "InstanceCount" ClusterConfigProperty = Value Prelude.Integer
  set :: PropertyType "InstanceCount" ClusterConfigProperty
-> ClusterConfigProperty -> ClusterConfigProperty
set PropertyType "InstanceCount" ClusterConfigProperty
newValue ClusterConfigProperty {Maybe (Value Text)
()
Value Integer
Value Text
haddock_workaround_ :: ClusterConfigProperty -> ()
instanceCount :: ClusterConfigProperty -> Value Integer
instanceType :: ClusterConfigProperty -> Value Text
volumeKmsKeyId :: ClusterConfigProperty -> Maybe (Value Text)
volumeSizeInGB :: ClusterConfigProperty -> Value Integer
haddock_workaround_ :: ()
instanceCount :: Value Integer
instanceType :: Value Text
volumeKmsKeyId :: Maybe (Value Text)
volumeSizeInGB :: Value Integer
..}
    = ClusterConfigProperty {instanceCount :: Value Integer
instanceCount = PropertyType "InstanceCount" ClusterConfigProperty
Value Integer
newValue, Maybe (Value Text)
()
Value Integer
Value Text
haddock_workaround_ :: ()
instanceType :: Value Text
volumeKmsKeyId :: Maybe (Value Text)
volumeSizeInGB :: Value Integer
haddock_workaround_ :: ()
instanceType :: Value Text
volumeKmsKeyId :: Maybe (Value Text)
volumeSizeInGB :: Value Integer
..}
instance Property "InstanceType" ClusterConfigProperty where
  type PropertyType "InstanceType" ClusterConfigProperty = Value Prelude.Text
  set :: PropertyType "InstanceType" ClusterConfigProperty
-> ClusterConfigProperty -> ClusterConfigProperty
set PropertyType "InstanceType" ClusterConfigProperty
newValue ClusterConfigProperty {Maybe (Value Text)
()
Value Integer
Value Text
haddock_workaround_ :: ClusterConfigProperty -> ()
instanceCount :: ClusterConfigProperty -> Value Integer
instanceType :: ClusterConfigProperty -> Value Text
volumeKmsKeyId :: ClusterConfigProperty -> Maybe (Value Text)
volumeSizeInGB :: ClusterConfigProperty -> Value Integer
haddock_workaround_ :: ()
instanceCount :: Value Integer
instanceType :: Value Text
volumeKmsKeyId :: Maybe (Value Text)
volumeSizeInGB :: Value Integer
..}
    = ClusterConfigProperty {instanceType :: Value Text
instanceType = PropertyType "InstanceType" ClusterConfigProperty
Value Text
newValue, Maybe (Value Text)
()
Value Integer
haddock_workaround_ :: ()
instanceCount :: Value Integer
volumeKmsKeyId :: Maybe (Value Text)
volumeSizeInGB :: Value Integer
haddock_workaround_ :: ()
instanceCount :: Value Integer
volumeKmsKeyId :: Maybe (Value Text)
volumeSizeInGB :: Value Integer
..}
instance Property "VolumeKmsKeyId" ClusterConfigProperty where
  type PropertyType "VolumeKmsKeyId" ClusterConfigProperty = Value Prelude.Text
  set :: PropertyType "VolumeKmsKeyId" ClusterConfigProperty
-> ClusterConfigProperty -> ClusterConfigProperty
set PropertyType "VolumeKmsKeyId" ClusterConfigProperty
newValue ClusterConfigProperty {Maybe (Value Text)
()
Value Integer
Value Text
haddock_workaround_ :: ClusterConfigProperty -> ()
instanceCount :: ClusterConfigProperty -> Value Integer
instanceType :: ClusterConfigProperty -> Value Text
volumeKmsKeyId :: ClusterConfigProperty -> Maybe (Value Text)
volumeSizeInGB :: ClusterConfigProperty -> Value Integer
haddock_workaround_ :: ()
instanceCount :: Value Integer
instanceType :: Value Text
volumeKmsKeyId :: Maybe (Value Text)
volumeSizeInGB :: Value Integer
..}
    = ClusterConfigProperty
        {volumeKmsKeyId :: Maybe (Value Text)
volumeKmsKeyId = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "VolumeKmsKeyId" ClusterConfigProperty
Value Text
newValue, ()
Value Integer
Value Text
haddock_workaround_ :: ()
instanceCount :: Value Integer
instanceType :: Value Text
volumeSizeInGB :: Value Integer
haddock_workaround_ :: ()
instanceCount :: Value Integer
instanceType :: Value Text
volumeSizeInGB :: Value Integer
..}
instance Property "VolumeSizeInGB" ClusterConfigProperty where
  type PropertyType "VolumeSizeInGB" ClusterConfigProperty = Value Prelude.Integer
  set :: PropertyType "VolumeSizeInGB" ClusterConfigProperty
-> ClusterConfigProperty -> ClusterConfigProperty
set PropertyType "VolumeSizeInGB" ClusterConfigProperty
newValue ClusterConfigProperty {Maybe (Value Text)
()
Value Integer
Value Text
haddock_workaround_ :: ClusterConfigProperty -> ()
instanceCount :: ClusterConfigProperty -> Value Integer
instanceType :: ClusterConfigProperty -> Value Text
volumeKmsKeyId :: ClusterConfigProperty -> Maybe (Value Text)
volumeSizeInGB :: ClusterConfigProperty -> Value Integer
haddock_workaround_ :: ()
instanceCount :: Value Integer
instanceType :: Value Text
volumeKmsKeyId :: Maybe (Value Text)
volumeSizeInGB :: Value Integer
..}
    = ClusterConfigProperty {volumeSizeInGB :: Value Integer
volumeSizeInGB = PropertyType "VolumeSizeInGB" ClusterConfigProperty
Value Integer
newValue, Maybe (Value Text)
()
Value Integer
Value Text
haddock_workaround_ :: ()
instanceCount :: Value Integer
instanceType :: Value Text
volumeKmsKeyId :: Maybe (Value Text)
haddock_workaround_ :: ()
instanceCount :: Value Integer
instanceType :: Value Text
volumeKmsKeyId :: Maybe (Value Text)
..}