# AfterwardsOptions

Options for selecting the choice paths.

- Source: [`aws-stepfunctions/lib/states/choice.ts`](https://github.com/aws/aws-cdk/blob/v2.275.0/packages/aws-cdk-lib/aws-stepfunctions/lib/states/choice.ts#L114)

## Example

```ts
// 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

- `includeErrorHandlers`: boolean = 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`: boolean = 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.
