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