AWS code-library documentation change
Summary
Added region-aware bucket creation logic with proper constraint handling for us-east-1
Security assessment
Improves region-specific configuration correctness but does not address security vulnerabilities or document security controls
Diff
diff --git a/code-library/latest/ug/s3_example_s3_CreateBucket_section.md b/code-library/latest/ug/s3_example_s3_CreateBucket_section.md index 812fcd472..cc5341683 100644 --- a/code-library/latest/ug/s3_example_s3_CreateBucket_section.md +++ b/code-library/latest/ug/s3_example_s3_CreateBucket_section.md @@ -944,0 +945,11 @@ There's more on GitHub. Find the complete example and learn how to set up and ru + " determine our region from our session + DATA(lv_region) = CONV /aws1/s3_bucketlocationcnstrnt( lo_session->get_region( ) ). + DATA lo_constraint TYPE REF TO /aws1/cl_s3_createbucketconf. + " When in the us-east-1 region, you must not specify a constraint + " In all other regions, specify the region as the constraint + IF lv_region = 'us-east-1'. + CLEAR lo_constraint. + ELSE. + lo_constraint = NEW /aws1/cl_s3_createbucketconf( lv_region ). + ENDIF. + @@ -947 +958 @@ There's more on GitHub. Find the complete example and learn how to set up and ru - ). + io_createbucketconfiguration = lo_constraint ).