aws-cdk-lib.aws_stepfunctions.AfterwardsOptions

interface AfterwardsOptions

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

Options for selecting the choice paths.

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 afterwardsOptions: stepfunctions.AfterwardsOptions = {
  includeErrorHandlers: false,
  includeOtherwise: false,
};

Properties

NameTypeDescription
includeErrorHandlers?booleanWhether to include error handling states.
includeOtherwise?booleanWhether to include the default/otherwise transition for the current Choice state.

includeErrorHandlers?

Type: boolean (optional, default: false)

Whether to include error handling states.

If this is true, all states which are error handlers (added through 'onError') and states reachable via error handlers will be included as well.


includeOtherwise?

Type: boolean (optional, default: false)

Whether to include the default/otherwise transition for the current Choice state.

If this is true and the current Choice does not have a default outgoing transition, one will be added included when .next() is called on the chain.