You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
First of all thanks for your time on this project, it's awesome.
I would like to be able to uncollapse in the diagram the nestedStacks that I have, I would like to understand why this feature is not available on other languages rather than js/ts.
My project is on python, and even thought the laguage doesn't have the concept of interface, with jsii it can be used in the following way
fromconstructsimportConstructimportjsiifromaws_cdkimport (
NestedStack,
aws_ec2asec2,
aws_iamasiam,
IInspectable
)
@jsii.implements(IInspectable)classNetworkStack(NestedStack):
@jsii.member(jsii_name="inspect")definspect(self, inspector: "TreeInspector") ->None:
""" :param inspector: :return: """# add here the logic of cdkDiaDecoratorpass
I am unfamiliar with how to compile ts to other languages, but why is not possible to export also the logic of that decorator to other languages?
Kind regards
The text was updated successfully, but these errors were encountered:
I guess it's not available because I didn't know how to do it :) but maybe you can help figure this out.
The basic thing here is that for customizing specific constructs CDK-Dia needs the data on the construct tree as attributes.CDK-DIA_CollapssingCustomizer:"FORCE_NON_COLLAPSE" (see example construct tree).
So if you can get CDK to add that attribute to the tree on synth-time your CDK-Dia will pick that up.
I guess you need then to adapt the code here to Python and replace it in the de inspect method above.
It would be even better if one could use jsii to use the already provided decorator so the Python way to customize will be the same as the TS way.
First of all thanks for your time on this project, it's awesome.
I would like to be able to uncollapse in the diagram the nestedStacks that I have, I would like to understand why this feature is not available on other languages rather than js/ts.
My project is on python, and even thought the laguage doesn't have the concept of interface, with jsii it can be used in the following way
I am unfamiliar with how to compile ts to other languages, but why is not possible to export also the logic of that decorator to other languages?
Kind regards
The text was updated successfully, but these errors were encountered: