AWS cdk documentation change
Summary
Added '###### Example' section headers throughout the documentation to structure example code blocks
Security assessment
The changes only add example section headers without modifying actual security-related content. No security vulnerabilities, configurations, or features are discussed in these additions.
Diff
diff --git a/cdk/v2/guide/constructs.md b/cdk/v2/guide/constructs.md index 01fa28a33..97ee4ec59 100644 --- a//cdk/v2/guide/constructs.md +++ b//cdk/v2/guide/constructs.md @@ -86,0 +87,2 @@ Most constructs accept `props` as their third argument (or in Python, keyword ar +###### Example + @@ -146,0 +149,2 @@ Most AWS constructs have a set of [grant](./permissions.html#permissions-grants) +###### Example + @@ -198,0 +203,2 @@ The following code defines an AWS Lambda function and associates it with an Amaz +###### Example + @@ -291,0 +298,2 @@ The following example defines an app with a single stack. Within the stack, an L +###### Example + @@ -444,0 +453,2 @@ In this example, we create a `bucket` object using the `CfnBucket` L1 construct: +###### Example + @@ -491,0 +502,2 @@ Construct properties that aren’t simple Booleans, strings, numbers, or contain +###### Example + @@ -612,0 +625,2 @@ The following example creates a Lambda function using an L1 construct (`CfnFunct +###### Example + @@ -796,0 +811,2 @@ The following example shows the same Lambda function, but using the role object +###### Example + @@ -986,0 +1003,2 @@ In the following example, we define an Amazon S3 bucket by creating an object fr +###### Example + @@ -1076,0 +1095,2 @@ The following example shows how to declare a construct that represents an Amazon +###### Example + @@ -1207,0 +1228,2 @@ The `NotifyingBucket` constructor has a typical construct signature: `scope`, `i +###### Example + @@ -1245,0 +1268,2 @@ Or you could use `props` (in Java, an additional parameter) to specify the path +###### Example + @@ -1288,0 +1313,2 @@ Typically, you would also want to expose some properties or methods on your cons +###### Example + @@ -1416,0 +1443,2 @@ Now, consumers can subscribe to the topic, for example: +###### Example +