module Stratosphere.SageMaker.ProcessingJob.ProcessingInputsObjectProperty (
        module Exports, ProcessingInputsObjectProperty(..),
        mkProcessingInputsObjectProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.SageMaker.ProcessingJob.DatasetDefinitionProperty as Exports
import {-# SOURCE #-} Stratosphere.SageMaker.ProcessingJob.S3InputProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Value
data ProcessingInputsObjectProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-processingjob-processinginputsobject.html>
    ProcessingInputsObjectProperty {ProcessingInputsObjectProperty -> ()
haddock_workaround_ :: (),
                                    -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-processingjob-processinginputsobject.html#cfn-sagemaker-processingjob-processinginputsobject-appmanaged>
                                    ProcessingInputsObjectProperty -> Maybe (Value Bool)
appManaged :: (Prelude.Maybe (Value Prelude.Bool)),
                                    -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-processingjob-processinginputsobject.html#cfn-sagemaker-processingjob-processinginputsobject-datasetdefinition>
                                    ProcessingInputsObjectProperty -> Maybe DatasetDefinitionProperty
datasetDefinition :: (Prelude.Maybe DatasetDefinitionProperty),
                                    -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-processingjob-processinginputsobject.html#cfn-sagemaker-processingjob-processinginputsobject-inputname>
                                    ProcessingInputsObjectProperty -> Value Text
inputName :: (Value Prelude.Text),
                                    -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-processingjob-processinginputsobject.html#cfn-sagemaker-processingjob-processinginputsobject-s3input>
                                    ProcessingInputsObjectProperty -> Maybe S3InputProperty
s3Input :: (Prelude.Maybe S3InputProperty)}
  deriving stock (ProcessingInputsObjectProperty
-> ProcessingInputsObjectProperty -> Bool
(ProcessingInputsObjectProperty
 -> ProcessingInputsObjectProperty -> Bool)
-> (ProcessingInputsObjectProperty
    -> ProcessingInputsObjectProperty -> Bool)
-> Eq ProcessingInputsObjectProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: ProcessingInputsObjectProperty
-> ProcessingInputsObjectProperty -> Bool
== :: ProcessingInputsObjectProperty
-> ProcessingInputsObjectProperty -> Bool
$c/= :: ProcessingInputsObjectProperty
-> ProcessingInputsObjectProperty -> Bool
/= :: ProcessingInputsObjectProperty
-> ProcessingInputsObjectProperty -> Bool
Prelude.Eq, Int -> ProcessingInputsObjectProperty -> ShowS
[ProcessingInputsObjectProperty] -> ShowS
ProcessingInputsObjectProperty -> String
(Int -> ProcessingInputsObjectProperty -> ShowS)
-> (ProcessingInputsObjectProperty -> String)
-> ([ProcessingInputsObjectProperty] -> ShowS)
-> Show ProcessingInputsObjectProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> ProcessingInputsObjectProperty -> ShowS
showsPrec :: Int -> ProcessingInputsObjectProperty -> ShowS
$cshow :: ProcessingInputsObjectProperty -> String
show :: ProcessingInputsObjectProperty -> String
$cshowList :: [ProcessingInputsObjectProperty] -> ShowS
showList :: [ProcessingInputsObjectProperty] -> ShowS
Prelude.Show)
mkProcessingInputsObjectProperty ::
  Value Prelude.Text -> ProcessingInputsObjectProperty
mkProcessingInputsObjectProperty :: Value Text -> ProcessingInputsObjectProperty
mkProcessingInputsObjectProperty Value Text
inputName
  = ProcessingInputsObjectProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), inputName :: Value Text
inputName = Value Text
inputName,
       appManaged :: Maybe (Value Bool)
appManaged = Maybe (Value Bool)
forall a. Maybe a
Prelude.Nothing, datasetDefinition :: Maybe DatasetDefinitionProperty
datasetDefinition = Maybe DatasetDefinitionProperty
forall a. Maybe a
Prelude.Nothing,
       s3Input :: Maybe S3InputProperty
s3Input = Maybe S3InputProperty
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties ProcessingInputsObjectProperty where
  toResourceProperties :: ProcessingInputsObjectProperty -> ResourceProperties
toResourceProperties ProcessingInputsObjectProperty {Maybe (Value Bool)
Maybe DatasetDefinitionProperty
Maybe S3InputProperty
()
Value Text
haddock_workaround_ :: ProcessingInputsObjectProperty -> ()
appManaged :: ProcessingInputsObjectProperty -> Maybe (Value Bool)
datasetDefinition :: ProcessingInputsObjectProperty -> Maybe DatasetDefinitionProperty
inputName :: ProcessingInputsObjectProperty -> Value Text
s3Input :: ProcessingInputsObjectProperty -> Maybe S3InputProperty
haddock_workaround_ :: ()
appManaged :: Maybe (Value Bool)
datasetDefinition :: Maybe DatasetDefinitionProperty
inputName :: Value Text
s3Input :: Maybe S3InputProperty
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::SageMaker::ProcessingJob.ProcessingInputsObject",
         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
"InputName" 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
inputName]
                           ([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
                              [Key -> Value Bool -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"AppManaged" (Value Bool -> (Key, Value))
-> Maybe (Value Bool) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Bool)
appManaged,
                               Key -> DatasetDefinitionProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"DatasetDefinition" (DatasetDefinitionProperty -> (Key, Value))
-> Maybe DatasetDefinitionProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe DatasetDefinitionProperty
datasetDefinition,
                               Key -> S3InputProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"S3Input" (S3InputProperty -> (Key, Value))
-> Maybe S3InputProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe S3InputProperty
s3Input]))}
instance JSON.ToJSON ProcessingInputsObjectProperty where
  toJSON :: ProcessingInputsObjectProperty -> Value
toJSON ProcessingInputsObjectProperty {Maybe (Value Bool)
Maybe DatasetDefinitionProperty
Maybe S3InputProperty
()
Value Text
haddock_workaround_ :: ProcessingInputsObjectProperty -> ()
appManaged :: ProcessingInputsObjectProperty -> Maybe (Value Bool)
datasetDefinition :: ProcessingInputsObjectProperty -> Maybe DatasetDefinitionProperty
inputName :: ProcessingInputsObjectProperty -> Value Text
s3Input :: ProcessingInputsObjectProperty -> Maybe S3InputProperty
haddock_workaround_ :: ()
appManaged :: Maybe (Value Bool)
datasetDefinition :: Maybe DatasetDefinitionProperty
inputName :: Value Text
s3Input :: Maybe S3InputProperty
..}
    = [(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
"InputName" 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
inputName]
              ([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
                 [Key -> Value Bool -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"AppManaged" (Value Bool -> (Key, Value))
-> Maybe (Value Bool) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Bool)
appManaged,
                  Key -> DatasetDefinitionProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"DatasetDefinition" (DatasetDefinitionProperty -> (Key, Value))
-> Maybe DatasetDefinitionProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe DatasetDefinitionProperty
datasetDefinition,
                  Key -> S3InputProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"S3Input" (S3InputProperty -> (Key, Value))
-> Maybe S3InputProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe S3InputProperty
s3Input])))
instance Property "AppManaged" ProcessingInputsObjectProperty where
  type PropertyType "AppManaged" ProcessingInputsObjectProperty = Value Prelude.Bool
  set :: PropertyType "AppManaged" ProcessingInputsObjectProperty
-> ProcessingInputsObjectProperty -> ProcessingInputsObjectProperty
set PropertyType "AppManaged" ProcessingInputsObjectProperty
newValue ProcessingInputsObjectProperty {Maybe (Value Bool)
Maybe DatasetDefinitionProperty
Maybe S3InputProperty
()
Value Text
haddock_workaround_ :: ProcessingInputsObjectProperty -> ()
appManaged :: ProcessingInputsObjectProperty -> Maybe (Value Bool)
datasetDefinition :: ProcessingInputsObjectProperty -> Maybe DatasetDefinitionProperty
inputName :: ProcessingInputsObjectProperty -> Value Text
s3Input :: ProcessingInputsObjectProperty -> Maybe S3InputProperty
haddock_workaround_ :: ()
appManaged :: Maybe (Value Bool)
datasetDefinition :: Maybe DatasetDefinitionProperty
inputName :: Value Text
s3Input :: Maybe S3InputProperty
..}
    = ProcessingInputsObjectProperty
        {appManaged :: Maybe (Value Bool)
appManaged = Value Bool -> Maybe (Value Bool)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "AppManaged" ProcessingInputsObjectProperty
Value Bool
newValue, Maybe DatasetDefinitionProperty
Maybe S3InputProperty
()
Value Text
haddock_workaround_ :: ()
datasetDefinition :: Maybe DatasetDefinitionProperty
inputName :: Value Text
s3Input :: Maybe S3InputProperty
haddock_workaround_ :: ()
datasetDefinition :: Maybe DatasetDefinitionProperty
inputName :: Value Text
s3Input :: Maybe S3InputProperty
..}
instance Property "DatasetDefinition" ProcessingInputsObjectProperty where
  type PropertyType "DatasetDefinition" ProcessingInputsObjectProperty = DatasetDefinitionProperty
  set :: PropertyType "DatasetDefinition" ProcessingInputsObjectProperty
-> ProcessingInputsObjectProperty -> ProcessingInputsObjectProperty
set PropertyType "DatasetDefinition" ProcessingInputsObjectProperty
newValue ProcessingInputsObjectProperty {Maybe (Value Bool)
Maybe DatasetDefinitionProperty
Maybe S3InputProperty
()
Value Text
haddock_workaround_ :: ProcessingInputsObjectProperty -> ()
appManaged :: ProcessingInputsObjectProperty -> Maybe (Value Bool)
datasetDefinition :: ProcessingInputsObjectProperty -> Maybe DatasetDefinitionProperty
inputName :: ProcessingInputsObjectProperty -> Value Text
s3Input :: ProcessingInputsObjectProperty -> Maybe S3InputProperty
haddock_workaround_ :: ()
appManaged :: Maybe (Value Bool)
datasetDefinition :: Maybe DatasetDefinitionProperty
inputName :: Value Text
s3Input :: Maybe S3InputProperty
..}
    = ProcessingInputsObjectProperty
        {datasetDefinition :: Maybe DatasetDefinitionProperty
datasetDefinition = DatasetDefinitionProperty -> Maybe DatasetDefinitionProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "DatasetDefinition" ProcessingInputsObjectProperty
DatasetDefinitionProperty
newValue, Maybe (Value Bool)
Maybe S3InputProperty
()
Value Text
haddock_workaround_ :: ()
appManaged :: Maybe (Value Bool)
inputName :: Value Text
s3Input :: Maybe S3InputProperty
haddock_workaround_ :: ()
appManaged :: Maybe (Value Bool)
inputName :: Value Text
s3Input :: Maybe S3InputProperty
..}
instance Property "InputName" ProcessingInputsObjectProperty where
  type PropertyType "InputName" ProcessingInputsObjectProperty = Value Prelude.Text
  set :: PropertyType "InputName" ProcessingInputsObjectProperty
-> ProcessingInputsObjectProperty -> ProcessingInputsObjectProperty
set PropertyType "InputName" ProcessingInputsObjectProperty
newValue ProcessingInputsObjectProperty {Maybe (Value Bool)
Maybe DatasetDefinitionProperty
Maybe S3InputProperty
()
Value Text
haddock_workaround_ :: ProcessingInputsObjectProperty -> ()
appManaged :: ProcessingInputsObjectProperty -> Maybe (Value Bool)
datasetDefinition :: ProcessingInputsObjectProperty -> Maybe DatasetDefinitionProperty
inputName :: ProcessingInputsObjectProperty -> Value Text
s3Input :: ProcessingInputsObjectProperty -> Maybe S3InputProperty
haddock_workaround_ :: ()
appManaged :: Maybe (Value Bool)
datasetDefinition :: Maybe DatasetDefinitionProperty
inputName :: Value Text
s3Input :: Maybe S3InputProperty
..}
    = ProcessingInputsObjectProperty {inputName :: Value Text
inputName = PropertyType "InputName" ProcessingInputsObjectProperty
Value Text
newValue, Maybe (Value Bool)
Maybe DatasetDefinitionProperty
Maybe S3InputProperty
()
haddock_workaround_ :: ()
appManaged :: Maybe (Value Bool)
datasetDefinition :: Maybe DatasetDefinitionProperty
s3Input :: Maybe S3InputProperty
haddock_workaround_ :: ()
appManaged :: Maybe (Value Bool)
datasetDefinition :: Maybe DatasetDefinitionProperty
s3Input :: Maybe S3InputProperty
..}
instance Property "S3Input" ProcessingInputsObjectProperty where
  type PropertyType "S3Input" ProcessingInputsObjectProperty = S3InputProperty
  set :: PropertyType "S3Input" ProcessingInputsObjectProperty
-> ProcessingInputsObjectProperty -> ProcessingInputsObjectProperty
set PropertyType "S3Input" ProcessingInputsObjectProperty
newValue ProcessingInputsObjectProperty {Maybe (Value Bool)
Maybe DatasetDefinitionProperty
Maybe S3InputProperty
()
Value Text
haddock_workaround_ :: ProcessingInputsObjectProperty -> ()
appManaged :: ProcessingInputsObjectProperty -> Maybe (Value Bool)
datasetDefinition :: ProcessingInputsObjectProperty -> Maybe DatasetDefinitionProperty
inputName :: ProcessingInputsObjectProperty -> Value Text
s3Input :: ProcessingInputsObjectProperty -> Maybe S3InputProperty
haddock_workaround_ :: ()
appManaged :: Maybe (Value Bool)
datasetDefinition :: Maybe DatasetDefinitionProperty
inputName :: Value Text
s3Input :: Maybe S3InputProperty
..}
    = ProcessingInputsObjectProperty
        {s3Input :: Maybe S3InputProperty
s3Input = S3InputProperty -> Maybe S3InputProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "S3Input" ProcessingInputsObjectProperty
S3InputProperty
newValue, Maybe (Value Bool)
Maybe DatasetDefinitionProperty
()
Value Text
haddock_workaround_ :: ()
appManaged :: Maybe (Value Bool)
datasetDefinition :: Maybe DatasetDefinitionProperty
inputName :: Value Text
haddock_workaround_ :: ()
appManaged :: Maybe (Value Bool)
datasetDefinition :: Maybe DatasetDefinitionProperty
inputName :: Value Text
..}