diff --git a/packages/aws-cdk-lib/aws-stepfunctions/lib/states/choice.ts b/packages/aws-cdk-lib/aws-stepfunctions/lib/states/choice.ts index cd10a4fad1c34..b27f046c4c1d2 100644 --- a/packages/aws-cdk-lib/aws-stepfunctions/lib/states/choice.ts +++ b/packages/aws-cdk-lib/aws-stepfunctions/lib/states/choice.ts @@ -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 $ @@ -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 $ diff --git a/packages/aws-cdk-lib/aws-stepfunctions/lib/states/state.ts b/packages/aws-cdk-lib/aws-stepfunctions/lib/states/state.ts index f5d8abe8ea2bf..66165ebd7f198 100644 --- a/packages/aws-cdk-lib/aws-stepfunctions/lib/states/state.ts +++ b/packages/aws-cdk-lib/aws-stepfunctions/lib/states/state.ts @@ -574,7 +574,7 @@ export function renderList(xs: T[], mapFn: (x: T) => any, sortFn?: (a: T, b: } /** - * Render JSON path, respecting the special value DISCARD + * Render JSON path, respecting the special value JsonPath.DISCARD */ export function renderJsonPath(jsonPath?: string): undefined | null | string { if (jsonPath === undefined) { return undefined; } diff --git a/packages/aws-cdk-lib/aws-stepfunctions/lib/types.ts b/packages/aws-cdk-lib/aws-stepfunctions/lib/types.ts index 3a496ab4cf20e..6c3196097c88b 100644 --- a/packages/aws-cdk-lib/aws-stepfunctions/lib/types.ts +++ b/packages/aws-cdk-lib/aws-stepfunctions/lib/types.ts @@ -146,7 +146,7 @@ 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 $ @@ -156,5 +156,6 @@ export interface CatchProps { /** * Special string value to discard state input, output or result + * @deprecated use JsonPath.DISCARD */ -export const DISCARD = 'DISCARD'; +export const DISCARD = 'DISCARD'; \ No newline at end of file