module Stratosphere.StepFunctions.StateMachineAlias (
module Exports, StateMachineAlias(..), mkStateMachineAlias
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.StepFunctions.StateMachineAlias.DeploymentPreferenceProperty as Exports
import {-# SOURCE #-} Stratosphere.StepFunctions.StateMachineAlias.RoutingConfigurationVersionProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Value
data StateMachineAlias
=
StateMachineAlias {StateMachineAlias -> ()
haddock_workaround_ :: (),
StateMachineAlias -> Maybe DeploymentPreferenceProperty
deploymentPreference :: (Prelude.Maybe DeploymentPreferenceProperty),
StateMachineAlias -> Maybe (Value Text)
description :: (Prelude.Maybe (Value Prelude.Text)),
StateMachineAlias -> Maybe (Value Text)
name :: (Prelude.Maybe (Value Prelude.Text)),
StateMachineAlias -> Maybe [RoutingConfigurationVersionProperty]
routingConfiguration :: (Prelude.Maybe [RoutingConfigurationVersionProperty])}
deriving stock (StateMachineAlias -> StateMachineAlias -> Bool
(StateMachineAlias -> StateMachineAlias -> Bool)
-> (StateMachineAlias -> StateMachineAlias -> Bool)
-> Eq StateMachineAlias
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: StateMachineAlias -> StateMachineAlias -> Bool
== :: StateMachineAlias -> StateMachineAlias -> Bool
$c/= :: StateMachineAlias -> StateMachineAlias -> Bool
/= :: StateMachineAlias -> StateMachineAlias -> Bool
Prelude.Eq, Int -> StateMachineAlias -> ShowS
[StateMachineAlias] -> ShowS
StateMachineAlias -> String
(Int -> StateMachineAlias -> ShowS)
-> (StateMachineAlias -> String)
-> ([StateMachineAlias] -> ShowS)
-> Show StateMachineAlias
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> StateMachineAlias -> ShowS
showsPrec :: Int -> StateMachineAlias -> ShowS
$cshow :: StateMachineAlias -> String
show :: StateMachineAlias -> String
$cshowList :: [StateMachineAlias] -> ShowS
showList :: [StateMachineAlias] -> ShowS
Prelude.Show)
mkStateMachineAlias :: StateMachineAlias
mkStateMachineAlias :: StateMachineAlias
mkStateMachineAlias
= StateMachineAlias
{haddock_workaround_ :: ()
haddock_workaround_ = (), deploymentPreference :: Maybe DeploymentPreferenceProperty
deploymentPreference = Maybe DeploymentPreferenceProperty
forall a. Maybe a
Prelude.Nothing,
description :: Maybe (Value Text)
description = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing, name :: Maybe (Value Text)
name = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
routingConfiguration :: Maybe [RoutingConfigurationVersionProperty]
routingConfiguration = Maybe [RoutingConfigurationVersionProperty]
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties StateMachineAlias where
toResourceProperties :: StateMachineAlias -> ResourceProperties
toResourceProperties StateMachineAlias {Maybe [RoutingConfigurationVersionProperty]
Maybe (Value Text)
Maybe DeploymentPreferenceProperty
()
haddock_workaround_ :: StateMachineAlias -> ()
deploymentPreference :: StateMachineAlias -> Maybe DeploymentPreferenceProperty
description :: StateMachineAlias -> Maybe (Value Text)
name :: StateMachineAlias -> Maybe (Value Text)
routingConfiguration :: StateMachineAlias -> Maybe [RoutingConfigurationVersionProperty]
haddock_workaround_ :: ()
deploymentPreference :: Maybe DeploymentPreferenceProperty
description :: Maybe (Value Text)
name :: Maybe (Value Text)
routingConfiguration :: Maybe [RoutingConfigurationVersionProperty]
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::StepFunctions::StateMachineAlias",
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 -> DeploymentPreferenceProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"DeploymentPreference" (DeploymentPreferenceProperty -> (Key, Value))
-> Maybe DeploymentPreferenceProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe DeploymentPreferenceProperty
deploymentPreference,
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
"Description" (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)
description,
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
"Name" (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)
name,
Key -> [RoutingConfigurationVersionProperty] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"RoutingConfiguration"
([RoutingConfigurationVersionProperty] -> (Key, Value))
-> Maybe [RoutingConfigurationVersionProperty]
-> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [RoutingConfigurationVersionProperty]
routingConfiguration])}
instance JSON.ToJSON StateMachineAlias where
toJSON :: StateMachineAlias -> Value
toJSON StateMachineAlias {Maybe [RoutingConfigurationVersionProperty]
Maybe (Value Text)
Maybe DeploymentPreferenceProperty
()
haddock_workaround_ :: StateMachineAlias -> ()
deploymentPreference :: StateMachineAlias -> Maybe DeploymentPreferenceProperty
description :: StateMachineAlias -> Maybe (Value Text)
name :: StateMachineAlias -> Maybe (Value Text)
routingConfiguration :: StateMachineAlias -> Maybe [RoutingConfigurationVersionProperty]
haddock_workaround_ :: ()
deploymentPreference :: Maybe DeploymentPreferenceProperty
description :: Maybe (Value Text)
name :: Maybe (Value Text)
routingConfiguration :: Maybe [RoutingConfigurationVersionProperty]
..}
= [(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 -> DeploymentPreferenceProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"DeploymentPreference" (DeploymentPreferenceProperty -> (Key, Value))
-> Maybe DeploymentPreferenceProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe DeploymentPreferenceProperty
deploymentPreference,
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
"Description" (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)
description,
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
"Name" (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)
name,
Key -> [RoutingConfigurationVersionProperty] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"RoutingConfiguration"
([RoutingConfigurationVersionProperty] -> (Key, Value))
-> Maybe [RoutingConfigurationVersionProperty]
-> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [RoutingConfigurationVersionProperty]
routingConfiguration]))
instance Property "DeploymentPreference" StateMachineAlias where
type PropertyType "DeploymentPreference" StateMachineAlias = DeploymentPreferenceProperty
set :: PropertyType "DeploymentPreference" StateMachineAlias
-> StateMachineAlias -> StateMachineAlias
set PropertyType "DeploymentPreference" StateMachineAlias
newValue StateMachineAlias {Maybe [RoutingConfigurationVersionProperty]
Maybe (Value Text)
Maybe DeploymentPreferenceProperty
()
haddock_workaround_ :: StateMachineAlias -> ()
deploymentPreference :: StateMachineAlias -> Maybe DeploymentPreferenceProperty
description :: StateMachineAlias -> Maybe (Value Text)
name :: StateMachineAlias -> Maybe (Value Text)
routingConfiguration :: StateMachineAlias -> Maybe [RoutingConfigurationVersionProperty]
haddock_workaround_ :: ()
deploymentPreference :: Maybe DeploymentPreferenceProperty
description :: Maybe (Value Text)
name :: Maybe (Value Text)
routingConfiguration :: Maybe [RoutingConfigurationVersionProperty]
..}
= StateMachineAlias
{deploymentPreference :: Maybe DeploymentPreferenceProperty
deploymentPreference = DeploymentPreferenceProperty -> Maybe DeploymentPreferenceProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "DeploymentPreference" StateMachineAlias
DeploymentPreferenceProperty
newValue, Maybe [RoutingConfigurationVersionProperty]
Maybe (Value Text)
()
haddock_workaround_ :: ()
description :: Maybe (Value Text)
name :: Maybe (Value Text)
routingConfiguration :: Maybe [RoutingConfigurationVersionProperty]
haddock_workaround_ :: ()
description :: Maybe (Value Text)
name :: Maybe (Value Text)
routingConfiguration :: Maybe [RoutingConfigurationVersionProperty]
..}
instance Property "Description" StateMachineAlias where
type PropertyType "Description" StateMachineAlias = Value Prelude.Text
set :: PropertyType "Description" StateMachineAlias
-> StateMachineAlias -> StateMachineAlias
set PropertyType "Description" StateMachineAlias
newValue StateMachineAlias {Maybe [RoutingConfigurationVersionProperty]
Maybe (Value Text)
Maybe DeploymentPreferenceProperty
()
haddock_workaround_ :: StateMachineAlias -> ()
deploymentPreference :: StateMachineAlias -> Maybe DeploymentPreferenceProperty
description :: StateMachineAlias -> Maybe (Value Text)
name :: StateMachineAlias -> Maybe (Value Text)
routingConfiguration :: StateMachineAlias -> Maybe [RoutingConfigurationVersionProperty]
haddock_workaround_ :: ()
deploymentPreference :: Maybe DeploymentPreferenceProperty
description :: Maybe (Value Text)
name :: Maybe (Value Text)
routingConfiguration :: Maybe [RoutingConfigurationVersionProperty]
..}
= StateMachineAlias {description :: Maybe (Value Text)
description = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Description" StateMachineAlias
Value Text
newValue, Maybe [RoutingConfigurationVersionProperty]
Maybe (Value Text)
Maybe DeploymentPreferenceProperty
()
haddock_workaround_ :: ()
deploymentPreference :: Maybe DeploymentPreferenceProperty
name :: Maybe (Value Text)
routingConfiguration :: Maybe [RoutingConfigurationVersionProperty]
haddock_workaround_ :: ()
deploymentPreference :: Maybe DeploymentPreferenceProperty
name :: Maybe (Value Text)
routingConfiguration :: Maybe [RoutingConfigurationVersionProperty]
..}
instance Property "Name" StateMachineAlias where
type PropertyType "Name" StateMachineAlias = Value Prelude.Text
set :: PropertyType "Name" StateMachineAlias
-> StateMachineAlias -> StateMachineAlias
set PropertyType "Name" StateMachineAlias
newValue StateMachineAlias {Maybe [RoutingConfigurationVersionProperty]
Maybe (Value Text)
Maybe DeploymentPreferenceProperty
()
haddock_workaround_ :: StateMachineAlias -> ()
deploymentPreference :: StateMachineAlias -> Maybe DeploymentPreferenceProperty
description :: StateMachineAlias -> Maybe (Value Text)
name :: StateMachineAlias -> Maybe (Value Text)
routingConfiguration :: StateMachineAlias -> Maybe [RoutingConfigurationVersionProperty]
haddock_workaround_ :: ()
deploymentPreference :: Maybe DeploymentPreferenceProperty
description :: Maybe (Value Text)
name :: Maybe (Value Text)
routingConfiguration :: Maybe [RoutingConfigurationVersionProperty]
..}
= StateMachineAlias {name :: Maybe (Value Text)
name = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Name" StateMachineAlias
Value Text
newValue, Maybe [RoutingConfigurationVersionProperty]
Maybe (Value Text)
Maybe DeploymentPreferenceProperty
()
haddock_workaround_ :: ()
deploymentPreference :: Maybe DeploymentPreferenceProperty
description :: Maybe (Value Text)
routingConfiguration :: Maybe [RoutingConfigurationVersionProperty]
haddock_workaround_ :: ()
deploymentPreference :: Maybe DeploymentPreferenceProperty
description :: Maybe (Value Text)
routingConfiguration :: Maybe [RoutingConfigurationVersionProperty]
..}
instance Property "RoutingConfiguration" StateMachineAlias where
type PropertyType "RoutingConfiguration" StateMachineAlias = [RoutingConfigurationVersionProperty]
set :: PropertyType "RoutingConfiguration" StateMachineAlias
-> StateMachineAlias -> StateMachineAlias
set PropertyType "RoutingConfiguration" StateMachineAlias
newValue StateMachineAlias {Maybe [RoutingConfigurationVersionProperty]
Maybe (Value Text)
Maybe DeploymentPreferenceProperty
()
haddock_workaround_ :: StateMachineAlias -> ()
deploymentPreference :: StateMachineAlias -> Maybe DeploymentPreferenceProperty
description :: StateMachineAlias -> Maybe (Value Text)
name :: StateMachineAlias -> Maybe (Value Text)
routingConfiguration :: StateMachineAlias -> Maybe [RoutingConfigurationVersionProperty]
haddock_workaround_ :: ()
deploymentPreference :: Maybe DeploymentPreferenceProperty
description :: Maybe (Value Text)
name :: Maybe (Value Text)
routingConfiguration :: Maybe [RoutingConfigurationVersionProperty]
..}
= StateMachineAlias
{routingConfiguration :: Maybe [RoutingConfigurationVersionProperty]
routingConfiguration = [RoutingConfigurationVersionProperty]
-> Maybe [RoutingConfigurationVersionProperty]
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure [RoutingConfigurationVersionProperty]
PropertyType "RoutingConfiguration" StateMachineAlias
newValue, Maybe (Value Text)
Maybe DeploymentPreferenceProperty
()
haddock_workaround_ :: ()
deploymentPreference :: Maybe DeploymentPreferenceProperty
description :: Maybe (Value Text)
name :: Maybe (Value Text)
haddock_workaround_ :: ()
deploymentPreference :: Maybe DeploymentPreferenceProperty
description :: Maybe (Value Text)
name :: Maybe (Value Text)
..}