module Stratosphere.SageMaker.ModelPackage.ModelDataQualityProperty (
        module Exports, ModelDataQualityProperty(..),
        mkModelDataQualityProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.SageMaker.ModelPackage.MetricsSourceProperty as Exports
import Stratosphere.ResourceProperties
data ModelDataQualityProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-modelpackage-modeldataquality.html>
    ModelDataQualityProperty {ModelDataQualityProperty -> ()
haddock_workaround_ :: (),
                              -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-modelpackage-modeldataquality.html#cfn-sagemaker-modelpackage-modeldataquality-constraints>
                              ModelDataQualityProperty -> Maybe MetricsSourceProperty
constraints :: (Prelude.Maybe MetricsSourceProperty),
                              -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-modelpackage-modeldataquality.html#cfn-sagemaker-modelpackage-modeldataquality-statistics>
                              ModelDataQualityProperty -> Maybe MetricsSourceProperty
statistics :: (Prelude.Maybe MetricsSourceProperty)}
  deriving stock (ModelDataQualityProperty -> ModelDataQualityProperty -> Bool
(ModelDataQualityProperty -> ModelDataQualityProperty -> Bool)
-> (ModelDataQualityProperty -> ModelDataQualityProperty -> Bool)
-> Eq ModelDataQualityProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: ModelDataQualityProperty -> ModelDataQualityProperty -> Bool
== :: ModelDataQualityProperty -> ModelDataQualityProperty -> Bool
$c/= :: ModelDataQualityProperty -> ModelDataQualityProperty -> Bool
/= :: ModelDataQualityProperty -> ModelDataQualityProperty -> Bool
Prelude.Eq, Int -> ModelDataQualityProperty -> ShowS
[ModelDataQualityProperty] -> ShowS
ModelDataQualityProperty -> String
(Int -> ModelDataQualityProperty -> ShowS)
-> (ModelDataQualityProperty -> String)
-> ([ModelDataQualityProperty] -> ShowS)
-> Show ModelDataQualityProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> ModelDataQualityProperty -> ShowS
showsPrec :: Int -> ModelDataQualityProperty -> ShowS
$cshow :: ModelDataQualityProperty -> String
show :: ModelDataQualityProperty -> String
$cshowList :: [ModelDataQualityProperty] -> ShowS
showList :: [ModelDataQualityProperty] -> ShowS
Prelude.Show)
mkModelDataQualityProperty :: ModelDataQualityProperty
mkModelDataQualityProperty :: ModelDataQualityProperty
mkModelDataQualityProperty
  = ModelDataQualityProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), constraints :: Maybe MetricsSourceProperty
constraints = Maybe MetricsSourceProperty
forall a. Maybe a
Prelude.Nothing,
       statistics :: Maybe MetricsSourceProperty
statistics = Maybe MetricsSourceProperty
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties ModelDataQualityProperty where
  toResourceProperties :: ModelDataQualityProperty -> ResourceProperties
toResourceProperties ModelDataQualityProperty {Maybe MetricsSourceProperty
()
haddock_workaround_ :: ModelDataQualityProperty -> ()
constraints :: ModelDataQualityProperty -> Maybe MetricsSourceProperty
statistics :: ModelDataQualityProperty -> Maybe MetricsSourceProperty
haddock_workaround_ :: ()
constraints :: Maybe MetricsSourceProperty
statistics :: Maybe MetricsSourceProperty
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::SageMaker::ModelPackage.ModelDataQuality",
         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 -> MetricsSourceProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Constraints" (MetricsSourceProperty -> (Key, Value))
-> Maybe MetricsSourceProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe MetricsSourceProperty
constraints,
                            Key -> MetricsSourceProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Statistics" (MetricsSourceProperty -> (Key, Value))
-> Maybe MetricsSourceProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe MetricsSourceProperty
statistics])}
instance JSON.ToJSON ModelDataQualityProperty where
  toJSON :: ModelDataQualityProperty -> Value
toJSON ModelDataQualityProperty {Maybe MetricsSourceProperty
()
haddock_workaround_ :: ModelDataQualityProperty -> ()
constraints :: ModelDataQualityProperty -> Maybe MetricsSourceProperty
statistics :: ModelDataQualityProperty -> Maybe MetricsSourceProperty
haddock_workaround_ :: ()
constraints :: Maybe MetricsSourceProperty
statistics :: Maybe MetricsSourceProperty
..}
    = [(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 -> MetricsSourceProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Constraints" (MetricsSourceProperty -> (Key, Value))
-> Maybe MetricsSourceProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe MetricsSourceProperty
constraints,
               Key -> MetricsSourceProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Statistics" (MetricsSourceProperty -> (Key, Value))
-> Maybe MetricsSourceProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe MetricsSourceProperty
statistics]))
instance Property "Constraints" ModelDataQualityProperty where
  type PropertyType "Constraints" ModelDataQualityProperty = MetricsSourceProperty
  set :: PropertyType "Constraints" ModelDataQualityProperty
-> ModelDataQualityProperty -> ModelDataQualityProperty
set PropertyType "Constraints" ModelDataQualityProperty
newValue ModelDataQualityProperty {Maybe MetricsSourceProperty
()
haddock_workaround_ :: ModelDataQualityProperty -> ()
constraints :: ModelDataQualityProperty -> Maybe MetricsSourceProperty
statistics :: ModelDataQualityProperty -> Maybe MetricsSourceProperty
haddock_workaround_ :: ()
constraints :: Maybe MetricsSourceProperty
statistics :: Maybe MetricsSourceProperty
..}
    = ModelDataQualityProperty
        {constraints :: Maybe MetricsSourceProperty
constraints = MetricsSourceProperty -> Maybe MetricsSourceProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Constraints" ModelDataQualityProperty
MetricsSourceProperty
newValue, Maybe MetricsSourceProperty
()
haddock_workaround_ :: ()
statistics :: Maybe MetricsSourceProperty
haddock_workaround_ :: ()
statistics :: Maybe MetricsSourceProperty
..}
instance Property "Statistics" ModelDataQualityProperty where
  type PropertyType "Statistics" ModelDataQualityProperty = MetricsSourceProperty
  set :: PropertyType "Statistics" ModelDataQualityProperty
-> ModelDataQualityProperty -> ModelDataQualityProperty
set PropertyType "Statistics" ModelDataQualityProperty
newValue ModelDataQualityProperty {Maybe MetricsSourceProperty
()
haddock_workaround_ :: ModelDataQualityProperty -> ()
constraints :: ModelDataQualityProperty -> Maybe MetricsSourceProperty
statistics :: ModelDataQualityProperty -> Maybe MetricsSourceProperty
haddock_workaround_ :: ()
constraints :: Maybe MetricsSourceProperty
statistics :: Maybe MetricsSourceProperty
..}
    = ModelDataQualityProperty {statistics :: Maybe MetricsSourceProperty
statistics = MetricsSourceProperty -> Maybe MetricsSourceProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Statistics" ModelDataQualityProperty
MetricsSourceProperty
newValue, Maybe MetricsSourceProperty
()
haddock_workaround_ :: ()
constraints :: Maybe MetricsSourceProperty
haddock_workaround_ :: ()
constraints :: Maybe MetricsSourceProperty
..}