aws-cdk-lib.aws_stepfunctions.Errors

class Errors

LanguageType name
.NETAmazon.CDK.AWS.StepFunctions.Errors
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awsstepfunctions#Errors
Javasoftware.amazon.awscdk.services.stepfunctions.Errors
Pythonaws_cdk.aws_stepfunctions.Errors
TypeScript (source)aws-cdk-lib » aws_stepfunctions » Errors

Predefined error strings Error names in Amazon States Language - https://states-language.net/spec.html#appendix-a Error handling in Step Functions - https://docs.aws.amazon.com/step-functions/latest/dg/concepts-error-handling.html.

Example

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_stepfunctions as stepfunctions } from 'aws-cdk-lib';
const errors = new stepfunctions.Errors();

Initializer

new Errors()

Properties

NameTypeDescription
static ALLstringMatches any Error.
static BRANCH_FAILEDstringA branch of a Parallel state failed.
static HEARTBEAT_TIMEOUTstringA Task State failed to heartbeat for a time longer than the “HeartbeatSeconds” value.
static NO_CHOICE_MATCHEDstringA Choice state failed to find a match for the condition field extracted from its input.
static PARAMETER_PATH_FAILUREstringWithin a state’s “Parameters” field, the attempt to replace a field whose name ends in “.$” using a Path failed.
static PERMISSIONSstringA Task State failed because it had insufficient privileges to execute the specified code.
static RESULT_PATH_MATCH_FAILUREstringA Task State’s “ResultPath” field cannot be applied to the input the state received.
static TASKS_FAILEDstringA Task State failed during the execution.
static TIMEOUTstringA Task State either ran longer than the “TimeoutSeconds” value, or failed to heartbeat for a time longer than the “HeartbeatSeconds” value.

static ALL

Type: string

Matches any Error.


static BRANCH_FAILED

Type: string

A branch of a Parallel state failed.


static HEARTBEAT_TIMEOUT

Type: string

A Task State failed to heartbeat for a time longer than the “HeartbeatSeconds” value.


static NO_CHOICE_MATCHED

Type: string

A Choice state failed to find a match for the condition field extracted from its input.


static PARAMETER_PATH_FAILURE

Type: string

Within a state’s “Parameters” field, the attempt to replace a field whose name ends in “.$” using a Path failed.


static PERMISSIONS

Type: string

A Task State failed because it had insufficient privileges to execute the specified code.


static RESULT_PATH_MATCH_FAILURE

Type: string

A Task State’s “ResultPath” field cannot be applied to the input the state received.


static TASKS_FAILED

Type: string

A Task State failed during the execution.


static TIMEOUT

Type: string

A Task State either ran longer than the “TimeoutSeconds” value, or failed to heartbeat for a time longer than the “HeartbeatSeconds” value.