AWS Security ChangesHomeSearch

AWS lambda documentation change

Service: lambda · 2025-03-23 · Documentation low

File: lambda/latest/dg/example_lambda_Scenario_GettingStartedFunctions_section.md

Summary

Code formatting changes and error message severity adjustments in Lambda example (changed error messages from TYPE 'E' to 'W', consolidated line breaks in method calls)

Security assessment

Changes focus on code formatting and non-fatal error handling (changing ABAP message types from error to warning). No evidence of addressing vulnerabilities, security configurations, or security feature documentation. The AWSLambdaBasicExecutionRole reference is part of standard logging setup.

Diff

diff --git a/lambda/latest/dg/example_lambda_Scenario_GettingStartedFunctions_section.md b/lambda/latest/dg/example_lambda_Scenario_GettingStartedFunctions_section.md
index 77b01de98..6f6eadcb9 100644
--- a/lambda/latest/dg/example_lambda_Scenario_GettingStartedFunctions_section.md
+++ b/lambda/latest/dg/example_lambda_Scenario_GettingStartedFunctions_section.md
@@ -4535,2 +4535,2 @@ There's more on GitHub. Find the complete example and learn how to set up and ru
-                        iv_description = 'Grant lambda permission to write to logs'
-                    ).
+                        iv_description = 'Grant lambda permission to write to logs' ).
+                DATA(lv_role_arn) = lo_create_role_output->get_role( )->get_arn( ).
@@ -4540 +4540,2 @@ There's more on GitHub. Find the complete example and learn how to set up and ru
-                MESSAGE 'IAM role already exists.' TYPE 'E'.
+                DATA(lo_role) = lo_iam->getrole( iv_rolename = iv_role_name ).
+                lv_role_arn = lo_role->get_role( )->get_arn( ).
@@ -4550,2 +4551 @@ There's more on GitHub. Find the complete example and learn how to set up and ru
-                    iv_policyarn = 'arn:aws:iam::aws:policy/service-role/AWSLambdaBasicExecutionRole'
-                ).
+                    iv_policyarn = 'arn:aws:iam::aws:policy/service-role/AWSLambdaBasicExecutionRole' ).
@@ -4569 +4569 @@ There's more on GitHub. Find the complete example and learn how to set up and ru
-                     iv_role = lo_create_role_output->get_role( )->get_arn( )
+                     iv_role = lv_role_arn
@@ -4572,2 +4572 @@ There's more on GitHub. Find the complete example and learn how to set up and ru
-                     iv_description = 'AWS Lambda code example'
-                 ).
+                     iv_description = 'AWS Lambda code example' ).
@@ -4597,2 +4596 @@ There's more on GitHub. Find the complete example and learn how to set up and ru
-                  `}`
-                ).
+                  `}` ).
@@ -4601,2 +4599 @@ There's more on GitHub. Find the complete example and learn how to set up and ru
-                           iv_payload = lv_json
-                       ).
+                           iv_payload = lv_json ).
@@ -4623,2 +4620 @@ There's more on GitHub. Find the complete example and learn how to set up and ru
-                      iv_zipfile = io_updated_zip_file
-                  ).
+                      iv_zipfile = io_updated_zip_file ).
@@ -4644,2 +4640 @@ There's more on GitHub. Find the complete example and learn how to set up and ru
-                      io_environment = NEW /aws1/cl_lmdenvironment( it_variables = lt_variables )
-                  ).
+                      io_environment = NEW /aws1/cl_lmdenvironment( it_variables = lt_variables ) ).
@@ -4662,2 +4657 @@ There's more on GitHub. Find the complete example and learn how to set up and ru
-                  `}`
-                ).
+                  `}` ).
@@ -4666,2 +4660 @@ There's more on GitHub. Find the complete example and learn how to set up and ru
-                           iv_payload = lv_json
-                       ).
+                           iv_payload = lv_json ).
@@ -4699 +4692 @@ There's more on GitHub. Find the complete example and learn how to set up and ru
-                MESSAGE 'The requested resource does not exist.' TYPE 'E'.
+                MESSAGE 'The requested resource does not exist.' TYPE 'W'.
@@ -4706,2 +4699 @@ There's more on GitHub. Find the complete example and learn how to set up and ru
-                    iv_policyarn = 'arn:aws:iam::aws:policy/service-role/AWSLambdaBasicExecutionRole'
-                ).
+                    iv_policyarn = 'arn:aws:iam::aws:policy/service-role/AWSLambdaBasicExecutionRole' ).
@@ -4712 +4704 @@ There's more on GitHub. Find the complete example and learn how to set up and ru
-                MESSAGE 'The requested resource entity does not exist.' TYPE 'E'.
+                MESSAGE 'The requested resource entity does not exist.' TYPE 'W'.
@@ -4724 +4716 @@ There's more on GitHub. Find the complete example and learn how to set up and ru
-                MESSAGE 'The requested resource entity does not exist.' TYPE 'E'.
+                MESSAGE 'The requested resource entity does not exist.' TYPE 'W'.