AWS code-library documentation change
Summary
Updated object creation syntax from CREATE OBJECT/EXPORTING to NEW #() pattern in SageMaker training job example code
Security assessment
Changes are purely syntactic improvements to object instantiation patterns (modern ABAP-style syntax). No security parameters, access controls, or vulnerability mitigations were modified or introduced.
Diff
diff --git a/code-library/latest/ug/sagemaker_example_sagemaker_CreateTrainingJob_section.md b/code-library/latest/ug/sagemaker_example_sagemaker_CreateTrainingJob_section.md index d686a31d3..4a48fe768 100644 --- a/code-library/latest/ug/sagemaker_example_sagemaker_CreateTrainingJob_section.md +++ b/code-library/latest/ug/sagemaker_example_sagemaker_CreateTrainingJob_section.md @@ -45 +45 @@ There's more on GitHub. Find the complete example and learn how to set up and ru - CREATE OBJECT lo_hyperparameters_w EXPORTING iv_value = iv_hp_max_depth. + lo_hyperparameters_w = NEW #( iv_value = iv_hp_max_depth ). @@ -48 +48 @@ There's more on GitHub. Find the complete example and learn how to set up and ru - CREATE OBJECT lo_hyperparameters_w EXPORTING iv_value = iv_hp_eta. + lo_hyperparameters_w = NEW #( iv_value = iv_hp_eta ). @@ -51 +51 @@ There's more on GitHub. Find the complete example and learn how to set up and ru - CREATE OBJECT lo_hyperparameters_w EXPORTING iv_value = iv_hp_eval_metric. + lo_hyperparameters_w = NEW #( iv_value = iv_hp_eval_metric ). @@ -54 +54 @@ There's more on GitHub. Find the complete example and learn how to set up and ru - CREATE OBJECT lo_hyperparameters_w EXPORTING iv_value = iv_hp_scale_pos_weight. + lo_hyperparameters_w = NEW #( iv_value = iv_hp_scale_pos_weight ). @@ -57 +57 @@ There's more on GitHub. Find the complete example and learn how to set up and ru - CREATE OBJECT lo_hyperparameters_w EXPORTING iv_value = iv_hp_subsample. + lo_hyperparameters_w = NEW #( iv_value = iv_hp_subsample ). @@ -60 +60 @@ There's more on GitHub. Find the complete example and learn how to set up and ru - CREATE OBJECT lo_hyperparameters_w EXPORTING iv_value = iv_hp_objective. + lo_hyperparameters_w = NEW #( iv_value = iv_hp_objective ). @@ -63 +63 @@ There's more on GitHub. Find the complete example and learn how to set up and ru - CREATE OBJECT lo_hyperparameters_w EXPORTING iv_value = iv_hp_num_round. + lo_hyperparameters_w = NEW #( iv_value = iv_hp_num_round ). @@ -67,3 +67 @@ There's more on GitHub. Find the complete example and learn how to set up and ru - CREATE OBJECT lo_trn_s3datasource - EXPORTING - iv_s3datatype = iv_trn_data_s3datatype + lo_trn_s3datasource = NEW #( iv_s3datatype = iv_trn_data_s3datatype @@ -71 +69 @@ There's more on GitHub. Find the complete example and learn how to set up and ru - iv_s3uri = iv_trn_data_s3uri. + iv_s3uri = iv_trn_data_s3uri ). @@ -73,3 +71 @@ There's more on GitHub. Find the complete example and learn how to set up and ru - CREATE OBJECT lo_trn_datasource - EXPORTING - io_s3datasource = lo_trn_s3datasource. + lo_trn_datasource = NEW #( io_s3datasource = lo_trn_s3datasource ). @@ -77,3 +73 @@ There's more on GitHub. Find the complete example and learn how to set up and ru - CREATE OBJECT lo_trn_channel - EXPORTING - iv_channelname = 'train' + lo_trn_channel = NEW #( iv_channelname = 'train' @@ -82 +76 @@ There's more on GitHub. Find the complete example and learn how to set up and ru - iv_contenttype = iv_trn_data_contenttype. + iv_contenttype = iv_trn_data_contenttype ). @@ -87,3 +81 @@ There's more on GitHub. Find the complete example and learn how to set up and ru - CREATE OBJECT lo_val_s3datasource - EXPORTING - iv_s3datatype = iv_val_data_s3datatype + lo_val_s3datasource = NEW #( iv_s3datatype = iv_val_data_s3datatype @@ -91 +83 @@ There's more on GitHub. Find the complete example and learn how to set up and ru - iv_s3uri = iv_val_data_s3uri. + iv_s3uri = iv_val_data_s3uri ). @@ -93,3 +85 @@ There's more on GitHub. Find the complete example and learn how to set up and ru - CREATE OBJECT lo_val_datasource - EXPORTING - io_s3datasource = lo_val_s3datasource. + lo_val_datasource = NEW #( io_s3datasource = lo_val_s3datasource ). @@ -97,3 +87 @@ There's more on GitHub. Find the complete example and learn how to set up and ru - CREATE OBJECT lo_val_channel - EXPORTING - iv_channelname = 'validation' + lo_val_channel = NEW #( iv_channelname = 'validation' @@ -102 +90 @@ There's more on GitHub. Find the complete example and learn how to set up and ru - iv_contenttype = iv_val_data_contenttype. + iv_contenttype = iv_val_data_contenttype ). @@ -107,4 +95,2 @@ There's more on GitHub. Find the complete example and learn how to set up and ru - CREATE OBJECT lo_algorithm_specification - EXPORTING - iv_trainingimage = iv_training_image - iv_traininginputmode = iv_training_input_mode. + lo_algorithm_specification = NEW #( iv_trainingimage = iv_training_image + iv_traininginputmode = iv_training_input_mode ). @@ -113,3 +99 @@ There's more on GitHub. Find the complete example and learn how to set up and ru - CREATE OBJECT lo_resource_config - EXPORTING - iv_instancecount = iv_instance_count + lo_resource_config = NEW #( iv_instancecount = iv_instance_count @@ -117 +101 @@ There's more on GitHub. Find the complete example and learn how to set up and ru - iv_volumesizeingb = iv_volume_sizeingb. + iv_volumesizeingb = iv_volume_sizeingb ). @@ -120,3 +104 @@ There's more on GitHub. Find the complete example and learn how to set up and ru - CREATE OBJECT lo_output_data_config - EXPORTING - iv_s3outputpath = iv_s3_output_path. + lo_output_data_config = NEW #( iv_s3outputpath = iv_s3_output_path ). @@ -125,3 +107 @@ There's more on GitHub. Find the complete example and learn how to set up and ru - CREATE OBJECT lo_stopping_condition - EXPORTING - iv_maxruntimeinseconds = iv_max_runtime_in_seconds. + lo_stopping_condition = NEW #( iv_maxruntimeinseconds = iv_max_runtime_in_seconds ). @@ -139,2 +119 @@ There's more on GitHub. Find the complete example and learn how to set up and ru - io_stoppingcondition = lo_stopping_condition - ). + io_stoppingcondition = lo_stopping_condition ).