Skip to content

Conversation

@mrgrain
Copy link
Contributor

@mrgrain mrgrain commented Sep 18, 2025

Reason for this change

Sometimes services introduces a V2 version of their APIs and CloudFormation resources.
In the past we had thought it's a good idea if KinesisAnalyticsV2 constructs would just be included in the original aws-kinesisanalytics module. However since then we have come to a different view and think it's better to strictly follow what the services are doing. As of today KinesisAnalyticsV2 is the only service that got this treatment.

We now want to clearly indicate that this is not supported and deprecate the usage from within the "V1" module.

Description of changes

Update the spec2cdk package to allow services being deprecated.
I've also changed the suffix handling to be explicit instead of computed when reading from a service map. Given that we only have that one module with multiple services, this seems prudent.

Describe any new or updated permissions being added

n/a

Description of how you validated changes

All existing tests pass. jsii-diff reports no issues. Test case added for codegen of deprecated service.

Checklist


By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license

@aws-cdk-automation aws-cdk-automation requested a review from a team September 18, 2025 10:50
@github-actions github-actions bot added the p2 label Sep 18, 2025
@mergify mergify bot added the contribution/core This is a PR that came from AWS. label Sep 18, 2025
Copy link
Collaborator

@aws-cdk-automation aws-cdk-automation left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(This review is outdated)

@mrgrain mrgrain force-pushed the mrgrain/fix/deprecated-KinesisAnalyticsV2-inside-aws-kinesisanalytics branch from a41497d to f190a06 Compare September 18, 2025 10:57
@mrgrain mrgrain added the pr-linter/exempt-integ-test The PR linter will not require integ test changes label Sep 18, 2025
@mrgrain
Copy link
Contributor Author

mrgrain commented Sep 18, 2025

Added pr-linter/exempt-integ-test because this is a deprecation that doesn't need an integ test.

@aws-cdk-automation aws-cdk-automation dismissed their stale review September 18, 2025 11:06

✅ Updated pull request passes all PRLinter validations. Dismissing previous PRLinter review.

@mergify
Copy link
Contributor

mergify bot commented Sep 18, 2025

Thank you for contributing! Your pull request will be updated from main and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork).

@mergify mergify bot merged commit 4255b23 into main Sep 18, 2025
32 checks passed
@mergify mergify bot deleted the mrgrain/fix/deprecated-KinesisAnalyticsV2-inside-aws-kinesisanalytics branch September 18, 2025 11:24
@github-actions
Copy link
Contributor

Comments on closed issues and PRs are hard for our team to see.
If you need help, please open a new issue that references this one.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 18, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

contribution/core This is a PR that came from AWS. p2 pr-linter/exempt-integ-test The PR linter will not require integ test changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants