AWS code-library documentation change
Summary
Code formatting changes and error message type updates from 'E' (error) to 'W' (warning) in exception handling
Security assessment
Changes involve error handling improvements and code formatting but do not address security vulnerabilities or document security features
Diff
diff --git a/code-library/latest/ug/lambda_example_lambda_Scenario_GettingStartedFunctions_section.md b/code-library/latest/ug/lambda_example_lambda_Scenario_GettingStartedFunctions_section.md index 18c26087a..f2cdcdeef 100644 --- a/code-library/latest/ug/lambda_example_lambda_Scenario_GettingStartedFunctions_section.md +++ b/code-library/latest/ug/lambda_example_lambda_Scenario_GettingStartedFunctions_section.md @@ -4537,2 +4537,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( ). @@ -4542 +4542,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( ). @@ -4552,2 +4553 @@ 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' ). @@ -4571 +4571 @@ 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 @@ -4574,2 +4574 @@ 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' ). @@ -4599,2 +4598 @@ There's more on GitHub. Find the complete example and learn how to set up and ru - `}` - ). + `}` ). @@ -4603,2 +4601 @@ 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 ). @@ -4625,2 +4622 @@ 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 ). @@ -4646,2 +4642 @@ 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 ) ). @@ -4664,2 +4659 @@ There's more on GitHub. Find the complete example and learn how to set up and ru - `}` - ). + `}` ). @@ -4668,2 +4662 @@ 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 ). @@ -4701 +4694 @@ 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'. @@ -4708,2 +4701 @@ 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' ). @@ -4714 +4706 @@ 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'. @@ -4726 +4718 @@ 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'.