/AWS1/IF_SGM=>CREATEACTION()¶
About CreateAction¶
Creates an action. An action is a lineage tracking entity that represents an action or activity. For example, a model deployment or an HPO job. Generally, an action involves at least one input or output artifact. For more information, see Amazon SageMaker ML Lineage Tracking.
Method Signature¶
METHODS /AWS1/IF_SGM~CREATEACTION
IMPORTING
!IV_ACTIONNAME TYPE /AWS1/SGMEXPERIMENTENTITYNAME OPTIONAL
!IO_SOURCE TYPE REF TO /AWS1/CL_SGMACTIONSOURCE OPTIONAL
!IV_ACTIONTYPE TYPE /AWS1/SGMSTRING256 OPTIONAL
!IV_DESCRIPTION TYPE /AWS1/SGMEXPERIMENTDESCRIPTION OPTIONAL
!IV_STATUS TYPE /AWS1/SGMACTIONSTATUS OPTIONAL
!IT_PROPERTIES TYPE /AWS1/CL_SGMLINEAGEENTPARAMS_W=>TT_LINEAGEENTITYPARAMETERS OPTIONAL
!IO_METADATAPROPERTIES TYPE REF TO /AWS1/CL_SGMMETADATAPROPERTIES OPTIONAL
!IT_TAGS TYPE /AWS1/CL_SGMTAG=>TT_TAGLIST OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_sgmcreateactionrsp
RAISING
/AWS1/CX_SGMRESOURCELIMITEXCD
/AWS1/CX_SGMCLIENTEXC
/AWS1/CX_SGMSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
iv_actionname TYPE /AWS1/SGMEXPERIMENTENTITYNAME /AWS1/SGMEXPERIMENTENTITYNAME¶
The name of the action. Must be unique to your account in an Amazon Web Services Region.
io_source TYPE REF TO /AWS1/CL_SGMACTIONSOURCE /AWS1/CL_SGMACTIONSOURCE¶
The source type, ID, and URI.
iv_actiontype TYPE /AWS1/SGMSTRING256 /AWS1/SGMSTRING256¶
The action type.
Optional arguments:¶
iv_description TYPE /AWS1/SGMEXPERIMENTDESCRIPTION /AWS1/SGMEXPERIMENTDESCRIPTION¶
The description of the action.
iv_status TYPE /AWS1/SGMACTIONSTATUS /AWS1/SGMACTIONSTATUS¶
The status of the action.
it_properties TYPE /AWS1/CL_SGMLINEAGEENTPARAMS_W=>TT_LINEAGEENTITYPARAMETERS TT_LINEAGEENTITYPARAMETERS¶
A list of properties to add to the action.
io_metadataproperties TYPE REF TO /AWS1/CL_SGMMETADATAPROPERTIES /AWS1/CL_SGMMETADATAPROPERTIES¶
MetadataProperties
it_tags TYPE /AWS1/CL_SGMTAG=>TT_TAGLIST TT_TAGLIST¶
A list of tags to apply to the action.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_sgmcreateactionrsp /AWS1/CL_SGMCREATEACTIONRSP¶
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->createaction(
io_metadataproperties = new /aws1/cl_sgmmetadataproperties(
iv_commitid = |string|
iv_generatedby = |string|
iv_projectid = |string|
iv_repository = |string|
)
io_source = new /aws1/cl_sgmactionsource(
iv_sourceid = |string|
iv_sourcetype = |string|
iv_sourceuri = |string|
)
it_properties = VALUE /aws1/cl_sgmlineageentparams_w=>tt_lineageentityparameters(
(
VALUE /aws1/cl_sgmlineageentparams_w=>ts_lineageentityparams_maprow(
key = |string|
value = new /aws1/cl_sgmlineageentparams_w( |string| )
)
)
)
it_tags = VALUE /aws1/cl_sgmtag=>tt_taglist(
(
new /aws1/cl_sgmtag(
iv_key = |string|
iv_value = |string|
)
)
)
iv_actionname = |string|
iv_actiontype = |string|
iv_description = |string|
iv_status = |string|
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
lv_actionarn = lo_result->get_actionarn( ).
ENDIF.