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

(stepfunctions): java sdk JsonPath.mapAt #28288

Open
2 tasks
charlie-harvey opened this issue Dec 7, 2023 · 0 comments
Open
2 tasks

(stepfunctions): java sdk JsonPath.mapAt #28288

charlie-harvey opened this issue Dec 7, 2023 · 0 comments
Labels
@aws-cdk/aws-stepfunctions Related to AWS StepFunctions effort/medium Medium work item – several days of effort feature-request A feature should be added or improved. jsii This issue originates in jsii, or this feature must be implemented in jsii. p3

Comments

@charlie-harvey
Copy link

Describe the feature

The java library is tougher to work with than Typescript (or other languages) because you can't just throw random json into the object and call it a day. You have to deal with the types, even though you don't want to. I want to pass a parameter into the BatchSubmitJob BatchContainerOverrides.environment. But I can't, because its a Map.

There is

Use Case

There are functions for dealing with string, numbers and lists, but no maps:

    JsonPath.stringAt(path);
    JsonPath.numberAt(path);
    JsonPath.listAt(path);

Proposed Solution

What I want:

    JsonPath.mapAt(path):

Other Information

There is a JsonPath.objectAt(path) function, but for the life of me I can't make it useful. It returns an IResolvable and I can't seem to turn that into anything. So it might as well not exist.

Acknowledgements

  • I may be able to implement this feature request
  • This feature might incur a breaking change

CDK version used

2.112.0

Environment details (OS name and version, etc.)

MacOS M1. Java 17

@charlie-harvey charlie-harvey added feature-request A feature should be added or improved. needs-triage This issue or PR still needs to be triaged. labels Dec 7, 2023
@github-actions github-actions bot added the @aws-cdk/aws-stepfunctions Related to AWS StepFunctions label Dec 7, 2023
@pahud pahud added p2 effort/medium Medium work item – several days of effort jsii This issue originates in jsii, or this feature must be implemented in jsii. and removed needs-triage This issue or PR still needs to be triaged. labels Dec 11, 2023
@pahud pahud added p3 and removed p2 labels Jun 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
@aws-cdk/aws-stepfunctions Related to AWS StepFunctions effort/medium Medium work item – several days of effort feature-request A feature should be added or improved. jsii This issue originates in jsii, or this feature must be implemented in jsii. p3
Projects
None yet
Development

No branches or pull requests

2 participants