amazonka-stepfunctions-1.6.0: 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.StartExecution

Contents

Description

Starts a state machine execution.

Synopsis

Creating a Request

startExecution Source #

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

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

  • seInput - The string that contains the JSON input data for the execution, for example: "input": "{"first_name" : "test"}"
  • seName - The name of the execution. 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 . Important: An execution can't use the name of another execution for 90 days. When you make multiple StartExecution calls with the same name, the new execution doesn't run and the following rules apply: * When the original execution is open and the execution input from the new call is different , the ExecutionAlreadyExists message is returned. * When the original execution is open and the execution input from the new call is identical , the Success message is returned. * When the original execution is closed, the ExecutionAlreadyExists message is returned regardless of input. A name must not contain: * whitespace * brackets { } [ ] * wildcard characters ? * * special characters " # % ^ | ~ ` $ & , ; : / * control characters (U+0000-001F , U+007F-009F )
  • seStateMachineARN - The Amazon Resource Name (ARN) of the state machine to execute.

data StartExecution Source #

See: startExecution smart constructor.

Instances

Eq StartExecution Source # 
Data StartExecution Source # 

Methods

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

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

toConstr :: StartExecution -> Constr #

dataTypeOf :: StartExecution -> DataType #

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

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

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

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

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

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

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

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

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

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

Read StartExecution Source # 
Show StartExecution Source # 
Generic StartExecution Source # 

Associated Types

type Rep StartExecution :: * -> * #

Hashable StartExecution Source # 
ToJSON StartExecution Source # 
NFData StartExecution Source # 

Methods

rnf :: StartExecution -> () #

AWSRequest StartExecution Source # 
ToHeaders StartExecution Source # 
ToPath StartExecution Source # 
ToQuery StartExecution Source # 
type Rep StartExecution Source # 
type Rep StartExecution = D1 * (MetaData "StartExecution" "Network.AWS.StepFunctions.StartExecution" "amazonka-stepfunctions-1.6.0-9oIncLN4t9xDN3HGh7dGqV" False) (C1 * (MetaCons "StartExecution'" PrefixI True) ((:*:) * (S1 * (MetaSel (Just Symbol "_seInput") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text))) ((:*:) * (S1 * (MetaSel (Just Symbol "_seName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text))) (S1 * (MetaSel (Just Symbol "_seStateMachineARN") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Text)))))
type Rs StartExecution Source # 

Request Lenses

seInput :: Lens' StartExecution (Maybe Text) Source #

The string that contains the JSON input data for the execution, for example: "input": "{"first_name" : "test"}"

seName :: Lens' StartExecution (Maybe Text) Source #

The name of the execution. 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 . Important: An execution can't use the name of another execution for 90 days. When you make multiple StartExecution calls with the same name, the new execution doesn't run and the following rules apply: * When the original execution is open and the execution input from the new call is different , the ExecutionAlreadyExists message is returned. * When the original execution is open and the execution input from the new call is identical , the Success message is returned. * When the original execution is closed, the ExecutionAlreadyExists message is returned regardless of input. A name must not contain: * whitespace * brackets { } [ ] * wildcard characters ? * * special characters " # % ^ | ~ ` $ & , ; : / * control characters (U+0000-001F , U+007F-009F )

seStateMachineARN :: Lens' StartExecution Text Source #

The Amazon Resource Name (ARN) of the state machine to execute.

Destructuring the Response

startExecutionResponse Source #

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

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

data StartExecutionResponse Source #

See: startExecutionResponse smart constructor.

Instances

Eq StartExecutionResponse Source # 
Data StartExecutionResponse Source # 

Methods

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

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

toConstr :: StartExecutionResponse -> Constr #

dataTypeOf :: StartExecutionResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read StartExecutionResponse Source # 
Show StartExecutionResponse Source # 
Generic StartExecutionResponse Source # 
NFData StartExecutionResponse Source # 

Methods

rnf :: StartExecutionResponse -> () #

type Rep StartExecutionResponse Source # 
type Rep StartExecutionResponse = D1 * (MetaData "StartExecutionResponse" "Network.AWS.StepFunctions.StartExecution" "amazonka-stepfunctions-1.6.0-9oIncLN4t9xDN3HGh7dGqV" False) (C1 * (MetaCons "StartExecutionResponse'" PrefixI True) ((:*:) * (S1 * (MetaSel (Just Symbol "_srsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Int)) ((:*:) * (S1 * (MetaSel (Just Symbol "_srsExecutionARN") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Text)) (S1 * (MetaSel (Just Symbol "_srsStartDate") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * POSIX)))))

Response Lenses

srsResponseStatus :: Lens' StartExecutionResponse Int Source #

  • - | The response status code.

srsExecutionARN :: Lens' StartExecutionResponse Text Source #

The Amazon Resource Name (ARN) that identifies the execution.

srsStartDate :: Lens' StartExecutionResponse UTCTime Source #

The date the execution is started.