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
Copy file name to clipboardExpand all lines: v2/guide/constructs.adoc
+11-11Lines changed: 11 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -661,7 +661,7 @@ Some of our language-specific API references currently have errors in the paths
661
661
====
662
662
663
663
[#constructs-l1-l2-references]
664
-
=== Passing construct references to L1 properties
664
+
==== Passing construct references to L1 properties
665
665
666
666
L1 constructs support passing construct objects directly to properties that expect resource references, such as ARNs or names. The CDK automatically resolves the appropriate attribute (ARN, name, or other identifier) based on the property type.
667
667
@@ -673,7 +673,7 @@ TypeScript::
673
673
+
674
674
[source,javascript,subs="verbatim,attributes"]
675
675
----
676
-
const l2Role = new iam.Role(this, 'L2Role', {
676
+
const role = new iam.Role(this, 'MyRole', {
677
677
assumedBy: new iam.ServicePrincipal('lambda.amazonaws.com'),
0 commit comments