module Stratosphere.SageMaker.DataQualityJobDefinition.DataQualityJobInputProperty (
module Exports, DataQualityJobInputProperty(..),
mkDataQualityJobInputProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.SageMaker.DataQualityJobDefinition.BatchTransformInputProperty as Exports
import {-# SOURCE #-} Stratosphere.SageMaker.DataQualityJobDefinition.EndpointInputProperty as Exports
import Stratosphere.ResourceProperties
data DataQualityJobInputProperty
=
DataQualityJobInputProperty {DataQualityJobInputProperty -> ()
haddock_workaround_ :: (),
DataQualityJobInputProperty -> Maybe BatchTransformInputProperty
batchTransformInput :: (Prelude.Maybe BatchTransformInputProperty),
DataQualityJobInputProperty -> Maybe EndpointInputProperty
endpointInput :: (Prelude.Maybe EndpointInputProperty)}
deriving stock (DataQualityJobInputProperty -> DataQualityJobInputProperty -> Bool
(DataQualityJobInputProperty
-> DataQualityJobInputProperty -> Bool)
-> (DataQualityJobInputProperty
-> DataQualityJobInputProperty -> Bool)
-> Eq DataQualityJobInputProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: DataQualityJobInputProperty -> DataQualityJobInputProperty -> Bool
== :: DataQualityJobInputProperty -> DataQualityJobInputProperty -> Bool
$c/= :: DataQualityJobInputProperty -> DataQualityJobInputProperty -> Bool
/= :: DataQualityJobInputProperty -> DataQualityJobInputProperty -> Bool
Prelude.Eq, Int -> DataQualityJobInputProperty -> ShowS
[DataQualityJobInputProperty] -> ShowS
DataQualityJobInputProperty -> String
(Int -> DataQualityJobInputProperty -> ShowS)
-> (DataQualityJobInputProperty -> String)
-> ([DataQualityJobInputProperty] -> ShowS)
-> Show DataQualityJobInputProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> DataQualityJobInputProperty -> ShowS
showsPrec :: Int -> DataQualityJobInputProperty -> ShowS
$cshow :: DataQualityJobInputProperty -> String
show :: DataQualityJobInputProperty -> String
$cshowList :: [DataQualityJobInputProperty] -> ShowS
showList :: [DataQualityJobInputProperty] -> ShowS
Prelude.Show)
mkDataQualityJobInputProperty :: DataQualityJobInputProperty
mkDataQualityJobInputProperty :: DataQualityJobInputProperty
mkDataQualityJobInputProperty
= DataQualityJobInputProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), batchTransformInput :: Maybe BatchTransformInputProperty
batchTransformInput = Maybe BatchTransformInputProperty
forall a. Maybe a
Prelude.Nothing,
endpointInput :: Maybe EndpointInputProperty
endpointInput = Maybe EndpointInputProperty
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties DataQualityJobInputProperty where
toResourceProperties :: DataQualityJobInputProperty -> ResourceProperties
toResourceProperties DataQualityJobInputProperty {Maybe EndpointInputProperty
Maybe BatchTransformInputProperty
()
haddock_workaround_ :: DataQualityJobInputProperty -> ()
batchTransformInput :: DataQualityJobInputProperty -> Maybe BatchTransformInputProperty
endpointInput :: DataQualityJobInputProperty -> Maybe EndpointInputProperty
haddock_workaround_ :: ()
batchTransformInput :: Maybe BatchTransformInputProperty
endpointInput :: Maybe EndpointInputProperty
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::SageMaker::DataQualityJobDefinition.DataQualityJobInput",
supportsTags :: Bool
supportsTags = Bool
Prelude.False,
properties :: Object
properties = [Item Object] -> Object
forall l. IsList l => [Item l] -> l
Prelude.fromList
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[Key -> BatchTransformInputProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"BatchTransformInput" (BatchTransformInputProperty -> (Key, Value))
-> Maybe BatchTransformInputProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe BatchTransformInputProperty
batchTransformInput,
Key -> EndpointInputProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"EndpointInput" (EndpointInputProperty -> (Key, Value))
-> Maybe EndpointInputProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe EndpointInputProperty
endpointInput])}
instance JSON.ToJSON DataQualityJobInputProperty where
toJSON :: DataQualityJobInputProperty -> Value
toJSON DataQualityJobInputProperty {Maybe EndpointInputProperty
Maybe BatchTransformInputProperty
()
haddock_workaround_ :: DataQualityJobInputProperty -> ()
batchTransformInput :: DataQualityJobInputProperty -> Maybe BatchTransformInputProperty
endpointInput :: DataQualityJobInputProperty -> Maybe EndpointInputProperty
haddock_workaround_ :: ()
batchTransformInput :: Maybe BatchTransformInputProperty
endpointInput :: Maybe EndpointInputProperty
..}
= [(Key, Value)] -> Value
JSON.object
([Item [(Key, Value)]] -> [(Key, Value)]
forall l. IsList l => [Item l] -> l
Prelude.fromList
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[Key -> BatchTransformInputProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"BatchTransformInput" (BatchTransformInputProperty -> (Key, Value))
-> Maybe BatchTransformInputProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe BatchTransformInputProperty
batchTransformInput,
Key -> EndpointInputProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"EndpointInput" (EndpointInputProperty -> (Key, Value))
-> Maybe EndpointInputProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe EndpointInputProperty
endpointInput]))
instance Property "BatchTransformInput" DataQualityJobInputProperty where
type PropertyType "BatchTransformInput" DataQualityJobInputProperty = BatchTransformInputProperty
set :: PropertyType "BatchTransformInput" DataQualityJobInputProperty
-> DataQualityJobInputProperty -> DataQualityJobInputProperty
set PropertyType "BatchTransformInput" DataQualityJobInputProperty
newValue DataQualityJobInputProperty {Maybe EndpointInputProperty
Maybe BatchTransformInputProperty
()
haddock_workaround_ :: DataQualityJobInputProperty -> ()
batchTransformInput :: DataQualityJobInputProperty -> Maybe BatchTransformInputProperty
endpointInput :: DataQualityJobInputProperty -> Maybe EndpointInputProperty
haddock_workaround_ :: ()
batchTransformInput :: Maybe BatchTransformInputProperty
endpointInput :: Maybe EndpointInputProperty
..}
= DataQualityJobInputProperty
{batchTransformInput :: Maybe BatchTransformInputProperty
batchTransformInput = BatchTransformInputProperty -> Maybe BatchTransformInputProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "BatchTransformInput" DataQualityJobInputProperty
BatchTransformInputProperty
newValue, Maybe EndpointInputProperty
()
haddock_workaround_ :: ()
endpointInput :: Maybe EndpointInputProperty
haddock_workaround_ :: ()
endpointInput :: Maybe EndpointInputProperty
..}
instance Property "EndpointInput" DataQualityJobInputProperty where
type PropertyType "EndpointInput" DataQualityJobInputProperty = EndpointInputProperty
set :: PropertyType "EndpointInput" DataQualityJobInputProperty
-> DataQualityJobInputProperty -> DataQualityJobInputProperty
set PropertyType "EndpointInput" DataQualityJobInputProperty
newValue DataQualityJobInputProperty {Maybe EndpointInputProperty
Maybe BatchTransformInputProperty
()
haddock_workaround_ :: DataQualityJobInputProperty -> ()
batchTransformInput :: DataQualityJobInputProperty -> Maybe BatchTransformInputProperty
endpointInput :: DataQualityJobInputProperty -> Maybe EndpointInputProperty
haddock_workaround_ :: ()
batchTransformInput :: Maybe BatchTransformInputProperty
endpointInput :: Maybe EndpointInputProperty
..}
= DataQualityJobInputProperty
{endpointInput :: Maybe EndpointInputProperty
endpointInput = EndpointInputProperty -> Maybe EndpointInputProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "EndpointInput" DataQualityJobInputProperty
EndpointInputProperty
newValue, Maybe BatchTransformInputProperty
()
haddock_workaround_ :: ()
batchTransformInput :: Maybe BatchTransformInputProperty
haddock_workaround_ :: ()
batchTransformInput :: Maybe BatchTransformInputProperty
..}