awslabs / diagram-as-code

Diagram-as-code for AWS architecture.
Apache License 2.0
405 stars 22 forks source link

add HasChildren property for definition file #59

Closed ugwis closed 1 month ago

ugwis commented 1 month ago

Issue #, if available:

Description of changes:

When generating an architecture diagram from CloudFormation, I found that some resources (e.g. subnets) should be included in child elements and others (e.g. EC2 instances) should not be included. In the future, AWS::Diagram::Group may be merged with AWS::Diagram::Resource and the concept of Group may become obsolete, so add a section for CloudFormation to your definition file and use this property to Suppose you want to control the architecture diagram generated from CloudFormation by determining whether child elements should be added by default.