module Stratosphere.SageMaker.ModelPackage.TransformInputProperty (
module Exports, TransformInputProperty(..),
mkTransformInputProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.SageMaker.ModelPackage.DataSourceProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Value
data TransformInputProperty
=
TransformInputProperty {TransformInputProperty -> ()
haddock_workaround_ :: (),
TransformInputProperty -> Maybe (Value Text)
compressionType :: (Prelude.Maybe (Value Prelude.Text)),
TransformInputProperty -> Maybe (Value Text)
contentType :: (Prelude.Maybe (Value Prelude.Text)),
TransformInputProperty -> DataSourceProperty
dataSource :: DataSourceProperty,
TransformInputProperty -> Maybe (Value Text)
splitType :: (Prelude.Maybe (Value Prelude.Text))}
deriving stock (TransformInputProperty -> TransformInputProperty -> Bool
(TransformInputProperty -> TransformInputProperty -> Bool)
-> (TransformInputProperty -> TransformInputProperty -> Bool)
-> Eq TransformInputProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: TransformInputProperty -> TransformInputProperty -> Bool
== :: TransformInputProperty -> TransformInputProperty -> Bool
$c/= :: TransformInputProperty -> TransformInputProperty -> Bool
/= :: TransformInputProperty -> TransformInputProperty -> Bool
Prelude.Eq, Int -> TransformInputProperty -> ShowS
[TransformInputProperty] -> ShowS
TransformInputProperty -> String
(Int -> TransformInputProperty -> ShowS)
-> (TransformInputProperty -> String)
-> ([TransformInputProperty] -> ShowS)
-> Show TransformInputProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> TransformInputProperty -> ShowS
showsPrec :: Int -> TransformInputProperty -> ShowS
$cshow :: TransformInputProperty -> String
show :: TransformInputProperty -> String
$cshowList :: [TransformInputProperty] -> ShowS
showList :: [TransformInputProperty] -> ShowS
Prelude.Show)
mkTransformInputProperty ::
DataSourceProperty -> TransformInputProperty
mkTransformInputProperty :: DataSourceProperty -> TransformInputProperty
mkTransformInputProperty DataSourceProperty
dataSource
= TransformInputProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), dataSource :: DataSourceProperty
dataSource = DataSourceProperty
dataSource,
compressionType :: Maybe (Value Text)
compressionType = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing, contentType :: Maybe (Value Text)
contentType = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
splitType :: Maybe (Value Text)
splitType = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties TransformInputProperty where
toResourceProperties :: TransformInputProperty -> ResourceProperties
toResourceProperties TransformInputProperty {Maybe (Value Text)
()
DataSourceProperty
haddock_workaround_ :: TransformInputProperty -> ()
compressionType :: TransformInputProperty -> Maybe (Value Text)
contentType :: TransformInputProperty -> Maybe (Value Text)
dataSource :: TransformInputProperty -> DataSourceProperty
splitType :: TransformInputProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
compressionType :: Maybe (Value Text)
contentType :: Maybe (Value Text)
dataSource :: DataSourceProperty
splitType :: Maybe (Value Text)
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::SageMaker::ModelPackage.TransformInput",
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
"DataSource" Key -> DataSourceProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= DataSourceProperty
dataSource]
([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
"CompressionType" (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)
compressionType,
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
"ContentType" (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)
contentType,
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
"SplitType" (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)
splitType]))}
instance JSON.ToJSON TransformInputProperty where
toJSON :: TransformInputProperty -> Value
toJSON TransformInputProperty {Maybe (Value Text)
()
DataSourceProperty
haddock_workaround_ :: TransformInputProperty -> ()
compressionType :: TransformInputProperty -> Maybe (Value Text)
contentType :: TransformInputProperty -> Maybe (Value Text)
dataSource :: TransformInputProperty -> DataSourceProperty
splitType :: TransformInputProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
compressionType :: Maybe (Value Text)
contentType :: Maybe (Value Text)
dataSource :: DataSourceProperty
splitType :: Maybe (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
"DataSource" Key -> DataSourceProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= DataSourceProperty
dataSource]
([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
"CompressionType" (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)
compressionType,
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
"ContentType" (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)
contentType,
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
"SplitType" (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)
splitType])))
instance Property "CompressionType" TransformInputProperty where
type PropertyType "CompressionType" TransformInputProperty = Value Prelude.Text
set :: PropertyType "CompressionType" TransformInputProperty
-> TransformInputProperty -> TransformInputProperty
set PropertyType "CompressionType" TransformInputProperty
newValue TransformInputProperty {Maybe (Value Text)
()
DataSourceProperty
haddock_workaround_ :: TransformInputProperty -> ()
compressionType :: TransformInputProperty -> Maybe (Value Text)
contentType :: TransformInputProperty -> Maybe (Value Text)
dataSource :: TransformInputProperty -> DataSourceProperty
splitType :: TransformInputProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
compressionType :: Maybe (Value Text)
contentType :: Maybe (Value Text)
dataSource :: DataSourceProperty
splitType :: Maybe (Value Text)
..}
= TransformInputProperty
{compressionType :: Maybe (Value Text)
compressionType = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "CompressionType" TransformInputProperty
Value Text
newValue, Maybe (Value Text)
()
DataSourceProperty
haddock_workaround_ :: ()
contentType :: Maybe (Value Text)
dataSource :: DataSourceProperty
splitType :: Maybe (Value Text)
haddock_workaround_ :: ()
contentType :: Maybe (Value Text)
dataSource :: DataSourceProperty
splitType :: Maybe (Value Text)
..}
instance Property "ContentType" TransformInputProperty where
type PropertyType "ContentType" TransformInputProperty = Value Prelude.Text
set :: PropertyType "ContentType" TransformInputProperty
-> TransformInputProperty -> TransformInputProperty
set PropertyType "ContentType" TransformInputProperty
newValue TransformInputProperty {Maybe (Value Text)
()
DataSourceProperty
haddock_workaround_ :: TransformInputProperty -> ()
compressionType :: TransformInputProperty -> Maybe (Value Text)
contentType :: TransformInputProperty -> Maybe (Value Text)
dataSource :: TransformInputProperty -> DataSourceProperty
splitType :: TransformInputProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
compressionType :: Maybe (Value Text)
contentType :: Maybe (Value Text)
dataSource :: DataSourceProperty
splitType :: Maybe (Value Text)
..}
= TransformInputProperty {contentType :: Maybe (Value Text)
contentType = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "ContentType" TransformInputProperty
Value Text
newValue, Maybe (Value Text)
()
DataSourceProperty
haddock_workaround_ :: ()
compressionType :: Maybe (Value Text)
dataSource :: DataSourceProperty
splitType :: Maybe (Value Text)
haddock_workaround_ :: ()
compressionType :: Maybe (Value Text)
dataSource :: DataSourceProperty
splitType :: Maybe (Value Text)
..}
instance Property "DataSource" TransformInputProperty where
type PropertyType "DataSource" TransformInputProperty = DataSourceProperty
set :: PropertyType "DataSource" TransformInputProperty
-> TransformInputProperty -> TransformInputProperty
set PropertyType "DataSource" TransformInputProperty
newValue TransformInputProperty {Maybe (Value Text)
()
DataSourceProperty
haddock_workaround_ :: TransformInputProperty -> ()
compressionType :: TransformInputProperty -> Maybe (Value Text)
contentType :: TransformInputProperty -> Maybe (Value Text)
dataSource :: TransformInputProperty -> DataSourceProperty
splitType :: TransformInputProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
compressionType :: Maybe (Value Text)
contentType :: Maybe (Value Text)
dataSource :: DataSourceProperty
splitType :: Maybe (Value Text)
..}
= TransformInputProperty {dataSource :: DataSourceProperty
dataSource = PropertyType "DataSource" TransformInputProperty
DataSourceProperty
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
compressionType :: Maybe (Value Text)
contentType :: Maybe (Value Text)
splitType :: Maybe (Value Text)
haddock_workaround_ :: ()
compressionType :: Maybe (Value Text)
contentType :: Maybe (Value Text)
splitType :: Maybe (Value Text)
..}
instance Property "SplitType" TransformInputProperty where
type PropertyType "SplitType" TransformInputProperty = Value Prelude.Text
set :: PropertyType "SplitType" TransformInputProperty
-> TransformInputProperty -> TransformInputProperty
set PropertyType "SplitType" TransformInputProperty
newValue TransformInputProperty {Maybe (Value Text)
()
DataSourceProperty
haddock_workaround_ :: TransformInputProperty -> ()
compressionType :: TransformInputProperty -> Maybe (Value Text)
contentType :: TransformInputProperty -> Maybe (Value Text)
dataSource :: TransformInputProperty -> DataSourceProperty
splitType :: TransformInputProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
compressionType :: Maybe (Value Text)
contentType :: Maybe (Value Text)
dataSource :: DataSourceProperty
splitType :: Maybe (Value Text)
..}
= TransformInputProperty {splitType :: Maybe (Value Text)
splitType = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "SplitType" TransformInputProperty
Value Text
newValue, Maybe (Value Text)
()
DataSourceProperty
haddock_workaround_ :: ()
compressionType :: Maybe (Value Text)
contentType :: Maybe (Value Text)
dataSource :: DataSourceProperty
haddock_workaround_ :: ()
compressionType :: Maybe (Value Text)
contentType :: Maybe (Value Text)
dataSource :: DataSourceProperty
..}