module Stratosphere.SageMaker.DataQualityJobDefinition.DataQualityBaselineConfigProperty (
        module Exports, DataQualityBaselineConfigProperty(..),
        mkDataQualityBaselineConfigProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.SageMaker.DataQualityJobDefinition.ConstraintsResourceProperty as Exports
import {-# SOURCE #-} Stratosphere.SageMaker.DataQualityJobDefinition.StatisticsResourceProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Value
data DataQualityBaselineConfigProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-dataqualityjobdefinition-dataqualitybaselineconfig.html>
    DataQualityBaselineConfigProperty {DataQualityBaselineConfigProperty -> ()
haddock_workaround_ :: (),
                                       -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-dataqualityjobdefinition-dataqualitybaselineconfig.html#cfn-sagemaker-dataqualityjobdefinition-dataqualitybaselineconfig-baseliningjobname>
                                       DataQualityBaselineConfigProperty -> Maybe (Value Text)
baseliningJobName :: (Prelude.Maybe (Value Prelude.Text)),
                                       -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-dataqualityjobdefinition-dataqualitybaselineconfig.html#cfn-sagemaker-dataqualityjobdefinition-dataqualitybaselineconfig-constraintsresource>
                                       DataQualityBaselineConfigProperty
-> Maybe ConstraintsResourceProperty
constraintsResource :: (Prelude.Maybe ConstraintsResourceProperty),
                                       -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-dataqualityjobdefinition-dataqualitybaselineconfig.html#cfn-sagemaker-dataqualityjobdefinition-dataqualitybaselineconfig-statisticsresource>
                                       DataQualityBaselineConfigProperty
-> Maybe StatisticsResourceProperty
statisticsResource :: (Prelude.Maybe StatisticsResourceProperty)}
  deriving stock (DataQualityBaselineConfigProperty
-> DataQualityBaselineConfigProperty -> Bool
(DataQualityBaselineConfigProperty
 -> DataQualityBaselineConfigProperty -> Bool)
-> (DataQualityBaselineConfigProperty
    -> DataQualityBaselineConfigProperty -> Bool)
-> Eq DataQualityBaselineConfigProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: DataQualityBaselineConfigProperty
-> DataQualityBaselineConfigProperty -> Bool
== :: DataQualityBaselineConfigProperty
-> DataQualityBaselineConfigProperty -> Bool
$c/= :: DataQualityBaselineConfigProperty
-> DataQualityBaselineConfigProperty -> Bool
/= :: DataQualityBaselineConfigProperty
-> DataQualityBaselineConfigProperty -> Bool
Prelude.Eq, Int -> DataQualityBaselineConfigProperty -> ShowS
[DataQualityBaselineConfigProperty] -> ShowS
DataQualityBaselineConfigProperty -> String
(Int -> DataQualityBaselineConfigProperty -> ShowS)
-> (DataQualityBaselineConfigProperty -> String)
-> ([DataQualityBaselineConfigProperty] -> ShowS)
-> Show DataQualityBaselineConfigProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> DataQualityBaselineConfigProperty -> ShowS
showsPrec :: Int -> DataQualityBaselineConfigProperty -> ShowS
$cshow :: DataQualityBaselineConfigProperty -> String
show :: DataQualityBaselineConfigProperty -> String
$cshowList :: [DataQualityBaselineConfigProperty] -> ShowS
showList :: [DataQualityBaselineConfigProperty] -> ShowS
Prelude.Show)
mkDataQualityBaselineConfigProperty ::
  DataQualityBaselineConfigProperty
mkDataQualityBaselineConfigProperty :: DataQualityBaselineConfigProperty
mkDataQualityBaselineConfigProperty
  = DataQualityBaselineConfigProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), baseliningJobName :: Maybe (Value Text)
baseliningJobName = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
       constraintsResource :: Maybe ConstraintsResourceProperty
constraintsResource = Maybe ConstraintsResourceProperty
forall a. Maybe a
Prelude.Nothing,
       statisticsResource :: Maybe StatisticsResourceProperty
statisticsResource = Maybe StatisticsResourceProperty
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties DataQualityBaselineConfigProperty where
  toResourceProperties :: DataQualityBaselineConfigProperty -> ResourceProperties
toResourceProperties DataQualityBaselineConfigProperty {Maybe (Value Text)
Maybe ConstraintsResourceProperty
Maybe StatisticsResourceProperty
()
haddock_workaround_ :: DataQualityBaselineConfigProperty -> ()
baseliningJobName :: DataQualityBaselineConfigProperty -> Maybe (Value Text)
constraintsResource :: DataQualityBaselineConfigProperty
-> Maybe ConstraintsResourceProperty
statisticsResource :: DataQualityBaselineConfigProperty
-> Maybe StatisticsResourceProperty
haddock_workaround_ :: ()
baseliningJobName :: Maybe (Value Text)
constraintsResource :: Maybe ConstraintsResourceProperty
statisticsResource :: Maybe StatisticsResourceProperty
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::SageMaker::DataQualityJobDefinition.DataQualityBaselineConfig",
         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 -> 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
"BaseliningJobName" (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)
baseliningJobName,
                            Key -> ConstraintsResourceProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"ConstraintsResource" (ConstraintsResourceProperty -> (Key, Value))
-> Maybe ConstraintsResourceProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe ConstraintsResourceProperty
constraintsResource,
                            Key -> StatisticsResourceProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"StatisticsResource" (StatisticsResourceProperty -> (Key, Value))
-> Maybe StatisticsResourceProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe StatisticsResourceProperty
statisticsResource])}
instance JSON.ToJSON DataQualityBaselineConfigProperty where
  toJSON :: DataQualityBaselineConfigProperty -> Value
toJSON DataQualityBaselineConfigProperty {Maybe (Value Text)
Maybe ConstraintsResourceProperty
Maybe StatisticsResourceProperty
()
haddock_workaround_ :: DataQualityBaselineConfigProperty -> ()
baseliningJobName :: DataQualityBaselineConfigProperty -> Maybe (Value Text)
constraintsResource :: DataQualityBaselineConfigProperty
-> Maybe ConstraintsResourceProperty
statisticsResource :: DataQualityBaselineConfigProperty
-> Maybe StatisticsResourceProperty
haddock_workaround_ :: ()
baseliningJobName :: Maybe (Value Text)
constraintsResource :: Maybe ConstraintsResourceProperty
statisticsResource :: Maybe StatisticsResourceProperty
..}
    = [(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 -> 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
"BaseliningJobName" (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)
baseliningJobName,
               Key -> ConstraintsResourceProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"ConstraintsResource" (ConstraintsResourceProperty -> (Key, Value))
-> Maybe ConstraintsResourceProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe ConstraintsResourceProperty
constraintsResource,
               Key -> StatisticsResourceProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"StatisticsResource" (StatisticsResourceProperty -> (Key, Value))
-> Maybe StatisticsResourceProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe StatisticsResourceProperty
statisticsResource]))
instance Property "BaseliningJobName" DataQualityBaselineConfigProperty where
  type PropertyType "BaseliningJobName" DataQualityBaselineConfigProperty = Value Prelude.Text
  set :: PropertyType "BaseliningJobName" DataQualityBaselineConfigProperty
-> DataQualityBaselineConfigProperty
-> DataQualityBaselineConfigProperty
set PropertyType "BaseliningJobName" DataQualityBaselineConfigProperty
newValue DataQualityBaselineConfigProperty {Maybe (Value Text)
Maybe ConstraintsResourceProperty
Maybe StatisticsResourceProperty
()
haddock_workaround_ :: DataQualityBaselineConfigProperty -> ()
baseliningJobName :: DataQualityBaselineConfigProperty -> Maybe (Value Text)
constraintsResource :: DataQualityBaselineConfigProperty
-> Maybe ConstraintsResourceProperty
statisticsResource :: DataQualityBaselineConfigProperty
-> Maybe StatisticsResourceProperty
haddock_workaround_ :: ()
baseliningJobName :: Maybe (Value Text)
constraintsResource :: Maybe ConstraintsResourceProperty
statisticsResource :: Maybe StatisticsResourceProperty
..}
    = DataQualityBaselineConfigProperty
        {baseliningJobName :: Maybe (Value Text)
baseliningJobName = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "BaseliningJobName" DataQualityBaselineConfigProperty
Value Text
newValue, Maybe ConstraintsResourceProperty
Maybe StatisticsResourceProperty
()
haddock_workaround_ :: ()
constraintsResource :: Maybe ConstraintsResourceProperty
statisticsResource :: Maybe StatisticsResourceProperty
haddock_workaround_ :: ()
constraintsResource :: Maybe ConstraintsResourceProperty
statisticsResource :: Maybe StatisticsResourceProperty
..}
instance Property "ConstraintsResource" DataQualityBaselineConfigProperty where
  type PropertyType "ConstraintsResource" DataQualityBaselineConfigProperty = ConstraintsResourceProperty
  set :: PropertyType
  "ConstraintsResource" DataQualityBaselineConfigProperty
-> DataQualityBaselineConfigProperty
-> DataQualityBaselineConfigProperty
set PropertyType
  "ConstraintsResource" DataQualityBaselineConfigProperty
newValue DataQualityBaselineConfigProperty {Maybe (Value Text)
Maybe ConstraintsResourceProperty
Maybe StatisticsResourceProperty
()
haddock_workaround_ :: DataQualityBaselineConfigProperty -> ()
baseliningJobName :: DataQualityBaselineConfigProperty -> Maybe (Value Text)
constraintsResource :: DataQualityBaselineConfigProperty
-> Maybe ConstraintsResourceProperty
statisticsResource :: DataQualityBaselineConfigProperty
-> Maybe StatisticsResourceProperty
haddock_workaround_ :: ()
baseliningJobName :: Maybe (Value Text)
constraintsResource :: Maybe ConstraintsResourceProperty
statisticsResource :: Maybe StatisticsResourceProperty
..}
    = DataQualityBaselineConfigProperty
        {constraintsResource :: Maybe ConstraintsResourceProperty
constraintsResource = ConstraintsResourceProperty -> Maybe ConstraintsResourceProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
  "ConstraintsResource" DataQualityBaselineConfigProperty
ConstraintsResourceProperty
newValue, Maybe (Value Text)
Maybe StatisticsResourceProperty
()
haddock_workaround_ :: ()
baseliningJobName :: Maybe (Value Text)
statisticsResource :: Maybe StatisticsResourceProperty
haddock_workaround_ :: ()
baseliningJobName :: Maybe (Value Text)
statisticsResource :: Maybe StatisticsResourceProperty
..}
instance Property "StatisticsResource" DataQualityBaselineConfigProperty where
  type PropertyType "StatisticsResource" DataQualityBaselineConfigProperty = StatisticsResourceProperty
  set :: PropertyType "StatisticsResource" DataQualityBaselineConfigProperty
-> DataQualityBaselineConfigProperty
-> DataQualityBaselineConfigProperty
set PropertyType "StatisticsResource" DataQualityBaselineConfigProperty
newValue DataQualityBaselineConfigProperty {Maybe (Value Text)
Maybe ConstraintsResourceProperty
Maybe StatisticsResourceProperty
()
haddock_workaround_ :: DataQualityBaselineConfigProperty -> ()
baseliningJobName :: DataQualityBaselineConfigProperty -> Maybe (Value Text)
constraintsResource :: DataQualityBaselineConfigProperty
-> Maybe ConstraintsResourceProperty
statisticsResource :: DataQualityBaselineConfigProperty
-> Maybe StatisticsResourceProperty
haddock_workaround_ :: ()
baseliningJobName :: Maybe (Value Text)
constraintsResource :: Maybe ConstraintsResourceProperty
statisticsResource :: Maybe StatisticsResourceProperty
..}
    = DataQualityBaselineConfigProperty
        {statisticsResource :: Maybe StatisticsResourceProperty
statisticsResource = StatisticsResourceProperty -> Maybe StatisticsResourceProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "StatisticsResource" DataQualityBaselineConfigProperty
StatisticsResourceProperty
newValue, Maybe (Value Text)
Maybe ConstraintsResourceProperty
()
haddock_workaround_ :: ()
baseliningJobName :: Maybe (Value Text)
constraintsResource :: Maybe ConstraintsResourceProperty
haddock_workaround_ :: ()
baseliningJobName :: Maybe (Value Text)
constraintsResource :: Maybe ConstraintsResourceProperty
..}