amazonka-stepfunctions-1.6.1: Amazon Step Functions SDK.

Copyright(c) 2013-2018 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.AWS.StepFunctions.CreateStateMachine

Contents

Description

Creates a state machine. A state machine consists of a collection of states that can do work (Task states), determine to which states to transition next (Choice states), stop an execution with an error (Fail states), and so on. State machines are specified using a JSON-based, structured language.

Synopsis

Creating a Request

createStateMachine Source #

Creates a value of CreateStateMachine with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

  • csmName - The name of the state machine. This name must be unique for your AWS account and region for 90 days. For more information, see Limits Related to State Machine Executions in the AWS Step Functions Developer Guide . A name must not contain: * whitespace * brackets { } [ ] * wildcard characters ? * * special characters " # % ^ | ~ ` $ & , ; : / * control characters (U+0000-001F , U+007F-009F )
  • csmDefinition - The Amazon States Language definition of the state machine.
  • csmRoleARN - The Amazon Resource Name (ARN) of the IAM role to use for this state machine.

data CreateStateMachine Source #

See: createStateMachine smart constructor.

Instances
Eq CreateStateMachine Source # 
Instance details

Defined in Network.AWS.StepFunctions.CreateStateMachine

Data CreateStateMachine Source # 
Instance details

Defined in Network.AWS.StepFunctions.CreateStateMachine

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> CreateStateMachine -> c CreateStateMachine #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c CreateStateMachine #

toConstr :: CreateStateMachine -> Constr #

dataTypeOf :: CreateStateMachine -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c CreateStateMachine) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c CreateStateMachine) #

gmapT :: (forall b. Data b => b -> b) -> CreateStateMachine -> CreateStateMachine #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> CreateStateMachine -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> CreateStateMachine -> r #

gmapQ :: (forall d. Data d => d -> u) -> CreateStateMachine -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> CreateStateMachine -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> CreateStateMachine -> m CreateStateMachine #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> CreateStateMachine -> m CreateStateMachine #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> CreateStateMachine -> m CreateStateMachine #

Read CreateStateMachine Source # 
Instance details

Defined in Network.AWS.StepFunctions.CreateStateMachine

Show CreateStateMachine Source # 
Instance details

Defined in Network.AWS.StepFunctions.CreateStateMachine

Generic CreateStateMachine Source # 
Instance details

Defined in Network.AWS.StepFunctions.CreateStateMachine

Associated Types

type Rep CreateStateMachine :: Type -> Type #

Hashable CreateStateMachine Source # 
Instance details

Defined in Network.AWS.StepFunctions.CreateStateMachine

ToJSON CreateStateMachine Source # 
Instance details

Defined in Network.AWS.StepFunctions.CreateStateMachine

AWSRequest CreateStateMachine Source # 
Instance details

Defined in Network.AWS.StepFunctions.CreateStateMachine

Associated Types

type Rs CreateStateMachine :: Type #

ToHeaders CreateStateMachine Source # 
Instance details

Defined in Network.AWS.StepFunctions.CreateStateMachine

ToPath CreateStateMachine Source # 
Instance details

Defined in Network.AWS.StepFunctions.CreateStateMachine

ToQuery CreateStateMachine Source # 
Instance details

Defined in Network.AWS.StepFunctions.CreateStateMachine

NFData CreateStateMachine Source # 
Instance details

Defined in Network.AWS.StepFunctions.CreateStateMachine

Methods

rnf :: CreateStateMachine -> () #

type Rep CreateStateMachine Source # 
Instance details

Defined in Network.AWS.StepFunctions.CreateStateMachine

type Rep CreateStateMachine = D1 (MetaData "CreateStateMachine" "Network.AWS.StepFunctions.CreateStateMachine" "amazonka-stepfunctions-1.6.1-2PTLha96w99Qwy2XlD0kq" False) (C1 (MetaCons "CreateStateMachine'" PrefixI True) (S1 (MetaSel (Just "_csmName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: (S1 (MetaSel (Just "_csmDefinition") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_csmRoleARN") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text))))
type Rs CreateStateMachine Source # 
Instance details

Defined in Network.AWS.StepFunctions.CreateStateMachine

Request Lenses

csmName :: Lens' CreateStateMachine Text Source #

The name of the state machine. This name must be unique for your AWS account and region for 90 days. For more information, see Limits Related to State Machine Executions in the AWS Step Functions Developer Guide . A name must not contain: * whitespace * brackets { } [ ] * wildcard characters ? * * special characters " # % ^ | ~ ` $ & , ; : / * control characters (U+0000-001F , U+007F-009F )

csmDefinition :: Lens' CreateStateMachine Text Source #

The Amazon States Language definition of the state machine.

csmRoleARN :: Lens' CreateStateMachine Text Source #

The Amazon Resource Name (ARN) of the IAM role to use for this state machine.

Destructuring the Response

createStateMachineResponse Source #

Creates a value of CreateStateMachineResponse with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

data CreateStateMachineResponse Source #

See: createStateMachineResponse smart constructor.

Instances
Eq CreateStateMachineResponse Source # 
Instance details

Defined in Network.AWS.StepFunctions.CreateStateMachine

Data CreateStateMachineResponse Source # 
Instance details

Defined in Network.AWS.StepFunctions.CreateStateMachine

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> CreateStateMachineResponse -> c CreateStateMachineResponse #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c CreateStateMachineResponse #

toConstr :: CreateStateMachineResponse -> Constr #

dataTypeOf :: CreateStateMachineResponse -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c CreateStateMachineResponse) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c CreateStateMachineResponse) #

gmapT :: (forall b. Data b => b -> b) -> CreateStateMachineResponse -> CreateStateMachineResponse #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> CreateStateMachineResponse -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> CreateStateMachineResponse -> r #

gmapQ :: (forall d. Data d => d -> u) -> CreateStateMachineResponse -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> CreateStateMachineResponse -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> CreateStateMachineResponse -> m CreateStateMachineResponse #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> CreateStateMachineResponse -> m CreateStateMachineResponse #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> CreateStateMachineResponse -> m CreateStateMachineResponse #

Read CreateStateMachineResponse Source # 
Instance details

Defined in Network.AWS.StepFunctions.CreateStateMachine

Show CreateStateMachineResponse Source # 
Instance details

Defined in Network.AWS.StepFunctions.CreateStateMachine

Generic CreateStateMachineResponse Source # 
Instance details

Defined in Network.AWS.StepFunctions.CreateStateMachine

Associated Types

type Rep CreateStateMachineResponse :: Type -> Type #

NFData CreateStateMachineResponse Source # 
Instance details

Defined in Network.AWS.StepFunctions.CreateStateMachine

type Rep CreateStateMachineResponse Source # 
Instance details

Defined in Network.AWS.StepFunctions.CreateStateMachine

type Rep CreateStateMachineResponse = D1 (MetaData "CreateStateMachineResponse" "Network.AWS.StepFunctions.CreateStateMachine" "amazonka-stepfunctions-1.6.1-2PTLha96w99Qwy2XlD0kq" False) (C1 (MetaCons "CreateStateMachineResponse'" PrefixI True) (S1 (MetaSel (Just "_csmrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int) :*: (S1 (MetaSel (Just "_csmrsStateMachineARN") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_csmrsCreationDate") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 POSIX))))

Response Lenses

csmrsStateMachineARN :: Lens' CreateStateMachineResponse Text Source #

The Amazon Resource Name (ARN) that identifies the created state machine.

csmrsCreationDate :: Lens' CreateStateMachineResponse UTCTime Source #

The date the state machine is created.