Describe the feature
Names.uniqueId only accepts Constructs. The method internally only works with Construct's nodes which can also be determined for IConstructs (Node.of). So it should be o.k. to pass an IConstruct.
Use Case
I use the Java-CDK and want to create a uniqueId of an IOpenIdConnectProvider, which is an IConstruct but no Construct.
In Java it's impossible to do compile that, in TypeScript it works without problems.
Proposed Solution
change the parameter type from Construct to IConstruct
Other Information
No response
Acknowledgements
CDK version used
2.26.0
Environment details (OS name and version, etc.)
Windows / Linux
Describe the feature
Names.uniqueId only accepts Constructs. The method internally only works with Construct's nodes which can also be determined for IConstructs (Node.of). So it should be o.k. to pass an IConstruct.
Use Case
I use the Java-CDK and want to create a uniqueId of an IOpenIdConnectProvider, which is an IConstruct but no Construct.
In Java it's impossible to do compile that, in TypeScript it works without problems.
Proposed Solution
change the parameter type from Construct to IConstruct
Other Information
No response
Acknowledgements
CDK version used
2.26.0
Environment details (OS name and version, etc.)
Windows / Linux