AWS Step Functions 2016-11-23
- Client: Aws\Sfn\SfnClient
- Service ID: states
- Version: 2016-11-23
This page describes the parameters and results for the operations of the AWS Step Functions (2016-11-23), and shows how to use the Aws\Sfn\SfnClient object to call the described operations. This documentation is specific to the 2016-11-23 API version of the service.
Operation Summary
Each of the following operations can be created from a client using
$client->getCommand('CommandName')
, where "CommandName" is the
name of one of the following operations. Note: a command is a value that
encapsulates an operation and the parameters used to create an HTTP request.
You can also create and send a command immediately using the magic methods
available on a client object: $client->commandName(/* parameters */)
.
You can send the command asynchronously (returning a promise) by appending the
word "Async" to the operation name: $client->commandNameAsync(/* parameters */)
.
- CreateActivity ( array $params = [] )
Creates an activity.
- CreateStateMachine ( array $params = [] )
Creates a state machine.
- CreateStateMachineAlias ( array $params = [] )
Creates an alias for a state machine that points to one or two versions of the same state machine.
- DeleteActivity ( array $params = [] )
Deletes an activity.
- DeleteStateMachine ( array $params = [] )
Deletes a state machine.
- DeleteStateMachineAlias ( array $params = [] )
Deletes a state machine alias.
- DeleteStateMachineVersion ( array $params = [] )
Deletes a state machine version.
- DescribeActivity ( array $params = [] )
Describes an activity.
- DescribeExecution ( array $params = [] )
Provides information about a state machine execution, such as the state machine associated with the execution, the execution input and output, and relevant execution metadata.
- DescribeMapRun ( array $params = [] )
Provides information about a Map Run's configuration, progress, and results.
- DescribeStateMachine ( array $params = [] )
Provides information about a state machine's definition, its IAM role Amazon Resource Name (ARN), and configuration.
- DescribeStateMachineAlias ( array $params = [] )
Returns details about a state machine alias.
- DescribeStateMachineForExecution ( array $params = [] )
Provides information about a state machine's definition, its execution role ARN, and configuration.
- GetActivityTask ( array $params = [] )
Used by workers to retrieve a task (with the specified activity ARN) which has been scheduled for execution by a running state machine.
- GetExecutionHistory ( array $params = [] )
Returns the history of the specified execution as a list of events.
- ListActivities ( array $params = [] )
Lists the existing activities.
- ListExecutions ( array $params = [] )
Lists all executions of a state machine or a Map Run.
- ListMapRuns ( array $params = [] )
Lists all Map Runs that were started by a given state machine execution.
- ListStateMachineAliases ( array $params = [] )
Lists aliases for a specified state machine ARN.
- ListStateMachineVersions ( array $params = [] )
Lists versions for the specified state machine Amazon Resource Name (ARN).
- ListStateMachines ( array $params = [] )
Lists the existing state machines.
- ListTagsForResource ( array $params = [] )
List tags for a given resource.
- PublishStateMachineVersion ( array $params = [] )
Creates a version from the current revision of a state machine.
- SendTaskFailure ( array $params = [] )
Used by activity workers and task states using the callback pattern to report that the task identified by the taskToken failed.
- SendTaskHeartbeat ( array $params = [] )
Used by activity workers and task states using the callback pattern to report to Step Functions that the task represented by the specified taskToken is still making progress.
- SendTaskSuccess ( array $params = [] )
Used by activity workers and task states using the callback pattern to report that the task identified by the taskToken completed successfully.
- StartExecution ( array $params = [] )
Starts a state machine execution.
- StartSyncExecution ( array $params = [] )
Starts a Synchronous Express state machine execution.
- StopExecution ( array $params = [] )
Stops an execution.
- TagResource ( array $params = [] )
Add a tag to a Step Functions resource.
- UntagResource ( array $params = [] )
Remove a tag from a Step Functions resource
- UpdateMapRun ( array $params = [] )
Updates an in-progress Map Run's configuration to include changes to the settings that control maximum concurrency and Map Run failure.
- UpdateStateMachine ( array $params = [] )
Updates an existing state machine by modifying its definition, roleArn, or loggingConfiguration.
- UpdateStateMachineAlias ( array $params = [] )
Updates the configuration of an existing state machine alias by modifying its description or routingConfiguration.
Paginators
Paginators handle automatically iterating over paginated API results. Paginators are associated with specific API operations, and they accept the parameters that the corresponding API operation accepts. You can get a paginator from a client class using getPaginator($paginatorName, $operationParameters). This client supports the following paginators:
Operations
CreateActivity
$result = $client->createActivity
([/* ... */]); $promise = $client->createActivityAsync
([/* ... */]);
Creates an activity. An activity is a task that you write in any programming language and host on any machine that has access to 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.
This operation is eventually consistent. The results are best effort and may not reflect very recent updates and changes.
CreateActivity
is an idempotent API. Subsequent requests won’t create a duplicate resource if it was already created. CreateActivity
's idempotency check is based on the activity name
. If a following request has different tags
values, Step Functions will ignore these differences and treat it as an idempotent request of the previous. In this case, tags
will not be updated, even if they are different.
Parameter Syntax
$result = $client->createActivity([ 'name' => '<string>', // REQUIRED 'tags' => [ [ 'key' => '<string>', 'value' => '<string>', ], // ... ], ]);
Parameter Details
Members
- name
-
- Required: Yes
- Type: string
The name of the activity to create. This name must be unique for your Amazon Web Services account and region for 90 days. For more information, see Limits Related to State Machine Executions in the Step Functions Developer Guide.
A name must not contain:
-
white space
-
brackets
< > { } [ ]
-
wildcard characters
? *
-
special characters
" # % \ ^ | ~ ` $ & , ; : /
-
control characters (
U+0000-001F
,U+007F-009F
)
To enable logging with CloudWatch Logs, the name should only contain 0-9, A-Z, a-z, - and _.
- tags
-
- Type: Array of Tag structures
The list of tags to add to a resource.
An array of key-value pairs. For more information, see Using Cost Allocation Tags in the Amazon Web Services Billing and Cost Management User Guide, and Controlling Access Using IAM Tags.
Tags may only contain Unicode letters, digits, white space, or these symbols:
_ . : / = + - @
.
Result Syntax
[ 'activityArn' => '<string>', 'creationDate' => <DateTime>, ]
Result Details
Members
- activityArn
-
- Required: Yes
- Type: string
The Amazon Resource Name (ARN) that identifies the created activity.
- creationDate
-
- Required: Yes
- Type: timestamp (string|DateTime or anything parsable by strtotime)
The date the activity is created.
Errors
-
The maximum number of activities has been reached. Existing activities must be deleted before a new activity can be created.
-
The provided name is not valid.
-
You've exceeded the number of tags allowed for a resource. See the Limits Topic in the Step Functions Developer Guide.
CreateStateMachine
$result = $client->createStateMachine
([/* ... */]); $promise = $client->createStateMachineAsync
([/* ... */]);
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. For more information, see Amazon States Language in the Step Functions User Guide.
If you set the publish
parameter of this API action to true
, it publishes version 1
as the first revision of the state machine.
This operation is eventually consistent. The results are best effort and may not reflect very recent updates and changes.
CreateStateMachine
is an idempotent API. Subsequent requests won’t create a duplicate resource if it was already created. CreateStateMachine
's idempotency check is based on the state machine name
, definition
, type
, LoggingConfiguration
, and TracingConfiguration
. The check is also based on the publish
and versionDescription
parameters. If a following request has a different roleArn
or tags
, Step Functions will ignore these differences and treat it as an idempotent request of the previous. In this case, roleArn
and tags
will not be updated, even if they are different.
Parameter Syntax
$result = $client->createStateMachine([ 'definition' => '<string>', // REQUIRED 'loggingConfiguration' => [ 'destinations' => [ [ 'cloudWatchLogsLogGroup' => [ 'logGroupArn' => '<string>', ], ], // ... ], 'includeExecutionData' => true || false, 'level' => 'ALL|ERROR|FATAL|OFF', ], 'name' => '<string>', // REQUIRED 'publish' => true || false, 'roleArn' => '<string>', // REQUIRED 'tags' => [ [ 'key' => '<string>', 'value' => '<string>', ], // ... ], 'tracingConfiguration' => [ 'enabled' => true || false, ], 'type' => 'STANDARD|EXPRESS', 'versionDescription' => '<string>', ]);
Parameter Details
Members
- definition
-
- Required: Yes
- Type: string
The Amazon States Language definition of the state machine. See Amazon States Language.
- loggingConfiguration
-
- Type: LoggingConfiguration structure
Defines what execution history events are logged and where they are logged.
By default, the
level
is set toOFF
. For more information see Log Levels in the Step Functions User Guide. - name
-
- Required: Yes
- Type: string
The name of the state machine.
A name must not contain:
-
white space
-
brackets
< > { } [ ]
-
wildcard characters
? *
-
special characters
" # % \ ^ | ~ ` $ & , ; : /
-
control characters (
U+0000-001F
,U+007F-009F
)
To enable logging with CloudWatch Logs, the name should only contain 0-9, A-Z, a-z, - and _.
- publish
-
- Type: boolean
Set to
true
to publish the first version of the state machine during creation. The default isfalse
. - roleArn
-
- Required: Yes
- Type: string
The Amazon Resource Name (ARN) of the IAM role to use for this state machine.
- tags
-
- Type: Array of Tag structures
Tags to be added when creating a state machine.
An array of key-value pairs. For more information, see Using Cost Allocation Tags in the Amazon Web Services Billing and Cost Management User Guide, and Controlling Access Using IAM Tags.
Tags may only contain Unicode letters, digits, white space, or these symbols:
_ . : / = + - @
. - tracingConfiguration
-
- Type: TracingConfiguration structure
Selects whether X-Ray tracing is enabled.
- type
-
- Type: string
Determines whether a Standard or Express state machine is created. The default is
STANDARD
. You cannot update thetype
of a state machine once it has been created. - versionDescription
-
- Type: string
Sets description about the state machine version. You can only set the description if the
publish
parameter is set totrue
. Otherwise, if you setversionDescription
, butpublish
tofalse
, this API action throwsValidationException
.
Result Syntax
[ 'creationDate' => <DateTime>, 'stateMachineArn' => '<string>', 'stateMachineVersionArn' => '<string>', ]
Result Details
Members
- creationDate
-
- Required: Yes
- Type: timestamp (string|DateTime or anything parsable by strtotime)
The date the state machine is created.
- stateMachineArn
-
- Required: Yes
- Type: string
The Amazon Resource Name (ARN) that identifies the created state machine.
- stateMachineVersionArn
-
- Type: string
The Amazon Resource Name (ARN) that identifies the created state machine version. If you do not set the
publish
parameter totrue
, this field returns null value.
Errors
-
The provided Amazon Resource Name (ARN) is not valid.
-
The provided Amazon States Language definition is not valid.
-
The provided name is not valid.
-
Your
tracingConfiguration
key does not match, orenabled
has not been set totrue
orfalse
. -
A state machine with the same name but a different definition or role ARN already exists.
-
The specified state machine is being deleted.
-
The maximum number of state machines has been reached. Existing state machines must be deleted before a new state machine can be created.
-
You've exceeded the number of tags allowed for a resource. See the Limits Topic in the Step Functions Developer Guide.
-
The input does not satisfy the constraints specified by an Amazon Web Services service.
-
Updating or deleting a resource can cause an inconsistent state. This error occurs when there're concurrent requests for DeleteStateMachineVersion, PublishStateMachineVersion, or UpdateStateMachine with the
publish
parameter set totrue
.HTTP Status Code: 409
CreateStateMachineAlias
$result = $client->createStateMachineAlias
([/* ... */]); $promise = $client->createStateMachineAliasAsync
([/* ... */]);
Creates an alias for a state machine that points to one or two versions of the same state machine. You can set your application to call StartExecution with an alias and update the version the alias uses without changing the client's code.
You can also map an alias to split StartExecution requests between two versions of a state machine. To do this, add a second RoutingConfig
object in the routingConfiguration
parameter. You must also specify the percentage of execution run requests each version should receive in both RoutingConfig
objects. Step Functions randomly chooses which version runs a given execution based on the percentage you specify.
To create an alias that points to a single version, specify a single RoutingConfig
object with a weight
set to 100.
You can create up to 100 aliases for each state machine. You must delete unused aliases using the DeleteStateMachineAlias API action.
CreateStateMachineAlias
is an idempotent API. Step Functions bases the idempotency check on the stateMachineArn
, description
, name
, and routingConfiguration
parameters. Requests that contain the same values for these parameters return a successful idempotent response without creating a duplicate resource.
Related operations:
Parameter Syntax
$result = $client->createStateMachineAlias([ 'description' => '<string>', 'name' => '<string>', // REQUIRED 'routingConfiguration' => [ // REQUIRED [ 'stateMachineVersionArn' => '<string>', // REQUIRED 'weight' => <integer>, // REQUIRED ], // ... ], ]);
Parameter Details
Members
- description
-
- Type: string
A description for the state machine alias.
- name
-
- Required: Yes
- Type: string
The name of the state machine alias.
To avoid conflict with version ARNs, don't use an integer in the name of the alias.
- routingConfiguration
-
- Required: Yes
- Type: Array of RoutingConfigurationListItem structures
The routing configuration of a state machine alias. The routing configuration shifts execution traffic between two state machine versions.
routingConfiguration
contains an array ofRoutingConfig
objects that specify up to two state machine versions. Step Functions then randomly choses which version to run an execution with based on the weight assigned to eachRoutingConfig
.
Result Syntax
[ 'creationDate' => <DateTime>, 'stateMachineAliasArn' => '<string>', ]
Result Details
Members
- creationDate
-
- Required: Yes
- Type: timestamp (string|DateTime or anything parsable by strtotime)
The date the state machine alias was created.
- stateMachineAliasArn
-
- Required: Yes
- Type: string
The Amazon Resource Name (ARN) that identifies the created state machine alias.
Errors
-
The provided Amazon Resource Name (ARN) is not valid.
-
The provided name is not valid.
-
The input does not satisfy the constraints specified by an Amazon Web Services service.
-
The specified state machine is being deleted.
-
Could not find the referenced resource.
-
Updating or deleting a resource can cause an inconsistent state. This error occurs when there're concurrent requests for DeleteStateMachineVersion, PublishStateMachineVersion, or UpdateStateMachine with the
publish
parameter set totrue
.HTTP Status Code: 409
-
ServiceQuotaExceededException:
The request would cause a service quota to be exceeded.
HTTP Status Code: 402
DeleteActivity
$result = $client->deleteActivity
([/* ... */]); $promise = $client->deleteActivityAsync
([/* ... */]);
Deletes an activity.
Parameter Syntax
$result = $client->deleteActivity([ 'activityArn' => '<string>', // REQUIRED ]);
Parameter Details
Members
- activityArn
-
- Required: Yes
- Type: string
The Amazon Resource Name (ARN) of the activity to delete.
Result Syntax
[]
Result Details
Errors
-
The provided Amazon Resource Name (ARN) is not valid.
DeleteStateMachine
$result = $client->deleteStateMachine
([/* ... */]); $promise = $client->deleteStateMachineAsync
([/* ... */]);
Deletes a state machine. This is an asynchronous operation: It sets the state machine's status to DELETING
and begins the deletion process.
A qualified state machine ARN can either refer to a Distributed Map state defined within a state machine, a version ARN, or an alias ARN.
The following are some examples of qualified and unqualified state machine ARNs:
-
The following qualified state machine ARN refers to a Distributed Map state with a label
mapStateLabel
in a state machine namedmyStateMachine
.arn:partition:states:region:account-id:stateMachine:myStateMachine/mapStateLabel
If you provide a qualified state machine ARN that refers to a Distributed Map state, the request fails with
ValidationException
. -
The following unqualified state machine ARN refers to a state machine named
myStateMachine
.arn:partition:states:region:account-id:stateMachine:myStateMachine
This API action also deletes all versions and aliases associated with a state machine.
For EXPRESS
state machines, the deletion happens eventually (usually in less than a minute). Running executions may emit logs after DeleteStateMachine
API is called.
Parameter Syntax
$result = $client->deleteStateMachine([ 'stateMachineArn' => '<string>', // REQUIRED ]);
Parameter Details
Members
- stateMachineArn
-
- Required: Yes
- Type: string
The Amazon Resource Name (ARN) of the state machine to delete.
Result Syntax
[]
Result Details
Errors
-
The provided Amazon Resource Name (ARN) is not valid.
-
The input does not satisfy the constraints specified by an Amazon Web Services service.
DeleteStateMachineAlias
$result = $client->deleteStateMachineAlias
([/* ... */]); $promise = $client->deleteStateMachineAliasAsync
([/* ... */]);
Deletes a state machine alias.
After you delete a state machine alias, you can't use it to start executions. When you delete a state machine alias, Step Functions doesn't delete the state machine versions that alias references.
Related operations:
Parameter Syntax
$result = $client->deleteStateMachineAlias([ 'stateMachineAliasArn' => '<string>', // REQUIRED ]);
Parameter Details
Members
- stateMachineAliasArn
-
- Required: Yes
- Type: string
The Amazon Resource Name (ARN) of the state machine alias to delete.
Result Syntax
[]
Result Details
Errors
-
The input does not satisfy the constraints specified by an Amazon Web Services service.
-
The provided Amazon Resource Name (ARN) is not valid.
-
Could not find the referenced resource.
-
Updating or deleting a resource can cause an inconsistent state. This error occurs when there're concurrent requests for DeleteStateMachineVersion, PublishStateMachineVersion, or UpdateStateMachine with the
publish
parameter set totrue
.HTTP Status Code: 409
DeleteStateMachineVersion
$result = $client->deleteStateMachineVersion
([/* ... */]); $promise = $client->deleteStateMachineVersionAsync
([/* ... */]);
Deletes a state machine version. After you delete a version, you can't call StartExecution using that version's ARN or use the version with a state machine alias.
Deleting a state machine version won't terminate its in-progress executions.
You can't delete a state machine version currently referenced by one or more aliases. Before you delete a version, you must either delete the aliases or update them to point to another state machine version.
Related operations:
Parameter Syntax
$result = $client->deleteStateMachineVersion([ 'stateMachineVersionArn' => '<string>', // REQUIRED ]);
Parameter Details
Members
- stateMachineVersionArn
-
- Required: Yes
- Type: string
The Amazon Resource Name (ARN) of the state machine version to delete.
Result Syntax
[]
Result Details
Errors
-
The input does not satisfy the constraints specified by an Amazon Web Services service.
-
The provided Amazon Resource Name (ARN) is not valid.
-
Updating or deleting a resource can cause an inconsistent state. This error occurs when there're concurrent requests for DeleteStateMachineVersion, PublishStateMachineVersion, or UpdateStateMachine with the
publish
parameter set totrue
.HTTP Status Code: 409
DescribeActivity
$result = $client->describeActivity
([/* ... */]); $promise = $client->describeActivityAsync
([/* ... */]);
Describes an activity.
This operation is eventually consistent. The results are best effort and may not reflect very recent updates and changes.
Parameter Syntax
$result = $client->describeActivity([ 'activityArn' => '<string>', // REQUIRED ]);
Parameter Details
Members
- activityArn
-
- Required: Yes
- Type: string
The Amazon Resource Name (ARN) of the activity to describe.
Result Syntax
[ 'activityArn' => '<string>', 'creationDate' => <DateTime>, 'name' => '<string>', ]
Result Details
Members
- activityArn
-
- Required: Yes
- Type: string
The Amazon Resource Name (ARN) that identifies the activity.
- creationDate
-
- Required: Yes
- Type: timestamp (string|DateTime or anything parsable by strtotime)
The date the activity is created.
- name
-
- Required: Yes
- Type: string
The name of the activity.
A name must not contain:
-
white space
-
brackets
< > { } [ ]
-
wildcard characters
? *
-
special characters
" # % \ ^ | ~ ` $ & , ; : /
-
control characters (
U+0000-001F
,U+007F-009F
)
To enable logging with CloudWatch Logs, the name should only contain 0-9, A-Z, a-z, - and _.
Errors
-
The specified activity does not exist.
-
The provided Amazon Resource Name (ARN) is not valid.
DescribeExecution
$result = $client->describeExecution
([/* ... */]); $promise = $client->describeExecutionAsync
([/* ... */]);
Provides information about a state machine execution, such as the state machine associated with the execution, the execution input and output, and relevant execution metadata. Use this API action to return the Map Run Amazon Resource Name (ARN) if the execution was dispatched by a Map Run.
If you specify a version or alias ARN when you call the StartExecution API action, DescribeExecution
returns that ARN.
This operation is eventually consistent. The results are best effort and may not reflect very recent updates and changes.
Executions of an EXPRESS
state machinearen't supported by DescribeExecution
unless a Map Run dispatched them.
Parameter Syntax
$result = $client->describeExecution([ 'executionArn' => '<string>', // REQUIRED ]);
Parameter Details
Members
- executionArn
-
- Required: Yes
- Type: string
The Amazon Resource Name (ARN) of the execution to describe.
Result Syntax
[ 'cause' => '<string>', 'error' => '<string>', 'executionArn' => '<string>', 'input' => '<string>', 'inputDetails' => [ 'included' => true || false, ], 'mapRunArn' => '<string>', 'name' => '<string>', 'output' => '<string>', 'outputDetails' => [ 'included' => true || false, ], 'startDate' => <DateTime>, 'stateMachineAliasArn' => '<string>', 'stateMachineArn' => '<string>', 'stateMachineVersionArn' => '<string>', 'status' => 'RUNNING|SUCCEEDED|FAILED|TIMED_OUT|ABORTED', 'stopDate' => <DateTime>, 'traceHeader' => '<string>', ]
Result Details
Members
- cause
-
- Type: string
The cause string if the state machine execution failed.
- error
-
- Type: string
The error string if the state machine execution failed.
- executionArn
-
- Required: Yes
- Type: string
The Amazon Resource Name (ARN) that identifies the execution.
- input
-
- Type: string
The string that contains the JSON input data of the execution. Length constraints apply to the payload size, and are expressed as bytes in UTF-8 encoding.
- inputDetails
-
- Type: CloudWatchEventsExecutionDataDetails structure
Provides details about execution input or output.
- mapRunArn
-
- Type: string
The Amazon Resource Name (ARN) that identifies a Map Run, which dispatched this execution.
- name
-
- Type: string
The name of the execution.
A name must not contain:
-
white space
-
brackets
< > { } [ ]
-
wildcard characters
? *
-
special characters
" # % \ ^ | ~ ` $ & , ; : /
-
control characters (
U+0000-001F
,U+007F-009F
)
To enable logging with CloudWatch Logs, the name should only contain 0-9, A-Z, a-z, - and _.
- output
-
- Type: string
The JSON output data of the execution. Length constraints apply to the payload size, and are expressed as bytes in UTF-8 encoding.
This field is set only if the execution succeeds. If the execution fails, this field is null.
- outputDetails
-
- Type: CloudWatchEventsExecutionDataDetails structure
Provides details about execution input or output.
- startDate
-
- Required: Yes
- Type: timestamp (string|DateTime or anything parsable by strtotime)
The date the execution is started.
- stateMachineAliasArn
-
- Type: string
The Amazon Resource Name (ARN) of the state machine alias associated with the execution. The alias ARN is a combination of state machine ARN and the alias name separated by a colon (:). For example,
stateMachineARN:PROD
.If you start an execution from a
StartExecution
request with a state machine version ARN, this field will be null. - stateMachineArn
-
- Required: Yes
- Type: string
The Amazon Resource Name (ARN) of the executed stated machine.
- stateMachineVersionArn
-
- Type: string
The Amazon Resource Name (ARN) of the state machine version associated with the execution. The version ARN is a combination of state machine ARN and the version number separated by a colon (:). For example,
stateMachineARN:1
.If you start an execution from a
StartExecution
request without specifying a state machine version or alias ARN, Step Functions returns a null value. - status
-
- Required: Yes
- Type: string
The current status of the execution.
- stopDate
-
- Type: timestamp (string|DateTime or anything parsable by strtotime)
If the execution ended, the date the execution stopped.
- traceHeader
-
- Type: string
The X-Ray trace header that was passed to the execution.
Errors
-
The specified execution does not exist.
-
The provided Amazon Resource Name (ARN) is not valid.
DescribeMapRun
$result = $client->describeMapRun
([/* ... */]); $promise = $client->describeMapRunAsync
([/* ... */]);
Provides information about a Map Run's configuration, progress, and results. For more information, see Examining Map Run in the Step Functions Developer Guide.
Parameter Syntax
$result = $client->describeMapRun([ 'mapRunArn' => '<string>', // REQUIRED ]);
Parameter Details
Members
- mapRunArn
-
- Required: Yes
- Type: string
The Amazon Resource Name (ARN) that identifies a Map Run.
Result Syntax
[ 'executionArn' => '<string>', 'executionCounts' => [ 'aborted' => <integer>, 'failed' => <integer>, 'pending' => <integer>, 'resultsWritten' => <integer>, 'running' => <integer>, 'succeeded' => <integer>, 'timedOut' => <integer>, 'total' => <integer>, ], 'itemCounts' => [ 'aborted' => <integer>, 'failed' => <integer>, 'pending' => <integer>, 'resultsWritten' => <integer>, 'running' => <integer>, 'succeeded' => <integer>, 'timedOut' => <integer>, 'total' => <integer>, ], 'mapRunArn' => '<string>', 'maxConcurrency' => <integer>, 'startDate' => <DateTime>, 'status' => 'RUNNING|SUCCEEDED|FAILED|ABORTED', 'stopDate' => <DateTime>, 'toleratedFailureCount' => <integer>, 'toleratedFailurePercentage' => <float>, ]
Result Details
Members
- executionArn
-
- Required: Yes
- Type: string
The Amazon Resource Name (ARN) that identifies the execution in which the Map Run was started.
- executionCounts
-
- Required: Yes
- Type: MapRunExecutionCounts structure
A JSON object that contains information about the total number of child workflow executions for the Map Run, and the count of child workflow executions for each status, such as
failed
andsucceeded
. - itemCounts
-
- Required: Yes
- Type: MapRunItemCounts structure
A JSON object that contains information about the total number of items, and the item count for each processing status, such as
pending
andfailed
. - mapRunArn
-
- Required: Yes
- Type: string
The Amazon Resource Name (ARN) that identifies a Map Run.
- maxConcurrency
-
- Required: Yes
- Type: int
The maximum number of child workflow executions configured to run in parallel for the Map Run at the same time.
- startDate
-
- Required: Yes
- Type: timestamp (string|DateTime or anything parsable by strtotime)
The date when the Map Run was started.
- status
-
- Required: Yes
- Type: string
The current status of the Map Run.
- stopDate
-
- Type: timestamp (string|DateTime or anything parsable by strtotime)
The date when the Map Run was stopped.
- toleratedFailureCount
-
- Required: Yes
- Type: long (int|float)
The maximum number of failed child workflow executions before the Map Run fails.
- toleratedFailurePercentage
-
- Required: Yes
- Type: float
The maximum percentage of failed child workflow executions before the Map Run fails.
Errors
-
Could not find the referenced resource.
-
The provided Amazon Resource Name (ARN) is not valid.
DescribeStateMachine
$result = $client->describeStateMachine
([/* ... */]); $promise = $client->describeStateMachineAsync
([/* ... */]);
Provides information about a state machine's definition, its IAM role Amazon Resource Name (ARN), and configuration.
A qualified state machine ARN can either refer to a Distributed Map state defined within a state machine, a version ARN, or an alias ARN.
The following are some examples of qualified and unqualified state machine ARNs:
-
The following qualified state machine ARN refers to a Distributed Map state with a label
mapStateLabel
in a state machine namedmyStateMachine
.arn:partition:states:region:account-id:stateMachine:myStateMachine/mapStateLabel
If you provide a qualified state machine ARN that refers to a Distributed Map state, the request fails with
ValidationException
. -
The following qualified state machine ARN refers to an alias named
PROD
.arn:<partition>:states:<region>:<account-id>:stateMachine:<myStateMachine:PROD>
If you provide a qualified state machine ARN that refers to a version ARN or an alias ARN, the request starts execution for that version or alias.
-
The following unqualified state machine ARN refers to a state machine named
myStateMachine
.arn:<partition>:states:<region>:<account-id>:stateMachine:<myStateMachine>
This API action returns the details for a state machine version if the stateMachineArn
you specify is a state machine version ARN.
This operation is eventually consistent. The results are best effort and may not reflect very recent updates and changes.
Parameter Syntax
$result = $client->describeStateMachine([ 'stateMachineArn' => '<string>', // REQUIRED ]);
Parameter Details
Members
- stateMachineArn
-
- Required: Yes
- Type: string
The Amazon Resource Name (ARN) of the state machine for which you want the information.
If you specify a state machine version ARN, this API returns details about that version. The version ARN is a combination of state machine ARN and the version number separated by a colon (:). For example,
stateMachineARN:1
.
Result Syntax
[ 'creationDate' => <DateTime>, 'definition' => '<string>', 'description' => '<string>', 'label' => '<string>', 'loggingConfiguration' => [ 'destinations' => [ [ 'cloudWatchLogsLogGroup' => [ 'logGroupArn' => '<string>', ], ], // ... ], 'includeExecutionData' => true || false, 'level' => 'ALL|ERROR|FATAL|OFF', ], 'name' => '<string>', 'revisionId' => '<string>', 'roleArn' => '<string>', 'stateMachineArn' => '<string>', 'status' => 'ACTIVE|DELETING', 'tracingConfiguration' => [ 'enabled' => true || false, ], 'type' => 'STANDARD|EXPRESS', ]
Result Details
Members
- creationDate
-
- Required: Yes
- Type: timestamp (string|DateTime or anything parsable by strtotime)
The date the state machine is created.
For a state machine version,
creationDate
is the date the version was created. - definition
-
- Required: Yes
- Type: string
The Amazon States Language definition of the state machine. See Amazon States Language.
- description
-
- Type: string
The description of the state machine version.
- label
-
- Type: string
A user-defined or an auto-generated string that identifies a
Map
state. This parameter is present only if thestateMachineArn
specified in input is a qualified state machine ARN. - loggingConfiguration
-
- Type: LoggingConfiguration structure
The
LoggingConfiguration
data type is used to set CloudWatch Logs options. - name
-
- Required: Yes
- Type: string
The name of the state machine.
A name must not contain:
-
white space
-
brackets
< > { } [ ]
-
wildcard characters
? *
-
special characters
" # % \ ^ | ~ ` $ & , ; : /
-
control characters (
U+0000-001F
,U+007F-009F
)
To enable logging with CloudWatch Logs, the name should only contain 0-9, A-Z, a-z, - and _.
- revisionId
-
- Type: string
The revision identifier for the state machine.
Use the
revisionId
parameter to compare between versions of a state machine configuration used for executions without performing a diff of the properties, such asdefinition
androleArn
. - roleArn
-
- Required: Yes
- Type: string
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 Amazon Web Services resources.)
- stateMachineArn
-
- Required: Yes
- Type: string
The Amazon Resource Name (ARN) that identifies the state machine.
If you specified a state machine version ARN in your request, the API returns the version ARN. The version ARN is a combination of state machine ARN and the version number separated by a colon (:). For example,
stateMachineARN:1
. - status
-
- Type: string
The current status of the state machine.
- tracingConfiguration
-
- Type: TracingConfiguration structure
Selects whether X-Ray tracing is enabled.
- type
-
- Required: Yes
- Type: string
The
type
of the state machine (STANDARD
orEXPRESS
).
Errors
-
The provided Amazon Resource Name (ARN) is not valid.
-
The specified state machine does not exist.
DescribeStateMachineAlias
$result = $client->describeStateMachineAlias
([/* ... */]); $promise = $client->describeStateMachineAliasAsync
([/* ... */]);
Returns details about a state machine alias.
Related operations:
Parameter Syntax
$result = $client->describeStateMachineAlias([ 'stateMachineAliasArn' => '<string>', // REQUIRED ]);
Parameter Details
Members
- stateMachineAliasArn
-
- Required: Yes
- Type: string
The Amazon Resource Name (ARN) of the state machine alias.
Result Syntax
[ 'creationDate' => <DateTime>, 'description' => '<string>', 'name' => '<string>', 'routingConfiguration' => [ [ 'stateMachineVersionArn' => '<string>', 'weight' => <integer>, ], // ... ], 'stateMachineAliasArn' => '<string>', 'updateDate' => <DateTime>, ]
Result Details
Members
- creationDate
-
- Type: timestamp (string|DateTime or anything parsable by strtotime)
The date the state machine alias was created.
- description
-
- Type: string
A description of the alias.
- name
-
- Type: string
The name of the state machine alias.
- routingConfiguration
-
- Type: Array of RoutingConfigurationListItem structures
The routing configuration of the alias.
- stateMachineAliasArn
-
- Type: string
The Amazon Resource Name (ARN) of the state machine alias.
- updateDate
-
- Type: timestamp (string|DateTime or anything parsable by strtotime)
The date the state machine alias was last updated.
For a newly created state machine, this is the same as the creation date.
Errors
-
The input does not satisfy the constraints specified by an Amazon Web Services service.
-
The provided Amazon Resource Name (ARN) is not valid.
-
Could not find the referenced resource.
DescribeStateMachineForExecution
$result = $client->describeStateMachineForExecution
([/* ... */]); $promise = $client->describeStateMachineForExecutionAsync
([/* ... */]);
Provides information about a state machine's definition, its execution role ARN, and configuration. If a Map Run dispatched the execution, this action returns the Map Run Amazon Resource Name (ARN) in the response. The state machine returned is the state machine associated with the Map Run.
This operation is eventually consistent. The results are best effort and may not reflect very recent updates and changes.
This API action is not supported by EXPRESS
state machines.
Parameter Syntax
$result = $client->describeStateMachineForExecution([ 'executionArn' => '<string>', // REQUIRED ]);
Parameter Details
Members
- executionArn
-
- Required: Yes
- Type: string
The Amazon Resource Name (ARN) of the execution you want state machine information for.
Result Syntax
[ 'definition' => '<string>', 'label' => '<string>', 'loggingConfiguration' => [ 'destinations' => [ [ 'cloudWatchLogsLogGroup' => [ 'logGroupArn' => '<string>', ], ], // ... ], 'includeExecutionData' => true || false, 'level' => 'ALL|ERROR|FATAL|OFF', ], 'mapRunArn' => '<string>', 'name' => '<string>', 'revisionId' => '<string>', 'roleArn' => '<string>', 'stateMachineArn' => '<string>', 'tracingConfiguration' => [ 'enabled' => true || false, ], 'updateDate' => <DateTime>, ]
Result Details
Members
- definition
-
- Required: Yes
- Type: string
The Amazon States Language definition of the state machine. See Amazon States Language.
- label
-
- Type: string
A user-defined or an auto-generated string that identifies a
Map
state. This field is returned only if theexecutionArn
is a child workflow execution that was started by a Distributed Map state. - loggingConfiguration
-
- Type: LoggingConfiguration structure
The
LoggingConfiguration
data type is used to set CloudWatch Logs options. - mapRunArn
-
- Type: string
The Amazon Resource Name (ARN) of the Map Run that started the child workflow execution. This field is returned only if the
executionArn
is a child workflow execution that was started by a Distributed Map state. - name
-
- Required: Yes
- Type: string
The name of the state machine associated with the execution.
- revisionId
-
- Type: string
The revision identifier for the state machine. The first revision ID when you create the state machine is null.
Use the state machine
revisionId
parameter to compare the revision of a state machine with the configuration of the state machine used for executions without performing a diff of the properties, such asdefinition
androleArn
. - roleArn
-
- Required: Yes
- Type: string
The Amazon Resource Name (ARN) of the IAM role of the State Machine for the execution.
- stateMachineArn
-
- Required: Yes
- Type: string
The Amazon Resource Name (ARN) of the state machine associated with the execution.
- tracingConfiguration
-
- Type: TracingConfiguration structure
Selects whether X-Ray tracing is enabled.
- updateDate
-
- Required: Yes
- Type: timestamp (string|DateTime or anything parsable by strtotime)
The date and time the state machine associated with an execution was updated. For a newly created state machine, this is the creation date.
Errors
-
The specified execution does not exist.
-
The provided Amazon Resource Name (ARN) is not valid.
GetActivityTask
$result = $client->getActivityTask
([/* ... */]); $promise = $client->getActivityTaskAsync
([/* ... */]);
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.
This API action isn't logged in CloudTrail.
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).
Polling with GetActivityTask
can cause latency in some implementations. See Avoid Latency When Polling for Activity Tasks in the Step Functions Developer Guide.
Parameter Syntax
$result = $client->getActivityTask([ 'activityArn' => '<string>', // REQUIRED 'workerName' => '<string>', ]);
Parameter Details
Members
- activityArn
-
- Required: Yes
- Type: string
The Amazon Resource Name (ARN) of the activity to retrieve tasks from (assigned when you create the task using CreateActivity.)
- workerName
-
- Type: string
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.
Result Syntax
[ 'input' => '<string>', 'taskToken' => '<string>', ]
Result Details
Members
- input
-
- Type: string
The string that contains the JSON input data for the task. Length constraints apply to the payload size, and are expressed as bytes in UTF-8 encoding.
- taskToken
-
- Type: string
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.
Errors
-
The specified activity does not exist.
-
The maximum number of workers concurrently polling for activity tasks has been reached.
-
The provided Amazon Resource Name (ARN) is not valid.
GetExecutionHistory
$result = $client->getExecutionHistory
([/* ... */]); $promise = $client->getExecutionHistoryAsync
([/* ... */]);
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 nextToken
is returned, there are more results available. The value of nextToken
is a unique pagination token for each page. Make the call again using the returned token to retrieve the next page. Keep all other arguments unchanged. Each pagination token expires after 24 hours. Using an expired pagination token will return an HTTP 400 InvalidToken error.
This API action is not supported by EXPRESS
state machines.
Parameter Syntax
$result = $client->getExecutionHistory([ 'executionArn' => '<string>', // REQUIRED 'includeExecutionData' => true || false, 'maxResults' => <integer>, 'nextToken' => '<string>', 'reverseOrder' => true || false, ]);
Parameter Details
Members
- executionArn
-
- Required: Yes
- Type: string
The Amazon Resource Name (ARN) of the execution.
- includeExecutionData
-
- Type: boolean
You can select whether execution data (input or output of a history event) is returned. The default is
true
. - maxResults
-
- Type: int
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 1000. 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
-
- Type: string
If
nextToken
is returned, there are more results available. The value ofnextToken
is a unique pagination token for each page. Make the call again using the returned token to retrieve the next page. Keep all other arguments unchanged. Each pagination token expires after 24 hours. Using an expired pagination token will return an HTTP 400 InvalidToken error. - reverseOrder
-
- Type: boolean
Lists events in descending order of their
timeStamp
.
Result Syntax
[ 'events' => [ [ 'activityFailedEventDetails' => [ 'cause' => '<string>', 'error' => '<string>', ], 'activityScheduleFailedEventDetails' => [ 'cause' => '<string>', 'error' => '<string>', ], 'activityScheduledEventDetails' => [ 'heartbeatInSeconds' => <integer>, 'input' => '<string>', 'inputDetails' => [ 'truncated' => true || false, ], 'resource' => '<string>', 'timeoutInSeconds' => <integer>, ], 'activityStartedEventDetails' => [ 'workerName' => '<string>', ], 'activitySucceededEventDetails' => [ 'output' => '<string>', 'outputDetails' => [ 'truncated' => true || false, ], ], 'activityTimedOutEventDetails' => [ 'cause' => '<string>', 'error' => '<string>', ], 'executionAbortedEventDetails' => [ 'cause' => '<string>', 'error' => '<string>', ], 'executionFailedEventDetails' => [ 'cause' => '<string>', 'error' => '<string>', ], 'executionStartedEventDetails' => [ 'input' => '<string>', 'inputDetails' => [ 'truncated' => true || false, ], 'roleArn' => '<string>', 'stateMachineAliasArn' => '<string>', 'stateMachineVersionArn' => '<string>', ], 'executionSucceededEventDetails' => [ 'output' => '<string>', 'outputDetails' => [ 'truncated' => true || false, ], ], 'executionTimedOutEventDetails' => [ 'cause' => '<string>', 'error' => '<string>', ], 'id' => <integer>, 'lambdaFunctionFailedEventDetails' => [ 'cause' => '<string>', 'error' => '<string>', ], 'lambdaFunctionScheduleFailedEventDetails' => [ 'cause' => '<string>', 'error' => '<string>', ], 'lambdaFunctionScheduledEventDetails' => [ 'input' => '<string>', 'inputDetails' => [ 'truncated' => true || false, ], 'resource' => '<string>', 'taskCredentials' => [ 'roleArn' => '<string>', ], 'timeoutInSeconds' => <integer>, ], 'lambdaFunctionStartFailedEventDetails' => [ 'cause' => '<string>', 'error' => '<string>', ], 'lambdaFunctionSucceededEventDetails' => [ 'output' => '<string>', 'outputDetails' => [ 'truncated' => true || false, ], ], 'lambdaFunctionTimedOutEventDetails' => [ 'cause' => '<string>', 'error' => '<string>', ], 'mapIterationAbortedEventDetails' => [ 'index' => <integer>, 'name' => '<string>', ], 'mapIterationFailedEventDetails' => [ 'index' => <integer>, 'name' => '<string>', ], 'mapIterationStartedEventDetails' => [ 'index' => <integer>, 'name' => '<string>', ], 'mapIterationSucceededEventDetails' => [ 'index' => <integer>, 'name' => '<string>', ], 'mapRunFailedEventDetails' => [ 'cause' => '<string>', 'error' => '<string>', ], 'mapRunStartedEventDetails' => [ 'mapRunArn' => '<string>', ], 'mapStateStartedEventDetails' => [ 'length' => <integer>, ], 'previousEventId' => <integer>, 'stateEnteredEventDetails' => [ 'input' => '<string>', 'inputDetails' => [ 'truncated' => true || false, ], 'name' => '<string>', ], 'stateExitedEventDetails' => [ 'name' => '<string>', 'output' => '<string>', 'outputDetails' => [ 'truncated' => true || false, ], ], 'taskFailedEventDetails' => [ 'cause' => '<string>', 'error' => '<string>', 'resource' => '<string>', 'resourceType' => '<string>', ], 'taskScheduledEventDetails' => [ 'heartbeatInSeconds' => <integer>, 'parameters' => '<string>', 'region' => '<string>', 'resource' => '<string>', 'resourceType' => '<string>', 'taskCredentials' => [ 'roleArn' => '<string>', ], 'timeoutInSeconds' => <integer>, ], 'taskStartFailedEventDetails' => [ 'cause' => '<string>', 'error' => '<string>', 'resource' => '<string>', 'resourceType' => '<string>', ], 'taskStartedEventDetails' => [ 'resource' => '<string>', 'resourceType' => '<string>', ], 'taskSubmitFailedEventDetails' => [ 'cause' => '<string>', 'error' => '<string>', 'resource' => '<string>', 'resourceType' => '<string>', ], 'taskSubmittedEventDetails' => [ 'output' => '<string>', 'outputDetails' => [ 'truncated' => true || false, ], 'resource' => '<string>', 'resourceType' => '<string>', ], 'taskSucceededEventDetails' => [ 'output' => '<string>', 'outputDetails' => [ 'truncated' => true || false, ], 'resource' => '<string>', 'resourceType' => '<string>', ], 'taskTimedOutEventDetails' => [ 'cause' => '<string>', 'error' => '<string>', 'resource' => '<string>', 'resourceType' => '<string>', ], 'timestamp' => <DateTime>, 'type' => 'ActivityFailed|ActivityScheduled|ActivityScheduleFailed|ActivityStarted|ActivitySucceeded|ActivityTimedOut|ChoiceStateEntered|ChoiceStateExited|ExecutionAborted|ExecutionFailed|ExecutionStarted|ExecutionSucceeded|ExecutionTimedOut|FailStateEntered|LambdaFunctionFailed|LambdaFunctionScheduled|LambdaFunctionScheduleFailed|LambdaFunctionStarted|LambdaFunctionStartFailed|LambdaFunctionSucceeded|LambdaFunctionTimedOut|MapIterationAborted|MapIterationFailed|MapIterationStarted|MapIterationSucceeded|MapStateAborted|MapStateEntered|MapStateExited|MapStateFailed|MapStateStarted|MapStateSucceeded|ParallelStateAborted|ParallelStateEntered|ParallelStateExited|ParallelStateFailed|ParallelStateStarted|ParallelStateSucceeded|PassStateEntered|PassStateExited|SucceedStateEntered|SucceedStateExited|TaskFailed|TaskScheduled|TaskStarted|TaskStartFailed|TaskStateAborted|TaskStateEntered|TaskStateExited|TaskSubmitFailed|TaskSubmitted|TaskSucceeded|TaskTimedOut|WaitStateAborted|WaitStateEntered|WaitStateExited|MapRunAborted|MapRunFailed|MapRunStarted|MapRunSucceeded', ], // ... ], 'nextToken' => '<string>', ]
Result Details
Members
- events
-
- Required: Yes
- Type: Array of HistoryEvent structures
The list of events that occurred in the execution.
- nextToken
-
- Type: string
If
nextToken
is returned, there are more results available. The value ofnextToken
is a unique pagination token for each page. Make the call again using the returned token to retrieve the next page. Keep all other arguments unchanged. Each pagination token expires after 24 hours. Using an expired pagination token will return an HTTP 400 InvalidToken error.
Errors
-
The specified execution does not exist.
-
The provided Amazon Resource Name (ARN) is not valid.
-
The provided token is not valid.
ListActivities
$result = $client->listActivities
([/* ... */]); $promise = $client->listActivitiesAsync
([/* ... */]);
Lists the existing activities.
If nextToken
is returned, there are more results available. The value of nextToken
is a unique pagination token for each page. Make the call again using the returned token to retrieve the next page. Keep all other arguments unchanged. Each pagination token expires after 24 hours. Using an expired pagination token will return an HTTP 400 InvalidToken error.
This operation is eventually consistent. The results are best effort and may not reflect very recent updates and changes.
Parameter Syntax
$result = $client->listActivities([ 'maxResults' => <integer>, 'nextToken' => '<string>', ]);
Parameter Details
Members
- maxResults
-
- Type: int
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 1000. 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
-
- Type: string
If
nextToken
is returned, there are more results available. The value ofnextToken
is a unique pagination token for each page. Make the call again using the returned token to retrieve the next page. Keep all other arguments unchanged. Each pagination token expires after 24 hours. Using an expired pagination token will return an HTTP 400 InvalidToken error.
Result Syntax
[ 'activities' => [ [ 'activityArn' => '<string>', 'creationDate' => <DateTime>, 'name' => '<string>', ], // ... ], 'nextToken' => '<string>', ]
Result Details
Members
- activities
-
- Required: Yes
- Type: Array of ActivityListItem structures
The list of activities.
- nextToken
-
- Type: string
If
nextToken
is returned, there are more results available. The value ofnextToken
is a unique pagination token for each page. Make the call again using the returned token to retrieve the next page. Keep all other arguments unchanged. Each pagination token expires after 24 hours. Using an expired pagination token will return an HTTP 400 InvalidToken error.
Errors
-
The provided token is not valid.
ListExecutions
$result = $client->listExecutions
([/* ... */]); $promise = $client->listExecutionsAsync
([/* ... */]);
Lists all executions of a state machine or a Map Run. You can list all executions related to a state machine by specifying a state machine Amazon Resource Name (ARN), or those related to a Map Run by specifying a Map Run ARN.
You can also provide a state machine alias ARN or version ARN to list the executions associated with a specific alias or version.
Results are sorted by time, with the most recent execution first.
If nextToken
is returned, there are more results available. The value of nextToken
is a unique pagination token for each page. Make the call again using the returned token to retrieve the next page. Keep all other arguments unchanged. Each pagination token expires after 24 hours. Using an expired pagination token will return an HTTP 400 InvalidToken error.
This operation is eventually consistent. The results are best effort and may not reflect very recent updates and changes.
This API action is not supported by EXPRESS
state machines.
Parameter Syntax
$result = $client->listExecutions([ 'mapRunArn' => '<string>', 'maxResults' => <integer>, 'nextToken' => '<string>', 'stateMachineArn' => '<string>', 'statusFilter' => 'RUNNING|SUCCEEDED|FAILED|TIMED_OUT|ABORTED', ]);
Parameter Details
Members
- mapRunArn
-
- Type: string
The Amazon Resource Name (ARN) of the Map Run that started the child workflow executions. If the
mapRunArn
field is specified, a list of all of the child workflow executions started by a Map Run is returned. For more information, see Examining Map Run in the Step Functions Developer Guide.You can specify either a
mapRunArn
or astateMachineArn
, but not both. - maxResults
-
- Type: int
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 1000. 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
-
- Type: string
If
nextToken
is returned, there are more results available. The value ofnextToken
is a unique pagination token for each page. Make the call again using the returned token to retrieve the next page. Keep all other arguments unchanged. Each pagination token expires after 24 hours. Using an expired pagination token will return an HTTP 400 InvalidToken error. - stateMachineArn
-
- Type: string
The Amazon Resource Name (ARN) of the state machine whose executions is listed.
You can specify either a
mapRunArn
or astateMachineArn
, but not both.You can also return a list of executions associated with a specific alias or version, by specifying an alias ARN or a version ARN in the
stateMachineArn
parameter. - statusFilter
-
- Type: string
If specified, only list the executions whose current execution status matches the given filter.
Result Syntax
[ 'executions' => [ [ 'executionArn' => '<string>', 'itemCount' => <integer>, 'mapRunArn' => '<string>', 'name' => '<string>', 'startDate' => <DateTime>, 'stateMachineAliasArn' => '<string>', 'stateMachineArn' => '<string>', 'stateMachineVersionArn' => '<string>', 'status' => 'RUNNING|SUCCEEDED|FAILED|TIMED_OUT|ABORTED', 'stopDate' => <DateTime>, ], // ... ], 'nextToken' => '<string>', ]
Result Details
Members
- executions
-
- Required: Yes
- Type: Array of ExecutionListItem structures
The list of matching executions.
- nextToken
-
- Type: string
If
nextToken
is returned, there are more results available. The value ofnextToken
is a unique pagination token for each page. Make the call again using the returned token to retrieve the next page. Keep all other arguments unchanged. Each pagination token expires after 24 hours. Using an expired pagination token will return an HTTP 400 InvalidToken error.
Errors
-
The provided Amazon Resource Name (ARN) is not valid.
-
The provided token is not valid.
-
The specified state machine does not exist.
-
The input does not satisfy the constraints specified by an Amazon Web Services service.
-
Could not find the referenced resource.
ListMapRuns
$result = $client->listMapRuns
([/* ... */]); $promise = $client->listMapRunsAsync
([/* ... */]);
Lists all Map Runs that were started by a given state machine execution. Use this API action to obtain Map Run ARNs, and then call DescribeMapRun
to obtain more information, if needed.
Parameter Syntax
$result = $client->listMapRuns([ 'executionArn' => '<string>', // REQUIRED 'maxResults' => <integer>, 'nextToken' => '<string>', ]);
Parameter Details
Members
- executionArn
-
- Required: Yes
- Type: string
The Amazon Resource Name (ARN) of the execution for which the Map Runs must be listed.
- maxResults
-
- Type: int
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 1000. 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
-
- Type: string
If
nextToken
is returned, there are more results available. The value ofnextToken
is a unique pagination token for each page. Make the call again using the returned token to retrieve the next page. Keep all other arguments unchanged. Each pagination token expires after 24 hours. Using an expired pagination token will return an HTTP 400 InvalidToken error.
Result Syntax
[ 'mapRuns' => [ [ 'executionArn' => '<string>', 'mapRunArn' => '<string>', 'startDate' => <DateTime>, 'stateMachineArn' => '<string>', 'stopDate' => <DateTime>, ], // ... ], 'nextToken' => '<string>', ]
Result Details
Members
- mapRuns
-
- Required: Yes
- Type: Array of MapRunListItem structures
An array that lists information related to a Map Run, such as the Amazon Resource Name (ARN) of the Map Run and the ARN of the state machine that started the Map Run.
- nextToken
-
- Type: string
If
nextToken
is returned, there are more results available. The value ofnextToken
is a unique pagination token for each page. Make the call again using the returned token to retrieve the next page. Keep all other arguments unchanged. Each pagination token expires after 24 hours. Using an expired pagination token will return an HTTP 400 InvalidToken error.
Errors
-
The specified execution does not exist.
-
The provided Amazon Resource Name (ARN) is not valid.
-
The provided token is not valid.
ListStateMachineAliases
$result = $client->listStateMachineAliases
([/* ... */]); $promise = $client->listStateMachineAliasesAsync
([/* ... */]);
Lists aliases for a specified state machine ARN. Results are sorted by time, with the most recently created aliases listed first.
To list aliases that reference a state machine version, you can specify the version ARN in the stateMachineArn
parameter.
If nextToken
is returned, there are more results available. The value of nextToken
is a unique pagination token for each page. Make the call again using the returned token to retrieve the next page. Keep all other arguments unchanged. Each pagination token expires after 24 hours. Using an expired pagination token will return an HTTP 400 InvalidToken error.
Related operations:
Parameter Syntax
$result = $client->listStateMachineAliases([ 'maxResults' => <integer>, 'nextToken' => '<string>', 'stateMachineArn' => '<string>', // REQUIRED ]);
Parameter Details
Members
- maxResults
-
- Type: int
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 1000. 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
-
- Type: string
If
nextToken
is returned, there are more results available. The value ofnextToken
is a unique pagination token for each page. Make the call again using the returned token to retrieve the next page. Keep all other arguments unchanged. Each pagination token expires after 24 hours. Using an expired pagination token will return an HTTP 400 InvalidToken error. - stateMachineArn
-
- Required: Yes
- Type: string
The Amazon Resource Name (ARN) of the state machine for which you want to list aliases.
If you specify a state machine version ARN, this API returns a list of aliases for that version.
Result Syntax
[ 'nextToken' => '<string>', 'stateMachineAliases' => [ [ 'creationDate' => <DateTime>, 'stateMachineAliasArn' => '<string>', ], // ... ], ]
Result Details
Members
- nextToken
-
- Type: string
If
nextToken
is returned, there are more results available. The value ofnextToken
is a unique pagination token for each page. Make the call again using the returned token to retrieve the next page. Keep all other arguments unchanged. Each pagination token expires after 24 hours. Using an expired pagination token will return an HTTP 400 InvalidToken error. - stateMachineAliases
-
- Required: Yes
- Type: Array of StateMachineAliasListItem structures
Aliases for the state machine.
Errors
-
The provided Amazon Resource Name (ARN) is not valid.
-
The provided token is not valid.
-
Could not find the referenced resource.
-
The specified state machine does not exist.
-
The specified state machine is being deleted.
ListStateMachineVersions
$result = $client->listStateMachineVersions
([/* ... */]); $promise = $client->listStateMachineVersionsAsync
([/* ... */]);
Lists versions for the specified state machine Amazon Resource Name (ARN).
The results are sorted in descending order of the version creation time.
If nextToken
is returned, there are more results available. The value of nextToken
is a unique pagination token for each page. Make the call again using the returned token to retrieve the next page. Keep all other arguments unchanged. Each pagination token expires after 24 hours. Using an expired pagination token will return an HTTP 400 InvalidToken error.
Related operations:
Parameter Syntax
$result = $client->listStateMachineVersions([ 'maxResults' => <integer>, 'nextToken' => '<string>', 'stateMachineArn' => '<string>', // REQUIRED ]);
Parameter Details
Members
- maxResults
-
- Type: int
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 1000. 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
-
- Type: string
If
nextToken
is returned, there are more results available. The value ofnextToken
is a unique pagination token for each page. Make the call again using the returned token to retrieve the next page. Keep all other arguments unchanged. Each pagination token expires after 24 hours. Using an expired pagination token will return an HTTP 400 InvalidToken error. - stateMachineArn
-
- Required: Yes
- Type: string
The Amazon Resource Name (ARN) of the state machine.
Result Syntax
[ 'nextToken' => '<string>', 'stateMachineVersions' => [ [ 'creationDate' => <DateTime>, 'stateMachineVersionArn' => '<string>', ], // ... ], ]
Result Details
Members
- nextToken
-
- Type: string
If
nextToken
is returned, there are more results available. The value ofnextToken
is a unique pagination token for each page. Make the call again using the returned token to retrieve the next page. Keep all other arguments unchanged. Each pagination token expires after 24 hours. Using an expired pagination token will return an HTTP 400 InvalidToken error. - stateMachineVersions
-
- Required: Yes
- Type: Array of StateMachineVersionListItem structures
Versions for the state machine.
Errors
-
The input does not satisfy the constraints specified by an Amazon Web Services service.
-
The provided Amazon Resource Name (ARN) is not valid.
-
The provided token is not valid.
ListStateMachines
$result = $client->listStateMachines
([/* ... */]); $promise = $client->listStateMachinesAsync
([/* ... */]);
Lists the existing state machines.
If nextToken
is returned, there are more results available. The value of nextToken
is a unique pagination token for each page. Make the call again using the returned token to retrieve the next page. Keep all other arguments unchanged. Each pagination token expires after 24 hours. Using an expired pagination token will return an HTTP 400 InvalidToken error.
This operation is eventually consistent. The results are best effort and may not reflect very recent updates and changes.
Parameter Syntax
$result = $client->listStateMachines([ 'maxResults' => <integer>, 'nextToken' => '<string>', ]);
Parameter Details
Members
- maxResults
-
- Type: int
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 1000. 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
-
- Type: string
If
nextToken
is returned, there are more results available. The value ofnextToken
is a unique pagination token for each page. Make the call again using the returned token to retrieve the next page. Keep all other arguments unchanged. Each pagination token expires after 24 hours. Using an expired pagination token will return an HTTP 400 InvalidToken error.
Result Syntax
[ 'nextToken' => '<string>', 'stateMachines' => [ [ 'creationDate' => <DateTime>, 'name' => '<string>', 'stateMachineArn' => '<string>', 'type' => 'STANDARD|EXPRESS', ], // ... ], ]
Result Details
Members
- nextToken
-
- Type: string
If
nextToken
is returned, there are more results available. The value ofnextToken
is a unique pagination token for each page. Make the call again using the returned token to retrieve the next page. Keep all other arguments unchanged. Each pagination token expires after 24 hours. Using an expired pagination token will return an HTTP 400 InvalidToken error. - stateMachines
-
- Required: Yes
- Type: Array of StateMachineListItem structures
Errors
-
The provided token is not valid.
ListTagsForResource
$result = $client->listTagsForResource
([/* ... */]); $promise = $client->listTagsForResourceAsync
([/* ... */]);
List tags for a given resource.
Tags may only contain Unicode letters, digits, white space, or these symbols: _ . : / = + - @
.
Parameter Syntax
$result = $client->listTagsForResource([ 'resourceArn' => '<string>', // REQUIRED ]);
Parameter Details
Members
- resourceArn
-
- Required: Yes
- Type: string
The Amazon Resource Name (ARN) for the Step Functions state machine or activity.
Result Syntax
[ 'tags' => [ [ 'key' => '<string>', 'value' => '<string>', ], // ... ], ]
Result Details
Members
- tags
-
- Type: Array of Tag structures
An array of tags associated with the resource.
Errors
-
The provided Amazon Resource Name (ARN) is not valid.
-
Could not find the referenced resource.
PublishStateMachineVersion
$result = $client->publishStateMachineVersion
([/* ... */]); $promise = $client->publishStateMachineVersionAsync
([/* ... */]);
Creates a version from the current revision of a state machine. Use versions to create immutable snapshots of your state machine. You can start executions from versions either directly or with an alias. To create an alias, use CreateStateMachineAlias.
You can publish up to 1000 versions for each state machine. You must manually delete unused versions using the DeleteStateMachineVersion API action.
PublishStateMachineVersion
is an idempotent API. It doesn't create a duplicate state machine version if it already exists for the current revision. Step Functions bases PublishStateMachineVersion
's idempotency check on the stateMachineArn
, name
, and revisionId
parameters. Requests with the same parameters return a successful idempotent response. If you don't specify a revisionId
, Step Functions checks for a previously published version of the state machine's current revision.
Related operations:
Parameter Syntax
$result = $client->publishStateMachineVersion([ 'description' => '<string>', 'revisionId' => '<string>', 'stateMachineArn' => '<string>', // REQUIRED ]);
Parameter Details
Members
- description
-
- Type: string
An optional description of the state machine version.
- revisionId
-
- Type: string
Only publish the state machine version if the current state machine's revision ID matches the specified ID.
Use this option to avoid publishing a version if the state machine changed since you last updated it. If the specified revision ID doesn't match the state machine's current revision ID, the API returns
ConflictException
.To specify an initial revision ID for a state machine with no revision ID assigned, specify the string
INITIAL
for therevisionId
parameter. For example, you can specify arevisionID
ofINITIAL
when you create a state machine using the CreateStateMachine API action. - stateMachineArn
-
- Required: Yes
- Type: string
The Amazon Resource Name (ARN) of the state machine.
Result Syntax
[ 'creationDate' => <DateTime>, 'stateMachineVersionArn' => '<string>', ]
Result Details
Members
- creationDate
-
- Required: Yes
- Type: timestamp (string|DateTime or anything parsable by strtotime)
The date the version was created.
- stateMachineVersionArn
-
- Required: Yes
- Type: string
The Amazon Resource Name (ARN) (ARN) that identifies the state machine version.
Errors
-
The input does not satisfy the constraints specified by an Amazon Web Services service.
-
The specified state machine is being deleted.
-
The specified state machine does not exist.
-
ServiceQuotaExceededException:
The request would cause a service quota to be exceeded.
HTTP Status Code: 402
-
Updating or deleting a resource can cause an inconsistent state. This error occurs when there're concurrent requests for DeleteStateMachineVersion, PublishStateMachineVersion, or UpdateStateMachine with the
publish
parameter set totrue
.HTTP Status Code: 409
-
The provided Amazon Resource Name (ARN) is not valid.
SendTaskFailure
$result = $client->sendTaskFailure
([/* ... */]); $promise = $client->sendTaskFailureAsync
([/* ... */]);
Used by activity workers and task states using the callback pattern to report that the task identified by the taskToken
failed.
Parameter Syntax
$result = $client->sendTaskFailure([ 'cause' => '<string>', 'error' => '<string>', 'taskToken' => '<string>', // REQUIRED ]);
Parameter Details
Members
- cause
-
- Type: string
A more detailed explanation of the cause of the failure.
- error
-
- Type: string
The error code of the failure.
- taskToken
-
- Required: Yes
- Type: string
The token that represents this task. Task tokens are generated by Step Functions when tasks are assigned to a worker, or in the context object when a workflow enters a task state. See GetActivityTaskOutput$taskToken.
Result Syntax
[]
Result Details
Errors
-
This error does not currently have a description.
-
The provided token is not valid.
-
This error does not currently have a description.
SendTaskHeartbeat
$result = $client->sendTaskHeartbeat
([/* ... */]); $promise = $client->sendTaskHeartbeatAsync
([/* ... */]);
Used by activity workers and task states using the callback pattern to report to Step Functions 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 (HeartbeatSeconds
). 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
entry for activities, or a TaskTimedOut
entry for for tasks using the job run or callback pattern.
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. Use HeartbeatSeconds
to configure the timeout interval for heartbeats.
Parameter Syntax
$result = $client->sendTaskHeartbeat([ 'taskToken' => '<string>', // REQUIRED ]);
Parameter Details
Members
- taskToken
-
- Required: Yes
- Type: string
The token that represents this task. Task tokens are generated by Step Functions when tasks are assigned to a worker, or in the context object when a workflow enters a task state. See GetActivityTaskOutput$taskToken.
Result Syntax
[]
Result Details
Errors
-
This error does not currently have a description.
-
The provided token is not valid.
-
This error does not currently have a description.
SendTaskSuccess
$result = $client->sendTaskSuccess
([/* ... */]); $promise = $client->sendTaskSuccessAsync
([/* ... */]);
Used by activity workers and task states using the callback pattern to report that the task identified by the taskToken
completed successfully.
Parameter Syntax
$result = $client->sendTaskSuccess([ 'output' => '<string>', // REQUIRED 'taskToken' => '<string>', // REQUIRED ]);
Parameter Details
Members
- output
-
- Required: Yes
- Type: string
The JSON output of the task. Length constraints apply to the payload size, and are expressed as bytes in UTF-8 encoding.
- taskToken
-
- Required: Yes
- Type: string
The token that represents this task. Task tokens are generated by Step Functions when tasks are assigned to a worker, or in the context object when a workflow enters a task state. See GetActivityTaskOutput$taskToken.
Result Syntax
[]
Result Details
Errors
-
This error does not currently have a description.
-
The provided JSON output data is not valid.
-
The provided token is not valid.
-
This error does not currently have a description.
StartExecution
$result = $client->startExecution
([/* ... */]); $promise = $client->startExecutionAsync
([/* ... */]);
Starts a state machine execution.
A qualified state machine ARN can either refer to a Distributed Map state defined within a state machine, a version ARN, or an alias ARN.
The following are some examples of qualified and unqualified state machine ARNs:
-
The following qualified state machine ARN refers to a Distributed Map state with a label
mapStateLabel
in a state machine namedmyStateMachine
.arn:partition:states:region:account-id:stateMachine:myStateMachine/mapStateLabel
If you provide a qualified state machine ARN that refers to a Distributed Map state, the request fails with
ValidationException
. -
The following qualified state machine ARN refers to an alias named
PROD
.arn:<partition>:states:<region>:<account-id>:stateMachine:<myStateMachine:PROD>
If you provide a qualified state machine ARN that refers to a version ARN or an alias ARN, the request starts execution for that version or alias.
-
The following unqualified state machine ARN refers to a state machine named
myStateMachine
.arn:<partition>:states:<region>:<account-id>:stateMachine:<myStateMachine>
If you start an execution with an unqualified state machine ARN, Step Functions uses the latest revision of the state machine for the execution.
To start executions of a state machine version, call StartExecution
and provide the version ARN or the ARN of an alias that points to the version.
StartExecution
is idempotent for STANDARD
workflows. For a STANDARD
workflow, if you call StartExecution
with the same name and input as a running execution, the call succeeds and return the same response as the original request. If the execution is closed or if the input is different, it returns a 400 ExecutionAlreadyExists
error. You can reuse names after 90 days.
StartExecution
isn't idempotent for EXPRESS
workflows.
Parameter Syntax
$result = $client->startExecution([ 'input' => '<string>', 'name' => '<string>', 'stateMachineArn' => '<string>', // REQUIRED 'traceHeader' => '<string>', ]);
Parameter Details
Members
- input
-
- Type: string
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": "{}"
Length constraints apply to the payload size, and are expressed as bytes in UTF-8 encoding.
- name
-
- Type: string
Optional name of the execution. This name must be unique for your Amazon Web Services account, Region, and state machine for 90 days. For more information, see Limits Related to State Machine Executions in the Step Functions Developer Guide.
A name must not contain:
-
white space
-
brackets
< > { } [ ]
-
wildcard characters
? *
-
special characters
" # % \ ^ | ~ ` $ & , ; : /
-
control characters (
U+0000-001F
,U+007F-009F
)
To enable logging with CloudWatch Logs, the name should only contain 0-9, A-Z, a-z, - and _.
- stateMachineArn
-
- Required: Yes
- Type: string
The Amazon Resource Name (ARN) of the state machine to execute.
The
stateMachineArn
parameter accepts one of the following inputs:-
An unqualified state machine ARN – Refers to a state machine ARN that isn't qualified with a version or alias ARN. The following is an example of an unqualified state machine ARN.
arn:<partition>:states:<region>:<account-id>:stateMachine:<myStateMachine>
Step Functions doesn't associate state machine executions that you start with an unqualified ARN with a version. This is true even if that version uses the same revision that the execution used.
-
A state machine version ARN – Refers to a version ARN, which is a combination of state machine ARN and the version number separated by a colon (:). The following is an example of the ARN for version 10.
arn:<partition>:states:<region>:<account-id>:stateMachine:<myStateMachine>:10
Step Functions doesn't associate executions that you start with a version ARN with any aliases that point to that version.
-
A state machine alias ARN – Refers to an alias ARN, which is a combination of state machine ARN and the alias name separated by a colon (:). The following is an example of the ARN for an alias named
PROD
.arn:<partition>:states:<region>:<account-id>:stateMachine:<myStateMachine:PROD>
Step Functions associates executions that you start with an alias ARN with that alias and the state machine version used for that execution.
- traceHeader
-
- Type: string
Passes the X-Ray trace header. The trace header can also be passed in the request payload.
Result Syntax
[ 'executionArn' => '<string>', 'startDate' => <DateTime>, ]
Result Details
Members
- executionArn
-
- Required: Yes
- Type: string
The Amazon Resource Name (ARN) that identifies the execution.
- startDate
-
- Required: Yes
- Type: timestamp (string|DateTime or anything parsable by strtotime)
The date the execution is started.
Errors
-
The maximum number of running executions has been reached. Running executions must end or be stopped before a new execution can be started.
-
The execution has the same
name
as another execution (but a differentinput
).Executions with the same
name
andinput
are considered idempotent. -
The provided Amazon Resource Name (ARN) is not valid.
-
The provided JSON input data is not valid.
-
The provided name is not valid.
-
The specified state machine does not exist.
-
The specified state machine is being deleted.
-
The input does not satisfy the constraints specified by an Amazon Web Services service.
StartSyncExecution
$result = $client->startSyncExecution
([/* ... */]); $promise = $client->startSyncExecutionAsync
([/* ... */]);
Starts a Synchronous Express state machine execution. StartSyncExecution
is not available for STANDARD
workflows.
StartSyncExecution
will return a 200 OK
response, even if your execution fails, because the status code in the API response doesn't reflect function errors. Error codes are reserved for errors that prevent your execution from running, such as permissions errors, limit errors, or issues with your state machine code and configuration.
This API action isn't logged in CloudTrail.
Parameter Syntax
$result = $client->startSyncExecution([ 'input' => '<string>', 'name' => '<string>', 'stateMachineArn' => '<string>', // REQUIRED 'traceHeader' => '<string>', ]);
Parameter Details
Members
- input
-
- Type: string
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": "{}"
Length constraints apply to the payload size, and are expressed as bytes in UTF-8 encoding.
- name
-
- Type: string
The name of the execution.
- stateMachineArn
-
- Required: Yes
- Type: string
The Amazon Resource Name (ARN) of the state machine to execute.
- traceHeader
-
- Type: string
Passes the X-Ray trace header. The trace header can also be passed in the request payload.
Result Syntax
[ 'billingDetails' => [ 'billedDurationInMilliseconds' => <integer>, 'billedMemoryUsedInMB' => <integer>, ], 'cause' => '<string>', 'error' => '<string>', 'executionArn' => '<string>', 'input' => '<string>', 'inputDetails' => [ 'included' => true || false, ], 'name' => '<string>', 'output' => '<string>', 'outputDetails' => [ 'included' => true || false, ], 'startDate' => <DateTime>, 'stateMachineArn' => '<string>', 'status' => 'SUCCEEDED|FAILED|TIMED_OUT', 'stopDate' => <DateTime>, 'traceHeader' => '<string>', ]
Result Details
Members
- billingDetails
-
- Type: BillingDetails structure
An object that describes workflow billing details, including billed duration and memory use.
- cause
-
- Type: string
A more detailed explanation of the cause of the failure.
- error
-
- Type: string
The error code of the failure.
- executionArn
-
- Required: Yes
- Type: string
The Amazon Resource Name (ARN) that identifies the execution.
- input
-
- Type: string
The string that contains the JSON input data of the execution. Length constraints apply to the payload size, and are expressed as bytes in UTF-8 encoding.
- inputDetails
-
- Type: CloudWatchEventsExecutionDataDetails structure
Provides details about execution input or output.
- name
-
- Type: string
The name of the execution.
- output
-
- Type: string
The JSON output data of the execution. Length constraints apply to the payload size, and are expressed as bytes in UTF-8 encoding.
This field is set only if the execution succeeds. If the execution fails, this field is null.
- outputDetails
-
- Type: CloudWatchEventsExecutionDataDetails structure
Provides details about execution input or output.
- startDate
-
- Required: Yes
- Type: timestamp (string|DateTime or anything parsable by strtotime)
The date the execution is started.
- stateMachineArn
-
- Type: string
The Amazon Resource Name (ARN) that identifies the state machine.
- status
-
- Required: Yes
- Type: string
The current status of the execution.
- stopDate
-
- Required: Yes
- Type: timestamp (string|DateTime or anything parsable by strtotime)
If the execution has already ended, the date the execution stopped.
- traceHeader
-
- Type: string
The X-Ray trace header that was passed to the execution.
Errors
-
The provided Amazon Resource Name (ARN) is not valid.
-
The provided JSON input data is not valid.
-
The provided name is not valid.
-
The specified state machine does not exist.
-
The specified state machine is being deleted.
StopExecution
$result = $client->stopExecution
([/* ... */]); $promise = $client->stopExecutionAsync
([/* ... */]);
Stops an execution.
This API action is not supported by EXPRESS
state machines.
Parameter Syntax
$result = $client->stopExecution([ 'cause' => '<string>', 'error' => '<string>', 'executionArn' => '<string>', // REQUIRED ]);
Parameter Details
Members
- cause
-
- Type: string
A more detailed explanation of the cause of the failure.
- error
-
- Type: string
The error code of the failure.
- executionArn
-
- Required: Yes
- Type: string
The Amazon Resource Name (ARN) of the execution to stop.
Result Syntax
[ 'stopDate' => <DateTime>, ]
Result Details
Members
- stopDate
-
- Required: Yes
- Type: timestamp (string|DateTime or anything parsable by strtotime)
The date the execution is stopped.
Errors
-
The specified execution does not exist.
-
The provided Amazon Resource Name (ARN) is not valid.
-
The input does not satisfy the constraints specified by an Amazon Web Services service.
TagResource
$result = $client->tagResource
([/* ... */]); $promise = $client->tagResourceAsync
([/* ... */]);
Add a tag to a Step Functions resource.
An array of key-value pairs. For more information, see Using Cost Allocation Tags in the Amazon Web Services Billing and Cost Management User Guide, and Controlling Access Using IAM Tags.
Tags may only contain Unicode letters, digits, white space, or these symbols: _ . : / = + - @
.
Parameter Syntax
$result = $client->tagResource([ 'resourceArn' => '<string>', // REQUIRED 'tags' => [ // REQUIRED [ 'key' => '<string>', 'value' => '<string>', ], // ... ], ]);
Parameter Details
Members
- resourceArn
-
- Required: Yes
- Type: string
The Amazon Resource Name (ARN) for the Step Functions state machine or activity.
- tags
-
- Required: Yes
- Type: Array of Tag structures
The list of tags to add to a resource.
Tags may only contain Unicode letters, digits, white space, or these symbols:
_ . : / = + - @
.
Result Syntax
[]
Result Details
Errors
-
The provided Amazon Resource Name (ARN) is not valid.
-
Could not find the referenced resource.
-
You've exceeded the number of tags allowed for a resource. See the Limits Topic in the Step Functions Developer Guide.
UntagResource
$result = $client->untagResource
([/* ... */]); $promise = $client->untagResourceAsync
([/* ... */]);
Remove a tag from a Step Functions resource
Parameter Syntax
$result = $client->untagResource([ 'resourceArn' => '<string>', // REQUIRED 'tagKeys' => ['<string>', ...], // REQUIRED ]);
Parameter Details
Members
- resourceArn
-
- Required: Yes
- Type: string
The Amazon Resource Name (ARN) for the Step Functions state machine or activity.
- tagKeys
-
- Required: Yes
- Type: Array of strings
The list of tags to remove from the resource.
Result Syntax
[]
Result Details
Errors
-
The provided Amazon Resource Name (ARN) is not valid.
-
Could not find the referenced resource.
UpdateMapRun
$result = $client->updateMapRun
([/* ... */]); $promise = $client->updateMapRunAsync
([/* ... */]);
Updates an in-progress Map Run's configuration to include changes to the settings that control maximum concurrency and Map Run failure.
Parameter Syntax
$result = $client->updateMapRun([ 'mapRunArn' => '<string>', // REQUIRED 'maxConcurrency' => <integer>, 'toleratedFailureCount' => <integer>, 'toleratedFailurePercentage' => <float>, ]);
Parameter Details
Members
- mapRunArn
-
- Required: Yes
- Type: string
The Amazon Resource Name (ARN) of a Map Run.
- maxConcurrency
-
- Type: int
The maximum number of child workflow executions that can be specified to run in parallel for the Map Run at the same time.
- toleratedFailureCount
-
- Type: long (int|float)
The maximum number of failed items before the Map Run fails.
- toleratedFailurePercentage
-
- Type: float
The maximum percentage of failed items before the Map Run fails.
Result Syntax
[]
Result Details
Errors
-
Could not find the referenced resource.
-
The provided Amazon Resource Name (ARN) is not valid.
-
The input does not satisfy the constraints specified by an Amazon Web Services service.
UpdateStateMachine
$result = $client->updateStateMachine
([/* ... */]); $promise = $client->updateStateMachineAsync
([/* ... */]);
Updates an existing state machine by modifying its definition
, roleArn
, or loggingConfiguration
. Running executions will continue to use the previous definition
and roleArn
. You must include at least one of definition
or roleArn
or you will receive a MissingRequiredParameter
error.
A qualified state machine ARN refers to a Distributed Map state defined within a state machine. For example, the qualified state machine ARN arn:partition:states:region:account-id:stateMachine:stateMachineName/mapStateLabel
refers to a Distributed Map state with a label mapStateLabel
in the state machine named stateMachineName
.
A qualified state machine ARN can either refer to a Distributed Map state defined within a state machine, a version ARN, or an alias ARN.
The following are some examples of qualified and unqualified state machine ARNs:
-
The following qualified state machine ARN refers to a Distributed Map state with a label
mapStateLabel
in a state machine namedmyStateMachine
.arn:partition:states:region:account-id:stateMachine:myStateMachine/mapStateLabel
If you provide a qualified state machine ARN that refers to a Distributed Map state, the request fails with
ValidationException
. -
The following qualified state machine ARN refers to an alias named
PROD
.arn:<partition>:states:<region>:<account-id>:stateMachine:<myStateMachine:PROD>
If you provide a qualified state machine ARN that refers to a version ARN or an alias ARN, the request starts execution for that version or alias.
-
The following unqualified state machine ARN refers to a state machine named
myStateMachine
.arn:<partition>:states:<region>:<account-id>:stateMachine:<myStateMachine>
After you update your state machine, you can set the publish
parameter to true
in the same action to publish a new version. This way, you can opt-in to strict versioning of your state machine.
Step Functions assigns monotonically increasing integers for state machine versions, starting at version number 1.
All StartExecution
calls within a few seconds use the updated definition
and roleArn
. Executions started immediately after you call UpdateStateMachine
may use the previous state machine definition
and roleArn
.
Parameter Syntax
$result = $client->updateStateMachine([ 'definition' => '<string>', 'loggingConfiguration' => [ 'destinations' => [ [ 'cloudWatchLogsLogGroup' => [ 'logGroupArn' => '<string>', ], ], // ... ], 'includeExecutionData' => true || false, 'level' => 'ALL|ERROR|FATAL|OFF', ], 'publish' => true || false, 'roleArn' => '<string>', 'stateMachineArn' => '<string>', // REQUIRED 'tracingConfiguration' => [ 'enabled' => true || false, ], 'versionDescription' => '<string>', ]);
Parameter Details
Members
- definition
-
- Type: string
The Amazon States Language definition of the state machine. See Amazon States Language.
- loggingConfiguration
-
- Type: LoggingConfiguration structure
Use the
LoggingConfiguration
data type to set CloudWatch Logs options. - publish
-
- Type: boolean
Specifies whether the state machine version is published. The default is
false
. To publish a version after updating the state machine, setpublish
totrue
. - roleArn
-
- Type: string
The Amazon Resource Name (ARN) of the IAM role of the state machine.
- stateMachineArn
-
- Required: Yes
- Type: string
The Amazon Resource Name (ARN) of the state machine.
- tracingConfiguration
-
- Type: TracingConfiguration structure
Selects whether X-Ray tracing is enabled.
- versionDescription
-
- Type: string
An optional description of the state machine version to publish.
You can only specify the
versionDescription
parameter if you've setpublish
totrue
.
Result Syntax
[ 'revisionId' => '<string>', 'stateMachineVersionArn' => '<string>', 'updateDate' => <DateTime>, ]
Result Details
Members
- revisionId
-
- Type: string
The revision identifier for the updated state machine.
- stateMachineVersionArn
-
- Type: string
The Amazon Resource Name (ARN) of the published state machine version.
If the
publish
parameter isn't set totrue
, this field returns null. - updateDate
-
- Required: Yes
- Type: timestamp (string|DateTime or anything parsable by strtotime)
The date and time the state machine was updated.
Errors
-
The provided Amazon Resource Name (ARN) is not valid.
-
The provided Amazon States Language definition is not valid.
-
Your
tracingConfiguration
key does not match, orenabled
has not been set totrue
orfalse
. -
Request is missing a required parameter. This error occurs if both
definition
androleArn
are not specified. -
The specified state machine is being deleted.
-
The specified state machine does not exist.
-
ServiceQuotaExceededException:
The request would cause a service quota to be exceeded.
HTTP Status Code: 402
-
Updating or deleting a resource can cause an inconsistent state. This error occurs when there're concurrent requests for DeleteStateMachineVersion, PublishStateMachineVersion, or UpdateStateMachine with the
publish
parameter set totrue
.HTTP Status Code: 409
-
The input does not satisfy the constraints specified by an Amazon Web Services service.
UpdateStateMachineAlias
$result = $client->updateStateMachineAlias
([/* ... */]); $promise = $client->updateStateMachineAliasAsync
([/* ... */]);
Updates the configuration of an existing state machine alias by modifying its description
or routingConfiguration
.
You must specify at least one of the description
or routingConfiguration
parameters to update a state machine alias.
UpdateStateMachineAlias
is an idempotent API. Step Functions bases the idempotency check on the stateMachineAliasArn
, description
, and routingConfiguration
parameters. Requests with the same parameters return an idempotent response.
This operation is eventually consistent. All StartExecution requests made within a few seconds use the latest alias configuration. Executions started immediately after calling UpdateStateMachineAlias
may use the previous routing configuration.
Related operations:
Parameter Syntax
$result = $client->updateStateMachineAlias([ 'description' => '<string>', 'routingConfiguration' => [ [ 'stateMachineVersionArn' => '<string>', // REQUIRED 'weight' => <integer>, // REQUIRED ], // ... ], 'stateMachineAliasArn' => '<string>', // REQUIRED ]);
Parameter Details
Members
- description
-
- Type: string
A description of the state machine alias.
- routingConfiguration
-
- Type: Array of RoutingConfigurationListItem structures
The routing configuration of the state machine alias.
An array of
RoutingConfig
objects that specifies up to two state machine versions that the alias starts executions for. - stateMachineAliasArn
-
- Required: Yes
- Type: string
The Amazon Resource Name (ARN) of the state machine alias.
Result Syntax
[ 'updateDate' => <DateTime>, ]
Result Details
Members
- updateDate
-
- Required: Yes
- Type: timestamp (string|DateTime or anything parsable by strtotime)
The date and time the state machine alias was updated.
Errors
-
The input does not satisfy the constraints specified by an Amazon Web Services service.
-
The provided Amazon Resource Name (ARN) is not valid.
-
Could not find the referenced resource.
-
Updating or deleting a resource can cause an inconsistent state. This error occurs when there're concurrent requests for DeleteStateMachineVersion, PublishStateMachineVersion, or UpdateStateMachine with the
publish
parameter set totrue
.HTTP Status Code: 409
Shapes
ActivityDoesNotExist
Description
The specified activity does not exist.
Members
- message
-
- Type: string
ActivityFailedEventDetails
Description
Contains details about an activity that failed during an execution.
Members
- cause
-
- Type: string
A more detailed explanation of the cause of the failure.
- error
-
- Type: string
The error code of the failure.
ActivityLimitExceeded
Description
The maximum number of activities has been reached. Existing activities must be deleted before a new activity can be created.
Members
- message
-
- Type: string
ActivityListItem
Description
Contains details about an activity.
Members
- activityArn
-
- Required: Yes
- Type: string
The Amazon Resource Name (ARN) that identifies the activity.
- creationDate
-
- Required: Yes
- Type: timestamp (string|DateTime or anything parsable by strtotime)
The date the activity is created.
- name
-
- Required: Yes
- Type: string
The name of the activity.
A name must not contain:
-
white space
-
brackets
< > { } [ ]
-
wildcard characters
? *
-
special characters
" # % \ ^ | ~ ` $ & , ; : /
-
control characters (
U+0000-001F
,U+007F-009F
)
To enable logging with CloudWatch Logs, the name should only contain 0-9, A-Z, a-z, - and _.
ActivityScheduleFailedEventDetails
Description
Contains details about an activity schedule failure that occurred during an execution.
Members
- cause
-
- Type: string
A more detailed explanation of the cause of the failure.
- error
-
- Type: string
The error code of the failure.
ActivityScheduledEventDetails
Description
Contains details about an activity scheduled during an execution.
Members
- heartbeatInSeconds
-
- Type: long (int|float)
The maximum allowed duration between two heartbeats for the activity task.
- input
-
- Type: string
The JSON data input to the activity task. Length constraints apply to the payload size, and are expressed as bytes in UTF-8 encoding.
- inputDetails
-
- Type: HistoryEventExecutionDataDetails structure
Contains details about the input for an execution history event.
- resource
-
- Required: Yes
- Type: string
The Amazon Resource Name (ARN) of the scheduled activity.
- timeoutInSeconds
-
- Type: long (int|float)
The maximum allowed duration of the activity task.
ActivityStartedEventDetails
Description
Contains details about the start of an activity during an execution.
Members
- workerName
-
- Type: string
The name of the worker that the task is assigned to. These names are provided by the workers when calling GetActivityTask.
ActivitySucceededEventDetails
Description
Contains details about an activity that successfully terminated during an execution.
Members
- output
-
- Type: string
The JSON data output by the activity task. Length constraints apply to the payload size, and are expressed as bytes in UTF-8 encoding.
- outputDetails
-
- Type: HistoryEventExecutionDataDetails structure
Contains details about the output of an execution history event.
ActivityTimedOutEventDetails
Description
Contains details about an activity timeout that occurred during an execution.
Members
- cause
-
- Type: string
A more detailed explanation of the cause of the timeout.
- error
-
- Type: string
The error code of the failure.
ActivityWorkerLimitExceeded
Description
The maximum number of workers concurrently polling for activity tasks has been reached.
Members
- message
-
- Type: string
BillingDetails
Description
An object that describes workflow billing details.
Members
- billedDurationInMilliseconds
-
- Type: long (int|float)
Billed duration of your workflow, in milliseconds.
- billedMemoryUsedInMB
-
- Type: long (int|float)
Billed memory consumption of your workflow, in MB.
CloudWatchEventsExecutionDataDetails
Description
Provides details about execution input or output.
Members
- included
-
- Type: boolean
Indicates whether input or output was included in the response. Always
true
for API calls.
CloudWatchLogsLogGroup
Description
Members
- logGroupArn
-
- Type: string
The ARN of the the CloudWatch log group to which you want your logs emitted to. The ARN must end with
:*
ConflictException
Description
Updating or deleting a resource can cause an inconsistent state. This error occurs when there're concurrent requests for DeleteStateMachineVersion, PublishStateMachineVersion, or UpdateStateMachine with the publish
parameter set to true
.
HTTP Status Code: 409
Members
- message
-
- Type: string
ExecutionAbortedEventDetails
Description
Contains details about an abort of an execution.
Members
- cause
-
- Type: string
A more detailed explanation of the cause of the failure.
- error
-
- Type: string
The error code of the failure.
ExecutionAlreadyExists
Description
The execution has the same name
as another execution (but a different input
).
Executions with the same name
and input
are considered idempotent.
Members
- message
-
- Type: string
ExecutionDoesNotExist
Description
The specified execution does not exist.
Members
- message
-
- Type: string
ExecutionFailedEventDetails
Description
Contains details about an execution failure event.
Members
- cause
-
- Type: string
A more detailed explanation of the cause of the failure.
- error
-
- Type: string
The error code of the failure.
ExecutionLimitExceeded
Description
The maximum number of running executions has been reached. Running executions must end or be stopped before a new execution can be started.
Members
- message
-
- Type: string
ExecutionListItem
Description
Contains details about an execution.
Members
- executionArn
-
- Required: Yes
- Type: string
The Amazon Resource Name (ARN) that identifies the execution.
- itemCount
-
- Type: int
The total number of items processed in a child workflow execution. This field is returned only if
mapRunArn
was specified in theListExecutions
API action. IfstateMachineArn
was specified inListExecutions
, theitemCount
field isn't returned. - mapRunArn
-
- Type: string
The Amazon Resource Name (ARN) of a Map Run. This field is returned only if
mapRunArn
was specified in theListExecutions
API action. IfstateMachineArn
was specified inListExecutions
, themapRunArn
isn't returned. - name
-
- Required: Yes
- Type: string
The name of the execution.
A name must not contain:
-
white space
-
brackets
< > { } [ ]
-
wildcard characters
? *
-
special characters
" # % \ ^ | ~ ` $ & , ; : /
-
control characters (
U+0000-001F
,U+007F-009F
)
To enable logging with CloudWatch Logs, the name should only contain 0-9, A-Z, a-z, - and _.
- startDate
-
- Required: Yes
- Type: timestamp (string|DateTime or anything parsable by strtotime)
The date the execution started.
- stateMachineAliasArn
-
- Type: string
The Amazon Resource Name (ARN) of the state machine alias used to start an execution.
If the state machine execution was started with an unqualified ARN or a version ARN, it returns null.
- stateMachineArn
-
- Required: Yes
- Type: string
The Amazon Resource Name (ARN) of the state machine that ran the execution.
- stateMachineVersionArn
-
- Type: string
The Amazon Resource Name (ARN) of the state machine version associated with the execution.
If the state machine execution was started with an unqualified ARN, it returns null.
If the execution was started using a
stateMachineAliasArn
, both thestateMachineAliasArn
andstateMachineVersionArn
parameters contain the respective values. - status
-
- Required: Yes
- Type: string
The current status of the execution.
- stopDate
-
- Type: timestamp (string|DateTime or anything parsable by strtotime)
If the execution already ended, the date the execution stopped.
ExecutionStartedEventDetails
Description
Contains details about the start of the execution.
Members
- input
-
- Type: string
The JSON data input to the execution. Length constraints apply to the payload size, and are expressed as bytes in UTF-8 encoding.
- inputDetails
-
- Type: HistoryEventExecutionDataDetails structure
Contains details about the input for an execution history event.
- roleArn
-
- Type: string
The Amazon Resource Name (ARN) of the IAM role used for executing Lambda tasks.
- stateMachineAliasArn
-
- Type: string
The Amazon Resource Name (ARN) that identifies a state machine alias used for starting the state machine execution.
- stateMachineVersionArn
-
- Type: string
The Amazon Resource Name (ARN) that identifies a state machine version used for starting the state machine execution.
ExecutionSucceededEventDetails
Description
Contains details about the successful termination of the execution.
Members
- output
-
- Type: string
The JSON data output by the execution. Length constraints apply to the payload size, and are expressed as bytes in UTF-8 encoding.
- outputDetails
-
- Type: HistoryEventExecutionDataDetails structure
Contains details about the output of an execution history event.
ExecutionTimedOutEventDetails
Description
Contains details about the execution timeout that occurred during the execution.
Members
- cause
-
- Type: string
A more detailed explanation of the cause of the timeout.
- error
-
- Type: string
The error code of the failure.
HistoryEvent
Description
Contains details about the events of an execution.
Members
- activityFailedEventDetails
-
- Type: ActivityFailedEventDetails structure
Contains details about an activity that failed during an execution.
- activityScheduleFailedEventDetails
-
- Type: ActivityScheduleFailedEventDetails structure
Contains details about an activity schedule event that failed during an execution.
- activityScheduledEventDetails
-
- Type: ActivityScheduledEventDetails structure
Contains details about an activity scheduled during an execution.
- activityStartedEventDetails
-
- Type: ActivityStartedEventDetails structure
Contains details about the start of an activity during an execution.
- activitySucceededEventDetails
-
- Type: ActivitySucceededEventDetails structure
Contains details about an activity that successfully terminated during an execution.
- activityTimedOutEventDetails
-
- Type: ActivityTimedOutEventDetails structure
Contains details about an activity timeout that occurred during an execution.
- executionAbortedEventDetails
-
- Type: ExecutionAbortedEventDetails structure
Contains details about an abort of an execution.
- executionFailedEventDetails
-
- Type: ExecutionFailedEventDetails structure
Contains details about an execution failure event.
- executionStartedEventDetails
-
- Type: ExecutionStartedEventDetails structure
Contains details about the start of the execution.
- executionSucceededEventDetails
-
- Type: ExecutionSucceededEventDetails structure
Contains details about the successful termination of the execution.
- executionTimedOutEventDetails
-
- Type: ExecutionTimedOutEventDetails structure
Contains details about the execution timeout that occurred during the execution.
- id
-
- Required: Yes
- Type: long (int|float)
The id of the event. Events are numbered sequentially, starting at one.
- lambdaFunctionFailedEventDetails
-
- Type: LambdaFunctionFailedEventDetails structure
Contains details about a Lambda function that failed during an execution.
- lambdaFunctionScheduleFailedEventDetails
-
- Type: LambdaFunctionScheduleFailedEventDetails structure
Contains details about a failed Lambda function schedule event that occurred during an execution.
- lambdaFunctionScheduledEventDetails
-
- Type: LambdaFunctionScheduledEventDetails structure
Contains details about a Lambda function scheduled during an execution.
- lambdaFunctionStartFailedEventDetails
-
- Type: LambdaFunctionStartFailedEventDetails structure
Contains details about a lambda function that failed to start during an execution.
- lambdaFunctionSucceededEventDetails
-
- Type: LambdaFunctionSucceededEventDetails structure
Contains details about a Lambda function that terminated successfully during an execution.
- lambdaFunctionTimedOutEventDetails
-
- Type: LambdaFunctionTimedOutEventDetails structure
Contains details about a Lambda function timeout that occurred during an execution.
- mapIterationAbortedEventDetails
-
- Type: MapIterationEventDetails structure
Contains details about an iteration of a Map state that was aborted.
- mapIterationFailedEventDetails
-
- Type: MapIterationEventDetails structure
Contains details about an iteration of a Map state that failed.
- mapIterationStartedEventDetails
-
- Type: MapIterationEventDetails structure
Contains details about an iteration of a Map state that was started.
- mapIterationSucceededEventDetails
-
- Type: MapIterationEventDetails structure
Contains details about an iteration of a Map state that succeeded.
- mapRunFailedEventDetails
-
- Type: MapRunFailedEventDetails structure
Contains error and cause details about a Map Run that failed.
- mapRunStartedEventDetails
-
- Type: MapRunStartedEventDetails structure
Contains details, such as
mapRunArn
, and the start date and time of a Map Run.mapRunArn
is the Amazon Resource Name (ARN) of the Map Run that was started. - mapStateStartedEventDetails
-
- Type: MapStateStartedEventDetails structure
Contains details about Map state that was started.
- previousEventId
-
- Type: long (int|float)
The id of the previous event.
- stateEnteredEventDetails
-
- Type: StateEnteredEventDetails structure
Contains details about a state entered during an execution.
- stateExitedEventDetails
-
- Type: StateExitedEventDetails structure
Contains details about an exit from a state during an execution.
- taskFailedEventDetails
-
- Type: TaskFailedEventDetails structure
Contains details about the failure of a task.
- taskScheduledEventDetails
-
- Type: TaskScheduledEventDetails structure
Contains details about a task that was scheduled.
- taskStartFailedEventDetails
-
- Type: TaskStartFailedEventDetails structure
Contains details about a task that failed to start.
- taskStartedEventDetails
-
- Type: TaskStartedEventDetails structure
Contains details about a task that was started.
- taskSubmitFailedEventDetails
-
- Type: TaskSubmitFailedEventDetails structure
Contains details about a task that where the submit failed.
- taskSubmittedEventDetails
-
- Type: TaskSubmittedEventDetails structure
Contains details about a submitted task.
- taskSucceededEventDetails
-
- Type: TaskSucceededEventDetails structure
Contains details about a task that succeeded.
- taskTimedOutEventDetails
-
- Type: TaskTimedOutEventDetails structure
Contains details about a task that timed out.
- timestamp
-
- Required: Yes
- Type: timestamp (string|DateTime or anything parsable by strtotime)
The date and time the event occurred.
- type
-
- Required: Yes
- Type: string
The type of the event.
HistoryEventExecutionDataDetails
Description
Provides details about input or output in an execution history event.
Members
- truncated
-
- Type: boolean
Indicates whether input or output was truncated in the response. Always
false
for API calls.
InvalidArn
Description
The provided Amazon Resource Name (ARN) is not valid.
Members
- message
-
- Type: string
InvalidDefinition
Description
The provided Amazon States Language definition is not valid.
Members
- message
-
- Type: string
InvalidExecutionInput
Description
The provided JSON input data is not valid.
Members
- message
-
- Type: string
InvalidLoggingConfiguration
Description
Members
- message
-
- Type: string
InvalidName
Description
The provided name is not valid.
Members
- message
-
- Type: string
InvalidOutput
Description
The provided JSON output data is not valid.
Members
- message
-
- Type: string
InvalidToken
Description
The provided token is not valid.
Members
- message
-
- Type: string
InvalidTracingConfiguration
Description
Your tracingConfiguration
key does not match, or enabled
has not been set to true
or false
.
Members
- message
-
- Type: string
LambdaFunctionFailedEventDetails
Description
Contains details about a Lambda function that failed during an execution.
Members
- cause
-
- Type: string
A more detailed explanation of the cause of the failure.
- error
-
- Type: string
The error code of the failure.
LambdaFunctionScheduleFailedEventDetails
Description
Contains details about a failed Lambda function schedule event that occurred during an execution.
Members
- cause
-
- Type: string
A more detailed explanation of the cause of the failure.
- error
-
- Type: string
The error code of the failure.
LambdaFunctionScheduledEventDetails
Description
Contains details about a Lambda function scheduled during an execution.
Members
- input
-
- Type: string
The JSON data input to the Lambda function. Length constraints apply to the payload size, and are expressed as bytes in UTF-8 encoding.
- inputDetails
-
- Type: HistoryEventExecutionDataDetails structure
Contains details about input for an execution history event.
- resource
-
- Required: Yes
- Type: string
The Amazon Resource Name (ARN) of the scheduled Lambda function.
- taskCredentials
-
- Type: TaskCredentials structure
The credentials that Step Functions uses for the task.
- timeoutInSeconds
-
- Type: long (int|float)
The maximum allowed duration of the Lambda function.
LambdaFunctionStartFailedEventDetails
Description
Contains details about a lambda function that failed to start during an execution.
Members
- cause
-
- Type: string
A more detailed explanation of the cause of the failure.
- error
-
- Type: string
The error code of the failure.
LambdaFunctionSucceededEventDetails
Description
Contains details about a Lambda function that successfully terminated during an execution.
Members
- output
-
- Type: string
The JSON data output by the Lambda function. Length constraints apply to the payload size, and are expressed as bytes in UTF-8 encoding.
- outputDetails
-
- Type: HistoryEventExecutionDataDetails structure
Contains details about the output of an execution history event.
LambdaFunctionTimedOutEventDetails
Description
Contains details about a Lambda function timeout that occurred during an execution.
Members
- cause
-
- Type: string
A more detailed explanation of the cause of the timeout.
- error
-
- Type: string
The error code of the failure.
LogDestination
Description
Members
- cloudWatchLogsLogGroup
-
- Type: CloudWatchLogsLogGroup structure
An object describing a CloudWatch log group. For more information, see AWS::Logs::LogGroup in the CloudFormation User Guide.
LoggingConfiguration
Description
The LoggingConfiguration
data type is used to set CloudWatch Logs options.
Members
- destinations
-
- Type: Array of LogDestination structures
An array of objects that describes where your execution history events will be logged. Limited to size 1. Required, if your log level is not set to
OFF
. - includeExecutionData
-
- Type: boolean
Determines whether execution data is included in your log. When set to
false
, data is excluded. - level
-
- Type: string
Defines which category of execution history events are logged.
MapIterationEventDetails
Description
Contains details about an iteration of a Map state.
Members
- index
-
- Type: int
The index of the array belonging to the Map state iteration.
- name
-
- Type: string
The name of the iteration’s parent Map state.
MapRunExecutionCounts
Description
Contains details about all of the child workflow executions started by a Map Run.
Members
- aborted
-
- Required: Yes
- Type: long (int|float)
The total number of child workflow executions that were started by a Map Run and were running, but were either stopped by the user or by Step Functions because the Map Run failed.
- failed
-
- Required: Yes
- Type: long (int|float)
The total number of child workflow executions that were started by a Map Run, but have failed.
- pending
-
- Required: Yes
- Type: long (int|float)
The total number of child workflow executions that were started by a Map Run, but haven't started executing yet.
- resultsWritten
-
- Required: Yes
- Type: long (int|float)
Returns the count of child workflow executions whose results were written by
ResultWriter
. For more information, see ResultWriter in the Step Functions Developer Guide. - running
-
- Required: Yes
- Type: long (int|float)
The total number of child workflow executions that were started by a Map Run and are currently in-progress.
- succeeded
-
- Required: Yes
- Type: long (int|float)
The total number of child workflow executions that were started by a Map Run and have completed successfully.
- timedOut
-
- Required: Yes
- Type: long (int|float)
The total number of child workflow executions that were started by a Map Run and have timed out.
- total
-
- Required: Yes
- Type: long (int|float)
The total number of child workflow executions that were started by a Map Run.
MapRunFailedEventDetails
Description
Contains details about a Map Run failure event that occurred during a state machine execution.
Members
- cause
-
- Type: string
A more detailed explanation of the cause of the failure.
- error
-
- Type: string
The error code of the Map Run failure.
MapRunItemCounts
Description
Contains details about items that were processed in all of the child workflow executions that were started by a Map Run.
Members
- aborted
-
- Required: Yes
- Type: long (int|float)
The total number of items processed in child workflow executions that were either stopped by the user or by Step Functions, because the Map Run failed.
- failed
-
- Required: Yes
- Type: long (int|float)
The total number of items processed in child workflow executions that have failed.
- pending
-
- Required: Yes
- Type: long (int|float)
The total number of items to process in child workflow executions that haven't started running yet.
- resultsWritten
-
- Required: Yes
- Type: long (int|float)
Returns the count of items whose results were written by
ResultWriter
. For more information, see ResultWriter in the Step Functions Developer Guide. - running
-
- Required: Yes
- Type: long (int|float)
The total number of items being processed in child workflow executions that are currently in-progress.
- succeeded
-
- Required: Yes
- Type: long (int|float)
The total number of items processed in child workflow executions that have completed successfully.
- timedOut
-
- Required: Yes
- Type: long (int|float)
The total number of items processed in child workflow executions that have timed out.
- total
-
- Required: Yes
- Type: long (int|float)
The total number of items processed in all the child workflow executions started by a Map Run.
MapRunListItem
Description
Contains details about a specific Map Run.
Members
- executionArn
-
- Required: Yes
- Type: string
The
executionArn
of the execution from which the Map Run was started. - mapRunArn
-
- Required: Yes
- Type: string
The Amazon Resource Name (ARN) of the Map Run.
- startDate
-
- Required: Yes
- Type: timestamp (string|DateTime or anything parsable by strtotime)
The date on which the Map Run started.
- stateMachineArn
-
- Required: Yes
- Type: string
The Amazon Resource Name (ARN) of the executed state machine.
- stopDate
-
- Type: timestamp (string|DateTime or anything parsable by strtotime)
The date on which the Map Run stopped.
MapRunStartedEventDetails
Description
Contains details about a Map Run that was started during a state machine execution.
Members
- mapRunArn
-
- Type: string
The Amazon Resource Name (ARN) of a Map Run that was started.
MapStateStartedEventDetails
Description
Details about a Map state that was started.
Members
- length
-
- Type: int
The size of the array for Map state iterations.
MissingRequiredParameter
Description
Request is missing a required parameter. This error occurs if both definition
and roleArn
are not specified.
Members
- message
-
- Type: string
ResourceNotFound
Description
Could not find the referenced resource.
Members
- message
-
- Type: string
- resourceName
-
- Type: string
RoutingConfigurationListItem
Description
Contains details about the routing configuration of a state machine alias. In a routing configuration, you define an array of objects that specify up to two state machine versions. You also specify the percentage of traffic to be routed to each version.
Members
- stateMachineVersionArn
-
- Required: Yes
- Type: string
The Amazon Resource Name (ARN) that identifies one or two state machine versions defined in the routing configuration.
If you specify the ARN of a second version, it must belong to the same state machine as the first version.
- weight
-
- Required: Yes
- Type: int
The percentage of traffic you want to route to the second state machine version. The sum of the weights in the routing configuration must be equal to 100.
ServiceQuotaExceededException
Description
The request would cause a service quota to be exceeded.
HTTP Status Code: 402
Members
- message
-
- Type: string
StateEnteredEventDetails
Description
Contains details about a state entered during an execution.
Members
- input
-
- Type: string
The string that contains the JSON input data for the state. Length constraints apply to the payload size, and are expressed as bytes in UTF-8 encoding.
- inputDetails
-
- Type: HistoryEventExecutionDataDetails structure
Contains details about the input for an execution history event.
- name
-
- Required: Yes
- Type: string
The name of the state.
StateExitedEventDetails
Description
Contains details about an exit from a state during an execution.
Members
- name
-
- Required: Yes
- Type: string
The name of the state.
A name must not contain:
-
white space
-
brackets
< > { } [ ]
-
wildcard characters
? *
-
special characters
" # % \ ^ | ~ ` $ & , ; : /
-
control characters (
U+0000-001F
,U+007F-009F
)
To enable logging with CloudWatch Logs, the name should only contain 0-9, A-Z, a-z, - and _.
- output
-
- Type: string
The JSON output data of the state. Length constraints apply to the payload size, and are expressed as bytes in UTF-8 encoding.
- outputDetails
-
- Type: HistoryEventExecutionDataDetails structure
Contains details about the output of an execution history event.
StateMachineAliasListItem
Description
Contains details about a specific state machine alias.
Members
- creationDate
-
- Required: Yes
- Type: timestamp (string|DateTime or anything parsable by strtotime)
The creation date of a state machine alias.
- stateMachineAliasArn
-
- Required: Yes
- Type: string
The Amazon Resource Name (ARN) that identifies a state machine alias. The alias ARN is a combination of state machine ARN and the alias name separated by a colon (:). For example,
stateMachineARN:PROD
.
StateMachineAlreadyExists
Description
A state machine with the same name but a different definition or role ARN already exists.
Members
- message
-
- Type: string
StateMachineDeleting
Description
The specified state machine is being deleted.
Members
- message
-
- Type: string
StateMachineDoesNotExist
Description
The specified state machine does not exist.
Members
- message
-
- Type: string
StateMachineLimitExceeded
Description
The maximum number of state machines has been reached. Existing state machines must be deleted before a new state machine can be created.
Members
- message
-
- Type: string
StateMachineListItem
Description
Contains details about the state machine.
Members
- creationDate
-
- Required: Yes
- Type: timestamp (string|DateTime or anything parsable by strtotime)
The date the state machine is created.
- name
-
- Required: Yes
- Type: string
The name of the state machine.
A name must not contain:
-
white space
-
brackets
< > { } [ ]
-
wildcard characters
? *
-
special characters
" # % \ ^ | ~ ` $ & , ; : /
-
control characters (
U+0000-001F
,U+007F-009F
)
To enable logging with CloudWatch Logs, the name should only contain 0-9, A-Z, a-z, - and _.
- stateMachineArn
-
- Required: Yes
- Type: string
The Amazon Resource Name (ARN) that identifies the state machine.
- type
-
- Required: Yes
- Type: string
StateMachineTypeNotSupported
Description
Members
- message
-
- Type: string
StateMachineVersionListItem
Description
Contains details about a specific state machine version.
Members
- creationDate
-
- Required: Yes
- Type: timestamp (string|DateTime or anything parsable by strtotime)
The creation date of a state machine version.
- stateMachineVersionArn
-
- Required: Yes
- Type: string
The Amazon Resource Name (ARN) that identifies a state machine version. The version ARN is a combination of state machine ARN and the version number separated by a colon (:). For example,
stateMachineARN:1
.
Tag
Description
Tags are key-value pairs that can be associated with Step Functions state machines and activities.
An array of key-value pairs. For more information, see Using Cost Allocation Tags in the Amazon Web Services Billing and Cost Management User Guide, and Controlling Access Using IAM Tags.
Tags may only contain Unicode letters, digits, white space, or these symbols: _ . : / = + - @
.
Members
- key
-
- Type: string
The key of a tag.
- value
-
- Type: string
The value of a tag.
TaskCredentials
Description
Contains details about the credentials that Step Functions uses for a task.
Members
- roleArn
-
- Type: string
The ARN of an IAM role that Step Functions assumes for the task. The role can allow cross-account access to resources.
TaskDoesNotExist
Members
- message
-
- Type: string
TaskFailedEventDetails
Description
Contains details about a task failure event.
Members
- cause
-
- Type: string
A more detailed explanation of the cause of the failure.
- error
-
- Type: string
The error code of the failure.
- resource
-
- Required: Yes
- Type: string
The action of the resource called by a task state.
- resourceType
-
- Required: Yes
- Type: string
The service name of the resource in a task state.
TaskScheduledEventDetails
Description
Contains details about a task scheduled during an execution.
Members
- heartbeatInSeconds
-
- Type: long (int|float)
The maximum allowed duration between two heartbeats for the task.
- parameters
-
- Required: Yes
- Type: string
The JSON data passed to the resource referenced in a task state. Length constraints apply to the payload size, and are expressed as bytes in UTF-8 encoding.
- region
-
- Required: Yes
- Type: string
The region of the scheduled task
- resource
-
- Required: Yes
- Type: string
The action of the resource called by a task state.
- resourceType
-
- Required: Yes
- Type: string
The service name of the resource in a task state.
- taskCredentials
-
- Type: TaskCredentials structure
The credentials that Step Functions uses for the task.
- timeoutInSeconds
-
- Type: long (int|float)
The maximum allowed duration of the task.
TaskStartFailedEventDetails
Description
Contains details about a task that failed to start during an execution.
Members
- cause
-
- Type: string
A more detailed explanation of the cause of the failure.
- error
-
- Type: string
The error code of the failure.
- resource
-
- Required: Yes
- Type: string
The action of the resource called by a task state.
- resourceType
-
- Required: Yes
- Type: string
The service name of the resource in a task state.
TaskStartedEventDetails
Description
Contains details about the start of a task during an execution.
Members
- resource
-
- Required: Yes
- Type: string
The action of the resource called by a task state.
- resourceType
-
- Required: Yes
- Type: string
The service name of the resource in a task state.
TaskSubmitFailedEventDetails
Description
Contains details about a task that failed to submit during an execution.
Members
- cause
-
- Type: string
A more detailed explanation of the cause of the failure.
- error
-
- Type: string
The error code of the failure.
- resource
-
- Required: Yes
- Type: string
The action of the resource called by a task state.
- resourceType
-
- Required: Yes
- Type: string
The service name of the resource in a task state.
TaskSubmittedEventDetails
Description
Contains details about a task submitted to a resource .
Members
- output
-
- Type: string
The response from a resource when a task has started. Length constraints apply to the payload size, and are expressed as bytes in UTF-8 encoding.
- outputDetails
-
- Type: HistoryEventExecutionDataDetails structure
Contains details about the output of an execution history event.
- resource
-
- Required: Yes
- Type: string
The action of the resource called by a task state.
- resourceType
-
- Required: Yes
- Type: string
The service name of the resource in a task state.
TaskSucceededEventDetails
Description
Contains details about the successful completion of a task state.
Members
- output
-
- Type: string
The full JSON response from a resource when a task has succeeded. This response becomes the output of the related task. Length constraints apply to the payload size, and are expressed as bytes in UTF-8 encoding.
- outputDetails
-
- Type: HistoryEventExecutionDataDetails structure
Contains details about the output of an execution history event.
- resource
-
- Required: Yes
- Type: string
The action of the resource called by a task state.
- resourceType
-
- Required: Yes
- Type: string
The service name of the resource in a task state.
TaskTimedOut
Members
- message
-
- Type: string
TaskTimedOutEventDetails
Description
Contains details about a resource timeout that occurred during an execution.
Members
- cause
-
- Type: string
A more detailed explanation of the cause of the failure.
- error
-
- Type: string
The error code of the failure.
- resource
-
- Required: Yes
- Type: string
The action of the resource called by a task state.
- resourceType
-
- Required: Yes
- Type: string
The service name of the resource in a task state.
TooManyTags
Description
You've exceeded the number of tags allowed for a resource. See the Limits Topic in the Step Functions Developer Guide.
Members
- message
-
- Type: string
- resourceName
-
- Type: string
TracingConfiguration
Description
Selects whether or not the state machine's X-Ray tracing is enabled. Default is false
Members
- enabled
-
- Type: boolean
When set to
true
, X-Ray tracing is enabled.
ValidationException
Description
The input does not satisfy the constraints specified by an Amazon Web Services service.
Members
- message
-
- Type: string
- reason
-
- Type: string
The input does not satisfy the constraints specified by an Amazon Web Services service.