module Stratosphere.StepFunctions.StateMachineVersion (
StateMachineVersion(..), mkStateMachineVersion
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data StateMachineVersion
=
StateMachineVersion {StateMachineVersion -> ()
haddock_workaround_ :: (),
StateMachineVersion -> Maybe (Value Text)
description :: (Prelude.Maybe (Value Prelude.Text)),
StateMachineVersion -> Value Text
stateMachineArn :: (Value Prelude.Text),
StateMachineVersion -> Maybe (Value Text)
stateMachineRevisionId :: (Prelude.Maybe (Value Prelude.Text))}
deriving stock (StateMachineVersion -> StateMachineVersion -> Bool
(StateMachineVersion -> StateMachineVersion -> Bool)
-> (StateMachineVersion -> StateMachineVersion -> Bool)
-> Eq StateMachineVersion
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: StateMachineVersion -> StateMachineVersion -> Bool
== :: StateMachineVersion -> StateMachineVersion -> Bool
$c/= :: StateMachineVersion -> StateMachineVersion -> Bool
/= :: StateMachineVersion -> StateMachineVersion -> Bool
Prelude.Eq, Int -> StateMachineVersion -> ShowS
[StateMachineVersion] -> ShowS
StateMachineVersion -> String
(Int -> StateMachineVersion -> ShowS)
-> (StateMachineVersion -> String)
-> ([StateMachineVersion] -> ShowS)
-> Show StateMachineVersion
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> StateMachineVersion -> ShowS
showsPrec :: Int -> StateMachineVersion -> ShowS
$cshow :: StateMachineVersion -> String
show :: StateMachineVersion -> String
$cshowList :: [StateMachineVersion] -> ShowS
showList :: [StateMachineVersion] -> ShowS
Prelude.Show)
mkStateMachineVersion :: Value Prelude.Text -> StateMachineVersion
mkStateMachineVersion :: Value Text -> StateMachineVersion
mkStateMachineVersion Value Text
stateMachineArn
= StateMachineVersion
{haddock_workaround_ :: ()
haddock_workaround_ = (), stateMachineArn :: Value Text
stateMachineArn = Value Text
stateMachineArn,
description :: Maybe (Value Text)
description = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
stateMachineRevisionId :: Maybe (Value Text)
stateMachineRevisionId = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties StateMachineVersion where
toResourceProperties :: StateMachineVersion -> ResourceProperties
toResourceProperties StateMachineVersion {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: StateMachineVersion -> ()
description :: StateMachineVersion -> Maybe (Value Text)
stateMachineArn :: StateMachineVersion -> Value Text
stateMachineRevisionId :: StateMachineVersion -> Maybe (Value Text)
haddock_workaround_ :: ()
description :: Maybe (Value Text)
stateMachineArn :: Value Text
stateMachineRevisionId :: Maybe (Value Text)
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::StepFunctions::StateMachineVersion",
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
"StateMachineArn" 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..= Value Text
stateMachineArn]
([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
"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
"StateMachineRevisionId"
(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)
stateMachineRevisionId]))}
instance JSON.ToJSON StateMachineVersion where
toJSON :: StateMachineVersion -> Value
toJSON StateMachineVersion {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: StateMachineVersion -> ()
description :: StateMachineVersion -> Maybe (Value Text)
stateMachineArn :: StateMachineVersion -> Value Text
stateMachineRevisionId :: StateMachineVersion -> Maybe (Value Text)
haddock_workaround_ :: ()
description :: Maybe (Value Text)
stateMachineArn :: Value Text
stateMachineRevisionId :: Maybe (Value Text)
..}
= [(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
"StateMachineArn" 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..= Value Text
stateMachineArn]
([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
"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
"StateMachineRevisionId"
(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)
stateMachineRevisionId])))
instance Property "Description" StateMachineVersion where
type PropertyType "Description" StateMachineVersion = Value Prelude.Text
set :: PropertyType "Description" StateMachineVersion
-> StateMachineVersion -> StateMachineVersion
set PropertyType "Description" StateMachineVersion
newValue StateMachineVersion {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: StateMachineVersion -> ()
description :: StateMachineVersion -> Maybe (Value Text)
stateMachineArn :: StateMachineVersion -> Value Text
stateMachineRevisionId :: StateMachineVersion -> Maybe (Value Text)
haddock_workaround_ :: ()
description :: Maybe (Value Text)
stateMachineArn :: Value Text
stateMachineRevisionId :: Maybe (Value Text)
..}
= StateMachineVersion {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" StateMachineVersion
Value Text
newValue, Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
stateMachineArn :: Value Text
stateMachineRevisionId :: Maybe (Value Text)
haddock_workaround_ :: ()
stateMachineArn :: Value Text
stateMachineRevisionId :: Maybe (Value Text)
..}
instance Property "StateMachineArn" StateMachineVersion where
type PropertyType "StateMachineArn" StateMachineVersion = Value Prelude.Text
set :: PropertyType "StateMachineArn" StateMachineVersion
-> StateMachineVersion -> StateMachineVersion
set PropertyType "StateMachineArn" StateMachineVersion
newValue StateMachineVersion {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: StateMachineVersion -> ()
description :: StateMachineVersion -> Maybe (Value Text)
stateMachineArn :: StateMachineVersion -> Value Text
stateMachineRevisionId :: StateMachineVersion -> Maybe (Value Text)
haddock_workaround_ :: ()
description :: Maybe (Value Text)
stateMachineArn :: Value Text
stateMachineRevisionId :: Maybe (Value Text)
..}
= StateMachineVersion {stateMachineArn :: Value Text
stateMachineArn = PropertyType "StateMachineArn" StateMachineVersion
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
description :: Maybe (Value Text)
stateMachineRevisionId :: Maybe (Value Text)
haddock_workaround_ :: ()
description :: Maybe (Value Text)
stateMachineRevisionId :: Maybe (Value Text)
..}
instance Property "StateMachineRevisionId" StateMachineVersion where
type PropertyType "StateMachineRevisionId" StateMachineVersion = Value Prelude.Text
set :: PropertyType "StateMachineRevisionId" StateMachineVersion
-> StateMachineVersion -> StateMachineVersion
set PropertyType "StateMachineRevisionId" StateMachineVersion
newValue StateMachineVersion {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: StateMachineVersion -> ()
description :: StateMachineVersion -> Maybe (Value Text)
stateMachineArn :: StateMachineVersion -> Value Text
stateMachineRevisionId :: StateMachineVersion -> Maybe (Value Text)
haddock_workaround_ :: ()
description :: Maybe (Value Text)
stateMachineArn :: Value Text
stateMachineRevisionId :: Maybe (Value Text)
..}
= StateMachineVersion
{stateMachineRevisionId :: Maybe (Value Text)
stateMachineRevisionId = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "StateMachineRevisionId" StateMachineVersion
Value Text
newValue, Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
description :: Maybe (Value Text)
stateMachineArn :: Value Text
haddock_workaround_ :: ()
description :: Maybe (Value Text)
stateMachineArn :: Value Text
..}