module Stratosphere.SageMaker.MonitoringSchedule.MonitoringOutputConfigProperty (
module Exports, MonitoringOutputConfigProperty(..),
mkMonitoringOutputConfigProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.SageMaker.MonitoringSchedule.MonitoringOutputProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Value
data MonitoringOutputConfigProperty
=
MonitoringOutputConfigProperty {MonitoringOutputConfigProperty -> ()
haddock_workaround_ :: (),
MonitoringOutputConfigProperty -> Maybe (Value Text)
kmsKeyId :: (Prelude.Maybe (Value Prelude.Text)),
MonitoringOutputConfigProperty -> [MonitoringOutputProperty]
monitoringOutputs :: [MonitoringOutputProperty]}
deriving stock (MonitoringOutputConfigProperty
-> MonitoringOutputConfigProperty -> Bool
(MonitoringOutputConfigProperty
-> MonitoringOutputConfigProperty -> Bool)
-> (MonitoringOutputConfigProperty
-> MonitoringOutputConfigProperty -> Bool)
-> Eq MonitoringOutputConfigProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: MonitoringOutputConfigProperty
-> MonitoringOutputConfigProperty -> Bool
== :: MonitoringOutputConfigProperty
-> MonitoringOutputConfigProperty -> Bool
$c/= :: MonitoringOutputConfigProperty
-> MonitoringOutputConfigProperty -> Bool
/= :: MonitoringOutputConfigProperty
-> MonitoringOutputConfigProperty -> Bool
Prelude.Eq, Int -> MonitoringOutputConfigProperty -> ShowS
[MonitoringOutputConfigProperty] -> ShowS
MonitoringOutputConfigProperty -> String
(Int -> MonitoringOutputConfigProperty -> ShowS)
-> (MonitoringOutputConfigProperty -> String)
-> ([MonitoringOutputConfigProperty] -> ShowS)
-> Show MonitoringOutputConfigProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> MonitoringOutputConfigProperty -> ShowS
showsPrec :: Int -> MonitoringOutputConfigProperty -> ShowS
$cshow :: MonitoringOutputConfigProperty -> String
show :: MonitoringOutputConfigProperty -> String
$cshowList :: [MonitoringOutputConfigProperty] -> ShowS
showList :: [MonitoringOutputConfigProperty] -> ShowS
Prelude.Show)
mkMonitoringOutputConfigProperty ::
[MonitoringOutputProperty] -> MonitoringOutputConfigProperty
mkMonitoringOutputConfigProperty :: [MonitoringOutputProperty] -> MonitoringOutputConfigProperty
mkMonitoringOutputConfigProperty [MonitoringOutputProperty]
monitoringOutputs
= MonitoringOutputConfigProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), monitoringOutputs :: [MonitoringOutputProperty]
monitoringOutputs = [MonitoringOutputProperty]
monitoringOutputs,
kmsKeyId :: Maybe (Value Text)
kmsKeyId = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties MonitoringOutputConfigProperty where
toResourceProperties :: MonitoringOutputConfigProperty -> ResourceProperties
toResourceProperties MonitoringOutputConfigProperty {[MonitoringOutputProperty]
Maybe (Value Text)
()
haddock_workaround_ :: MonitoringOutputConfigProperty -> ()
kmsKeyId :: MonitoringOutputConfigProperty -> Maybe (Value Text)
monitoringOutputs :: MonitoringOutputConfigProperty -> [MonitoringOutputProperty]
haddock_workaround_ :: ()
kmsKeyId :: Maybe (Value Text)
monitoringOutputs :: [MonitoringOutputProperty]
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::SageMaker::MonitoringSchedule.MonitoringOutputConfig",
supportsTags :: Bool
supportsTags = Bool
Prelude.False,
properties :: Object
properties = [Item Object] -> Object
forall l. IsList l => [Item l] -> l
Prelude.fromList
([(Key, Value)] -> [(Key, Value)] -> [(Key, Value)]
forall a. Semigroup a => a -> a -> a
(Prelude.<>)
[Key
"MonitoringOutputs" Key -> [MonitoringOutputProperty] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= [MonitoringOutputProperty]
monitoringOutputs]
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes [Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"KmsKeyId" (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
kmsKeyId]))}
instance JSON.ToJSON MonitoringOutputConfigProperty where
toJSON :: MonitoringOutputConfigProperty -> Value
toJSON MonitoringOutputConfigProperty {[MonitoringOutputProperty]
Maybe (Value Text)
()
haddock_workaround_ :: MonitoringOutputConfigProperty -> ()
kmsKeyId :: MonitoringOutputConfigProperty -> Maybe (Value Text)
monitoringOutputs :: MonitoringOutputConfigProperty -> [MonitoringOutputProperty]
haddock_workaround_ :: ()
kmsKeyId :: Maybe (Value Text)
monitoringOutputs :: [MonitoringOutputProperty]
..}
= [(Key, Value)] -> Value
JSON.object
([Item [(Key, Value)]] -> [(Key, Value)]
forall l. IsList l => [Item l] -> l
Prelude.fromList
([(Key, Value)] -> [(Key, Value)] -> [(Key, Value)]
forall a. Semigroup a => a -> a -> a
(Prelude.<>)
[Key
"MonitoringOutputs" Key -> [MonitoringOutputProperty] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= [MonitoringOutputProperty]
monitoringOutputs]
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes [Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"KmsKeyId" (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
kmsKeyId])))
instance Property "KmsKeyId" MonitoringOutputConfigProperty where
type PropertyType "KmsKeyId" MonitoringOutputConfigProperty = Value Prelude.Text
set :: PropertyType "KmsKeyId" MonitoringOutputConfigProperty
-> MonitoringOutputConfigProperty -> MonitoringOutputConfigProperty
set PropertyType "KmsKeyId" MonitoringOutputConfigProperty
newValue MonitoringOutputConfigProperty {[MonitoringOutputProperty]
Maybe (Value Text)
()
haddock_workaround_ :: MonitoringOutputConfigProperty -> ()
kmsKeyId :: MonitoringOutputConfigProperty -> Maybe (Value Text)
monitoringOutputs :: MonitoringOutputConfigProperty -> [MonitoringOutputProperty]
haddock_workaround_ :: ()
kmsKeyId :: Maybe (Value Text)
monitoringOutputs :: [MonitoringOutputProperty]
..}
= MonitoringOutputConfigProperty
{kmsKeyId :: Maybe (Value Text)
kmsKeyId = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "KmsKeyId" MonitoringOutputConfigProperty
Value Text
newValue, [MonitoringOutputProperty]
()
haddock_workaround_ :: ()
monitoringOutputs :: [MonitoringOutputProperty]
haddock_workaround_ :: ()
monitoringOutputs :: [MonitoringOutputProperty]
..}
instance Property "MonitoringOutputs" MonitoringOutputConfigProperty where
type PropertyType "MonitoringOutputs" MonitoringOutputConfigProperty = [MonitoringOutputProperty]
set :: PropertyType "MonitoringOutputs" MonitoringOutputConfigProperty
-> MonitoringOutputConfigProperty -> MonitoringOutputConfigProperty
set PropertyType "MonitoringOutputs" MonitoringOutputConfigProperty
newValue MonitoringOutputConfigProperty {[MonitoringOutputProperty]
Maybe (Value Text)
()
haddock_workaround_ :: MonitoringOutputConfigProperty -> ()
kmsKeyId :: MonitoringOutputConfigProperty -> Maybe (Value Text)
monitoringOutputs :: MonitoringOutputConfigProperty -> [MonitoringOutputProperty]
haddock_workaround_ :: ()
kmsKeyId :: Maybe (Value Text)
monitoringOutputs :: [MonitoringOutputProperty]
..}
= MonitoringOutputConfigProperty {monitoringOutputs :: [MonitoringOutputProperty]
monitoringOutputs = [MonitoringOutputProperty]
PropertyType "MonitoringOutputs" MonitoringOutputConfigProperty
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
kmsKeyId :: Maybe (Value Text)
haddock_workaround_ :: ()
kmsKeyId :: Maybe (Value Text)
..}