Skip to content

Conversation

@mrgrain
Copy link
Contributor

@mrgrain mrgrain commented Nov 10, 2025

Reason for this change

Refactoring some spec2cdk code to make it more re-usable for mixins codegen.

Description of changes

  • Updates jsii and @cdklabs/typewriter to the latest versions
  • Fixes multiple issue (and typos) in @aws-cdk/custom-resource-handlers that arouse after the typewriter update. It's a private package and the changed generated code is also private, so this is safe.
  • Refactor spec2cdk code to make it more reusable.

Describe any new or updated permissions being added

n/a

Description of how you validated changes

Existing tests passing. Additionally compared generated code by hand.

Checklist


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

@github-actions github-actions bot added the p2 label Nov 10, 2025
@aws-cdk-automation aws-cdk-automation requested a review from a team November 10, 2025 17:11
@mergify mergify bot added the contribution/core This is a PR that came from AWS. label Nov 10, 2025
@mrgrain mrgrain force-pushed the mrgrain/chore/refactor-spec2cdk branch from 50d58bd to e7f032b Compare November 10, 2025 18:03
{
type: ComponentType.CUSTOM_RESOURCE_PROVIDER,
sourceCode: path.resolve(__dirname, '..', 'core', 'cross-region-ssm-writer-handler', 'index.ts'),
constructorVisibility: MemberVisibility.Public,
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is changing because the generated class is extended by another class. Previously due to a bug in @cdklabs/typewriter, the generated classes ended up with a public constructor instead of a private one as intended. After the dependency update this failed for the one case, which we make public again to satisfy the compiler.

@mrgrain mrgrain force-pushed the mrgrain/chore/refactor-spec2cdk branch 2 times, most recently from 67057b3 to 7a12a34 Compare November 10, 2025 19:12
@mrgrain mrgrain force-pushed the mrgrain/chore/refactor-spec2cdk branch from 7a12a34 to 6e4b611 Compare November 10, 2025 19:31
@mergify
Copy link
Contributor

mergify bot commented Nov 11, 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
Copy link
Contributor

mergify bot commented Nov 11, 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 7445176 into main Nov 11, 2025
18 of 19 checks passed
@mergify mergify bot deleted the mrgrain/chore/refactor-spec2cdk branch November 11, 2025 10: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 Nov 11, 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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants