module Stratosphere.SageMaker.MonitoringSchedule.BaselineConfigProperty (
module Exports, BaselineConfigProperty(..),
mkBaselineConfigProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.SageMaker.MonitoringSchedule.ConstraintsResourceProperty as Exports
import {-# SOURCE #-} Stratosphere.SageMaker.MonitoringSchedule.StatisticsResourceProperty as Exports
import Stratosphere.ResourceProperties
data BaselineConfigProperty
=
BaselineConfigProperty {BaselineConfigProperty -> ()
haddock_workaround_ :: (),
BaselineConfigProperty -> Maybe ConstraintsResourceProperty
constraintsResource :: (Prelude.Maybe ConstraintsResourceProperty),
BaselineConfigProperty -> Maybe StatisticsResourceProperty
statisticsResource :: (Prelude.Maybe StatisticsResourceProperty)}
deriving stock (BaselineConfigProperty -> BaselineConfigProperty -> Bool
(BaselineConfigProperty -> BaselineConfigProperty -> Bool)
-> (BaselineConfigProperty -> BaselineConfigProperty -> Bool)
-> Eq BaselineConfigProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: BaselineConfigProperty -> BaselineConfigProperty -> Bool
== :: BaselineConfigProperty -> BaselineConfigProperty -> Bool
$c/= :: BaselineConfigProperty -> BaselineConfigProperty -> Bool
/= :: BaselineConfigProperty -> BaselineConfigProperty -> Bool
Prelude.Eq, Int -> BaselineConfigProperty -> ShowS
[BaselineConfigProperty] -> ShowS
BaselineConfigProperty -> String
(Int -> BaselineConfigProperty -> ShowS)
-> (BaselineConfigProperty -> String)
-> ([BaselineConfigProperty] -> ShowS)
-> Show BaselineConfigProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> BaselineConfigProperty -> ShowS
showsPrec :: Int -> BaselineConfigProperty -> ShowS
$cshow :: BaselineConfigProperty -> String
show :: BaselineConfigProperty -> String
$cshowList :: [BaselineConfigProperty] -> ShowS
showList :: [BaselineConfigProperty] -> ShowS
Prelude.Show)
mkBaselineConfigProperty :: BaselineConfigProperty
mkBaselineConfigProperty :: BaselineConfigProperty
mkBaselineConfigProperty
= BaselineConfigProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), 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 BaselineConfigProperty where
toResourceProperties :: BaselineConfigProperty -> ResourceProperties
toResourceProperties BaselineConfigProperty {Maybe ConstraintsResourceProperty
Maybe StatisticsResourceProperty
()
haddock_workaround_ :: BaselineConfigProperty -> ()
constraintsResource :: BaselineConfigProperty -> Maybe ConstraintsResourceProperty
statisticsResource :: BaselineConfigProperty -> Maybe StatisticsResourceProperty
haddock_workaround_ :: ()
constraintsResource :: Maybe ConstraintsResourceProperty
statisticsResource :: Maybe StatisticsResourceProperty
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::SageMaker::MonitoringSchedule.BaselineConfig",
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 -> 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 BaselineConfigProperty where
toJSON :: BaselineConfigProperty -> Value
toJSON BaselineConfigProperty {Maybe ConstraintsResourceProperty
Maybe StatisticsResourceProperty
()
haddock_workaround_ :: BaselineConfigProperty -> ()
constraintsResource :: BaselineConfigProperty -> Maybe ConstraintsResourceProperty
statisticsResource :: BaselineConfigProperty -> Maybe StatisticsResourceProperty
haddock_workaround_ :: ()
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 -> 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 "ConstraintsResource" BaselineConfigProperty where
type PropertyType "ConstraintsResource" BaselineConfigProperty = ConstraintsResourceProperty
set :: PropertyType "ConstraintsResource" BaselineConfigProperty
-> BaselineConfigProperty -> BaselineConfigProperty
set PropertyType "ConstraintsResource" BaselineConfigProperty
newValue BaselineConfigProperty {Maybe ConstraintsResourceProperty
Maybe StatisticsResourceProperty
()
haddock_workaround_ :: BaselineConfigProperty -> ()
constraintsResource :: BaselineConfigProperty -> Maybe ConstraintsResourceProperty
statisticsResource :: BaselineConfigProperty -> Maybe StatisticsResourceProperty
haddock_workaround_ :: ()
constraintsResource :: Maybe ConstraintsResourceProperty
statisticsResource :: Maybe StatisticsResourceProperty
..}
= BaselineConfigProperty
{constraintsResource :: Maybe ConstraintsResourceProperty
constraintsResource = ConstraintsResourceProperty -> Maybe ConstraintsResourceProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "ConstraintsResource" BaselineConfigProperty
ConstraintsResourceProperty
newValue, Maybe StatisticsResourceProperty
()
haddock_workaround_ :: ()
statisticsResource :: Maybe StatisticsResourceProperty
haddock_workaround_ :: ()
statisticsResource :: Maybe StatisticsResourceProperty
..}
instance Property "StatisticsResource" BaselineConfigProperty where
type PropertyType "StatisticsResource" BaselineConfigProperty = StatisticsResourceProperty
set :: PropertyType "StatisticsResource" BaselineConfigProperty
-> BaselineConfigProperty -> BaselineConfigProperty
set PropertyType "StatisticsResource" BaselineConfigProperty
newValue BaselineConfigProperty {Maybe ConstraintsResourceProperty
Maybe StatisticsResourceProperty
()
haddock_workaround_ :: BaselineConfigProperty -> ()
constraintsResource :: BaselineConfigProperty -> Maybe ConstraintsResourceProperty
statisticsResource :: BaselineConfigProperty -> Maybe StatisticsResourceProperty
haddock_workaround_ :: ()
constraintsResource :: Maybe ConstraintsResourceProperty
statisticsResource :: Maybe StatisticsResourceProperty
..}
= BaselineConfigProperty
{statisticsResource :: Maybe StatisticsResourceProperty
statisticsResource = StatisticsResourceProperty -> Maybe StatisticsResourceProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "StatisticsResource" BaselineConfigProperty
StatisticsResourceProperty
newValue, Maybe ConstraintsResourceProperty
()
haddock_workaround_ :: ()
constraintsResource :: Maybe ConstraintsResourceProperty
haddock_workaround_ :: ()
constraintsResource :: Maybe ConstraintsResourceProperty
..}