module Stratosphere.SageMaker.ModelPackage.DriftCheckBiasProperty (
module Exports, DriftCheckBiasProperty(..),
mkDriftCheckBiasProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.SageMaker.ModelPackage.FileSourceProperty as Exports
import {-# SOURCE #-} Stratosphere.SageMaker.ModelPackage.MetricsSourceProperty as Exports
import Stratosphere.ResourceProperties
data DriftCheckBiasProperty
=
DriftCheckBiasProperty {DriftCheckBiasProperty -> ()
haddock_workaround_ :: (),
DriftCheckBiasProperty -> Maybe FileSourceProperty
configFile :: (Prelude.Maybe FileSourceProperty),
DriftCheckBiasProperty -> Maybe MetricsSourceProperty
postTrainingConstraints :: (Prelude.Maybe MetricsSourceProperty),
DriftCheckBiasProperty -> Maybe MetricsSourceProperty
preTrainingConstraints :: (Prelude.Maybe MetricsSourceProperty)}
deriving stock (DriftCheckBiasProperty -> DriftCheckBiasProperty -> Bool
(DriftCheckBiasProperty -> DriftCheckBiasProperty -> Bool)
-> (DriftCheckBiasProperty -> DriftCheckBiasProperty -> Bool)
-> Eq DriftCheckBiasProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: DriftCheckBiasProperty -> DriftCheckBiasProperty -> Bool
== :: DriftCheckBiasProperty -> DriftCheckBiasProperty -> Bool
$c/= :: DriftCheckBiasProperty -> DriftCheckBiasProperty -> Bool
/= :: DriftCheckBiasProperty -> DriftCheckBiasProperty -> Bool
Prelude.Eq, Int -> DriftCheckBiasProperty -> ShowS
[DriftCheckBiasProperty] -> ShowS
DriftCheckBiasProperty -> String
(Int -> DriftCheckBiasProperty -> ShowS)
-> (DriftCheckBiasProperty -> String)
-> ([DriftCheckBiasProperty] -> ShowS)
-> Show DriftCheckBiasProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> DriftCheckBiasProperty -> ShowS
showsPrec :: Int -> DriftCheckBiasProperty -> ShowS
$cshow :: DriftCheckBiasProperty -> String
show :: DriftCheckBiasProperty -> String
$cshowList :: [DriftCheckBiasProperty] -> ShowS
showList :: [DriftCheckBiasProperty] -> ShowS
Prelude.Show)
mkDriftCheckBiasProperty :: DriftCheckBiasProperty
mkDriftCheckBiasProperty :: DriftCheckBiasProperty
mkDriftCheckBiasProperty
= DriftCheckBiasProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), configFile :: Maybe FileSourceProperty
configFile = Maybe FileSourceProperty
forall a. Maybe a
Prelude.Nothing,
postTrainingConstraints :: Maybe MetricsSourceProperty
postTrainingConstraints = Maybe MetricsSourceProperty
forall a. Maybe a
Prelude.Nothing,
preTrainingConstraints :: Maybe MetricsSourceProperty
preTrainingConstraints = Maybe MetricsSourceProperty
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties DriftCheckBiasProperty where
toResourceProperties :: DriftCheckBiasProperty -> ResourceProperties
toResourceProperties DriftCheckBiasProperty {Maybe FileSourceProperty
Maybe MetricsSourceProperty
()
haddock_workaround_ :: DriftCheckBiasProperty -> ()
configFile :: DriftCheckBiasProperty -> Maybe FileSourceProperty
postTrainingConstraints :: DriftCheckBiasProperty -> Maybe MetricsSourceProperty
preTrainingConstraints :: DriftCheckBiasProperty -> Maybe MetricsSourceProperty
haddock_workaround_ :: ()
configFile :: Maybe FileSourceProperty
postTrainingConstraints :: Maybe MetricsSourceProperty
preTrainingConstraints :: Maybe MetricsSourceProperty
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::SageMaker::ModelPackage.DriftCheckBias",
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 -> FileSourceProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"ConfigFile" (FileSourceProperty -> (Key, Value))
-> Maybe FileSourceProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe FileSourceProperty
configFile,
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
"PostTrainingConstraints"
(MetricsSourceProperty -> (Key, Value))
-> Maybe MetricsSourceProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe MetricsSourceProperty
postTrainingConstraints,
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
"PreTrainingConstraints"
(MetricsSourceProperty -> (Key, Value))
-> Maybe MetricsSourceProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe MetricsSourceProperty
preTrainingConstraints])}
instance JSON.ToJSON DriftCheckBiasProperty where
toJSON :: DriftCheckBiasProperty -> Value
toJSON DriftCheckBiasProperty {Maybe FileSourceProperty
Maybe MetricsSourceProperty
()
haddock_workaround_ :: DriftCheckBiasProperty -> ()
configFile :: DriftCheckBiasProperty -> Maybe FileSourceProperty
postTrainingConstraints :: DriftCheckBiasProperty -> Maybe MetricsSourceProperty
preTrainingConstraints :: DriftCheckBiasProperty -> Maybe MetricsSourceProperty
haddock_workaround_ :: ()
configFile :: Maybe FileSourceProperty
postTrainingConstraints :: Maybe MetricsSourceProperty
preTrainingConstraints :: 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 -> FileSourceProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"ConfigFile" (FileSourceProperty -> (Key, Value))
-> Maybe FileSourceProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe FileSourceProperty
configFile,
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
"PostTrainingConstraints"
(MetricsSourceProperty -> (Key, Value))
-> Maybe MetricsSourceProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe MetricsSourceProperty
postTrainingConstraints,
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
"PreTrainingConstraints"
(MetricsSourceProperty -> (Key, Value))
-> Maybe MetricsSourceProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe MetricsSourceProperty
preTrainingConstraints]))
instance Property "ConfigFile" DriftCheckBiasProperty where
type PropertyType "ConfigFile" DriftCheckBiasProperty = FileSourceProperty
set :: PropertyType "ConfigFile" DriftCheckBiasProperty
-> DriftCheckBiasProperty -> DriftCheckBiasProperty
set PropertyType "ConfigFile" DriftCheckBiasProperty
newValue DriftCheckBiasProperty {Maybe FileSourceProperty
Maybe MetricsSourceProperty
()
haddock_workaround_ :: DriftCheckBiasProperty -> ()
configFile :: DriftCheckBiasProperty -> Maybe FileSourceProperty
postTrainingConstraints :: DriftCheckBiasProperty -> Maybe MetricsSourceProperty
preTrainingConstraints :: DriftCheckBiasProperty -> Maybe MetricsSourceProperty
haddock_workaround_ :: ()
configFile :: Maybe FileSourceProperty
postTrainingConstraints :: Maybe MetricsSourceProperty
preTrainingConstraints :: Maybe MetricsSourceProperty
..}
= DriftCheckBiasProperty {configFile :: Maybe FileSourceProperty
configFile = FileSourceProperty -> Maybe FileSourceProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "ConfigFile" DriftCheckBiasProperty
FileSourceProperty
newValue, Maybe MetricsSourceProperty
()
haddock_workaround_ :: ()
postTrainingConstraints :: Maybe MetricsSourceProperty
preTrainingConstraints :: Maybe MetricsSourceProperty
haddock_workaround_ :: ()
postTrainingConstraints :: Maybe MetricsSourceProperty
preTrainingConstraints :: Maybe MetricsSourceProperty
..}
instance Property "PostTrainingConstraints" DriftCheckBiasProperty where
type PropertyType "PostTrainingConstraints" DriftCheckBiasProperty = MetricsSourceProperty
set :: PropertyType "PostTrainingConstraints" DriftCheckBiasProperty
-> DriftCheckBiasProperty -> DriftCheckBiasProperty
set PropertyType "PostTrainingConstraints" DriftCheckBiasProperty
newValue DriftCheckBiasProperty {Maybe FileSourceProperty
Maybe MetricsSourceProperty
()
haddock_workaround_ :: DriftCheckBiasProperty -> ()
configFile :: DriftCheckBiasProperty -> Maybe FileSourceProperty
postTrainingConstraints :: DriftCheckBiasProperty -> Maybe MetricsSourceProperty
preTrainingConstraints :: DriftCheckBiasProperty -> Maybe MetricsSourceProperty
haddock_workaround_ :: ()
configFile :: Maybe FileSourceProperty
postTrainingConstraints :: Maybe MetricsSourceProperty
preTrainingConstraints :: Maybe MetricsSourceProperty
..}
= DriftCheckBiasProperty
{postTrainingConstraints :: Maybe MetricsSourceProperty
postTrainingConstraints = MetricsSourceProperty -> Maybe MetricsSourceProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "PostTrainingConstraints" DriftCheckBiasProperty
MetricsSourceProperty
newValue, Maybe FileSourceProperty
Maybe MetricsSourceProperty
()
haddock_workaround_ :: ()
configFile :: Maybe FileSourceProperty
preTrainingConstraints :: Maybe MetricsSourceProperty
haddock_workaround_ :: ()
configFile :: Maybe FileSourceProperty
preTrainingConstraints :: Maybe MetricsSourceProperty
..}
instance Property "PreTrainingConstraints" DriftCheckBiasProperty where
type PropertyType "PreTrainingConstraints" DriftCheckBiasProperty = MetricsSourceProperty
set :: PropertyType "PreTrainingConstraints" DriftCheckBiasProperty
-> DriftCheckBiasProperty -> DriftCheckBiasProperty
set PropertyType "PreTrainingConstraints" DriftCheckBiasProperty
newValue DriftCheckBiasProperty {Maybe FileSourceProperty
Maybe MetricsSourceProperty
()
haddock_workaround_ :: DriftCheckBiasProperty -> ()
configFile :: DriftCheckBiasProperty -> Maybe FileSourceProperty
postTrainingConstraints :: DriftCheckBiasProperty -> Maybe MetricsSourceProperty
preTrainingConstraints :: DriftCheckBiasProperty -> Maybe MetricsSourceProperty
haddock_workaround_ :: ()
configFile :: Maybe FileSourceProperty
postTrainingConstraints :: Maybe MetricsSourceProperty
preTrainingConstraints :: Maybe MetricsSourceProperty
..}
= DriftCheckBiasProperty
{preTrainingConstraints :: Maybe MetricsSourceProperty
preTrainingConstraints = MetricsSourceProperty -> Maybe MetricsSourceProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "PreTrainingConstraints" DriftCheckBiasProperty
MetricsSourceProperty
newValue, Maybe FileSourceProperty
Maybe MetricsSourceProperty
()
haddock_workaround_ :: ()
configFile :: Maybe FileSourceProperty
postTrainingConstraints :: Maybe MetricsSourceProperty
haddock_workaround_ :: ()
configFile :: Maybe FileSourceProperty
postTrainingConstraints :: Maybe MetricsSourceProperty
..}