AWS Security ChangesHomeSearch

AWS cdk documentation change

Service: cdk · 2026-01-25 · Documentation low

File: cdk/v2/guide/hello-world.md

Summary

Replaced placeholder '<shared id="AWS"/>' with 'AWS' in code snippets, CloudFormation templates, and CLI output examples throughout the documentation

Security assessment

Changes are purely cosmetic fixes to documentation formatting and code examples. No security vulnerabilities, configurations, or best practices are modified or introduced. The updates correct placeholder text but don't alter security-related content like IAM policies or Lambda permissions.

Diff

diff --git a/cdk/v2/guide/hello-world.md b/cdk/v2/guide/hello-world.md
index 7da5a5216..399c4a453 100644
--- a//cdk/v2/guide/hello-world.md
+++ b//cdk/v2/guide/hello-world.md
@@ -783 +783 @@ Located in `src/main/java/…​/HelloCdkStack.java`:
-    using Amazon.CDK.<shared id="AWS"/>.Lambda;
+    using Amazon.CDK.AWS.Lambda;
@@ -1109 +1109 @@ The following is an example output of the CloudFormation template:
-        Type: <shared id="AWS"/>::IAM::Role
+        Type: AWS::IAM::Role
@@ -1122 +1122 @@ The following is an example output of the CloudFormation template:
-                  - Ref: <shared id="AWS"/>::Partition
+                  - Ref: AWS::Partition
@@ -1127 +1127 @@ The following is an example output of the CloudFormation template:
-        Type: <shared id="AWS"/>::Lambda::Function
+        Type: AWS::Lambda::Function
@@ -1156 +1156 @@ The following is an example output of the CloudFormation template:
-        Type: <shared id="AWS"/>::Lambda::Url
+        Type: AWS::Lambda::Url
@@ -1166 +1166 @@ The following is an example output of the CloudFormation template:
-        Type: <shared id="AWS"/>::Lambda::Permission
+        Type: AWS::Lambda::Permission
@@ -1178 +1178 @@ The following is an example output of the CloudFormation template:
-        Type: <shared id="AWS"/>::CDK::Metadata
+        Type: AWS::CDK::Metadata
@@ -1192 +1192 @@ The following is an example output of the CloudFormation template:
-        Type: <shared id="AWS"/>::SSM::Parameter::Value<String>
+        Type: AWS::SSM::Parameter::Value<String>
@@ -1245 +1245 @@ From the root of your project, run the following. Confirm changes if prompted:
-    │ + │ ${HelloWorldFunction/ServiceRole} │ arn:${<shared id="AWS"/>::Partition}:iam::aws:policy/service-role/AWSLambdaBasicExecutionRole │
+    │ + │ ${HelloWorldFunction/ServiceRole} │ arn:${AWS::Partition}:iam::aws:policy/service-role/AWSLambdaBasicExecutionRole │
@@ -1493 +1493 @@ To preview your changes, run the `cdk diff` command. The following is an example
-    [~] <shared id="AWS"/>::Lambda::Function HelloWorldFunction HelloWorldFunction<unique-identifier>
+    [~] AWS::Lambda::Function HelloWorldFunction HelloWorldFunction<unique-identifier>