Skip to content

/AWS1/CL_CRL=>STRTTRAINEDMODELINFERENCEJOB()

About StartTrainedModelInferenceJob

Defines the information necessary to begin a trained model inference job.

Method Signature

IMPORTING

Required arguments:

iv_membershipidentifier TYPE /AWS1/CRLUUID /AWS1/CRLUUID

The membership ID of the membership that contains the trained model inference job.

iv_name TYPE /AWS1/CRLNAMESTRING /AWS1/CRLNAMESTRING

The name of the trained model inference job.

iv_trainedmodelarn TYPE /AWS1/CRLTRAINEDMODELARN /AWS1/CRLTRAINEDMODELARN

The Amazon Resource Name (ARN) of the trained model that is used for this trained model inference job.

io_resourceconfig TYPE REF TO /AWS1/CL_CRLINFERENCERESRCCFG /AWS1/CL_CRLINFERENCERESRCCFG

Defines the resource configuration for the trained model inference job.

io_outputconfiguration TYPE REF TO /AWS1/CL_CRLINFERENCEOUTCONF /AWS1/CL_CRLINFERENCEOUTCONF

Defines the output configuration information for the trained model inference job.

io_datasource TYPE REF TO /AWS1/CL_CRLMDELINFERENCEDAT00 /AWS1/CL_CRLMDELINFERENCEDAT00

Defines the data source that is used for the trained model inference job.

Optional arguments:

iv_trainedmodelversionid TYPE /AWS1/CRLUUID /AWS1/CRLUUID

The version identifier of the trained model to use for inference. This specifies which version of the trained model should be used to generate predictions on the input data.

iv_cfguredmdelalgassociati00 TYPE /AWS1/CRLCFGUREDMDELALGASSOC00 /AWS1/CRLCFGUREDMDELALGASSOC00

The Amazon Resource Name (ARN) of the configured model algorithm association that is used for this trained model inference job.

iv_description TYPE /AWS1/CRLRESOURCEDESCRIPTION /AWS1/CRLRESOURCEDESCRIPTION

The description of the trained model inference job.

io_containerexecutionparams TYPE REF TO /AWS1/CL_CRLINFERENCECONTAIN01 /AWS1/CL_CRLINFERENCECONTAIN01

The execution parameters for the container.

it_environment TYPE /AWS1/CL_CRLINFERENCEENVIRON00=>TT_INFERENCEENVIRONMENTMAP TT_INFERENCEENVIRONMENTMAP

The environment variables to set in the Docker container.

iv_kmskeyarn TYPE /AWS1/CRLKMSKEYARN /AWS1/CRLKMSKEYARN

The Amazon Resource Name (ARN) of the KMS key. This key is used to encrypt and decrypt customer-owned data in the ML inference job and associated data.

it_tags TYPE /AWS1/CL_CRLTAGMAP_W=>TT_TAGMAP TT_TAGMAP

The optional metadata that you apply to the resource to help you categorize and organize them. Each tag consists of a key and an optional value, both of which you define.

The following basic restrictions apply to tags:

  • Maximum number of tags per resource - 50.

  • For each resource, each tag key must be unique, and each tag key can have only one value.

  • Maximum key length - 128 Unicode characters in UTF-8.

  • Maximum value length - 256 Unicode characters in UTF-8.

  • If your tagging schema is used across multiple services and resources, remember that other services may have restrictions on allowed characters. Generally allowed characters are: letters, numbers, and spaces representable in UTF-8, and the following characters: + - = . _ : / @.

  • Tag keys and values are case sensitive.

  • Do not use aws:, AWS:, or any upper or lowercase combination of such as a prefix for keys as it is reserved for AWS use. You cannot edit or delete tag keys with this prefix. Values can have this prefix. If a tag value has aws as its prefix but the key does not, then Clean Rooms ML considers it to be a user tag and will count against the limit of 50 tags. Tags with only the key prefix of aws do not count against your tags per resource limit.

RETURNING

oo_output TYPE REF TO /aws1/cl_crlstrttrainedmdeli01 /AWS1/CL_CRLSTRTTRAINEDMDELI01

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->/aws1/if_crl~strttrainedmodelinferencejob(
  io_containerexecutionparams = new /aws1/cl_crlinferencecontain01( 123 )
  io_datasource = new /aws1/cl_crlmdelinferencedat00( |string| )
  io_outputconfiguration = new /aws1/cl_crlinferenceoutconf(
    it_members = VALUE /aws1/cl_crlinferencereceive00=>tt_inferencereceivermembers(
      ( new /aws1/cl_crlinferencereceive00( |string| ) )
    )
    iv_accept = |string|
  )
  io_resourceconfig = new /aws1/cl_crlinferenceresrccfg(
    iv_instancecount = 123
    iv_instancetype = |string|
  )
  it_environment = VALUE /aws1/cl_crlinferenceenviron00=>tt_inferenceenvironmentmap(
    (
      VALUE /aws1/cl_crlinferenceenviron00=>ts_inferenceenvironme00_maprow(
        key = |string|
        value = new /aws1/cl_crlinferenceenviron00( |string| )
      )
    )
  )
  it_tags = VALUE /aws1/cl_crltagmap_w=>tt_tagmap(
    (
      VALUE /aws1/cl_crltagmap_w=>ts_tagmap_maprow(
        value = new /aws1/cl_crltagmap_w( |string| )
        key = |string|
      )
    )
  )
  iv_cfguredmdelalgassociati00 = |string|
  iv_description = |string|
  iv_kmskeyarn = |string|
  iv_membershipidentifier = |string|
  iv_name = |string|
  iv_trainedmodelarn = |string|
  iv_trainedmodelversionid = |string|
).

This is an example of reading all possible response values

lo_result = lo_result.
IF lo_result IS NOT INITIAL.
  lv_trainedmodelinferencejo = lo_result->get_trainedmdelinferencejo00( ).
ENDIF.