-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
feat(core): make the CfnParameter class mutable #9365
Conversation
Co-authored-by: Adam Ruka <adamruka85@gmail.com>
…::And, Fn::Not, and Fn::Or, including unit tests.
…ntrinsic functions
…ied the return type of transform to IResolvable, and updated transform docs
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.
Looks great! Some cosmetic comments.
} | ||
|
||
/** | ||
* Indicates if this parameter is configured with "NoEcho" enabled. | ||
*/ | ||
public get noEcho(): boolean { | ||
return !!this.props.noEcho; | ||
public get noEcho(): boolean | undefined { |
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.
Just to be clear, I meant only the setter. The getter should stay unchanged.
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.
Their types have to be the same though. We can't have one being boolean | undefined
and the other being boolean
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.
Hmmm, that sucks then.
OK, leave the setter as boolean
then. If we need to, we can add a separate method like unsetNoEcho()
later.
MaxValue: this.maxValue, | ||
MinLength: this.minLength, | ||
MinValue: this.minValue, | ||
NoEcho: this.noEcho, |
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.
Here, do use this._noEcho
(you need the triple state boolean here).
ffc95cd
to
5ec49dd
Compare
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.
👍
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
Thank you for contributing! Your pull request will be updated from master and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork). |
Closes aws#9364 ---- By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license
Closes #9364
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license