Skip to content

Commit 7bfb1d6

Browse files
authored
docs(stepfunctions): use JsonPath.DISCARD in place of null for input (#28661)
Update docs for use of `sfn.JsonPath.DISCARD` in place of `null` in `TaskInput.fromObject`s field value for languages that do not support `null` like Python. Doc: https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_stepfunctions.TaskInput.html#:~:text=to%20a%20task.-,static%20fromObject(obj),-public%20static%20fromObject Closes #16253. ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
1 parent 109b2ab commit 7bfb1d6

File tree

1 file changed

+2
-0
lines changed
  • packages/aws-cdk-lib/aws-stepfunctions/lib

1 file changed

+2
-0
lines changed

packages/aws-cdk-lib/aws-stepfunctions/lib/input.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ export class TaskInput {
1717
* Use an object as task input
1818
*
1919
* This object may contain JSON path fields as object values, if desired.
20+
*
21+
* Use `sfn.JsonPath.DISCARD` in place of `null` for languages that do not support `null` (i.e. Python).
2022
*/
2123
public static fromObject(obj: { [key: string]: any }) {
2224
return new TaskInput(InputType.OBJECT, obj);

0 commit comments

Comments
 (0)