/AWS1/IF_GLU=>CREATEMLTRANSFORM()¶
About CreateMLTransform¶
Creates an Glue machine learning transform. This operation creates the transform and all the necessary parameters to train it.
Call this operation as the first step in the process of using a machine learning transform
(such as the FindMatches transform) for deduplicating data. You can provide an
optional Description, in addition to the parameters that you want to use for your
algorithm.
You must also specify certain parameters for the tasks that Glue runs on your
behalf as part of learning from your data and creating a high-quality machine learning
transform. These parameters include Role, and optionally,
AllocatedCapacity, Timeout, and MaxRetries. For more
information, see Jobs.
Method Signature¶
METHODS /AWS1/IF_GLU~CREATEMLTRANSFORM
IMPORTING
!IV_NAME TYPE /AWS1/GLUNAMESTRING OPTIONAL
!IV_DESCRIPTION TYPE /AWS1/GLUDESCRIPTIONSTRING OPTIONAL
!IT_INPUTRECORDTABLES TYPE /AWS1/CL_GLUGLUETABLE=>TT_GLUETABLES OPTIONAL
!IO_PARAMETERS TYPE REF TO /AWS1/CL_GLUTRANSFORMPARAMS OPTIONAL
!IV_ROLE TYPE /AWS1/GLUROLESTRING OPTIONAL
!IV_GLUEVERSION TYPE /AWS1/GLUGLUEVERSIONSTRING OPTIONAL
!IV_MAXCAPACITY TYPE /AWS1/RT_DOUBLE_AS_STRING OPTIONAL
!IV_WORKERTYPE TYPE /AWS1/GLUWORKERTYPE OPTIONAL
!IV_NUMBEROFWORKERS TYPE /AWS1/GLUNULLABLEINTEGER OPTIONAL
!IV_TIMEOUT TYPE /AWS1/GLUTIMEOUT OPTIONAL
!IV_MAXRETRIES TYPE /AWS1/GLUNULLABLEINTEGER OPTIONAL
!IT_TAGS TYPE /AWS1/CL_GLUTAGSMAP_W=>TT_TAGSMAP OPTIONAL
!IO_TRANSFORMENCRYPTION TYPE REF TO /AWS1/CL_GLUTRANSFORMENC OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_glucremltransformrsp
RAISING
/AWS1/CX_GLUACCESSDENIEDEX
/AWS1/CX_GLUALREADYEXISTSEX
/AWS1/CX_GLUIDEMPOTENTPRMMIS00
/AWS1/CX_GLUINTERNALSERVICEEX
/AWS1/CX_GLUINVALIDINPUTEX
/AWS1/CX_GLUOPERATIONTIMEOUTEX
/AWS1/CX_GLURESRCNUMLMTEXCDEX
/AWS1/CX_GLUCLIENTEXC
/AWS1/CX_GLUSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
iv_name TYPE /AWS1/GLUNAMESTRING /AWS1/GLUNAMESTRING¶
The unique name that you give the transform when you create it.
it_inputrecordtables TYPE /AWS1/CL_GLUGLUETABLE=>TT_GLUETABLES TT_GLUETABLES¶
A list of Glue table definitions used by the transform.
io_parameters TYPE REF TO /AWS1/CL_GLUTRANSFORMPARAMS /AWS1/CL_GLUTRANSFORMPARAMS¶
The algorithmic parameters that are specific to the transform type used. Conditionally dependent on the transform type.
iv_role TYPE /AWS1/GLUROLESTRING /AWS1/GLUROLESTRING¶
The name or Amazon Resource Name (ARN) of the IAM role with the required permissions. The required permissions include both Glue service role permissions to Glue resources, and Amazon S3 permissions required by the transform.
This role needs Glue service role permissions to allow access to resources in Glue. See Attach a Policy to IAM Users That Access Glue.
This role needs permission to your Amazon Simple Storage Service (Amazon S3) sources, targets, temporary directory, scripts, and any libraries used by the task run for this transform.
Optional arguments:¶
iv_description TYPE /AWS1/GLUDESCRIPTIONSTRING /AWS1/GLUDESCRIPTIONSTRING¶
A description of the machine learning transform that is being defined. The default is an empty string.
iv_glueversion TYPE /AWS1/GLUGLUEVERSIONSTRING /AWS1/GLUGLUEVERSIONSTRING¶
This value determines which version of Glue this machine learning transform is compatible with. Glue 1.0 is recommended for most customers. If the value is not set, the Glue compatibility defaults to Glue 0.9. For more information, see Glue Versions in the developer guide.
iv_maxcapacity TYPE /AWS1/RT_DOUBLE_AS_STRING /AWS1/RT_DOUBLE_AS_STRING¶
The number of Glue data processing units (DPUs) that are allocated to task runs for this transform. You can allocate from 2 to 100 DPUs; the default is 10. A DPU is a relative measure of processing power that consists of 4 vCPUs of compute capacity and 16 GB of memory. For more information, see the Glue pricing page.
MaxCapacityis a mutually exclusive option withNumberOfWorkersandWorkerType.
If either
NumberOfWorkersorWorkerTypeis set, thenMaxCapacitycannot be set.If
MaxCapacityis set then neitherNumberOfWorkersorWorkerTypecan be set.If
WorkerTypeis set, thenNumberOfWorkersis required (and vice versa).
MaxCapacityandNumberOfWorkersmust both be at least 1.When the
WorkerTypefield is set to a value other thanStandard, theMaxCapacityfield is set automatically and becomes read-only.When the
WorkerTypefield is set to a value other thanStandard, theMaxCapacityfield is set automatically and becomes read-only.
iv_workertype TYPE /AWS1/GLUWORKERTYPE /AWS1/GLUWORKERTYPE¶
The type of predefined worker that is allocated when this task runs. Accepts a value of Standard, G.1X, or G.2X.
For the
Standardworker type, each worker provides 4 vCPU, 16 GB of memory and a 50GB disk, and 2 executors per worker.For the
G.1Xworker type, each worker provides 4 vCPU, 16 GB of memory and a 64GB disk, and 1 executor per worker.For the
G.2Xworker type, each worker provides 8 vCPU, 32 GB of memory and a 128GB disk, and 1 executor per worker.
MaxCapacityis a mutually exclusive option withNumberOfWorkersandWorkerType.
If either
NumberOfWorkersorWorkerTypeis set, thenMaxCapacitycannot be set.If
MaxCapacityis set then neitherNumberOfWorkersorWorkerTypecan be set.If
WorkerTypeis set, thenNumberOfWorkersis required (and vice versa).
MaxCapacityandNumberOfWorkersmust both be at least 1.
iv_numberofworkers TYPE /AWS1/GLUNULLABLEINTEGER /AWS1/GLUNULLABLEINTEGER¶
The number of workers of a defined
workerTypethat are allocated when this task runs.If
WorkerTypeis set, thenNumberOfWorkersis required (and vice versa).
iv_timeout TYPE /AWS1/GLUTIMEOUT /AWS1/GLUTIMEOUT¶
The timeout of the task run for this transform in minutes. This is the maximum time that a task run for this transform can consume resources before it is terminated and enters
TIMEOUTstatus. The default is 2,880 minutes (48 hours).
iv_maxretries TYPE /AWS1/GLUNULLABLEINTEGER /AWS1/GLUNULLABLEINTEGER¶
The maximum number of times to retry a task for this transform after a task run fails.
it_tags TYPE /AWS1/CL_GLUTAGSMAP_W=>TT_TAGSMAP TT_TAGSMAP¶
The tags to use with this machine learning transform. You may use tags to limit access to the machine learning transform. For more information about tags in Glue, see Amazon Web Services Tags in Glue in the developer guide.
io_transformencryption TYPE REF TO /AWS1/CL_GLUTRANSFORMENC /AWS1/CL_GLUTRANSFORMENC¶
The encryption-at-rest settings of the transform that apply to accessing user data. Machine learning transforms can access user data encrypted in Amazon S3 using KMS.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_glucremltransformrsp /AWS1/CL_GLUCREMLTRANSFORMRSP¶
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->createmltransform(
io_parameters = new /aws1/cl_glutransformparams(
io_findmatchesparameters = new /aws1/cl_glufindmatchesparams(
iv_accuracycosttradeoff = '0.1'
iv_enforceprovidedlabels = ABAP_TRUE
iv_precisionrecalltradeoff = '0.1'
iv_primarykeycolumnname = |string|
)
iv_transformtype = |string|
)
io_transformencryption = new /aws1/cl_glutransformenc(
io_mluserdataencryption = new /aws1/cl_glumluserdataenc(
iv_kmskeyid = |string|
iv_mluserdataencryptionmode = |string|
)
iv_taskrunsecurityconfname = |string|
)
it_inputrecordtables = VALUE /aws1/cl_glugluetable=>tt_gluetables(
(
new /aws1/cl_glugluetable(
it_additionaloptions = VALUE /aws1/cl_glugluetbladdlopts_w=>tt_gluetableadditionaloptions(
(
VALUE /aws1/cl_glugluetbladdlopts_w=>ts_gluetableaddloptions_maprow(
key = |string|
value = new /aws1/cl_glugluetbladdlopts_w( |string| )
)
)
)
iv_catalogid = |string|
iv_connectionname = |string|
iv_databasename = |string|
iv_tablename = |string|
)
)
)
it_tags = VALUE /aws1/cl_glutagsmap_w=>tt_tagsmap(
(
VALUE /aws1/cl_glutagsmap_w=>ts_tagsmap_maprow(
key = |string|
value = new /aws1/cl_glutagsmap_w( |string| )
)
)
)
iv_description = |string|
iv_glueversion = |string|
iv_maxcapacity = |0.1|
iv_maxretries = 123
iv_name = |string|
iv_numberofworkers = 123
iv_role = |string|
iv_timeout = 123
iv_workertype = |string|
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
lv_hashstring = lo_result->get_transformid( ).
ENDIF.