-
Notifications
You must be signed in to change notification settings - Fork 4k
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
refactor: make "toCloudFormation" internal #2047
Conversation
@@ -20,7 +20,7 @@ export function expect(stack: api.SynthesizedStack | cdk.Stack, skipValidation = | |||
|
|||
sstack = { | |||
name: stack.name, | |||
template: stack.toCloudFormation(), | |||
template: stack._toCloudFormation(), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why we renaming to _toCloudFormation
given that we have aws/jsii#390 in the pipes? Can we not just @internal
the method?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think in the CDK I'd like to standardize (awslint) that internal members are also prefixed with an underscore to make it clear to maintainers that they are internal.
…tion") (aws#2047) The method `toCloudFormation` is not supposed to be directly called by users. Mark it as `@internal` and rename to `_toCloudFormation`. Fixes aws#2044 Related aws#2016 BREAKING CHANGE: “toCloudFormation” is now internal and should not be called directly. Instead use “app.synthesizeStack”
Thanks so much for taking the time to contribute to the AWS CDK ❤️ We will shortly assign someone to review this pull request and help get it
|
The method
toCloudFormation
is not supposed to be directly called by users. Mark it as@internal
and rename to_toCloudFormation
.Fixes #2044
Related #2016
Pull Request Checklist
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license.