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

defaultChild #2290

Closed
eladb opened this issue Apr 15, 2019 · 0 comments · Fixed by #2684 or MechanicalRock/tech-radar#14 · May be fixed by MechanicalRock/cdk-constructs#5, MechanicalRock/cdk-constructs#6 or MechanicalRock/cdk-constructs#7
Closed
Assignees
Labels
feature-request A feature should be added or improved. package/awscl Cross-cutting issues related to the AWS Construct Library package/cfn Related to the CFN layer (L1)

Comments

@eladb
Copy link
Contributor

eladb commented Apr 15, 2019

Add ConstructNode.defaultChild: Construct which will return the child named Default or Resource and will be used as an escape hatch idiom instead of findChild("Resource").

@eladb eladb added the feature-request A feature should be added or improved. label Apr 15, 2019
@eladb eladb added the package/cfn Related to the CFN layer (L1) label Apr 15, 2019
@eladb eladb added package/awscl Cross-cutting issues related to the AWS Construct Library and removed package/awscl Cross-cutting issues related to the AWS Construct Library labels May 1, 2019
eladb pushed a commit that referenced this issue May 30, 2019
Convinience property which returns the child with id "Resource"
or "Default" (fails if there are both).

This is useful in order to enable escape hatching.

Closes #2290
@eladb eladb self-assigned this May 30, 2019
eladb pushed a commit that referenced this issue May 30, 2019
Convenience property which returns the child with id "Resource"
or "Default" (fails if there are both).

This is useful in order to enable escape hatching.

Closes #2290
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment