module Stratosphere.SageMaker.ProcessingJob.S3InputProperty (
        S3InputProperty(..), mkS3InputProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data S3InputProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-processingjob-s3input.html>
    S3InputProperty {S3InputProperty -> ()
haddock_workaround_ :: (),
                     -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-processingjob-s3input.html#cfn-sagemaker-processingjob-s3input-localpath>
                     S3InputProperty -> Maybe (Value Text)
localPath :: (Prelude.Maybe (Value Prelude.Text)),
                     -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-processingjob-s3input.html#cfn-sagemaker-processingjob-s3input-s3compressiontype>
                     S3InputProperty -> Maybe (Value Text)
s3CompressionType :: (Prelude.Maybe (Value Prelude.Text)),
                     -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-processingjob-s3input.html#cfn-sagemaker-processingjob-s3input-s3datadistributiontype>
                     S3InputProperty -> Maybe (Value Text)
s3DataDistributionType :: (Prelude.Maybe (Value Prelude.Text)),
                     -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-processingjob-s3input.html#cfn-sagemaker-processingjob-s3input-s3datatype>
                     S3InputProperty -> Value Text
s3DataType :: (Value Prelude.Text),
                     -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-processingjob-s3input.html#cfn-sagemaker-processingjob-s3input-s3inputmode>
                     S3InputProperty -> Maybe (Value Text)
s3InputMode :: (Prelude.Maybe (Value Prelude.Text)),
                     -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-processingjob-s3input.html#cfn-sagemaker-processingjob-s3input-s3uri>
                     S3InputProperty -> Value Text
s3Uri :: (Value Prelude.Text)}
  deriving stock (S3InputProperty -> S3InputProperty -> Bool
(S3InputProperty -> S3InputProperty -> Bool)
-> (S3InputProperty -> S3InputProperty -> Bool)
-> Eq S3InputProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: S3InputProperty -> S3InputProperty -> Bool
== :: S3InputProperty -> S3InputProperty -> Bool
$c/= :: S3InputProperty -> S3InputProperty -> Bool
/= :: S3InputProperty -> S3InputProperty -> Bool
Prelude.Eq, Int -> S3InputProperty -> ShowS
[S3InputProperty] -> ShowS
S3InputProperty -> String
(Int -> S3InputProperty -> ShowS)
-> (S3InputProperty -> String)
-> ([S3InputProperty] -> ShowS)
-> Show S3InputProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> S3InputProperty -> ShowS
showsPrec :: Int -> S3InputProperty -> ShowS
$cshow :: S3InputProperty -> String
show :: S3InputProperty -> String
$cshowList :: [S3InputProperty] -> ShowS
showList :: [S3InputProperty] -> ShowS
Prelude.Show)
mkS3InputProperty ::
  Value Prelude.Text -> Value Prelude.Text -> S3InputProperty
mkS3InputProperty :: Value Text -> Value Text -> S3InputProperty
mkS3InputProperty Value Text
s3DataType Value Text
s3Uri
  = S3InputProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), s3DataType :: Value Text
s3DataType = Value Text
s3DataType, s3Uri :: Value Text
s3Uri = Value Text
s3Uri,
       localPath :: Maybe (Value Text)
localPath = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing, s3CompressionType :: Maybe (Value Text)
s3CompressionType = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
       s3DataDistributionType :: Maybe (Value Text)
s3DataDistributionType = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
       s3InputMode :: Maybe (Value Text)
s3InputMode = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties S3InputProperty where
  toResourceProperties :: S3InputProperty -> ResourceProperties
toResourceProperties S3InputProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: S3InputProperty -> ()
localPath :: S3InputProperty -> Maybe (Value Text)
s3CompressionType :: S3InputProperty -> Maybe (Value Text)
s3DataDistributionType :: S3InputProperty -> Maybe (Value Text)
s3DataType :: S3InputProperty -> Value Text
s3InputMode :: S3InputProperty -> Maybe (Value Text)
s3Uri :: S3InputProperty -> Value Text
haddock_workaround_ :: ()
localPath :: Maybe (Value Text)
s3CompressionType :: Maybe (Value Text)
s3DataDistributionType :: Maybe (Value Text)
s3DataType :: Value Text
s3InputMode :: Maybe (Value Text)
s3Uri :: Value Text
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::SageMaker::ProcessingJob.S3Input",
         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
"S3DataType" 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
s3DataType, Key
"S3Uri" 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
s3Uri]
                           ([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
"LocalPath" (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)
localPath,
                               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
"S3CompressionType" (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)
s3CompressionType,
                               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
"S3DataDistributionType"
                                 (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)
s3DataDistributionType,
                               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
"S3InputMode" (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)
s3InputMode]))}
instance JSON.ToJSON S3InputProperty where
  toJSON :: S3InputProperty -> Value
toJSON S3InputProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: S3InputProperty -> ()
localPath :: S3InputProperty -> Maybe (Value Text)
s3CompressionType :: S3InputProperty -> Maybe (Value Text)
s3DataDistributionType :: S3InputProperty -> Maybe (Value Text)
s3DataType :: S3InputProperty -> Value Text
s3InputMode :: S3InputProperty -> Maybe (Value Text)
s3Uri :: S3InputProperty -> Value Text
haddock_workaround_ :: ()
localPath :: Maybe (Value Text)
s3CompressionType :: Maybe (Value Text)
s3DataDistributionType :: Maybe (Value Text)
s3DataType :: Value Text
s3InputMode :: Maybe (Value Text)
s3Uri :: Value Text
..}
    = [(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
"S3DataType" 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
s3DataType, Key
"S3Uri" 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
s3Uri]
              ([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
"LocalPath" (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)
localPath,
                  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
"S3CompressionType" (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)
s3CompressionType,
                  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
"S3DataDistributionType"
                    (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)
s3DataDistributionType,
                  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
"S3InputMode" (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)
s3InputMode])))
instance Property "LocalPath" S3InputProperty where
  type PropertyType "LocalPath" S3InputProperty = Value Prelude.Text
  set :: PropertyType "LocalPath" S3InputProperty
-> S3InputProperty -> S3InputProperty
set PropertyType "LocalPath" S3InputProperty
newValue S3InputProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: S3InputProperty -> ()
localPath :: S3InputProperty -> Maybe (Value Text)
s3CompressionType :: S3InputProperty -> Maybe (Value Text)
s3DataDistributionType :: S3InputProperty -> Maybe (Value Text)
s3DataType :: S3InputProperty -> Value Text
s3InputMode :: S3InputProperty -> Maybe (Value Text)
s3Uri :: S3InputProperty -> Value Text
haddock_workaround_ :: ()
localPath :: Maybe (Value Text)
s3CompressionType :: Maybe (Value Text)
s3DataDistributionType :: Maybe (Value Text)
s3DataType :: Value Text
s3InputMode :: Maybe (Value Text)
s3Uri :: Value Text
..}
    = S3InputProperty {localPath :: Maybe (Value Text)
localPath = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "LocalPath" S3InputProperty
Value Text
newValue, Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
s3CompressionType :: Maybe (Value Text)
s3DataDistributionType :: Maybe (Value Text)
s3DataType :: Value Text
s3InputMode :: Maybe (Value Text)
s3Uri :: Value Text
haddock_workaround_ :: ()
s3CompressionType :: Maybe (Value Text)
s3DataDistributionType :: Maybe (Value Text)
s3DataType :: Value Text
s3InputMode :: Maybe (Value Text)
s3Uri :: Value Text
..}
instance Property "S3CompressionType" S3InputProperty where
  type PropertyType "S3CompressionType" S3InputProperty = Value Prelude.Text
  set :: PropertyType "S3CompressionType" S3InputProperty
-> S3InputProperty -> S3InputProperty
set PropertyType "S3CompressionType" S3InputProperty
newValue S3InputProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: S3InputProperty -> ()
localPath :: S3InputProperty -> Maybe (Value Text)
s3CompressionType :: S3InputProperty -> Maybe (Value Text)
s3DataDistributionType :: S3InputProperty -> Maybe (Value Text)
s3DataType :: S3InputProperty -> Value Text
s3InputMode :: S3InputProperty -> Maybe (Value Text)
s3Uri :: S3InputProperty -> Value Text
haddock_workaround_ :: ()
localPath :: Maybe (Value Text)
s3CompressionType :: Maybe (Value Text)
s3DataDistributionType :: Maybe (Value Text)
s3DataType :: Value Text
s3InputMode :: Maybe (Value Text)
s3Uri :: Value Text
..}
    = S3InputProperty {s3CompressionType :: Maybe (Value Text)
s3CompressionType = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "S3CompressionType" S3InputProperty
Value Text
newValue, Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
localPath :: Maybe (Value Text)
s3DataDistributionType :: Maybe (Value Text)
s3DataType :: Value Text
s3InputMode :: Maybe (Value Text)
s3Uri :: Value Text
haddock_workaround_ :: ()
localPath :: Maybe (Value Text)
s3DataDistributionType :: Maybe (Value Text)
s3DataType :: Value Text
s3InputMode :: Maybe (Value Text)
s3Uri :: Value Text
..}
instance Property "S3DataDistributionType" S3InputProperty where
  type PropertyType "S3DataDistributionType" S3InputProperty = Value Prelude.Text
  set :: PropertyType "S3DataDistributionType" S3InputProperty
-> S3InputProperty -> S3InputProperty
set PropertyType "S3DataDistributionType" S3InputProperty
newValue S3InputProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: S3InputProperty -> ()
localPath :: S3InputProperty -> Maybe (Value Text)
s3CompressionType :: S3InputProperty -> Maybe (Value Text)
s3DataDistributionType :: S3InputProperty -> Maybe (Value Text)
s3DataType :: S3InputProperty -> Value Text
s3InputMode :: S3InputProperty -> Maybe (Value Text)
s3Uri :: S3InputProperty -> Value Text
haddock_workaround_ :: ()
localPath :: Maybe (Value Text)
s3CompressionType :: Maybe (Value Text)
s3DataDistributionType :: Maybe (Value Text)
s3DataType :: Value Text
s3InputMode :: Maybe (Value Text)
s3Uri :: Value Text
..}
    = S3InputProperty
        {s3DataDistributionType :: Maybe (Value Text)
s3DataDistributionType = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "S3DataDistributionType" S3InputProperty
Value Text
newValue, Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
localPath :: Maybe (Value Text)
s3CompressionType :: Maybe (Value Text)
s3DataType :: Value Text
s3InputMode :: Maybe (Value Text)
s3Uri :: Value Text
haddock_workaround_ :: ()
localPath :: Maybe (Value Text)
s3CompressionType :: Maybe (Value Text)
s3DataType :: Value Text
s3InputMode :: Maybe (Value Text)
s3Uri :: Value Text
..}
instance Property "S3DataType" S3InputProperty where
  type PropertyType "S3DataType" S3InputProperty = Value Prelude.Text
  set :: PropertyType "S3DataType" S3InputProperty
-> S3InputProperty -> S3InputProperty
set PropertyType "S3DataType" S3InputProperty
newValue S3InputProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: S3InputProperty -> ()
localPath :: S3InputProperty -> Maybe (Value Text)
s3CompressionType :: S3InputProperty -> Maybe (Value Text)
s3DataDistributionType :: S3InputProperty -> Maybe (Value Text)
s3DataType :: S3InputProperty -> Value Text
s3InputMode :: S3InputProperty -> Maybe (Value Text)
s3Uri :: S3InputProperty -> Value Text
haddock_workaround_ :: ()
localPath :: Maybe (Value Text)
s3CompressionType :: Maybe (Value Text)
s3DataDistributionType :: Maybe (Value Text)
s3DataType :: Value Text
s3InputMode :: Maybe (Value Text)
s3Uri :: Value Text
..}
    = S3InputProperty {s3DataType :: Value Text
s3DataType = PropertyType "S3DataType" S3InputProperty
Value Text
newValue, Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
localPath :: Maybe (Value Text)
s3CompressionType :: Maybe (Value Text)
s3DataDistributionType :: Maybe (Value Text)
s3InputMode :: Maybe (Value Text)
s3Uri :: Value Text
haddock_workaround_ :: ()
localPath :: Maybe (Value Text)
s3CompressionType :: Maybe (Value Text)
s3DataDistributionType :: Maybe (Value Text)
s3InputMode :: Maybe (Value Text)
s3Uri :: Value Text
..}
instance Property "S3InputMode" S3InputProperty where
  type PropertyType "S3InputMode" S3InputProperty = Value Prelude.Text
  set :: PropertyType "S3InputMode" S3InputProperty
-> S3InputProperty -> S3InputProperty
set PropertyType "S3InputMode" S3InputProperty
newValue S3InputProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: S3InputProperty -> ()
localPath :: S3InputProperty -> Maybe (Value Text)
s3CompressionType :: S3InputProperty -> Maybe (Value Text)
s3DataDistributionType :: S3InputProperty -> Maybe (Value Text)
s3DataType :: S3InputProperty -> Value Text
s3InputMode :: S3InputProperty -> Maybe (Value Text)
s3Uri :: S3InputProperty -> Value Text
haddock_workaround_ :: ()
localPath :: Maybe (Value Text)
s3CompressionType :: Maybe (Value Text)
s3DataDistributionType :: Maybe (Value Text)
s3DataType :: Value Text
s3InputMode :: Maybe (Value Text)
s3Uri :: Value Text
..}
    = S3InputProperty {s3InputMode :: Maybe (Value Text)
s3InputMode = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "S3InputMode" S3InputProperty
Value Text
newValue, Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
localPath :: Maybe (Value Text)
s3CompressionType :: Maybe (Value Text)
s3DataDistributionType :: Maybe (Value Text)
s3DataType :: Value Text
s3Uri :: Value Text
haddock_workaround_ :: ()
localPath :: Maybe (Value Text)
s3CompressionType :: Maybe (Value Text)
s3DataDistributionType :: Maybe (Value Text)
s3DataType :: Value Text
s3Uri :: Value Text
..}
instance Property "S3Uri" S3InputProperty where
  type PropertyType "S3Uri" S3InputProperty = Value Prelude.Text
  set :: PropertyType "S3Uri" S3InputProperty
-> S3InputProperty -> S3InputProperty
set PropertyType "S3Uri" S3InputProperty
newValue S3InputProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: S3InputProperty -> ()
localPath :: S3InputProperty -> Maybe (Value Text)
s3CompressionType :: S3InputProperty -> Maybe (Value Text)
s3DataDistributionType :: S3InputProperty -> Maybe (Value Text)
s3DataType :: S3InputProperty -> Value Text
s3InputMode :: S3InputProperty -> Maybe (Value Text)
s3Uri :: S3InputProperty -> Value Text
haddock_workaround_ :: ()
localPath :: Maybe (Value Text)
s3CompressionType :: Maybe (Value Text)
s3DataDistributionType :: Maybe (Value Text)
s3DataType :: Value Text
s3InputMode :: Maybe (Value Text)
s3Uri :: Value Text
..}
    = S3InputProperty {s3Uri :: Value Text
s3Uri = PropertyType "S3Uri" S3InputProperty
Value Text
newValue, Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
localPath :: Maybe (Value Text)
s3CompressionType :: Maybe (Value Text)
s3DataDistributionType :: Maybe (Value Text)
s3DataType :: Value Text
s3InputMode :: Maybe (Value Text)
haddock_workaround_ :: ()
localPath :: Maybe (Value Text)
s3CompressionType :: Maybe (Value Text)
s3DataDistributionType :: Maybe (Value Text)
s3DataType :: Value Text
s3InputMode :: Maybe (Value Text)
..}