Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor(stepfunctions): deprecate unused DISCARD variable and include JsonPath.DISCARD in docs #26770

Merged
merged 5 commits into from
Aug 17, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions packages/aws-cdk-lib/aws-stepfunctions/lib/states/choice.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export interface ChoiceProps {
/**
* JSONPath expression to select part of the state to be the input to this state.
*
* May also be the special value DISCARD, which will cause the effective
* May also be the special value JsonPath.DISCARD, which will cause the effective
* input to be the empty object {}.
*
* @default $
Expand All @@ -29,7 +29,7 @@ export interface ChoiceProps {
/**
* JSONPath expression to select part of the state to be the output to this state.
*
* May also be the special value DISCARD, which will cause the effective
* May also be the special value JsonPath.DISCARD, which will cause the effective
* output to be the empty object {}.
*
* @default $
Expand Down
9 changes: 2 additions & 7 deletions packages/aws-cdk-lib/aws-stepfunctions/lib/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -146,15 +146,10 @@ export interface CatchProps {
/**
* JSONPath expression to indicate where to inject the error data
*
* May also be the special value DISCARD, which will cause the error
* May also be the special value JsonPath.DISCARD, which will cause the error
* data to be discarded.
*
* @default $
*/
readonly resultPath?: string;
}

/**
* Special string value to discard state input, output or result
*/
export const DISCARD = 'DISCARD';
kirkwat marked this conversation as resolved.
Show resolved Hide resolved
}
Loading