Skip to content

/AWS1/IF_SGM=>CREATEMLFLOWAPP()

About CreateMlflowApp

Creates an MLflow Tracking Server using a general purpose Amazon S3 bucket as the artifact store.

Method Signature

METHODS /AWS1/IF_SGM~CREATEMLFLOWAPP
  IMPORTING
    !IV_NAME TYPE /AWS1/SGMMLFLOWAPPNAME OPTIONAL
    !IV_ARTIFACTSTOREURI TYPE /AWS1/SGMS3URI OPTIONAL
    !IV_ROLEARN TYPE /AWS1/SGMROLEARN OPTIONAL
    !IV_MODELREGISTRATIONMODE TYPE /AWS1/SGMMODELREGISTRATIONMODE OPTIONAL
    !IV_WEEKLYMAINTENANCEWINDOW00 TYPE /AWS1/SGMWEEKLYMAINTENANCEWI00 OPTIONAL
    !IV_ACCOUNTDEFAULTSTATUS TYPE /AWS1/SGMACCOUNTDEFAULTSTATUS OPTIONAL
    !IT_DEFAULTDOMAINIDLIST TYPE /AWS1/CL_SGMDEFDOMAINIDLIST_W=>TT_DEFAULTDOMAINIDLIST OPTIONAL
    !IT_TAGS TYPE /AWS1/CL_SGMTAG=>TT_TAGLIST OPTIONAL
  RETURNING
    VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_sgmcreatemlflowapprsp
  RAISING
    /AWS1/CX_SGMRESOURCELIMITEXCD
    /AWS1/CX_SGMCLIENTEXC
    /AWS1/CX_SGMSERVEREXC
    /AWS1/CX_RT_TECHNICAL_GENERIC
    /AWS1/CX_RT_SERVICE_GENERIC.

IMPORTING

Required arguments:

iv_name TYPE /AWS1/SGMMLFLOWAPPNAME /AWS1/SGMMLFLOWAPPNAME

A string identifying the MLflow app name. This string is not part of the tracking server ARN.

iv_artifactstoreuri TYPE /AWS1/SGMS3URI /AWS1/SGMS3URI

The S3 URI for a general purpose bucket to use as the MLflow App artifact store.

iv_rolearn TYPE /AWS1/SGMROLEARN /AWS1/SGMROLEARN

The Amazon Resource Name (ARN) for an IAM role in your account that the MLflow App uses to access the artifact store in Amazon S3. The role should have the AmazonS3FullAccess permission.

Optional arguments:

iv_modelregistrationmode TYPE /AWS1/SGMMODELREGISTRATIONMODE /AWS1/SGMMODELREGISTRATIONMODE

Whether to enable or disable automatic registration of new MLflow models to the SageMaker Model Registry. To enable automatic model registration, set this value to AutoModelRegistrationEnabled. To disable automatic model registration, set this value to AutoModelRegistrationDisabled. If not specified, AutomaticModelRegistration defaults to AutoModelRegistrationDisabled.

iv_weeklymaintenancewindow00 TYPE /AWS1/SGMWEEKLYMAINTENANCEWI00 /AWS1/SGMWEEKLYMAINTENANCEWI00

The day and time of the week in Coordinated Universal Time (UTC) 24-hour standard time that weekly maintenance updates are scheduled. For example: TUE:03:30.

iv_accountdefaultstatus TYPE /AWS1/SGMACCOUNTDEFAULTSTATUS /AWS1/SGMACCOUNTDEFAULTSTATUS

Indicates whether this MLflow app is the default for the entire account.

it_defaultdomainidlist TYPE /AWS1/CL_SGMDEFDOMAINIDLIST_W=>TT_DEFAULTDOMAINIDLIST TT_DEFAULTDOMAINIDLIST

List of SageMaker domain IDs for which this MLflow App is used as the default.

it_tags TYPE /AWS1/CL_SGMTAG=>TT_TAGLIST TT_TAGLIST

Tags consisting of key-value pairs used to manage metadata for the MLflow App.

RETURNING

oo_output TYPE REF TO /aws1/cl_sgmcreatemlflowapprsp /AWS1/CL_SGMCREATEMLFLOWAPPRSP

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->createmlflowapp(
  it_defaultdomainidlist = VALUE /aws1/cl_sgmdefdomainidlist_w=>tt_defaultdomainidlist(
    ( new /aws1/cl_sgmdefdomainidlist_w( |string| ) )
  )
  it_tags = VALUE /aws1/cl_sgmtag=>tt_taglist(
    (
      new /aws1/cl_sgmtag(
        iv_key = |string|
        iv_value = |string|
      )
    )
  )
  iv_accountdefaultstatus = |string|
  iv_artifactstoreuri = |string|
  iv_modelregistrationmode = |string|
  iv_name = |string|
  iv_rolearn = |string|
  iv_weeklymaintenancewindow00 = |string|
).

This is an example of reading all possible response values

lo_result = lo_result.
IF lo_result IS NOT INITIAL.
  lv_mlflowapparn = lo_result->get_arn( ).
ENDIF.