/AWS1/IF_BDK=>GETMODELCUSTOMIZATIONJOB()¶
About GetModelCustomizationJob¶
Retrieves the properties associated with a model-customization job, including the status of the job. For more information, see Custom models in the Amazon Bedrock User Guide.
Method Signature¶
METHODS /AWS1/IF_BDK~GETMODELCUSTOMIZATIONJOB
IMPORTING
!IV_JOBIDENTIFIER TYPE /AWS1/BDKMODELCUSTIZATIONJOBID OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_bdkgetmdelcustizati01
RAISING
/AWS1/CX_BDKACCESSDENIEDEX
/AWS1/CX_BDKINTERNALSERVEREX
/AWS1/CX_BDKRESOURCENOTFOUNDEX
/AWS1/CX_BDKTHROTTLINGEX
/AWS1/CX_BDKVALIDATIONEX
/AWS1/CX_BDKCLIENTEXC
/AWS1/CX_BDKSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
iv_jobidentifier TYPE /AWS1/BDKMODELCUSTIZATIONJOBID /AWS1/BDKMODELCUSTIZATIONJOBID¶
Identifier for the customization job.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_bdkgetmdelcustizati01 /AWS1/CL_BDKGETMDELCUSTIZATI01¶
Examples¶
Syntax Example¶
This is an example of the syntax for calling the method. It includes every possible argument and initializes every possible value. The data provided is not necessarily semantically accurate (for example the value "string" may be provided for something that is intended to be an instance ID, or in some cases two arguments may be mutually exclusive). The syntax shows the ABAP syntax for creating the various data structures.
DATA(lo_result) = lo_client->getmodelcustomizationjob( |string| ).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
lv_modelcustomizationjobar = lo_result->get_jobarn( ).
lv_jobname = lo_result->get_jobname( ).
lv_custommodelname = lo_result->get_outputmodelname( ).
lv_custommodelarn = lo_result->get_outputmodelarn( ).
lv_idempotencytoken = lo_result->get_clientrequesttoken( ).
lv_rolearn = lo_result->get_rolearn( ).
lv_modelcustomizationjobst = lo_result->get_status( ).
lo_statusdetails = lo_result->get_statusdetails( ).
IF lo_statusdetails IS NOT INITIAL.
lo_validationdetails = lo_statusdetails->get_validationdetails( ).
IF lo_validationdetails IS NOT INITIAL.
lv_jobstatusdetails = lo_validationdetails->get_status( ).
lv_timestamp = lo_validationdetails->get_creationtime( ).
lv_timestamp = lo_validationdetails->get_lastmodifiedtime( ).
ENDIF.
lo_dataprocessingdetails = lo_statusdetails->get_dataprocessingdetails( ).
IF lo_dataprocessingdetails IS NOT INITIAL.
lv_jobstatusdetails = lo_dataprocessingdetails->get_status( ).
lv_timestamp = lo_dataprocessingdetails->get_creationtime( ).
lv_timestamp = lo_dataprocessingdetails->get_lastmodifiedtime( ).
ENDIF.
lo_trainingdetails = lo_statusdetails->get_trainingdetails( ).
IF lo_trainingdetails IS NOT INITIAL.
lv_jobstatusdetails = lo_trainingdetails->get_status( ).
lv_timestamp = lo_trainingdetails->get_creationtime( ).
lv_timestamp = lo_trainingdetails->get_lastmodifiedtime( ).
ENDIF.
ENDIF.
lv_errormessage = lo_result->get_failuremessage( ).
lv_timestamp = lo_result->get_creationtime( ).
lv_timestamp = lo_result->get_lastmodifiedtime( ).
lv_timestamp = lo_result->get_endtime( ).
lv_foundationmodelarn = lo_result->get_basemodelarn( ).
LOOP AT lo_result->get_hyperparameters( ) into ls_row.
lv_key = ls_row-key.
lo_value = ls_row-value.
IF lo_value IS NOT INITIAL.
lv_string = lo_value->get_value( ).
ENDIF.
ENDLOOP.
lo_trainingdataconfig = lo_result->get_trainingdataconfig( ).
IF lo_trainingdataconfig IS NOT INITIAL.
lv_s3uri = lo_trainingdataconfig->get_s3uri( ).
lo_invocationlogsconfig = lo_trainingdataconfig->get_invocationlogsconfig( ).
IF lo_invocationlogsconfig IS NOT INITIAL.
lv_usepromptresponse = lo_invocationlogsconfig->get_usepromptresponse( ).
lo_invocationlogsource = lo_invocationlogsconfig->get_invocationlogsource( ).
IF lo_invocationlogsource IS NOT INITIAL.
lv_s3uri = lo_invocationlogsource->get_s3uri( ).
ENDIF.
lo_requestmetadatafilters = lo_invocationlogsconfig->get_requestmetadatafilters( ).
IF lo_requestmetadatafilters IS NOT INITIAL.
LOOP AT lo_requestmetadatafilters->get_equals( ) into ls_row_1.
lv_key = ls_row_1-key.
lo_value_1 = ls_row_1-value.
IF lo_value_1 IS NOT INITIAL.
lv_string = lo_value_1->get_value( ).
ENDIF.
ENDLOOP.
LOOP AT lo_requestmetadatafilters->get_notequals( ) into ls_row_1.
lv_key = ls_row_1-key.
lo_value_1 = ls_row_1-value.
IF lo_value_1 IS NOT INITIAL.
lv_string = lo_value_1->get_value( ).
ENDIF.
ENDLOOP.
LOOP AT lo_requestmetadatafilters->get_andall( ) into lo_row_2.
lo_row_3 = lo_row_2.
IF lo_row_3 IS NOT INITIAL.
LOOP AT lo_row_3->get_equals( ) into ls_row_1.
lv_key = ls_row_1-key.
lo_value_1 = ls_row_1-value.
IF lo_value_1 IS NOT INITIAL.
lv_string = lo_value_1->get_value( ).
ENDIF.
ENDLOOP.
LOOP AT lo_row_3->get_notequals( ) into ls_row_1.
lv_key = ls_row_1-key.
lo_value_1 = ls_row_1-value.
IF lo_value_1 IS NOT INITIAL.
lv_string = lo_value_1->get_value( ).
ENDIF.
ENDLOOP.
ENDIF.
ENDLOOP.
LOOP AT lo_requestmetadatafilters->get_orall( ) into lo_row_2.
lo_row_3 = lo_row_2.
IF lo_row_3 IS NOT INITIAL.
LOOP AT lo_row_3->get_equals( ) into ls_row_1.
lv_key = ls_row_1-key.
lo_value_1 = ls_row_1-value.
IF lo_value_1 IS NOT INITIAL.
lv_string = lo_value_1->get_value( ).
ENDIF.
ENDLOOP.
LOOP AT lo_row_3->get_notequals( ) into ls_row_1.
lv_key = ls_row_1-key.
lo_value_1 = ls_row_1-value.
IF lo_value_1 IS NOT INITIAL.
lv_string = lo_value_1->get_value( ).
ENDIF.
ENDLOOP.
ENDIF.
ENDLOOP.
ENDIF.
ENDIF.
ENDIF.
lo_validationdataconfig = lo_result->get_validationdataconfig( ).
IF lo_validationdataconfig IS NOT INITIAL.
LOOP AT lo_validationdataconfig->get_validators( ) into lo_row_4.
lo_row_5 = lo_row_4.
IF lo_row_5 IS NOT INITIAL.
lv_s3uri = lo_row_5->get_s3uri( ).
ENDIF.
ENDLOOP.
ENDIF.
lo_outputdataconfig = lo_result->get_outputdataconfig( ).
IF lo_outputdataconfig IS NOT INITIAL.
lv_s3uri = lo_outputdataconfig->get_s3uri( ).
ENDIF.
lv_customizationtype = lo_result->get_customizationtype( ).
lv_kmskeyarn = lo_result->get_outputmodelkmskeyarn( ).
lo_trainingmetrics = lo_result->get_trainingmetrics( ).
IF lo_trainingmetrics IS NOT INITIAL.
lv_metricfloat = lo_trainingmetrics->get_trainingloss( ).
ENDIF.
LOOP AT lo_result->get_validationmetrics( ) into lo_row_6.
lo_row_7 = lo_row_6.
IF lo_row_7 IS NOT INITIAL.
lv_metricfloat = lo_row_7->get_validationloss( ).
ENDIF.
ENDLOOP.
lo_vpcconfig = lo_result->get_vpcconfig( ).
IF lo_vpcconfig IS NOT INITIAL.
LOOP AT lo_vpcconfig->get_subnetids( ) into lo_row_8.
lo_row_9 = lo_row_8.
IF lo_row_9 IS NOT INITIAL.
lv_subnetid = lo_row_9->get_value( ).
ENDIF.
ENDLOOP.
LOOP AT lo_vpcconfig->get_securitygroupids( ) into lo_row_10.
lo_row_11 = lo_row_10.
IF lo_row_11 IS NOT INITIAL.
lv_securitygroupid = lo_row_11->get_value( ).
ENDIF.
ENDLOOP.
ENDIF.
lo_customizationconfig = lo_result->get_customizationconfig( ).
IF lo_customizationconfig IS NOT INITIAL.
lo_distillationconfig = lo_customizationconfig->get_distillationconfig( ).
IF lo_distillationconfig IS NOT INITIAL.
lo_teachermodelconfig = lo_distillationconfig->get_teachermodelconfig( ).
IF lo_teachermodelconfig IS NOT INITIAL.
lv_teachermodelidentifier = lo_teachermodelconfig->get_teachermodelidentifier( ).
lv_integer = lo_teachermodelconfig->get_maxrsplengthforinference( ).
ENDIF.
ENDIF.
lo_rftconfig = lo_customizationconfig->get_rftconfig( ).
IF lo_rftconfig IS NOT INITIAL.
lo_graderconfig = lo_rftconfig->get_graderconfig( ).
IF lo_graderconfig IS NOT INITIAL.
lo_lambdagraderconfig = lo_graderconfig->get_lambdagrader( ).
IF lo_lambdagraderconfig IS NOT INITIAL.
lv_lambdaarn = lo_lambdagraderconfig->get_lambdaarn( ).
ENDIF.
ENDIF.
lo_rfthyperparameters = lo_rftconfig->get_hyperparameters( ).
IF lo_rfthyperparameters IS NOT INITIAL.
lv_epochcount = lo_rfthyperparameters->get_epochcount( ).
lv_rftbatchsize = lo_rfthyperparameters->get_batchsize( ).
lv_rftlearningrate = lo_rfthyperparameters->get_learningrate( ).
lv_rftmaxpromptlength = lo_rfthyperparameters->get_maxpromptlength( ).
lv_rfttrainingsampleperpro = lo_rfthyperparameters->get_trainingsampleperprompt( ).
lv_rftinferencemaxtokens = lo_rfthyperparameters->get_inferencemaxtokens( ).
lv_reasoningeffort = lo_rfthyperparameters->get_reasoningeffort( ).
lv_rftevalinterval = lo_rfthyperparameters->get_evalinterval( ).
ENDIF.
ENDIF.
ENDIF.
ENDIF.