module Stratosphere.ImageBuilder.Image.WorkflowConfigurationProperty (
module Exports, WorkflowConfigurationProperty(..),
mkWorkflowConfigurationProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.ImageBuilder.Image.WorkflowParameterProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Value
data WorkflowConfigurationProperty
=
WorkflowConfigurationProperty {WorkflowConfigurationProperty -> ()
haddock_workaround_ :: (),
WorkflowConfigurationProperty -> Maybe (Value Text)
onFailure :: (Prelude.Maybe (Value Prelude.Text)),
WorkflowConfigurationProperty -> Maybe (Value Text)
parallelGroup :: (Prelude.Maybe (Value Prelude.Text)),
WorkflowConfigurationProperty -> Maybe [WorkflowParameterProperty]
parameters :: (Prelude.Maybe [WorkflowParameterProperty]),
WorkflowConfigurationProperty -> Maybe (Value Text)
workflowArn :: (Prelude.Maybe (Value Prelude.Text))}
deriving stock (WorkflowConfigurationProperty
-> WorkflowConfigurationProperty -> Bool
(WorkflowConfigurationProperty
-> WorkflowConfigurationProperty -> Bool)
-> (WorkflowConfigurationProperty
-> WorkflowConfigurationProperty -> Bool)
-> Eq WorkflowConfigurationProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: WorkflowConfigurationProperty
-> WorkflowConfigurationProperty -> Bool
== :: WorkflowConfigurationProperty
-> WorkflowConfigurationProperty -> Bool
$c/= :: WorkflowConfigurationProperty
-> WorkflowConfigurationProperty -> Bool
/= :: WorkflowConfigurationProperty
-> WorkflowConfigurationProperty -> Bool
Prelude.Eq, Int -> WorkflowConfigurationProperty -> ShowS
[WorkflowConfigurationProperty] -> ShowS
WorkflowConfigurationProperty -> String
(Int -> WorkflowConfigurationProperty -> ShowS)
-> (WorkflowConfigurationProperty -> String)
-> ([WorkflowConfigurationProperty] -> ShowS)
-> Show WorkflowConfigurationProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> WorkflowConfigurationProperty -> ShowS
showsPrec :: Int -> WorkflowConfigurationProperty -> ShowS
$cshow :: WorkflowConfigurationProperty -> String
show :: WorkflowConfigurationProperty -> String
$cshowList :: [WorkflowConfigurationProperty] -> ShowS
showList :: [WorkflowConfigurationProperty] -> ShowS
Prelude.Show)
mkWorkflowConfigurationProperty :: WorkflowConfigurationProperty
mkWorkflowConfigurationProperty :: WorkflowConfigurationProperty
mkWorkflowConfigurationProperty
= WorkflowConfigurationProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), onFailure :: Maybe (Value Text)
onFailure = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
parallelGroup :: Maybe (Value Text)
parallelGroup = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing, parameters :: Maybe [WorkflowParameterProperty]
parameters = Maybe [WorkflowParameterProperty]
forall a. Maybe a
Prelude.Nothing,
workflowArn :: Maybe (Value Text)
workflowArn = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties WorkflowConfigurationProperty where
toResourceProperties :: WorkflowConfigurationProperty -> ResourceProperties
toResourceProperties WorkflowConfigurationProperty {Maybe [WorkflowParameterProperty]
Maybe (Value Text)
()
haddock_workaround_ :: WorkflowConfigurationProperty -> ()
onFailure :: WorkflowConfigurationProperty -> Maybe (Value Text)
parallelGroup :: WorkflowConfigurationProperty -> Maybe (Value Text)
parameters :: WorkflowConfigurationProperty -> Maybe [WorkflowParameterProperty]
workflowArn :: WorkflowConfigurationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
onFailure :: Maybe (Value Text)
parallelGroup :: Maybe (Value Text)
parameters :: Maybe [WorkflowParameterProperty]
workflowArn :: Maybe (Value Text)
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::ImageBuilder::Image.WorkflowConfiguration",
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 -> 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
"OnFailure" (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)
onFailure,
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
"ParallelGroup" (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)
parallelGroup,
Key -> [WorkflowParameterProperty] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Parameters" ([WorkflowParameterProperty] -> (Key, Value))
-> Maybe [WorkflowParameterProperty] -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [WorkflowParameterProperty]
parameters,
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
"WorkflowArn" (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)
workflowArn])}
instance JSON.ToJSON WorkflowConfigurationProperty where
toJSON :: WorkflowConfigurationProperty -> Value
toJSON WorkflowConfigurationProperty {Maybe [WorkflowParameterProperty]
Maybe (Value Text)
()
haddock_workaround_ :: WorkflowConfigurationProperty -> ()
onFailure :: WorkflowConfigurationProperty -> Maybe (Value Text)
parallelGroup :: WorkflowConfigurationProperty -> Maybe (Value Text)
parameters :: WorkflowConfigurationProperty -> Maybe [WorkflowParameterProperty]
workflowArn :: WorkflowConfigurationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
onFailure :: Maybe (Value Text)
parallelGroup :: Maybe (Value Text)
parameters :: Maybe [WorkflowParameterProperty]
workflowArn :: Maybe (Value Text)
..}
= [(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 -> 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
"OnFailure" (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)
onFailure,
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
"ParallelGroup" (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)
parallelGroup,
Key -> [WorkflowParameterProperty] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Parameters" ([WorkflowParameterProperty] -> (Key, Value))
-> Maybe [WorkflowParameterProperty] -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [WorkflowParameterProperty]
parameters,
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
"WorkflowArn" (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)
workflowArn]))
instance Property "OnFailure" WorkflowConfigurationProperty where
type PropertyType "OnFailure" WorkflowConfigurationProperty = Value Prelude.Text
set :: PropertyType "OnFailure" WorkflowConfigurationProperty
-> WorkflowConfigurationProperty -> WorkflowConfigurationProperty
set PropertyType "OnFailure" WorkflowConfigurationProperty
newValue WorkflowConfigurationProperty {Maybe [WorkflowParameterProperty]
Maybe (Value Text)
()
haddock_workaround_ :: WorkflowConfigurationProperty -> ()
onFailure :: WorkflowConfigurationProperty -> Maybe (Value Text)
parallelGroup :: WorkflowConfigurationProperty -> Maybe (Value Text)
parameters :: WorkflowConfigurationProperty -> Maybe [WorkflowParameterProperty]
workflowArn :: WorkflowConfigurationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
onFailure :: Maybe (Value Text)
parallelGroup :: Maybe (Value Text)
parameters :: Maybe [WorkflowParameterProperty]
workflowArn :: Maybe (Value Text)
..}
= WorkflowConfigurationProperty
{onFailure :: Maybe (Value Text)
onFailure = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "OnFailure" WorkflowConfigurationProperty
Value Text
newValue, Maybe [WorkflowParameterProperty]
Maybe (Value Text)
()
haddock_workaround_ :: ()
parallelGroup :: Maybe (Value Text)
parameters :: Maybe [WorkflowParameterProperty]
workflowArn :: Maybe (Value Text)
haddock_workaround_ :: ()
parallelGroup :: Maybe (Value Text)
parameters :: Maybe [WorkflowParameterProperty]
workflowArn :: Maybe (Value Text)
..}
instance Property "ParallelGroup" WorkflowConfigurationProperty where
type PropertyType "ParallelGroup" WorkflowConfigurationProperty = Value Prelude.Text
set :: PropertyType "ParallelGroup" WorkflowConfigurationProperty
-> WorkflowConfigurationProperty -> WorkflowConfigurationProperty
set PropertyType "ParallelGroup" WorkflowConfigurationProperty
newValue WorkflowConfigurationProperty {Maybe [WorkflowParameterProperty]
Maybe (Value Text)
()
haddock_workaround_ :: WorkflowConfigurationProperty -> ()
onFailure :: WorkflowConfigurationProperty -> Maybe (Value Text)
parallelGroup :: WorkflowConfigurationProperty -> Maybe (Value Text)
parameters :: WorkflowConfigurationProperty -> Maybe [WorkflowParameterProperty]
workflowArn :: WorkflowConfigurationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
onFailure :: Maybe (Value Text)
parallelGroup :: Maybe (Value Text)
parameters :: Maybe [WorkflowParameterProperty]
workflowArn :: Maybe (Value Text)
..}
= WorkflowConfigurationProperty
{parallelGroup :: Maybe (Value Text)
parallelGroup = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "ParallelGroup" WorkflowConfigurationProperty
Value Text
newValue, Maybe [WorkflowParameterProperty]
Maybe (Value Text)
()
haddock_workaround_ :: ()
onFailure :: Maybe (Value Text)
parameters :: Maybe [WorkflowParameterProperty]
workflowArn :: Maybe (Value Text)
haddock_workaround_ :: ()
onFailure :: Maybe (Value Text)
parameters :: Maybe [WorkflowParameterProperty]
workflowArn :: Maybe (Value Text)
..}
instance Property "Parameters" WorkflowConfigurationProperty where
type PropertyType "Parameters" WorkflowConfigurationProperty = [WorkflowParameterProperty]
set :: PropertyType "Parameters" WorkflowConfigurationProperty
-> WorkflowConfigurationProperty -> WorkflowConfigurationProperty
set PropertyType "Parameters" WorkflowConfigurationProperty
newValue WorkflowConfigurationProperty {Maybe [WorkflowParameterProperty]
Maybe (Value Text)
()
haddock_workaround_ :: WorkflowConfigurationProperty -> ()
onFailure :: WorkflowConfigurationProperty -> Maybe (Value Text)
parallelGroup :: WorkflowConfigurationProperty -> Maybe (Value Text)
parameters :: WorkflowConfigurationProperty -> Maybe [WorkflowParameterProperty]
workflowArn :: WorkflowConfigurationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
onFailure :: Maybe (Value Text)
parallelGroup :: Maybe (Value Text)
parameters :: Maybe [WorkflowParameterProperty]
workflowArn :: Maybe (Value Text)
..}
= WorkflowConfigurationProperty
{parameters :: Maybe [WorkflowParameterProperty]
parameters = [WorkflowParameterProperty] -> Maybe [WorkflowParameterProperty]
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure [WorkflowParameterProperty]
PropertyType "Parameters" WorkflowConfigurationProperty
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
onFailure :: Maybe (Value Text)
parallelGroup :: Maybe (Value Text)
workflowArn :: Maybe (Value Text)
haddock_workaround_ :: ()
onFailure :: Maybe (Value Text)
parallelGroup :: Maybe (Value Text)
workflowArn :: Maybe (Value Text)
..}
instance Property "WorkflowArn" WorkflowConfigurationProperty where
type PropertyType "WorkflowArn" WorkflowConfigurationProperty = Value Prelude.Text
set :: PropertyType "WorkflowArn" WorkflowConfigurationProperty
-> WorkflowConfigurationProperty -> WorkflowConfigurationProperty
set PropertyType "WorkflowArn" WorkflowConfigurationProperty
newValue WorkflowConfigurationProperty {Maybe [WorkflowParameterProperty]
Maybe (Value Text)
()
haddock_workaround_ :: WorkflowConfigurationProperty -> ()
onFailure :: WorkflowConfigurationProperty -> Maybe (Value Text)
parallelGroup :: WorkflowConfigurationProperty -> Maybe (Value Text)
parameters :: WorkflowConfigurationProperty -> Maybe [WorkflowParameterProperty]
workflowArn :: WorkflowConfigurationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
onFailure :: Maybe (Value Text)
parallelGroup :: Maybe (Value Text)
parameters :: Maybe [WorkflowParameterProperty]
workflowArn :: Maybe (Value Text)
..}
= WorkflowConfigurationProperty
{workflowArn :: Maybe (Value Text)
workflowArn = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "WorkflowArn" WorkflowConfigurationProperty
Value Text
newValue, Maybe [WorkflowParameterProperty]
Maybe (Value Text)
()
haddock_workaround_ :: ()
onFailure :: Maybe (Value Text)
parallelGroup :: Maybe (Value Text)
parameters :: Maybe [WorkflowParameterProperty]
haddock_workaround_ :: ()
onFailure :: Maybe (Value Text)
parallelGroup :: Maybe (Value Text)
parameters :: Maybe [WorkflowParameterProperty]
..}