AWS Security ChangesHomeSearch

AWS cdk documentation change

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

File: cdk/v2/guide/serverless-example.md

Summary

Updated code examples and CloudFormation template by replacing placeholder '<shared id="AWS"/>' with 'AWS' to correct namespace references and resource types.

Security assessment

The changes are purely cosmetic fixes to documentation syntax and placeholder values. There's no evidence of security vulnerability fixes, security feature additions, or security-related content modifications. The updates only ensure correct AWS resource type naming in code samples and CloudFormation templates without altering security configurations or permissions.

Diff

diff --git a/cdk/v2/guide/serverless-example.md b/cdk/v2/guide/serverless-example.md
index b468027c9..cb4d9ba07 100644
--- a//cdk/v2/guide/serverless-example.md
+++ b//cdk/v2/guide/serverless-example.md
@@ -766 +766 @@ C#
-    using Amazon.CDK.<shared id="AWS"/>.Lambda;
+    using Amazon.CDK.AWS.Lambda;
@@ -961 +961 @@ C#
-    using Amazon.CDK.<shared id="AWS"/>.APIGateway;
+    using Amazon.CDK.AWS.APIGateway;
@@ -1102 +1102 @@ The following is an example output of the AWS CloudFormation template:
-        Type: <shared id="AWS"/>::IAM::Role
+        Type: AWS::IAM::Role
@@ -1115 +1115 @@ The following is an example output of the AWS CloudFormation template:
-                  - Ref: <shared id="AWS"/>::Partition
+                  - Ref: AWS::Partition
@@ -1120 +1120 @@ The following is an example output of the AWS CloudFormation template:
-        Type: <shared id="AWS"/>::Lambda::Function
+        Type: AWS::Lambda::Function
@@ -1124 +1124 @@ The following is an example output of the AWS CloudFormation template:
-              Fn::Sub: cdk-unique-identifier-assets-${<shared id="AWS"/>::AccountId}-${<shared id="AWS"/>::Region}
+              Fn::Sub: cdk-unique-identifier-assets-${AWS::AccountId}-${AWS::Region}
@@ -1140 +1140 @@ The following is an example output of the AWS CloudFormation template:
-        Type: <shared id="AWS"/>::ApiGateway::RestApi
+        Type: AWS::ApiGateway::RestApi
@@ -1146 +1146 @@ The following is an example output of the AWS CloudFormation template:
-        Type: <shared id="AWS"/>::ApiGateway::Deployment
+        Type: AWS::ApiGateway::Deployment
@@ -1157 +1157 @@ The following is an example output of the AWS CloudFormation template:
-        Type: <shared id="AWS"/>::ApiGateway::Stage
+        Type: AWS::ApiGateway::Stage
@@ -1167 +1167 @@ The following is an example output of the AWS CloudFormation template:
-        Type: <shared id="AWS"/>::ApiGateway::Resource
+        Type: AWS::ApiGateway::Resource
@@ -1179 +1179 @@ The following is an example output of the AWS CloudFormation template:
-        Type: <shared id="AWS"/>::Lambda::Permission
+        Type: AWS::Lambda::Permission
@@ -1191 +1191 @@ The following is an example output of the AWS CloudFormation template:
-                - Ref: <shared id="AWS"/>::Partition
+                - Ref: AWS::Partition
@@ -1193 +1193 @@ The following is an example output of the AWS CloudFormation template:
-                - Ref: <shared id="AWS"/>::Region
+                - Ref: AWS::Region
@@ -1195 +1195 @@ The following is an example output of the AWS CloudFormation template:
-                - Ref: <shared id="AWS"/>::AccountId
+                - Ref: AWS::AccountId
@@ -1204 +1204 @@ The following is an example output of the AWS CloudFormation template:
-        Type: <shared id="AWS"/>::Lambda::Permission
+        Type: AWS::Lambda::Permission
@@ -1216 +1216 @@ The following is an example output of the AWS CloudFormation template:
-                - Ref: <shared id="AWS"/>::Partition
+                - Ref: AWS::Partition
@@ -1218 +1218 @@ The following is an example output of the AWS CloudFormation template:
-                - Ref: <shared id="AWS"/>::Region
+                - Ref: AWS::Region
@@ -1220 +1220 @@ The following is an example output of the AWS CloudFormation template:
-                - Ref: <shared id="AWS"/>::AccountId
+                - Ref: AWS::AccountId
@@ -1227 +1227 @@ The following is an example output of the AWS CloudFormation template:
-        Type: <shared id="AWS"/>::ApiGateway::Method
+        Type: AWS::ApiGateway::Method
@@ -1238 +1238 @@ The following is an example output of the AWS CloudFormation template:
-                  - Ref: <shared id="AWS"/>::Partition
+                  - Ref: AWS::Partition
@@ -1240 +1240 @@ The following is an example output of the AWS CloudFormation template:
-                  - Ref: <shared id="AWS"/>::Region
+                  - Ref: AWS::Region
@@ -1253 +1253 @@ The following is an example output of the AWS CloudFormation template:
-        Type: <shared id="AWS"/>::CDK::Metadata
+        Type: AWS::CDK::Metadata
@@ -1267 +1267 @@ The following is an example output of the AWS CloudFormation template:
-              - Ref: <shared id="AWS"/>::Region
+              - Ref: AWS::Region
@@ -1269 +1269 @@ The following is an example output of the AWS CloudFormation template:
-              - Ref: <shared id="AWS"/>::URLSuffix
+              - Ref: AWS::URLSuffix
@@ -1278 +1278 @@ The following is an example output of the AWS CloudFormation template:
-                  - Ref: <shared id="AWS"/>::Region
+                  - Ref: AWS::Region
@@ -1281 +1281 @@ The following is an example output of the AWS CloudFormation template:
-                  - Ref: <shared id="AWS"/>::Region
+                  - Ref: AWS::Region
@@ -1284 +1284 @@ The following is an example output of the AWS CloudFormation template:
-                  - Ref: <shared id="AWS"/>::Region
+                  - Ref: AWS::Region
@@ -1287 +1287 @@ The following is an example output of the AWS CloudFormation template:
-                  - Ref: <shared id="AWS"/>::Region
+                  - Ref: AWS::Region
@@ -1290 +1290 @@ The following is an example output of the AWS CloudFormation template:
-                  - Ref: <shared id="AWS"/>::Region
+                  - Ref: AWS::Region
@@ -1293 +1293 @@ The following is an example output of the AWS CloudFormation template:
-                  - Ref: <shared id="AWS"/>::Region
+                  - Ref: AWS::Region
@@ -1296 +1296 @@ The following is an example output of the AWS CloudFormation template:
-                  - Ref: <shared id="AWS"/>::Region
+                  - Ref: AWS::Region
@@ -1299 +1299 @@ The following is an example output of the AWS CloudFormation template:
-                  - Ref: <shared id="AWS"/>::Region
+                  - Ref: AWS::Region
@@ -1302 +1302 @@ The following is an example output of the AWS CloudFormation template:
-                  - Ref: <shared id="AWS"/>::Region
+                  - Ref: AWS::Region
@@ -1305 +1305 @@ The following is an example output of the AWS CloudFormation template:
-                  - Ref: <shared id="AWS"/>::Region
+                  - Ref: AWS::Region
@@ -1309 +1309 @@ The following is an example output of the AWS CloudFormation template:
-                  - Ref: <shared id="AWS"/>::Region
+                  - Ref: AWS::Region
@@ -1312 +1312 @@ The following is an example output of the AWS CloudFormation template:
-                  - Ref: <shared id="AWS"/>::Region
+                  - Ref: AWS::Region
@@ -1315 +1315 @@ The following is an example output of the AWS CloudFormation template:
-                  - Ref: <shared id="AWS"/>::Region
+                  - Ref: AWS::Region
@@ -1318 +1318 @@ The following is an example output of the AWS CloudFormation template:
-                  - Ref: <shared id="AWS"/>::Region
+                  - Ref: AWS::Region
@@ -1321 +1321 @@ The following is an example output of the AWS CloudFormation template:
-                  - Ref: <shared id="AWS"/>::Region
+                  - Ref: AWS::Region
@@ -1324 +1324 @@ The following is an example output of the AWS CloudFormation template:
-                  - Ref: <shared id="AWS"/>::Region
+                  - Ref: AWS::Region
@@ -1327 +1327 @@ The following is an example output of the AWS CloudFormation template:
-                  - Ref: <shared id="AWS"/>::Region
+                  - Ref: AWS::Region
@@ -1330 +1330 @@ The following is an example output of the AWS CloudFormation template:
-                  - Ref: <shared id="AWS"/>::Region
+                  - Ref: AWS::Region
@@ -1333 +1333 @@ The following is an example output of the AWS CloudFormation template:
-                  - Ref: <shared id="AWS"/>::Region
+                  - Ref: AWS::Region
@@ -1336 +1336 @@ The following is an example output of the AWS CloudFormation template:
-                  - Ref: <shared id="AWS"/>::Region
+                  - Ref: AWS::Region
@@ -1340 +1340 @@ The following is an example output of the AWS CloudFormation template:
-                  - Ref: <shared id="AWS"/>::Region
+                  - Ref: AWS::Region
@@ -1343 +1343 @@ The following is an example output of the AWS CloudFormation template:
-                  - Ref: <shared id="AWS"/>::Region
+                  - Ref: AWS::Region
@@ -1346 +1346 @@ The following is an example output of the AWS CloudFormation template:
-                  - Ref: <shared id="AWS"/>::Region
+                  - Ref: AWS::Region
@@ -1349 +1349 @@ The following is an example output of the AWS CloudFormation template:
-                  - Ref: <shared id="AWS"/>::Region
+                  - Ref: AWS::Region
@@ -1353 +1353 @@ The following is an example output of the AWS CloudFormation template:
-        Type: <shared id="AWS"/>::SSM::Parameter::Value<String>
+        Type: AWS::SSM::Parameter::Value<String>