module Stratosphere.SageMaker.ModelPackage.DriftCheckModelDataQualityProperty (
module Exports, DriftCheckModelDataQualityProperty(..),
mkDriftCheckModelDataQualityProperty
) 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 DriftCheckModelDataQualityProperty
=
DriftCheckModelDataQualityProperty {DriftCheckModelDataQualityProperty -> ()
haddock_workaround_ :: (),
DriftCheckModelDataQualityProperty -> Maybe MetricsSourceProperty
constraints :: (Prelude.Maybe MetricsSourceProperty),
DriftCheckModelDataQualityProperty -> Maybe MetricsSourceProperty
statistics :: (Prelude.Maybe MetricsSourceProperty)}
deriving stock (DriftCheckModelDataQualityProperty
-> DriftCheckModelDataQualityProperty -> Bool
(DriftCheckModelDataQualityProperty
-> DriftCheckModelDataQualityProperty -> Bool)
-> (DriftCheckModelDataQualityProperty
-> DriftCheckModelDataQualityProperty -> Bool)
-> Eq DriftCheckModelDataQualityProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: DriftCheckModelDataQualityProperty
-> DriftCheckModelDataQualityProperty -> Bool
== :: DriftCheckModelDataQualityProperty
-> DriftCheckModelDataQualityProperty -> Bool
$c/= :: DriftCheckModelDataQualityProperty
-> DriftCheckModelDataQualityProperty -> Bool
/= :: DriftCheckModelDataQualityProperty
-> DriftCheckModelDataQualityProperty -> Bool
Prelude.Eq, Int -> DriftCheckModelDataQualityProperty -> ShowS
[DriftCheckModelDataQualityProperty] -> ShowS
DriftCheckModelDataQualityProperty -> String
(Int -> DriftCheckModelDataQualityProperty -> ShowS)
-> (DriftCheckModelDataQualityProperty -> String)
-> ([DriftCheckModelDataQualityProperty] -> ShowS)
-> Show DriftCheckModelDataQualityProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> DriftCheckModelDataQualityProperty -> ShowS
showsPrec :: Int -> DriftCheckModelDataQualityProperty -> ShowS
$cshow :: DriftCheckModelDataQualityProperty -> String
show :: DriftCheckModelDataQualityProperty -> String
$cshowList :: [DriftCheckModelDataQualityProperty] -> ShowS
showList :: [DriftCheckModelDataQualityProperty] -> ShowS
Prelude.Show)
mkDriftCheckModelDataQualityProperty ::
DriftCheckModelDataQualityProperty
mkDriftCheckModelDataQualityProperty :: DriftCheckModelDataQualityProperty
mkDriftCheckModelDataQualityProperty
= DriftCheckModelDataQualityProperty
{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 DriftCheckModelDataQualityProperty where
toResourceProperties :: DriftCheckModelDataQualityProperty -> ResourceProperties
toResourceProperties DriftCheckModelDataQualityProperty {Maybe MetricsSourceProperty
()
haddock_workaround_ :: DriftCheckModelDataQualityProperty -> ()
constraints :: DriftCheckModelDataQualityProperty -> Maybe MetricsSourceProperty
statistics :: DriftCheckModelDataQualityProperty -> Maybe MetricsSourceProperty
haddock_workaround_ :: ()
constraints :: Maybe MetricsSourceProperty
statistics :: Maybe MetricsSourceProperty
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::SageMaker::ModelPackage.DriftCheckModelDataQuality",
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 DriftCheckModelDataQualityProperty where
toJSON :: DriftCheckModelDataQualityProperty -> Value
toJSON DriftCheckModelDataQualityProperty {Maybe MetricsSourceProperty
()
haddock_workaround_ :: DriftCheckModelDataQualityProperty -> ()
constraints :: DriftCheckModelDataQualityProperty -> Maybe MetricsSourceProperty
statistics :: DriftCheckModelDataQualityProperty -> 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" DriftCheckModelDataQualityProperty where
type PropertyType "Constraints" DriftCheckModelDataQualityProperty = MetricsSourceProperty
set :: PropertyType "Constraints" DriftCheckModelDataQualityProperty
-> DriftCheckModelDataQualityProperty
-> DriftCheckModelDataQualityProperty
set PropertyType "Constraints" DriftCheckModelDataQualityProperty
newValue DriftCheckModelDataQualityProperty {Maybe MetricsSourceProperty
()
haddock_workaround_ :: DriftCheckModelDataQualityProperty -> ()
constraints :: DriftCheckModelDataQualityProperty -> Maybe MetricsSourceProperty
statistics :: DriftCheckModelDataQualityProperty -> Maybe MetricsSourceProperty
haddock_workaround_ :: ()
constraints :: Maybe MetricsSourceProperty
statistics :: Maybe MetricsSourceProperty
..}
= DriftCheckModelDataQualityProperty
{constraints :: Maybe MetricsSourceProperty
constraints = MetricsSourceProperty -> Maybe MetricsSourceProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Constraints" DriftCheckModelDataQualityProperty
MetricsSourceProperty
newValue, Maybe MetricsSourceProperty
()
haddock_workaround_ :: ()
statistics :: Maybe MetricsSourceProperty
haddock_workaround_ :: ()
statistics :: Maybe MetricsSourceProperty
..}
instance Property "Statistics" DriftCheckModelDataQualityProperty where
type PropertyType "Statistics" DriftCheckModelDataQualityProperty = MetricsSourceProperty
set :: PropertyType "Statistics" DriftCheckModelDataQualityProperty
-> DriftCheckModelDataQualityProperty
-> DriftCheckModelDataQualityProperty
set PropertyType "Statistics" DriftCheckModelDataQualityProperty
newValue DriftCheckModelDataQualityProperty {Maybe MetricsSourceProperty
()
haddock_workaround_ :: DriftCheckModelDataQualityProperty -> ()
constraints :: DriftCheckModelDataQualityProperty -> Maybe MetricsSourceProperty
statistics :: DriftCheckModelDataQualityProperty -> Maybe MetricsSourceProperty
haddock_workaround_ :: ()
constraints :: Maybe MetricsSourceProperty
statistics :: Maybe MetricsSourceProperty
..}
= DriftCheckModelDataQualityProperty
{statistics :: Maybe MetricsSourceProperty
statistics = MetricsSourceProperty -> Maybe MetricsSourceProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Statistics" DriftCheckModelDataQualityProperty
MetricsSourceProperty
newValue, Maybe MetricsSourceProperty
()
haddock_workaround_ :: ()
constraints :: Maybe MetricsSourceProperty
haddock_workaround_ :: ()
constraints :: Maybe MetricsSourceProperty
..}