module Stratosphere.SageMaker.ProcessingJob.ProcessingOutputConfigProperty (
module Exports, ProcessingOutputConfigProperty(..),
mkProcessingOutputConfigProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.SageMaker.ProcessingJob.ProcessingOutputsObjectProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Value
data ProcessingOutputConfigProperty
=
ProcessingOutputConfigProperty {ProcessingOutputConfigProperty -> ()
haddock_workaround_ :: (),
ProcessingOutputConfigProperty -> Maybe (Value Text)
kmsKeyId :: (Prelude.Maybe (Value Prelude.Text)),
ProcessingOutputConfigProperty -> [ProcessingOutputsObjectProperty]
outputs :: [ProcessingOutputsObjectProperty]}
deriving stock (ProcessingOutputConfigProperty
-> ProcessingOutputConfigProperty -> Bool
(ProcessingOutputConfigProperty
-> ProcessingOutputConfigProperty -> Bool)
-> (ProcessingOutputConfigProperty
-> ProcessingOutputConfigProperty -> Bool)
-> Eq ProcessingOutputConfigProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: ProcessingOutputConfigProperty
-> ProcessingOutputConfigProperty -> Bool
== :: ProcessingOutputConfigProperty
-> ProcessingOutputConfigProperty -> Bool
$c/= :: ProcessingOutputConfigProperty
-> ProcessingOutputConfigProperty -> Bool
/= :: ProcessingOutputConfigProperty
-> ProcessingOutputConfigProperty -> Bool
Prelude.Eq, Int -> ProcessingOutputConfigProperty -> ShowS
[ProcessingOutputConfigProperty] -> ShowS
ProcessingOutputConfigProperty -> String
(Int -> ProcessingOutputConfigProperty -> ShowS)
-> (ProcessingOutputConfigProperty -> String)
-> ([ProcessingOutputConfigProperty] -> ShowS)
-> Show ProcessingOutputConfigProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> ProcessingOutputConfigProperty -> ShowS
showsPrec :: Int -> ProcessingOutputConfigProperty -> ShowS
$cshow :: ProcessingOutputConfigProperty -> String
show :: ProcessingOutputConfigProperty -> String
$cshowList :: [ProcessingOutputConfigProperty] -> ShowS
showList :: [ProcessingOutputConfigProperty] -> ShowS
Prelude.Show)
mkProcessingOutputConfigProperty ::
[ProcessingOutputsObjectProperty] -> ProcessingOutputConfigProperty
mkProcessingOutputConfigProperty :: [ProcessingOutputsObjectProperty] -> ProcessingOutputConfigProperty
mkProcessingOutputConfigProperty [ProcessingOutputsObjectProperty]
outputs
= ProcessingOutputConfigProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), outputs :: [ProcessingOutputsObjectProperty]
outputs = [ProcessingOutputsObjectProperty]
outputs,
kmsKeyId :: Maybe (Value Text)
kmsKeyId = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties ProcessingOutputConfigProperty where
toResourceProperties :: ProcessingOutputConfigProperty -> ResourceProperties
toResourceProperties ProcessingOutputConfigProperty {[ProcessingOutputsObjectProperty]
Maybe (Value Text)
()
haddock_workaround_ :: ProcessingOutputConfigProperty -> ()
kmsKeyId :: ProcessingOutputConfigProperty -> Maybe (Value Text)
outputs :: ProcessingOutputConfigProperty -> [ProcessingOutputsObjectProperty]
haddock_workaround_ :: ()
kmsKeyId :: Maybe (Value Text)
outputs :: [ProcessingOutputsObjectProperty]
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::SageMaker::ProcessingJob.ProcessingOutputConfig",
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
"Outputs" Key -> [ProcessingOutputsObjectProperty] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= [ProcessingOutputsObjectProperty]
outputs]
([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 ProcessingOutputConfigProperty where
toJSON :: ProcessingOutputConfigProperty -> Value
toJSON ProcessingOutputConfigProperty {[ProcessingOutputsObjectProperty]
Maybe (Value Text)
()
haddock_workaround_ :: ProcessingOutputConfigProperty -> ()
kmsKeyId :: ProcessingOutputConfigProperty -> Maybe (Value Text)
outputs :: ProcessingOutputConfigProperty -> [ProcessingOutputsObjectProperty]
haddock_workaround_ :: ()
kmsKeyId :: Maybe (Value Text)
outputs :: [ProcessingOutputsObjectProperty]
..}
= [(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
"Outputs" Key -> [ProcessingOutputsObjectProperty] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= [ProcessingOutputsObjectProperty]
outputs]
([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" ProcessingOutputConfigProperty where
type PropertyType "KmsKeyId" ProcessingOutputConfigProperty = Value Prelude.Text
set :: PropertyType "KmsKeyId" ProcessingOutputConfigProperty
-> ProcessingOutputConfigProperty -> ProcessingOutputConfigProperty
set PropertyType "KmsKeyId" ProcessingOutputConfigProperty
newValue ProcessingOutputConfigProperty {[ProcessingOutputsObjectProperty]
Maybe (Value Text)
()
haddock_workaround_ :: ProcessingOutputConfigProperty -> ()
kmsKeyId :: ProcessingOutputConfigProperty -> Maybe (Value Text)
outputs :: ProcessingOutputConfigProperty -> [ProcessingOutputsObjectProperty]
haddock_workaround_ :: ()
kmsKeyId :: Maybe (Value Text)
outputs :: [ProcessingOutputsObjectProperty]
..}
= ProcessingOutputConfigProperty
{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" ProcessingOutputConfigProperty
Value Text
newValue, [ProcessingOutputsObjectProperty]
()
haddock_workaround_ :: ()
outputs :: [ProcessingOutputsObjectProperty]
haddock_workaround_ :: ()
outputs :: [ProcessingOutputsObjectProperty]
..}
instance Property "Outputs" ProcessingOutputConfigProperty where
type PropertyType "Outputs" ProcessingOutputConfigProperty = [ProcessingOutputsObjectProperty]
set :: PropertyType "Outputs" ProcessingOutputConfigProperty
-> ProcessingOutputConfigProperty -> ProcessingOutputConfigProperty
set PropertyType "Outputs" ProcessingOutputConfigProperty
newValue ProcessingOutputConfigProperty {[ProcessingOutputsObjectProperty]
Maybe (Value Text)
()
haddock_workaround_ :: ProcessingOutputConfigProperty -> ()
kmsKeyId :: ProcessingOutputConfigProperty -> Maybe (Value Text)
outputs :: ProcessingOutputConfigProperty -> [ProcessingOutputsObjectProperty]
haddock_workaround_ :: ()
kmsKeyId :: Maybe (Value Text)
outputs :: [ProcessingOutputsObjectProperty]
..}
= ProcessingOutputConfigProperty {outputs :: [ProcessingOutputsObjectProperty]
outputs = [ProcessingOutputsObjectProperty]
PropertyType "Outputs" ProcessingOutputConfigProperty
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
kmsKeyId :: Maybe (Value Text)
haddock_workaround_ :: ()
kmsKeyId :: Maybe (Value Text)
..}