Skip to content
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

fix(spec2cdk): attributes in ICfnResource should not be optional #28179

Merged
merged 2 commits into from
Nov 29, 2023

Conversation

kaizencc
Copy link
Contributor

They should all be required. Anything returned from ref will exist, even if the property itself is not required. For example, CfnBucket.attrBucketName is not required in the resource spec because you can either specify a bucket name or have one generated for you. However, when accessing it via ref, the bucket name will certainly exist, so it is not optional.


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 November 28, 2023 23:01
@github-actions github-actions bot added the p2 label Nov 28, 2023
@mergify mergify bot added the contribution/core This is a PR that came from AWS. label Nov 28, 2023
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.

The pull request linter has failed. See the aws-cdk-automation comment below for failure reasons. If you believe this pull request should receive an exemption, please comment and provide a justification.

A comment requesting an exemption should contain the text Exemption Request. Additionally, if clarification is needed add Clarification Request to a comment.

@kaizencc kaizencc added the pr-linter/exempt-integ-test The PR linter will not require integ test changes label Nov 28, 2023
@aws-cdk-automation aws-cdk-automation dismissed their stale review November 28, 2023 23:22

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

@kaizencc kaizencc merged commit cfb38da into conroy/generate Nov 29, 2023
20 of 22 checks passed
@kaizencc kaizencc deleted the conroy/generate-fix branch November 29, 2023 19:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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