/AWS1/IF_SGM=>UPDATETRAININGJOB()¶
About UpdateTrainingJob¶
Update a model training job to request a new Debugger profiling configuration or to change warm pool retention length.
Method Signature¶
METHODS /AWS1/IF_SGM~UPDATETRAININGJOB
IMPORTING
!IV_TRAININGJOBNAME TYPE /AWS1/SGMTRAININGJOBNAME OPTIONAL
!IO_PROFILERCONFIG TYPE REF TO /AWS1/CL_SGMPFLRCFGFORUPDATE OPTIONAL
!IT_PROFILERRULECONFS TYPE /AWS1/CL_SGMPROFILERRULECONF=>TT_PROFILERRULECONFIGURATIONS OPTIONAL
!IO_RESOURCECONFIG TYPE REF TO /AWS1/CL_SGMRESRCCFGFORUPDATE OPTIONAL
!IO_REMOTEDEBUGCONFIG TYPE REF TO /AWS1/CL_SGMREMOTEDEBUGCFGFO00 OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_sgmupdatetrnjobrsp
RAISING
/AWS1/CX_SGMRESOURCELIMITEXCD
/AWS1/CX_SGMRESOURCENOTFOUND
/AWS1/CX_SGMCLIENTEXC
/AWS1/CX_SGMSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
iv_trainingjobname TYPE /AWS1/SGMTRAININGJOBNAME /AWS1/SGMTRAININGJOBNAME¶
The name of a training job to update the Debugger profiling configuration.
Optional arguments:¶
io_profilerconfig TYPE REF TO /AWS1/CL_SGMPFLRCFGFORUPDATE /AWS1/CL_SGMPFLRCFGFORUPDATE¶
Configuration information for Amazon SageMaker Debugger system monitoring, framework profiling, and storage paths.
it_profilerruleconfs TYPE /AWS1/CL_SGMPROFILERRULECONF=>TT_PROFILERRULECONFIGURATIONS TT_PROFILERRULECONFIGURATIONS¶
Configuration information for Amazon SageMaker Debugger rules for profiling system and framework metrics.
io_resourceconfig TYPE REF TO /AWS1/CL_SGMRESRCCFGFORUPDATE /AWS1/CL_SGMRESRCCFGFORUPDATE¶
The training job
ResourceConfigto update warm pool retention length.
io_remotedebugconfig TYPE REF TO /AWS1/CL_SGMREMOTEDEBUGCFGFO00 /AWS1/CL_SGMREMOTEDEBUGCFGFO00¶
Configuration for remote debugging while the training job is running. You can update the remote debugging configuration when the
SecondaryStatusof the job isDownloadingorTraining.To learn more about the remote debugging functionality of SageMaker, see Access a training container through Amazon Web Services Systems Manager (SSM) for remote debugging.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_sgmupdatetrnjobrsp /AWS1/CL_SGMUPDATETRNJOBRSP¶
Domain /AWS1/RT_ACCOUNT_ID Primitive Type NUMC
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->updatetrainingjob(
io_profilerconfig = new /aws1/cl_sgmpflrcfgforupdate(
it_profilingparameters = VALUE /aws1/cl_sgmprofilingparams_w=>tt_profilingparameters(
(
VALUE /aws1/cl_sgmprofilingparams_w=>ts_profilingparameters_maprow(
value = new /aws1/cl_sgmprofilingparams_w( |string| )
key = |string|
)
)
)
iv_disableprofiler = ABAP_TRUE
iv_profilingintervalinmill00 = 123
iv_s3outputpath = |string|
)
io_remotedebugconfig = new /aws1/cl_sgmremotedebugcfgfo00( ABAP_TRUE )
io_resourceconfig = new /aws1/cl_sgmresrccfgforupdate( 123 )
it_profilerruleconfs = VALUE /aws1/cl_sgmprofilerruleconf=>tt_profilerruleconfigurations(
(
new /aws1/cl_sgmprofilerruleconf(
it_ruleparameters = VALUE /aws1/cl_sgmruleparameters_w=>tt_ruleparameters(
(
VALUE /aws1/cl_sgmruleparameters_w=>ts_ruleparameters_maprow(
value = new /aws1/cl_sgmruleparameters_w( |string| )
key = |string|
)
)
)
iv_instancetype = |string|
iv_localpath = |string|
iv_ruleconfigurationname = |string|
iv_ruleevaluatorimage = |string|
iv_s3outputpath = |string|
iv_volumesizeingb = 123
)
)
)
iv_trainingjobname = |string|
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
lv_trainingjobarn = lo_result->get_trainingjobarn( ).
ENDIF.