/AWS1/IF_EMC=>CREATEJOBTEMPLATE()¶
About CreateJobTemplate¶
Creates a job template. Job template stores values of StartJobRun API request in a template and can be used to start a job run. Job template allows two use cases: avoid repeating recurring StartJobRun API request values, enforcing certain values in StartJobRun API request.
Method Signature¶
METHODS /AWS1/IF_EMC~CREATEJOBTEMPLATE
IMPORTING
!IV_NAME TYPE /AWS1/EMCRESOURCENAMESTRING OPTIONAL
!IV_CLIENTTOKEN TYPE /AWS1/EMCCLIENTTOKEN OPTIONAL
!IO_JOBTEMPLATEDATA TYPE REF TO /AWS1/CL_EMCJOBTEMPLATEDATA OPTIONAL
!IT_TAGS TYPE /AWS1/CL_EMCTAGMAP_W=>TT_TAGMAP OPTIONAL
!IV_KMSKEYARN TYPE /AWS1/EMCKMSKEYARN OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_emccreatejobtmplrsp
RAISING
/AWS1/CX_EMCINTERNALSERVEREX
/AWS1/CX_EMCRESOURCENOTFOUNDEX
/AWS1/CX_EMCVALIDATIONEX
/AWS1/CX_EMCCLIENTEXC
/AWS1/CX_EMCSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
iv_name TYPE /AWS1/EMCRESOURCENAMESTRING /AWS1/EMCRESOURCENAMESTRING¶
The specified name of the job template.
iv_clienttoken TYPE /AWS1/EMCCLIENTTOKEN /AWS1/EMCCLIENTTOKEN¶
The client token of the job template.
io_jobtemplatedata TYPE REF TO /AWS1/CL_EMCJOBTEMPLATEDATA /AWS1/CL_EMCJOBTEMPLATEDATA¶
The job template data which holds values of StartJobRun API request.
Optional arguments:¶
it_tags TYPE /AWS1/CL_EMCTAGMAP_W=>TT_TAGMAP TT_TAGMAP¶
The tags that are associated with the job template.
iv_kmskeyarn TYPE /AWS1/EMCKMSKEYARN /AWS1/EMCKMSKEYARN¶
The KMS key ARN used to encrypt the job template.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_emccreatejobtmplrsp /AWS1/CL_EMCCREATEJOBTMPLRSP¶
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->createjobtemplate(
io_jobtemplatedata = new /aws1/cl_emcjobtemplatedata(
io_configurationoverrides = new /aws1/cl_emcparametricconfov00(
io_monitoringconfiguration = new /aws1/cl_emcparametricmonconf(
io_cloudwatchmonitoringconf = new /aws1/cl_emcparametriccloudw00(
iv_loggroupname = |string|
iv_logstreamnameprefix = |string|
)
io_s3monitoringconfiguration = new /aws1/cl_emcparamet3monconf( |string| )
iv_persistentappui = |string|
)
it_applicationconfiguration = VALUE /aws1/cl_emcconfiguration=>tt_configurationlist(
(
new /aws1/cl_emcconfiguration(
it_configurations = VALUE /aws1/cl_emcconfiguration=>tt_configurationlist(
)
it_properties = VALUE /aws1/cl_emcsensitiveprpsmap_w=>tt_sensitivepropertiesmap(
(
VALUE /aws1/cl_emcsensitiveprpsmap_w=>ts_sensitiveprpsmap_maprow(
key = |string|
value = new /aws1/cl_emcsensitiveprpsmap_w( |string| )
)
)
)
iv_classification = |string|
)
)
)
)
io_jobdriver = new /aws1/cl_emcjobdriver(
io_sparksqljobdriver = new /aws1/cl_emcsparksqljobdriver(
iv_entrypoint = |string|
iv_sparksqlparameters = |string|
)
io_sparksubmitjobdriver = new /aws1/cl_emcsparksubmitjobdr00(
it_entrypointarguments = VALUE /aws1/cl_emcentrptarguments_w=>tt_entrypointarguments(
( new /aws1/cl_emcentrptarguments_w( |string| ) )
)
iv_entrypoint = |string|
iv_sparksubmitparameters = |string|
)
)
it_jobtags = VALUE /aws1/cl_emctagmap_w=>tt_tagmap(
(
VALUE /aws1/cl_emctagmap_w=>ts_tagmap_maprow(
key = |string|
value = new /aws1/cl_emctagmap_w( |string| )
)
)
)
it_parameterconfiguration = VALUE /aws1/cl_emctemplateparamconf=>tt_templateparameterconfmap(
(
VALUE /aws1/cl_emctemplateparamconf=>ts_templateparamconfmap_maprow(
key = |string|
value = new /aws1/cl_emctemplateparamconf(
iv_defaultvalue = |string|
iv_type = |string|
)
)
)
)
iv_executionrolearn = |string|
iv_releaselabel = |string|
)
it_tags = VALUE /aws1/cl_emctagmap_w=>tt_tagmap(
(
VALUE /aws1/cl_emctagmap_w=>ts_tagmap_maprow(
key = |string|
value = new /aws1/cl_emctagmap_w( |string| )
)
)
)
iv_clienttoken = |string|
iv_kmskeyarn = |string|
iv_name = |string|
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
lv_resourceidstring = lo_result->get_id( ).
lv_resourcenamestring = lo_result->get_name( ).
lv_jobtemplatearn = lo_result->get_arn( ).
lv_date = lo_result->get_createdat( ).
ENDIF.