aws / aws/jsii

Cannot build interface necessary for flink.Application property

Open
#3,154 1 comment 1 reaction 0 assignees View on GitHub
bug effort/small p1
Dominant language
TypeScript
Stars
2.9k
Forks
267
Avg merge
1d 25m
Merged PRs (30d)
14

Description

## :bug: Bug Report

### Affected Languages

- [ ] `TypeScript` or `Javascript`
- [X] `Python`
- [ ] `Java`
- [ ] .NET (`C#`, `F#`, ...)
- [ ] `Go`

### What is the problem?
Following the documentation described in the [Flink readme](https://docs.aws.amazon.com/cdk/api/latest/python/aws_cdk.aws_kinesisanalytics_flink/README.html#creating-flink-applications) will result in a build failure
```py
flink.Application(self, 'app',
property_groups=flink.PropertyGroups(FlinkApplicationProperties={
"input_stream_name": "MyName"
})
)
```
There doesn't seem to be any other ways of properly inputting the property here either. Maybe there's something I'm missing?
#### Error message
`TypeError: __init__() got an unexpected keyword argument 'FlinkApplicationProperties'`

The interface `PropertyGroups` is defined in typescript [here](https://github.com/aws/aws-cdk/blob/5c758919e6751f31143fa0979fdc1e040a6c6d11/packages/%40aws-cdk/aws-kinesisanalytics-flink/lib/types.ts#L39-L41)

### Other
This was originally reported and is described in further detail [here](https://github.com/aws/aws-cdk/issues/17159)

Contributor guide

Open the contributing guide

Research direction

Start with the TypeScript PropertyGroups interface in packages/@aws-cdk/aws-kinesisanalytics-flink/lib/types.ts and reproduce the Python FlinkApplication example from the linked Flink README. Trace the generated Python constructor for PropertyGroups and compare it with the documented FlinkApplicationProperties keyword; done means the example builds and accepts that property without the TypeError.

Written by the indexing model from the issue text.

Assessment

Tech stack
python, typescript
Domain
developer-experience, tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.