AWS code-library documentation change
Summary
Updated code examples to use modern object instantiation syntax (NEW #(...)) instead of CREATE OBJECT statements
Security assessment
Changes are purely syntactic improvements to object creation patterns without any security context or references to vulnerabilities. No security parameters, access controls, or encryption mechanisms were added or modified.
Diff
diff --git a/code-library/latest/ug/sagemaker_example_sagemaker_Scenario_GettingStarted_section.md b/code-library/latest/ug/sagemaker_example_sagemaker_Scenario_GettingStarted_section.md index 92a41153c..6153291d3 100644 --- a/code-library/latest/ug/sagemaker_example_sagemaker_Scenario_GettingStarted_section.md +++ b/code-library/latest/ug/sagemaker_example_sagemaker_Scenario_GettingStarted_section.md @@ -55 +55 @@ 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 ). @@ -58 +58 @@ 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 ). @@ -61 +61 @@ 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 ). @@ -64 +64 @@ 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 ). @@ -67 +67 @@ 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 ). @@ -70 +70 @@ 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 ). @@ -73 +73 @@ 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 ). @@ -78,3 +78 @@ 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 @@ -82 +80 @@ 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 ). @@ -84 +82 @@ 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 ). @@ -86,3 +84 @@ 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' @@ -91 +87 @@ 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 ). @@ -95,3 +91 @@ 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 @@ -99 +93 @@ 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 ). @@ -101 +95 @@ 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 ). @@ -103,3 +97 @@ 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' @@ -108 +100 @@ 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 ). @@ -112,4 +104,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 ). @@ -118,3 +108 @@ 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 @@ -122 +110 @@ 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 ). @@ -125 +113 @@ 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 ). @@ -128 +116 @@ 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 +127 @@ 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 ). @@ -161,4 +148,2 @@ There's more on GitHub. Find the complete example and learn how to set up and ru - CREATE OBJECT lo_primarycontainer - EXPORTING - iv_image = iv_training_image - iv_modeldataurl = lv_model_data_url. + lo_primarycontainer = NEW #( iv_image = iv_training_image + iv_modeldataurl = lv_model_data_url ). @@ -171,2 +156 @@ There's more on GitHub. Find the complete example and learn how to set up and ru - io_primarycontainer = lo_primarycontainer - ). + io_primarycontainer = lo_primarycontainer ). @@ -179,3 +163 @@ There's more on GitHub. Find the complete example and learn how to set up and ru - CREATE OBJECT lo_production_variants - EXPORTING - iv_variantname = iv_ep_variant_name + lo_production_variants = NEW #( iv_variantname = iv_ep_variant_name @@ -184 +166 @@ There's more on GitHub. Find the complete example and learn how to set up and ru - iv_instancetype = iv_ep_instance_type. + iv_instancetype = iv_ep_instance_type ). @@ -191,2 +173 @@ There's more on GitHub. Find the complete example and learn how to set up and ru - it_productionvariants = lt_production_variants - ). + it_productionvariants = lt_production_variants ). @@ -198,2 +179 @@ There's more on GitHub. Find the complete example and learn how to set up and ru - iv_endpointname = iv_ep_name - ). + iv_endpointname = iv_ep_name ). @@ -218,2 +198 @@ There's more on GitHub. Find the complete example and learn how to set up and ru - iv_endpointname = iv_ep_name - ). + iv_endpointname = iv_ep_name ). @@ -224,2 +203 @@ There's more on GitHub. Find the complete example and learn how to set up and ru - iv_endpointconfigname = iv_ep_cfg_name - ). + iv_endpointconfigname = iv_ep_cfg_name ). @@ -230,2 +208 @@ There's more on GitHub. Find the complete example and learn how to set up and ru - iv_modelname = iv_model_name - ). + iv_modelname = iv_model_name ).