module Stratosphere.SageMaker.ProcessingJob.ProcessingResourcesProperty (
        module Exports, ProcessingResourcesProperty(..),
        mkProcessingResourcesProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.SageMaker.ProcessingJob.ClusterConfigProperty as Exports
import Stratosphere.ResourceProperties
data ProcessingResourcesProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-processingjob-processingresources.html>
    ProcessingResourcesProperty {ProcessingResourcesProperty -> ()
haddock_workaround_ :: (),
                                 -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-processingjob-processingresources.html#cfn-sagemaker-processingjob-processingresources-clusterconfig>
                                 ProcessingResourcesProperty -> ClusterConfigProperty
clusterConfig :: ClusterConfigProperty}
  deriving stock (ProcessingResourcesProperty -> ProcessingResourcesProperty -> Bool
(ProcessingResourcesProperty
 -> ProcessingResourcesProperty -> Bool)
-> (ProcessingResourcesProperty
    -> ProcessingResourcesProperty -> Bool)
-> Eq ProcessingResourcesProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: ProcessingResourcesProperty -> ProcessingResourcesProperty -> Bool
== :: ProcessingResourcesProperty -> ProcessingResourcesProperty -> Bool
$c/= :: ProcessingResourcesProperty -> ProcessingResourcesProperty -> Bool
/= :: ProcessingResourcesProperty -> ProcessingResourcesProperty -> Bool
Prelude.Eq, Int -> ProcessingResourcesProperty -> ShowS
[ProcessingResourcesProperty] -> ShowS
ProcessingResourcesProperty -> String
(Int -> ProcessingResourcesProperty -> ShowS)
-> (ProcessingResourcesProperty -> String)
-> ([ProcessingResourcesProperty] -> ShowS)
-> Show ProcessingResourcesProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> ProcessingResourcesProperty -> ShowS
showsPrec :: Int -> ProcessingResourcesProperty -> ShowS
$cshow :: ProcessingResourcesProperty -> String
show :: ProcessingResourcesProperty -> String
$cshowList :: [ProcessingResourcesProperty] -> ShowS
showList :: [ProcessingResourcesProperty] -> ShowS
Prelude.Show)
mkProcessingResourcesProperty ::
  ClusterConfigProperty -> ProcessingResourcesProperty
mkProcessingResourcesProperty :: ClusterConfigProperty -> ProcessingResourcesProperty
mkProcessingResourcesProperty ClusterConfigProperty
clusterConfig
  = ProcessingResourcesProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), clusterConfig :: ClusterConfigProperty
clusterConfig = ClusterConfigProperty
clusterConfig}
instance ToResourceProperties ProcessingResourcesProperty where
  toResourceProperties :: ProcessingResourcesProperty -> ResourceProperties
toResourceProperties ProcessingResourcesProperty {()
ClusterConfigProperty
haddock_workaround_ :: ProcessingResourcesProperty -> ()
clusterConfig :: ProcessingResourcesProperty -> ClusterConfigProperty
haddock_workaround_ :: ()
clusterConfig :: ClusterConfigProperty
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::SageMaker::ProcessingJob.ProcessingResources",
         supportsTags :: Bool
supportsTags = Bool
Prelude.False,
         properties :: Object
properties = [Key
"ClusterConfig" Key -> ClusterConfigProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= ClusterConfigProperty
clusterConfig]}
instance JSON.ToJSON ProcessingResourcesProperty where
  toJSON :: ProcessingResourcesProperty -> Value
toJSON ProcessingResourcesProperty {()
ClusterConfigProperty
haddock_workaround_ :: ProcessingResourcesProperty -> ()
clusterConfig :: ProcessingResourcesProperty -> ClusterConfigProperty
haddock_workaround_ :: ()
clusterConfig :: ClusterConfigProperty
..}
    = [(Key, Value)] -> Value
JSON.object [Key
"ClusterConfig" Key -> ClusterConfigProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= ClusterConfigProperty
clusterConfig]
instance Property "ClusterConfig" ProcessingResourcesProperty where
  type PropertyType "ClusterConfig" ProcessingResourcesProperty = ClusterConfigProperty
  set :: PropertyType "ClusterConfig" ProcessingResourcesProperty
-> ProcessingResourcesProperty -> ProcessingResourcesProperty
set PropertyType "ClusterConfig" ProcessingResourcesProperty
newValue ProcessingResourcesProperty {()
ClusterConfigProperty
haddock_workaround_ :: ProcessingResourcesProperty -> ()
clusterConfig :: ProcessingResourcesProperty -> ClusterConfigProperty
haddock_workaround_ :: ()
clusterConfig :: ClusterConfigProperty
..}
    = ProcessingResourcesProperty {clusterConfig :: ClusterConfigProperty
clusterConfig = PropertyType "ClusterConfig" ProcessingResourcesProperty
ClusterConfigProperty
newValue, ()
haddock_workaround_ :: ()
haddock_workaround_ :: ()
..}