{ "version":"2.0", "metadata":{ "apiVersion":"2016-11-23", "endpointPrefix":"states", "jsonVersion":"1.0", "protocol":"json", "serviceAbbreviation":"AWS SFN", "serviceFullName":"AWS Step Functions", "serviceId":"SFN", "signatureVersion":"v4", "targetPrefix":"AWSStepFunctions", "uid":"states-2016-11-23" }, "operations":{ "CreateActivity":{ "name":"CreateActivity", "http":{ "method":"POST", "requestUri":"/" }, "input":{"shape":"CreateActivityInput"}, "output":{"shape":"CreateActivityOutput"}, "errors":[ {"shape":"ActivityLimitExceeded"}, {"shape":"InvalidName"} ], "documentation":"

Creates an activity. An activity is a task which you write in any programming language and host on any machine which has access to AWS Step Functions. Activities must poll Step Functions using the GetActivityTask API action and respond using SendTask* API actions. This function lets Step Functions know the existence of your activity and returns an identifier for use in a state machine and when polling from the activity.

", "idempotent":true }, "CreateStateMachine":{ "name":"CreateStateMachine", "http":{ "method":"POST", "requestUri":"/" }, "input":{"shape":"CreateStateMachineInput"}, "output":{"shape":"CreateStateMachineOutput"}, "errors":[ {"shape":"InvalidArn"}, {"shape":"InvalidDefinition"}, {"shape":"InvalidName"}, {"shape":"StateMachineAlreadyExists"}, {"shape":"StateMachineDeleting"}, {"shape":"StateMachineLimitExceeded"} ], "documentation":"

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.

", "idempotent":true }, "DeleteActivity":{ "name":"DeleteActivity", "http":{ "method":"POST", "requestUri":"/" }, "input":{"shape":"DeleteActivityInput"}, "output":{"shape":"DeleteActivityOutput"}, "errors":[ {"shape":"InvalidArn"} ], "documentation":"

Deletes an activity.

" }, "DeleteStateMachine":{ "name":"DeleteStateMachine", "http":{ "method":"POST", "requestUri":"/" }, "input":{"shape":"DeleteStateMachineInput"}, "output":{"shape":"DeleteStateMachineOutput"}, "errors":[ {"shape":"InvalidArn"} ], "documentation":"

Deletes a state machine. This is an asynchronous operation: It sets the state machine's status to DELETING and begins the deletion process. Each state machine execution is deleted the next time it makes a state transition.

The state machine itself is deleted after all executions are completed or deleted.

" }, "DescribeActivity":{ "name":"DescribeActivity", "http":{ "method":"POST", "requestUri":"/" }, "input":{"shape":"DescribeActivityInput"}, "output":{"shape":"DescribeActivityOutput"}, "errors":[ {"shape":"ActivityDoesNotExist"}, {"shape":"InvalidArn"} ], "documentation":"

Describes an activity.

" }, "DescribeExecution":{ "name":"DescribeExecution", "http":{ "method":"POST", "requestUri":"/" }, "input":{"shape":"DescribeExecutionInput"}, "output":{"shape":"DescribeExecutionOutput"}, "errors":[ {"shape":"ExecutionDoesNotExist"}, {"shape":"InvalidArn"} ], "documentation":"

Describes an execution.

" }, "DescribeStateMachine":{ "name":"DescribeStateMachine", "http":{ "method":"POST", "requestUri":"/" }, "input":{"shape":"DescribeStateMachineInput"}, "output":{"shape":"DescribeStateMachineOutput"}, "errors":[ {"shape":"InvalidArn"}, {"shape":"StateMachineDoesNotExist"} ], "documentation":"

Describes a state machine.

" }, "DescribeStateMachineForExecution":{ "name":"DescribeStateMachineForExecution", "http":{ "method":"POST", "requestUri":"/" }, "input":{"shape":"DescribeStateMachineForExecutionInput"}, "output":{"shape":"DescribeStateMachineForExecutionOutput"}, "errors":[ {"shape":"ExecutionDoesNotExist"}, {"shape":"InvalidArn"} ], "documentation":"

Describes the state machine associated with a specific execution.

" }, "GetActivityTask":{ "name":"GetActivityTask", "http":{ "method":"POST", "requestUri":"/" }, "input":{"shape":"GetActivityTaskInput"}, "output":{"shape":"GetActivityTaskOutput"}, "errors":[ {"shape":"ActivityDoesNotExist"}, {"shape":"ActivityWorkerLimitExceeded"}, {"shape":"InvalidArn"} ], "documentation":"

Used by workers to retrieve a task (with the specified activity ARN) which has been scheduled for execution by a running state machine. This initiates a long poll, where the service holds the HTTP connection open and responds as soon as a task becomes available (i.e. an execution of a task of this type is needed.) The maximum time the service holds on to the request before responding is 60 seconds. If no task is available within 60 seconds, the poll returns a taskToken with a null string.

Workers should set their client side socket timeout to at least 65 seconds (5 seconds higher than the maximum time the service may hold the poll request).

" }, "GetExecutionHistory":{ "name":"GetExecutionHistory", "http":{ "method":"POST", "requestUri":"/" }, "input":{"shape":"GetExecutionHistoryInput"}, "output":{"shape":"GetExecutionHistoryOutput"}, "errors":[ {"shape":"ExecutionDoesNotExist"}, {"shape":"InvalidArn"}, {"shape":"InvalidToken"} ], "documentation":"

Returns the history of the specified execution as a list of events. By default, the results are returned in ascending order of the timeStamp of the events. Use the reverseOrder parameter to get the latest events first.

If a nextToken is returned by a previous call, there are more results available. To retrieve the next page of results, make the call again using the returned token in nextToken. Keep all other arguments unchanged.

" }, "ListActivities":{ "name":"ListActivities", "http":{ "method":"POST", "requestUri":"/" }, "input":{"shape":"ListActivitiesInput"}, "output":{"shape":"ListActivitiesOutput"}, "errors":[ {"shape":"InvalidToken"} ], "documentation":"

Lists the existing activities.

If a nextToken is returned by a previous call, there are more results available. To retrieve the next page of results, make the call again using the returned token in nextToken. Keep all other arguments unchanged.

" }, "ListExecutions":{ "name":"ListExecutions", "http":{ "method":"POST", "requestUri":"/" }, "input":{"shape":"ListExecutionsInput"}, "output":{"shape":"ListExecutionsOutput"}, "errors":[ {"shape":"InvalidArn"}, {"shape":"InvalidToken"}, {"shape":"StateMachineDoesNotExist"} ], "documentation":"

Lists the executions of a state machine that meet the filtering criteria.

If a nextToken is returned by a previous call, there are more results available. To retrieve the next page of results, make the call again using the returned token in nextToken. Keep all other arguments unchanged.

" }, "ListStateMachines":{ "name":"ListStateMachines", "http":{ "method":"POST", "requestUri":"/" }, "input":{"shape":"ListStateMachinesInput"}, "output":{"shape":"ListStateMachinesOutput"}, "errors":[ {"shape":"InvalidToken"} ], "documentation":"

Lists the existing state machines.

If a nextToken is returned by a previous call, there are more results available. To retrieve the next page of results, make the call again using the returned token in nextToken. Keep all other arguments unchanged.

" }, "SendTaskFailure":{ "name":"SendTaskFailure", "http":{ "method":"POST", "requestUri":"/" }, "input":{"shape":"SendTaskFailureInput"}, "output":{"shape":"SendTaskFailureOutput"}, "errors":[ {"shape":"TaskDoesNotExist"}, {"shape":"InvalidToken"}, {"shape":"TaskTimedOut"} ], "documentation":"

Used by workers to report that the task identified by the taskToken failed.

" }, "SendTaskHeartbeat":{ "name":"SendTaskHeartbeat", "http":{ "method":"POST", "requestUri":"/" }, "input":{"shape":"SendTaskHeartbeatInput"}, "output":{"shape":"SendTaskHeartbeatOutput"}, "errors":[ {"shape":"TaskDoesNotExist"}, {"shape":"InvalidToken"}, {"shape":"TaskTimedOut"} ], "documentation":"

Used by workers to report to the service that the task represented by the specified taskToken is still making progress. This action resets the Heartbeat clock. The Heartbeat threshold is specified in the state machine's Amazon States Language definition. This action does not in itself create an event in the execution history. However, if the task times out, the execution history contains an ActivityTimedOut event.

The Timeout of a task, defined in the state machine's Amazon States Language definition, is its maximum allowed duration, regardless of the number of SendTaskHeartbeat requests received.

This operation is only useful for long-lived tasks to report the liveliness of the task.

" }, "SendTaskSuccess":{ "name":"SendTaskSuccess", "http":{ "method":"POST", "requestUri":"/" }, "input":{"shape":"SendTaskSuccessInput"}, "output":{"shape":"SendTaskSuccessOutput"}, "errors":[ {"shape":"TaskDoesNotExist"}, {"shape":"InvalidOutput"}, {"shape":"InvalidToken"}, {"shape":"TaskTimedOut"} ], "documentation":"

Used by workers to report that the task identified by the taskToken completed successfully.

" }, "StartExecution":{ "name":"StartExecution", "http":{ "method":"POST", "requestUri":"/" }, "input":{"shape":"StartExecutionInput"}, "output":{"shape":"StartExecutionOutput"}, "errors":[ {"shape":"ExecutionLimitExceeded"}, {"shape":"ExecutionAlreadyExists"}, {"shape":"InvalidArn"}, {"shape":"InvalidExecutionInput"}, {"shape":"InvalidName"}, {"shape":"StateMachineDoesNotExist"}, {"shape":"StateMachineDeleting"} ], "documentation":"

Starts a state machine execution.

", "idempotent":true }, "StopExecution":{ "name":"StopExecution", "http":{ "method":"POST", "requestUri":"/" }, "input":{"shape":"StopExecutionInput"}, "output":{"shape":"StopExecutionOutput"}, "errors":[ {"shape":"ExecutionDoesNotExist"}, {"shape":"InvalidArn"} ], "documentation":"

Stops an execution.

" }, "UpdateStateMachine":{ "name":"UpdateStateMachine", "http":{ "method":"POST", "requestUri":"/" }, "input":{"shape":"UpdateStateMachineInput"}, "output":{"shape":"UpdateStateMachineOutput"}, "errors":[ {"shape":"InvalidArn"}, {"shape":"InvalidDefinition"}, {"shape":"MissingRequiredParameter"}, {"shape":"StateMachineDeleting"}, {"shape":"StateMachineDoesNotExist"} ], "documentation":"

Updates an existing state machine by modifying its definition and/or roleArn. Running executions will continue to use the previous definition and roleArn.

All StartExecution calls within a few seconds will use the updated definition and roleArn. Executions started immediately after calling UpdateStateMachine may use the previous state machine definition and roleArn. You must include at least one of definition or roleArn or you will receive a MissingRequiredParameter error.

", "idempotent":true } }, "shapes":{ "ActivityDoesNotExist":{ "type":"structure", "members":{ "message":{"shape":"ErrorMessage"} }, "documentation":"

The specified activity does not exist.

", "exception":true }, "ActivityFailedEventDetails":{ "type":"structure", "members":{ "error":{ "shape":"Error", "documentation":"

The error code of the failure.

" }, "cause":{ "shape":"Cause", "documentation":"

A more detailed explanation of the cause of the failure.

" } }, "documentation":"

Contains details about an activity which failed during an execution.

" }, "ActivityLimitExceeded":{ "type":"structure", "members":{ "message":{"shape":"ErrorMessage"} }, "documentation":"

The maximum number of activities has been reached. Existing activities must be deleted before a new activity can be created.

", "exception":true }, "ActivityList":{ "type":"list", "member":{"shape":"ActivityListItem"} }, "ActivityListItem":{ "type":"structure", "required":[ "activityArn", "name", "creationDate" ], "members":{ "activityArn":{ "shape":"Arn", "documentation":"

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

" }, "name":{ "shape":"Name", "documentation":"

The name of the activity.

A name must not contain:

" }, "creationDate":{ "shape":"Timestamp", "documentation":"

The date the activity is created.

" } }, "documentation":"

Contains details about an activity.

" }, "ActivityScheduleFailedEventDetails":{ "type":"structure", "members":{ "error":{ "shape":"Error", "documentation":"

The error code of the failure.

" }, "cause":{ "shape":"Cause", "documentation":"

A more detailed explanation of the cause of the failure.

" } }, "documentation":"

Contains details about an activity schedule failure which occurred during an execution.

" }, "ActivityScheduledEventDetails":{ "type":"structure", "required":["resource"], "members":{ "resource":{ "shape":"Arn", "documentation":"

The Amazon Resource Name (ARN) of the scheduled activity.

" }, "input":{ "shape":"Data", "documentation":"

The JSON data input to the activity task.

" }, "timeoutInSeconds":{ "shape":"TimeoutInSeconds", "documentation":"

The maximum allowed duration of the activity task.

", "box":true }, "heartbeatInSeconds":{ "shape":"TimeoutInSeconds", "documentation":"

The maximum allowed duration between two heartbeats for the activity task.

", "box":true } }, "documentation":"

Contains details about an activity scheduled during an execution.

" }, "ActivityStartedEventDetails":{ "type":"structure", "members":{ "workerName":{ "shape":"Identity", "documentation":"

The name of the worker that the task is assigned to. These names are provided by the workers when calling GetActivityTask.

" } }, "documentation":"

Contains details about the start of an activity during an execution.

" }, "ActivitySucceededEventDetails":{ "type":"structure", "members":{ "output":{ "shape":"Data", "documentation":"

The JSON data output by the activity task.

" } }, "documentation":"

Contains details about an activity which successfully terminated during an execution.

" }, "ActivityTimedOutEventDetails":{ "type":"structure", "members":{ "error":{ "shape":"Error", "documentation":"

The error code of the failure.

" }, "cause":{ "shape":"Cause", "documentation":"

A more detailed explanation of the cause of the timeout.

" } }, "documentation":"

Contains details about an activity timeout which occurred during an execution.

" }, "ActivityWorkerLimitExceeded":{ "type":"structure", "members":{ "message":{"shape":"ErrorMessage"} }, "documentation":"

The maximum number of workers concurrently polling for activity tasks has been reached.

", "exception":true }, "Arn":{ "type":"string", "max":256, "min":1 }, "Cause":{ "type":"string", "max":32768, "min":0 }, "CreateActivityInput":{ "type":"structure", "required":["name"], "members":{ "name":{ "shape":"Name", "documentation":"

The name of the activity to create. 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:

" } } }, "CreateActivityOutput":{ "type":"structure", "required":[ "activityArn", "creationDate" ], "members":{ "activityArn":{ "shape":"Arn", "documentation":"

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

" }, "creationDate":{ "shape":"Timestamp", "documentation":"

The date the activity is created.

" } } }, "CreateStateMachineInput":{ "type":"structure", "required":[ "name", "definition", "roleArn" ], "members":{ "name":{ "shape":"Name", "documentation":"

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:

" }, "definition":{ "shape":"Definition", "documentation":"

The Amazon States Language definition of the state machine.

" }, "roleArn":{ "shape":"Arn", "documentation":"

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

" } } }, "CreateStateMachineOutput":{ "type":"structure", "required":[ "stateMachineArn", "creationDate" ], "members":{ "stateMachineArn":{ "shape":"Arn", "documentation":"

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

" }, "creationDate":{ "shape":"Timestamp", "documentation":"

The date the state machine is created.

" } } }, "Data":{ "type":"string", "max":32768 }, "Definition":{ "type":"string", "max":1048576, "min":1 }, "DeleteActivityInput":{ "type":"structure", "required":["activityArn"], "members":{ "activityArn":{ "shape":"Arn", "documentation":"

The Amazon Resource Name (ARN) of the activity to delete.

" } } }, "DeleteActivityOutput":{ "type":"structure", "members":{ } }, "DeleteStateMachineInput":{ "type":"structure", "required":["stateMachineArn"], "members":{ "stateMachineArn":{ "shape":"Arn", "documentation":"

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

" } } }, "DeleteStateMachineOutput":{ "type":"structure", "members":{ } }, "DescribeActivityInput":{ "type":"structure", "required":["activityArn"], "members":{ "activityArn":{ "shape":"Arn", "documentation":"

The Amazon Resource Name (ARN) of the activity to describe.

" } } }, "DescribeActivityOutput":{ "type":"structure", "required":[ "activityArn", "name", "creationDate" ], "members":{ "activityArn":{ "shape":"Arn", "documentation":"

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

" }, "name":{ "shape":"Name", "documentation":"

The name of the activity.

A name must not contain:

" }, "creationDate":{ "shape":"Timestamp", "documentation":"

The date the activity is created.

" } } }, "DescribeExecutionInput":{ "type":"structure", "required":["executionArn"], "members":{ "executionArn":{ "shape":"Arn", "documentation":"

The Amazon Resource Name (ARN) of the execution to describe.

" } } }, "DescribeExecutionOutput":{ "type":"structure", "required":[ "executionArn", "stateMachineArn", "status", "startDate", "input" ], "members":{ "executionArn":{ "shape":"Arn", "documentation":"

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

" }, "stateMachineArn":{ "shape":"Arn", "documentation":"

The Amazon Resource Name (ARN) of the executed stated machine.

" }, "name":{ "shape":"Name", "documentation":"

The name of the execution.

A name must not contain:

" }, "status":{ "shape":"ExecutionStatus", "documentation":"

The current status of the execution.

" }, "startDate":{ "shape":"Timestamp", "documentation":"

The date the execution is started.

" }, "stopDate":{ "shape":"Timestamp", "documentation":"

If the execution has already ended, the date the execution stopped.

" }, "input":{ "shape":"Data", "documentation":"

The string that contains the JSON input data of the execution.

" }, "output":{ "shape":"Data", "documentation":"

The JSON output data of the execution.

This field is set only if the execution succeeds. If the execution fails, this field is null.

" } } }, "DescribeStateMachineForExecutionInput":{ "type":"structure", "required":["executionArn"], "members":{ "executionArn":{ "shape":"Arn", "documentation":"

The Amazon Resource Name (ARN) of the execution you want state machine information for.

" } } }, "DescribeStateMachineForExecutionOutput":{ "type":"structure", "required":[ "stateMachineArn", "name", "definition", "roleArn", "updateDate" ], "members":{ "stateMachineArn":{ "shape":"Arn", "documentation":"

The Amazon Resource Name (ARN) of the state machine associated with the execution.

" }, "name":{ "shape":"Name", "documentation":"

The name of the state machine associated with the execution.

" }, "definition":{ "shape":"Definition", "documentation":"

The Amazon States Language definition of the state machine.

" }, "roleArn":{ "shape":"Arn", "documentation":"

The Amazon Resource Name (ARN) of the IAM role of the State Machine for the execution.

" }, "updateDate":{ "shape":"Timestamp", "documentation":"

The date and time the state machine associated with an execution was updated. For a newly created state machine, this is the creation date.

" } } }, "DescribeStateMachineInput":{ "type":"structure", "required":["stateMachineArn"], "members":{ "stateMachineArn":{ "shape":"Arn", "documentation":"

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

" } } }, "DescribeStateMachineOutput":{ "type":"structure", "required":[ "stateMachineArn", "name", "definition", "roleArn", "creationDate" ], "members":{ "stateMachineArn":{ "shape":"Arn", "documentation":"

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

" }, "name":{ "shape":"Name", "documentation":"

The name of the state machine.

A name must not contain:

" }, "status":{ "shape":"StateMachineStatus", "documentation":"

The current status of the state machine.

" }, "definition":{ "shape":"Definition", "documentation":"

The Amazon States Language definition of the state machine.

" }, "roleArn":{ "shape":"Arn", "documentation":"

The Amazon Resource Name (ARN) of the IAM role used when creating this state machine. (The IAM role maintains security by granting Step Functions access to AWS resources.)

" }, "creationDate":{ "shape":"Timestamp", "documentation":"

The date the state machine is created.

" } } }, "Error":{ "type":"string", "max":256, "min":0 }, "ErrorMessage":{"type":"string"}, "EventId":{"type":"long"}, "ExecutionAbortedEventDetails":{ "type":"structure", "members":{ "error":{ "shape":"Error", "documentation":"

The error code of the failure.

" }, "cause":{ "shape":"Cause", "documentation":"

A more detailed explanation of the cause of the failure.

" } }, "documentation":"

Contains details about an abort of an execution.

" }, "ExecutionAlreadyExists":{ "type":"structure", "members":{ "message":{"shape":"ErrorMessage"} }, "documentation":"

The execution has the same name as another execution (but a different input).

Executions with the same name and input are considered idempotent.

", "exception":true }, "ExecutionDoesNotExist":{ "type":"structure", "members":{ "message":{"shape":"ErrorMessage"} }, "documentation":"

The specified execution does not exist.

", "exception":true }, "ExecutionFailedEventDetails":{ "type":"structure", "members":{ "error":{ "shape":"Error", "documentation":"

The error code of the failure.

" }, "cause":{ "shape":"Cause", "documentation":"

A more detailed explanation of the cause of the failure.

" } }, "documentation":"

Contains details about an execution failure event.

" }, "ExecutionLimitExceeded":{ "type":"structure", "members":{ "message":{"shape":"ErrorMessage"} }, "documentation":"

The maximum number of running executions has been reached. Running executions must end or be stopped before a new execution can be started.

", "exception":true }, "ExecutionList":{ "type":"list", "member":{"shape":"ExecutionListItem"} }, "ExecutionListItem":{ "type":"structure", "required":[ "executionArn", "stateMachineArn", "name", "status", "startDate" ], "members":{ "executionArn":{ "shape":"Arn", "documentation":"

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

" }, "stateMachineArn":{ "shape":"Arn", "documentation":"

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

" }, "name":{ "shape":"Name", "documentation":"

The name of the execution.

A name must not contain:

" }, "status":{ "shape":"ExecutionStatus", "documentation":"

The current status of the execution.

" }, "startDate":{ "shape":"Timestamp", "documentation":"

The date the execution started.

" }, "stopDate":{ "shape":"Timestamp", "documentation":"

If the execution already ended, the date the execution stopped.

" } }, "documentation":"

Contains details about an execution.

" }, "ExecutionStartedEventDetails":{ "type":"structure", "members":{ "input":{ "shape":"Data", "documentation":"

The JSON data input to the execution.

" }, "roleArn":{ "shape":"Arn", "documentation":"

The Amazon Resource Name (ARN) of the IAM role used for executing AWS Lambda tasks.

" } }, "documentation":"

Contains details about the start of the execution.

" }, "ExecutionStatus":{ "type":"string", "enum":[ "RUNNING", "SUCCEEDED", "FAILED", "TIMED_OUT", "ABORTED" ] }, "ExecutionSucceededEventDetails":{ "type":"structure", "members":{ "output":{ "shape":"Data", "documentation":"

The JSON data output by the execution.

" } }, "documentation":"

Contains details about the successful termination of the execution.

" }, "ExecutionTimedOutEventDetails":{ "type":"structure", "members":{ "error":{ "shape":"Error", "documentation":"

The error code of the failure.

" }, "cause":{ "shape":"Cause", "documentation":"

A more detailed explanation of the cause of the timeout.

" } }, "documentation":"

Contains details about the execution timeout which occurred during the execution.

" }, "GetActivityTaskInput":{ "type":"structure", "required":["activityArn"], "members":{ "activityArn":{ "shape":"Arn", "documentation":"

The Amazon Resource Name (ARN) of the activity to retrieve tasks from (assigned when you create the task using CreateActivity.)

" }, "workerName":{ "shape":"Name", "documentation":"

You can provide an arbitrary name in order to identify the worker that the task is assigned to. This name is used when it is logged in the execution history.

" } } }, "GetActivityTaskOutput":{ "type":"structure", "members":{ "taskToken":{ "shape":"TaskToken", "documentation":"

A token that identifies the scheduled task. This token must be copied and included in subsequent calls to SendTaskHeartbeat, SendTaskSuccess or SendTaskFailure in order to report the progress or completion of the task.

" }, "input":{ "shape":"Data", "documentation":"

The string that contains the JSON input data for the task.

" } } }, "GetExecutionHistoryInput":{ "type":"structure", "required":["executionArn"], "members":{ "executionArn":{ "shape":"Arn", "documentation":"

The Amazon Resource Name (ARN) of the execution.

" }, "maxResults":{ "shape":"PageSize", "documentation":"

The maximum number of results that are returned per call. You can use nextToken to obtain further pages of results. The default is 100 and the maximum allowed page size is 100. A value of 0 uses the default.

This is only an upper limit. The actual number of results returned per call might be fewer than the specified maximum.

" }, "reverseOrder":{ "shape":"ReverseOrder", "documentation":"

Lists events in descending order of their timeStamp.

" }, "nextToken":{ "shape":"PageToken", "documentation":"

If a nextToken is returned by a previous call, there are more results available. To retrieve the next page of results, make the call again using the returned token in nextToken. Keep all other arguments unchanged.

The configured maxResults determines how many results can be returned in a single call.

" } } }, "GetExecutionHistoryOutput":{ "type":"structure", "required":["events"], "members":{ "events":{ "shape":"HistoryEventList", "documentation":"

The list of events that occurred in the execution.

" }, "nextToken":{ "shape":"PageToken", "documentation":"

If a nextToken is returned by a previous call, there are more results available. To retrieve the next page of results, make the call again using the returned token in nextToken. Keep all other arguments unchanged.

The configured maxResults determines how many results can be returned in a single call.

" } } }, "HistoryEvent":{ "type":"structure", "required":[ "timestamp", "type", "id" ], "members":{ "timestamp":{ "shape":"Timestamp", "documentation":"

The date the event occurred.

" }, "type":{ "shape":"HistoryEventType", "documentation":"

The type of the event.

" }, "id":{ "shape":"EventId", "documentation":"

The id of the event. Events are numbered sequentially, starting at one.

" }, "previousEventId":{ "shape":"EventId", "documentation":"

The id of the previous event.

" }, "activityFailedEventDetails":{"shape":"ActivityFailedEventDetails"}, "activityScheduleFailedEventDetails":{ "shape":"ActivityScheduleFailedEventDetails", "documentation":"

Contains details about an activity schedule event which failed during an execution.

" }, "activityScheduledEventDetails":{"shape":"ActivityScheduledEventDetails"}, "activityStartedEventDetails":{"shape":"ActivityStartedEventDetails"}, "activitySucceededEventDetails":{"shape":"ActivitySucceededEventDetails"}, "activityTimedOutEventDetails":{"shape":"ActivityTimedOutEventDetails"}, "executionFailedEventDetails":{"shape":"ExecutionFailedEventDetails"}, "executionStartedEventDetails":{"shape":"ExecutionStartedEventDetails"}, "executionSucceededEventDetails":{"shape":"ExecutionSucceededEventDetails"}, "executionAbortedEventDetails":{"shape":"ExecutionAbortedEventDetails"}, "executionTimedOutEventDetails":{"shape":"ExecutionTimedOutEventDetails"}, "lambdaFunctionFailedEventDetails":{"shape":"LambdaFunctionFailedEventDetails"}, "lambdaFunctionScheduleFailedEventDetails":{"shape":"LambdaFunctionScheduleFailedEventDetails"}, "lambdaFunctionScheduledEventDetails":{"shape":"LambdaFunctionScheduledEventDetails"}, "lambdaFunctionStartFailedEventDetails":{ "shape":"LambdaFunctionStartFailedEventDetails", "documentation":"

Contains details about a lambda function which failed to start during an execution.

" }, "lambdaFunctionSucceededEventDetails":{ "shape":"LambdaFunctionSucceededEventDetails", "documentation":"

Contains details about a lambda function which terminated successfully during an execution.

" }, "lambdaFunctionTimedOutEventDetails":{"shape":"LambdaFunctionTimedOutEventDetails"}, "stateEnteredEventDetails":{"shape":"StateEnteredEventDetails"}, "stateExitedEventDetails":{"shape":"StateExitedEventDetails"} }, "documentation":"

Contains details about the events of an execution.

" }, "HistoryEventList":{ "type":"list", "member":{"shape":"HistoryEvent"}, "documentation":"

Contains details about the events which occurred during an execution.

" }, "HistoryEventType":{ "type":"string", "enum":[ "ActivityFailed", "ActivityScheduleFailed", "ActivityScheduled", "ActivityStarted", "ActivitySucceeded", "ActivityTimedOut", "ChoiceStateEntered", "ChoiceStateExited", "ExecutionFailed", "ExecutionStarted", "ExecutionSucceeded", "ExecutionAborted", "ExecutionTimedOut", "FailStateEntered", "LambdaFunctionFailed", "LambdaFunctionScheduleFailed", "LambdaFunctionScheduled", "LambdaFunctionStartFailed", "LambdaFunctionStarted", "LambdaFunctionSucceeded", "LambdaFunctionTimedOut", "SucceedStateEntered", "SucceedStateExited", "TaskStateAborted", "TaskStateEntered", "TaskStateExited", "PassStateEntered", "PassStateExited", "ParallelStateAborted", "ParallelStateEntered", "ParallelStateExited", "ParallelStateFailed", "ParallelStateStarted", "ParallelStateSucceeded", "WaitStateAborted", "WaitStateEntered", "WaitStateExited" ] }, "Identity":{ "type":"string", "max":256 }, "InvalidArn":{ "type":"structure", "members":{ "message":{"shape":"ErrorMessage"} }, "documentation":"

The provided Amazon Resource Name (ARN) is invalid.

", "exception":true }, "InvalidDefinition":{ "type":"structure", "members":{ "message":{"shape":"ErrorMessage"} }, "documentation":"

The provided Amazon States Language definition is invalid.

", "exception":true }, "InvalidExecutionInput":{ "type":"structure", "members":{ "message":{"shape":"ErrorMessage"} }, "documentation":"

The provided JSON input data is invalid.

", "exception":true }, "InvalidName":{ "type":"structure", "members":{ "message":{"shape":"ErrorMessage"} }, "documentation":"

The provided name is invalid.

", "exception":true }, "InvalidOutput":{ "type":"structure", "members":{ "message":{"shape":"ErrorMessage"} }, "documentation":"

The provided JSON output data is invalid.

", "exception":true }, "InvalidToken":{ "type":"structure", "members":{ "message":{"shape":"ErrorMessage"} }, "documentation":"

The provided token is invalid.

", "exception":true }, "LambdaFunctionFailedEventDetails":{ "type":"structure", "members":{ "error":{ "shape":"Error", "documentation":"

The error code of the failure.

" }, "cause":{ "shape":"Cause", "documentation":"

A more detailed explanation of the cause of the failure.

" } }, "documentation":"

Contains details about a lambda function which failed during an execution.

" }, "LambdaFunctionScheduleFailedEventDetails":{ "type":"structure", "members":{ "error":{ "shape":"Error", "documentation":"

The error code of the failure.

" }, "cause":{ "shape":"Cause", "documentation":"

A more detailed explanation of the cause of the failure.

" } }, "documentation":"

Contains details about a failed lambda function schedule event which occurred during an execution.

" }, "LambdaFunctionScheduledEventDetails":{ "type":"structure", "required":["resource"], "members":{ "resource":{ "shape":"Arn", "documentation":"

The Amazon Resource Name (ARN) of the scheduled lambda function.

" }, "input":{ "shape":"Data", "documentation":"

The JSON data input to the lambda function.

" }, "timeoutInSeconds":{ "shape":"TimeoutInSeconds", "documentation":"

The maximum allowed duration of the lambda function.

", "box":true } }, "documentation":"

Contains details about a lambda function scheduled during an execution.

" }, "LambdaFunctionStartFailedEventDetails":{ "type":"structure", "members":{ "error":{ "shape":"Error", "documentation":"

The error code of the failure.

" }, "cause":{ "shape":"Cause", "documentation":"

A more detailed explanation of the cause of the failure.

" } }, "documentation":"

Contains details about a lambda function which failed to start during an execution.

" }, "LambdaFunctionSucceededEventDetails":{ "type":"structure", "members":{ "output":{ "shape":"Data", "documentation":"

The JSON data output by the lambda function.

" } }, "documentation":"

Contains details about a lambda function which successfully terminated during an execution.

" }, "LambdaFunctionTimedOutEventDetails":{ "type":"structure", "members":{ "error":{ "shape":"Error", "documentation":"

The error code of the failure.

" }, "cause":{ "shape":"Cause", "documentation":"

A more detailed explanation of the cause of the timeout.

" } }, "documentation":"

Contains details about a lambda function timeout which occurred during an execution.

" }, "ListActivitiesInput":{ "type":"structure", "members":{ "maxResults":{ "shape":"PageSize", "documentation":"

The maximum number of results that are returned per call. You can use nextToken to obtain further pages of results. The default is 100 and the maximum allowed page size is 100. A value of 0 uses the default.

This is only an upper limit. The actual number of results returned per call might be fewer than the specified maximum.

" }, "nextToken":{ "shape":"PageToken", "documentation":"

If a nextToken is returned by a previous call, there are more results available. To retrieve the next page of results, make the call again using the returned token in nextToken. Keep all other arguments unchanged.

The configured maxResults determines how many results can be returned in a single call.

" } } }, "ListActivitiesOutput":{ "type":"structure", "required":["activities"], "members":{ "activities":{ "shape":"ActivityList", "documentation":"

The list of activities.

" }, "nextToken":{ "shape":"PageToken", "documentation":"

If a nextToken is returned by a previous call, there are more results available. To retrieve the next page of results, make the call again using the returned token in nextToken. Keep all other arguments unchanged.

The configured maxResults determines how many results can be returned in a single call.

" } } }, "ListExecutionsInput":{ "type":"structure", "required":["stateMachineArn"], "members":{ "stateMachineArn":{ "shape":"Arn", "documentation":"

The Amazon Resource Name (ARN) of the state machine whose executions is listed.

" }, "statusFilter":{ "shape":"ExecutionStatus", "documentation":"

If specified, only list the executions whose current execution status matches the given filter.

" }, "maxResults":{ "shape":"PageSize", "documentation":"

The maximum number of results that are returned per call. You can use nextToken to obtain further pages of results. The default is 100 and the maximum allowed page size is 100. A value of 0 uses the default.

This is only an upper limit. The actual number of results returned per call might be fewer than the specified maximum.

" }, "nextToken":{ "shape":"PageToken", "documentation":"

If a nextToken is returned by a previous call, there are more results available. To retrieve the next page of results, make the call again using the returned token in nextToken. Keep all other arguments unchanged.

The configured maxResults determines how many results can be returned in a single call.

" } } }, "ListExecutionsOutput":{ "type":"structure", "required":["executions"], "members":{ "executions":{ "shape":"ExecutionList", "documentation":"

The list of matching executions.

" }, "nextToken":{ "shape":"PageToken", "documentation":"

If a nextToken is returned by a previous call, there are more results available. To retrieve the next page of results, make the call again using the returned token in nextToken. Keep all other arguments unchanged.

The configured maxResults determines how many results can be returned in a single call.

" } } }, "ListStateMachinesInput":{ "type":"structure", "members":{ "maxResults":{ "shape":"PageSize", "documentation":"

The maximum number of results that are returned per call. You can use nextToken to obtain further pages of results. The default is 100 and the maximum allowed page size is 100. A value of 0 uses the default.

This is only an upper limit. The actual number of results returned per call might be fewer than the specified maximum.

" }, "nextToken":{ "shape":"PageToken", "documentation":"

If a nextToken is returned by a previous call, there are more results available. To retrieve the next page of results, make the call again using the returned token in nextToken. Keep all other arguments unchanged.

The configured maxResults determines how many results can be returned in a single call.

" } } }, "ListStateMachinesOutput":{ "type":"structure", "required":["stateMachines"], "members":{ "stateMachines":{"shape":"StateMachineList"}, "nextToken":{ "shape":"PageToken", "documentation":"

If a nextToken is returned by a previous call, there are more results available. To retrieve the next page of results, make the call again using the returned token in nextToken. Keep all other arguments unchanged.

The configured maxResults determines how many results can be returned in a single call.

" } } }, "MissingRequiredParameter":{ "type":"structure", "members":{ "message":{"shape":"ErrorMessage"} }, "documentation":"

Request is missing a required parameter. This error occurs if both definition and roleArn are not specified.

", "exception":true }, "Name":{ "type":"string", "max":80, "min":1 }, "PageSize":{ "type":"integer", "max":1000, "min":0 }, "PageToken":{ "type":"string", "max":1024, "min":1 }, "ReverseOrder":{"type":"boolean"}, "SendTaskFailureInput":{ "type":"structure", "required":["taskToken"], "members":{ "taskToken":{ "shape":"TaskToken", "documentation":"

The token that represents this task. Task tokens are generated by the service when the tasks are assigned to a worker (see GetActivityTask::taskToken).

" }, "error":{ "shape":"Error", "documentation":"

An arbitrary error code that identifies the cause of the failure.

" }, "cause":{ "shape":"Cause", "documentation":"

A more detailed explanation of the cause of the failure.

" } } }, "SendTaskFailureOutput":{ "type":"structure", "members":{ } }, "SendTaskHeartbeatInput":{ "type":"structure", "required":["taskToken"], "members":{ "taskToken":{ "shape":"TaskToken", "documentation":"

The token that represents this task. Task tokens are generated by the service when the tasks are assigned to a worker (see GetActivityTaskOutput$taskToken).

" } } }, "SendTaskHeartbeatOutput":{ "type":"structure", "members":{ } }, "SendTaskSuccessInput":{ "type":"structure", "required":[ "taskToken", "output" ], "members":{ "taskToken":{ "shape":"TaskToken", "documentation":"

The token that represents this task. Task tokens are generated by the service when the tasks are assigned to a worker (see GetActivityTaskOutput$taskToken).

" }, "output":{ "shape":"Data", "documentation":"

The JSON output of the task.

" } } }, "SendTaskSuccessOutput":{ "type":"structure", "members":{ } }, "StartExecutionInput":{ "type":"structure", "required":["stateMachineArn"], "members":{ "stateMachineArn":{ "shape":"Arn", "documentation":"

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

" }, "name":{ "shape":"Name", "documentation":"

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.

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:

A name must not contain:

" }, "input":{ "shape":"Data", "documentation":"

The string that contains the JSON input data for the execution, for example:

\"input\": \"{\\\"first_name\\\" : \\\"test\\\"}\"

If you don't include any JSON input data, you still must include the two braces, for example: \"input\": \"{}\"

" } } }, "StartExecutionOutput":{ "type":"structure", "required":[ "executionArn", "startDate" ], "members":{ "executionArn":{ "shape":"Arn", "documentation":"

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

" }, "startDate":{ "shape":"Timestamp", "documentation":"

The date the execution is started.

" } } }, "StateEnteredEventDetails":{ "type":"structure", "required":["name"], "members":{ "name":{ "shape":"Name", "documentation":"

The name of the state.

" }, "input":{ "shape":"Data", "documentation":"

The string that contains the JSON input data for the state.

" } }, "documentation":"

Contains details about a state entered during an execution.

" }, "StateExitedEventDetails":{ "type":"structure", "required":["name"], "members":{ "name":{ "shape":"Name", "documentation":"

The name of the state.

A name must not contain:

" }, "output":{ "shape":"Data", "documentation":"

The JSON output data of the state.

" } }, "documentation":"

Contains details about an exit from a state during an execution.

" }, "StateMachineAlreadyExists":{ "type":"structure", "members":{ "message":{"shape":"ErrorMessage"} }, "documentation":"

A state machine with the same name but a different definition or role ARN already exists.

", "exception":true }, "StateMachineDeleting":{ "type":"structure", "members":{ "message":{"shape":"ErrorMessage"} }, "documentation":"

The specified state machine is being deleted.

", "exception":true }, "StateMachineDoesNotExist":{ "type":"structure", "members":{ "message":{"shape":"ErrorMessage"} }, "documentation":"

The specified state machine does not exist.

", "exception":true }, "StateMachineLimitExceeded":{ "type":"structure", "members":{ "message":{"shape":"ErrorMessage"} }, "documentation":"

The maximum number of state machines has been reached. Existing state machines must be deleted before a new state machine can be created.

", "exception":true }, "StateMachineList":{ "type":"list", "member":{"shape":"StateMachineListItem"} }, "StateMachineListItem":{ "type":"structure", "required":[ "stateMachineArn", "name", "creationDate" ], "members":{ "stateMachineArn":{ "shape":"Arn", "documentation":"

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

" }, "name":{ "shape":"Name", "documentation":"

The name of the state machine.

A name must not contain:

" }, "creationDate":{ "shape":"Timestamp", "documentation":"

The date the state machine is created.

" } }, "documentation":"

Contains details about the state machine.

" }, "StateMachineStatus":{ "type":"string", "enum":[ "ACTIVE", "DELETING" ] }, "StopExecutionInput":{ "type":"structure", "required":["executionArn"], "members":{ "executionArn":{ "shape":"Arn", "documentation":"

The Amazon Resource Name (ARN) of the execution to stop.

" }, "error":{ "shape":"Error", "documentation":"

An arbitrary error code that identifies the cause of the termination.

" }, "cause":{ "shape":"Cause", "documentation":"

A more detailed explanation of the cause of the termination.

" } } }, "StopExecutionOutput":{ "type":"structure", "required":["stopDate"], "members":{ "stopDate":{ "shape":"Timestamp", "documentation":"

The date the execution is stopped.

" } } }, "TaskDoesNotExist":{ "type":"structure", "members":{ "message":{"shape":"ErrorMessage"} }, "exception":true }, "TaskTimedOut":{ "type":"structure", "members":{ "message":{"shape":"ErrorMessage"} }, "exception":true }, "TaskToken":{ "type":"string", "max":1024, "min":1 }, "TimeoutInSeconds":{"type":"long"}, "Timestamp":{"type":"timestamp"}, "UpdateStateMachineInput":{ "type":"structure", "required":["stateMachineArn"], "members":{ "stateMachineArn":{ "shape":"Arn", "documentation":"

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

" }, "definition":{ "shape":"Definition", "documentation":"

The Amazon States Language definition of the state machine.

" }, "roleArn":{ "shape":"Arn", "documentation":"

The Amazon Resource Name (ARN) of the IAM role of the state machine.

" } } }, "UpdateStateMachineOutput":{ "type":"structure", "required":["updateDate"], "members":{ "updateDate":{ "shape":"Timestamp", "documentation":"

The date and time the state machine was updated.

" } } } }, "documentation":"AWS Step Functions

AWS Step Functions is a service that lets you coordinate the components of distributed applications and microservices using visual workflows.

You can use Step Functions to build applications from individual components, each of which performs a discrete function, or task, allowing you to scale and change applications quickly. Step Functions provides a console that helps visualize the components of your application as a series of steps. Step Functions automatically triggers and tracks each step, and retries steps when there are errors, so your application executes predictably and in the right order every time. Step Functions logs the state of each step, so you can quickly diagnose and debug any issues.

Step Functions manages operations and underlying infrastructure to ensure your application is available at any scale. You can run tasks on AWS, your own servers, or any system that has access to AWS. You can access and use Step Functions using the console, the AWS SDKs, or an HTTP API. For more information about Step Functions, see the AWS Step Functions Developer Guide .

" }