module Stratosphere.SageMaker.ModelQualityJobDefinition.ModelQualityJobInputProperty (
        module Exports, ModelQualityJobInputProperty(..),
        mkModelQualityJobInputProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.SageMaker.ModelQualityJobDefinition.BatchTransformInputProperty as Exports
import {-# SOURCE #-} Stratosphere.SageMaker.ModelQualityJobDefinition.EndpointInputProperty as Exports
import {-# SOURCE #-} Stratosphere.SageMaker.ModelQualityJobDefinition.MonitoringGroundTruthS3InputProperty as Exports
import Stratosphere.ResourceProperties
data ModelQualityJobInputProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-modelqualityjobdefinition-modelqualityjobinput.html>
    ModelQualityJobInputProperty {ModelQualityJobInputProperty -> ()
haddock_workaround_ :: (),
                                  -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-modelqualityjobdefinition-modelqualityjobinput.html#cfn-sagemaker-modelqualityjobdefinition-modelqualityjobinput-batchtransforminput>
                                  ModelQualityJobInputProperty -> Maybe BatchTransformInputProperty
batchTransformInput :: (Prelude.Maybe BatchTransformInputProperty),
                                  -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-modelqualityjobdefinition-modelqualityjobinput.html#cfn-sagemaker-modelqualityjobdefinition-modelqualityjobinput-endpointinput>
                                  ModelQualityJobInputProperty -> Maybe EndpointInputProperty
endpointInput :: (Prelude.Maybe EndpointInputProperty),
                                  -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-modelqualityjobdefinition-modelqualityjobinput.html#cfn-sagemaker-modelqualityjobdefinition-modelqualityjobinput-groundtruths3input>
                                  ModelQualityJobInputProperty
-> MonitoringGroundTruthS3InputProperty
groundTruthS3Input :: MonitoringGroundTruthS3InputProperty}
  deriving stock (ModelQualityJobInputProperty
-> ModelQualityJobInputProperty -> Bool
(ModelQualityJobInputProperty
 -> ModelQualityJobInputProperty -> Bool)
-> (ModelQualityJobInputProperty
    -> ModelQualityJobInputProperty -> Bool)
-> Eq ModelQualityJobInputProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: ModelQualityJobInputProperty
-> ModelQualityJobInputProperty -> Bool
== :: ModelQualityJobInputProperty
-> ModelQualityJobInputProperty -> Bool
$c/= :: ModelQualityJobInputProperty
-> ModelQualityJobInputProperty -> Bool
/= :: ModelQualityJobInputProperty
-> ModelQualityJobInputProperty -> Bool
Prelude.Eq, Int -> ModelQualityJobInputProperty -> ShowS
[ModelQualityJobInputProperty] -> ShowS
ModelQualityJobInputProperty -> String
(Int -> ModelQualityJobInputProperty -> ShowS)
-> (ModelQualityJobInputProperty -> String)
-> ([ModelQualityJobInputProperty] -> ShowS)
-> Show ModelQualityJobInputProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> ModelQualityJobInputProperty -> ShowS
showsPrec :: Int -> ModelQualityJobInputProperty -> ShowS
$cshow :: ModelQualityJobInputProperty -> String
show :: ModelQualityJobInputProperty -> String
$cshowList :: [ModelQualityJobInputProperty] -> ShowS
showList :: [ModelQualityJobInputProperty] -> ShowS
Prelude.Show)
mkModelQualityJobInputProperty ::
  MonitoringGroundTruthS3InputProperty
  -> ModelQualityJobInputProperty
mkModelQualityJobInputProperty :: MonitoringGroundTruthS3InputProperty
-> ModelQualityJobInputProperty
mkModelQualityJobInputProperty MonitoringGroundTruthS3InputProperty
groundTruthS3Input
  = ModelQualityJobInputProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), groundTruthS3Input :: MonitoringGroundTruthS3InputProperty
groundTruthS3Input = MonitoringGroundTruthS3InputProperty
groundTruthS3Input,
       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 ModelQualityJobInputProperty where
  toResourceProperties :: ModelQualityJobInputProperty -> ResourceProperties
toResourceProperties ModelQualityJobInputProperty {Maybe EndpointInputProperty
Maybe BatchTransformInputProperty
()
MonitoringGroundTruthS3InputProperty
haddock_workaround_ :: ModelQualityJobInputProperty -> ()
batchTransformInput :: ModelQualityJobInputProperty -> Maybe BatchTransformInputProperty
endpointInput :: ModelQualityJobInputProperty -> Maybe EndpointInputProperty
groundTruthS3Input :: ModelQualityJobInputProperty
-> MonitoringGroundTruthS3InputProperty
haddock_workaround_ :: ()
batchTransformInput :: Maybe BatchTransformInputProperty
endpointInput :: Maybe EndpointInputProperty
groundTruthS3Input :: MonitoringGroundTruthS3InputProperty
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::SageMaker::ModelQualityJobDefinition.ModelQualityJobInput",
         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
"GroundTruthS3Input" Key -> MonitoringGroundTruthS3InputProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= MonitoringGroundTruthS3InputProperty
groundTruthS3Input]
                           ([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 ModelQualityJobInputProperty where
  toJSON :: ModelQualityJobInputProperty -> Value
toJSON ModelQualityJobInputProperty {Maybe EndpointInputProperty
Maybe BatchTransformInputProperty
()
MonitoringGroundTruthS3InputProperty
haddock_workaround_ :: ModelQualityJobInputProperty -> ()
batchTransformInput :: ModelQualityJobInputProperty -> Maybe BatchTransformInputProperty
endpointInput :: ModelQualityJobInputProperty -> Maybe EndpointInputProperty
groundTruthS3Input :: ModelQualityJobInputProperty
-> MonitoringGroundTruthS3InputProperty
haddock_workaround_ :: ()
batchTransformInput :: Maybe BatchTransformInputProperty
endpointInput :: Maybe EndpointInputProperty
groundTruthS3Input :: MonitoringGroundTruthS3InputProperty
..}
    = [(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
"GroundTruthS3Input" Key -> MonitoringGroundTruthS3InputProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= MonitoringGroundTruthS3InputProperty
groundTruthS3Input]
              ([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" ModelQualityJobInputProperty where
  type PropertyType "BatchTransformInput" ModelQualityJobInputProperty = BatchTransformInputProperty
  set :: PropertyType "BatchTransformInput" ModelQualityJobInputProperty
-> ModelQualityJobInputProperty -> ModelQualityJobInputProperty
set PropertyType "BatchTransformInput" ModelQualityJobInputProperty
newValue ModelQualityJobInputProperty {Maybe EndpointInputProperty
Maybe BatchTransformInputProperty
()
MonitoringGroundTruthS3InputProperty
haddock_workaround_ :: ModelQualityJobInputProperty -> ()
batchTransformInput :: ModelQualityJobInputProperty -> Maybe BatchTransformInputProperty
endpointInput :: ModelQualityJobInputProperty -> Maybe EndpointInputProperty
groundTruthS3Input :: ModelQualityJobInputProperty
-> MonitoringGroundTruthS3InputProperty
haddock_workaround_ :: ()
batchTransformInput :: Maybe BatchTransformInputProperty
endpointInput :: Maybe EndpointInputProperty
groundTruthS3Input :: MonitoringGroundTruthS3InputProperty
..}
    = ModelQualityJobInputProperty
        {batchTransformInput :: Maybe BatchTransformInputProperty
batchTransformInput = BatchTransformInputProperty -> Maybe BatchTransformInputProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "BatchTransformInput" ModelQualityJobInputProperty
BatchTransformInputProperty
newValue, Maybe EndpointInputProperty
()
MonitoringGroundTruthS3InputProperty
haddock_workaround_ :: ()
endpointInput :: Maybe EndpointInputProperty
groundTruthS3Input :: MonitoringGroundTruthS3InputProperty
haddock_workaround_ :: ()
endpointInput :: Maybe EndpointInputProperty
groundTruthS3Input :: MonitoringGroundTruthS3InputProperty
..}
instance Property "EndpointInput" ModelQualityJobInputProperty where
  type PropertyType "EndpointInput" ModelQualityJobInputProperty = EndpointInputProperty
  set :: PropertyType "EndpointInput" ModelQualityJobInputProperty
-> ModelQualityJobInputProperty -> ModelQualityJobInputProperty
set PropertyType "EndpointInput" ModelQualityJobInputProperty
newValue ModelQualityJobInputProperty {Maybe EndpointInputProperty
Maybe BatchTransformInputProperty
()
MonitoringGroundTruthS3InputProperty
haddock_workaround_ :: ModelQualityJobInputProperty -> ()
batchTransformInput :: ModelQualityJobInputProperty -> Maybe BatchTransformInputProperty
endpointInput :: ModelQualityJobInputProperty -> Maybe EndpointInputProperty
groundTruthS3Input :: ModelQualityJobInputProperty
-> MonitoringGroundTruthS3InputProperty
haddock_workaround_ :: ()
batchTransformInput :: Maybe BatchTransformInputProperty
endpointInput :: Maybe EndpointInputProperty
groundTruthS3Input :: MonitoringGroundTruthS3InputProperty
..}
    = ModelQualityJobInputProperty
        {endpointInput :: Maybe EndpointInputProperty
endpointInput = EndpointInputProperty -> Maybe EndpointInputProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "EndpointInput" ModelQualityJobInputProperty
EndpointInputProperty
newValue, Maybe BatchTransformInputProperty
()
MonitoringGroundTruthS3InputProperty
haddock_workaround_ :: ()
batchTransformInput :: Maybe BatchTransformInputProperty
groundTruthS3Input :: MonitoringGroundTruthS3InputProperty
haddock_workaround_ :: ()
batchTransformInput :: Maybe BatchTransformInputProperty
groundTruthS3Input :: MonitoringGroundTruthS3InputProperty
..}
instance Property "GroundTruthS3Input" ModelQualityJobInputProperty where
  type PropertyType "GroundTruthS3Input" ModelQualityJobInputProperty = MonitoringGroundTruthS3InputProperty
  set :: PropertyType "GroundTruthS3Input" ModelQualityJobInputProperty
-> ModelQualityJobInputProperty -> ModelQualityJobInputProperty
set PropertyType "GroundTruthS3Input" ModelQualityJobInputProperty
newValue ModelQualityJobInputProperty {Maybe EndpointInputProperty
Maybe BatchTransformInputProperty
()
MonitoringGroundTruthS3InputProperty
haddock_workaround_ :: ModelQualityJobInputProperty -> ()
batchTransformInput :: ModelQualityJobInputProperty -> Maybe BatchTransformInputProperty
endpointInput :: ModelQualityJobInputProperty -> Maybe EndpointInputProperty
groundTruthS3Input :: ModelQualityJobInputProperty
-> MonitoringGroundTruthS3InputProperty
haddock_workaround_ :: ()
batchTransformInput :: Maybe BatchTransformInputProperty
endpointInput :: Maybe EndpointInputProperty
groundTruthS3Input :: MonitoringGroundTruthS3InputProperty
..}
    = ModelQualityJobInputProperty {groundTruthS3Input :: MonitoringGroundTruthS3InputProperty
groundTruthS3Input = PropertyType "GroundTruthS3Input" ModelQualityJobInputProperty
MonitoringGroundTruthS3InputProperty
newValue, Maybe EndpointInputProperty
Maybe BatchTransformInputProperty
()
haddock_workaround_ :: ()
batchTransformInput :: Maybe BatchTransformInputProperty
endpointInput :: Maybe EndpointInputProperty
haddock_workaround_ :: ()
batchTransformInput :: Maybe BatchTransformInputProperty
endpointInput :: Maybe EndpointInputProperty
..}