Skip to content

/AWS1/IF_SGM=>CREATEPARTNERAPP()

About CreatePartnerApp

Creates an Amazon SageMaker Partner AI App.

Method Signature

METHODS /AWS1/IF_SGM~CREATEPARTNERAPP
  IMPORTING
    !IV_NAME TYPE /AWS1/SGMPARTNERAPPNAME OPTIONAL
    !IV_TYPE TYPE /AWS1/SGMPARTNERAPPTYPE OPTIONAL
    !IV_EXECUTIONROLEARN TYPE /AWS1/SGMROLEARN OPTIONAL
    !IV_KMSKEYID TYPE /AWS1/SGMKMSKEYID OPTIONAL
    !IO_MAINTENANCECONFIG TYPE REF TO /AWS1/CL_SGMPTRAPPMAINTENANC00 OPTIONAL
    !IV_TIER TYPE /AWS1/SGMNONEMPTYSTRING64 OPTIONAL
    !IO_APPLICATIONCONFIG TYPE REF TO /AWS1/CL_SGMPARTNERAPPCONFIG OPTIONAL
    !IV_AUTHTYPE TYPE /AWS1/SGMPARTNERAPPAUTHTYPE OPTIONAL
    !IV_ENABLEIAMSESSIONBASEDID TYPE /AWS1/SGMBOOLEAN OPTIONAL
    !IV_ENABLEAUTOMINORVRSUPGRADE TYPE /AWS1/SGMBOOLEAN OPTIONAL
    !IV_CLIENTTOKEN TYPE /AWS1/SGMCLIENTTOKEN OPTIONAL
    !IT_TAGS TYPE /AWS1/CL_SGMTAG=>TT_TAGLIST OPTIONAL
  RETURNING
    VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_sgmcreateptrapprsp
  RAISING
    /AWS1/CX_SGMCONFLICTEXCEPTION
    /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/SGMPARTNERAPPNAME /AWS1/SGMPARTNERAPPNAME

The name to give the SageMaker Partner AI App.

iv_type TYPE /AWS1/SGMPARTNERAPPTYPE /AWS1/SGMPARTNERAPPTYPE

The type of SageMaker Partner AI App to create. Must be one of the following: lakera-guard, comet, deepchecks-llm-evaluation, or fiddler.

iv_executionrolearn TYPE /AWS1/SGMROLEARN /AWS1/SGMROLEARN

The ARN of the IAM role that the partner application uses.

iv_tier TYPE /AWS1/SGMNONEMPTYSTRING64 /AWS1/SGMNONEMPTYSTRING64

Indicates the instance type and size of the cluster attached to the SageMaker Partner AI App.

iv_authtype TYPE /AWS1/SGMPARTNERAPPAUTHTYPE /AWS1/SGMPARTNERAPPAUTHTYPE

The authorization type that users use to access the SageMaker Partner AI App.

Optional arguments:

iv_kmskeyid TYPE /AWS1/SGMKMSKEYID /AWS1/SGMKMSKEYID

SageMaker Partner AI Apps uses Amazon Web Services KMS to encrypt data at rest using an Amazon Web Services managed key by default. For more control, specify a customer managed key.

io_maintenanceconfig TYPE REF TO /AWS1/CL_SGMPTRAPPMAINTENANC00 /AWS1/CL_SGMPTRAPPMAINTENANC00

Maintenance configuration settings for the SageMaker Partner AI App.

io_applicationconfig TYPE REF TO /AWS1/CL_SGMPARTNERAPPCONFIG /AWS1/CL_SGMPARTNERAPPCONFIG

Configuration settings for the SageMaker Partner AI App.

iv_enableiamsessionbasedid TYPE /AWS1/SGMBOOLEAN /AWS1/SGMBOOLEAN

When set to TRUE, the SageMaker Partner AI App sets the Amazon Web Services IAM session name or the authenticated IAM user as the identity of the SageMaker Partner AI App user.

iv_enableautominorvrsupgrade TYPE /AWS1/SGMBOOLEAN /AWS1/SGMBOOLEAN

When set to TRUE, the SageMaker Partner AI App is automatically upgraded to the latest minor version during the next scheduled maintenance window, if one is available. Default is FALSE.

iv_clienttoken TYPE /AWS1/SGMCLIENTTOKEN /AWS1/SGMCLIENTTOKEN

A unique token that guarantees that the call to this API is idempotent.

it_tags TYPE /AWS1/CL_SGMTAG=>TT_TAGLIST TT_TAGLIST

Each tag consists of a key and an optional value. Tag keys must be unique per resource.

RETURNING

oo_output TYPE REF TO /aws1/cl_sgmcreateptrapprsp /AWS1/CL_SGMCREATEPTRAPPRSP

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->createpartnerapp(
  io_applicationconfig = new /aws1/cl_sgmpartnerappconfig(
    it_adminusers = VALUE /aws1/cl_sgmptrappadminuserl00=>tt_partnerappadminuserlist(
      ( new /aws1/cl_sgmptrappadminuserl00( |string| ) )
    )
    it_arguments = VALUE /aws1/cl_sgmptrapparguments_w=>tt_partnerapparguments(
      (
        VALUE /aws1/cl_sgmptrapparguments_w=>ts_partnerapparguments_maprow(
          key = |string|
          value = new /aws1/cl_sgmptrapparguments_w( |string| )
        )
      )
    )
    it_assignedgrouppatterns = VALUE /aws1/cl_sgmassignedgrpatsls00=>tt_assignedgrouppatternslist(
      ( new /aws1/cl_sgmassignedgrpatsls00( |string| ) )
    )
    it_rolegroupassignments = VALUE /aws1/cl_sgmrolegrpassignment=>tt_rolegroupassignmentslist(
      (
        new /aws1/cl_sgmrolegrpassignment(
          it_grouppatterns = VALUE /aws1/cl_sgmgrouppatslist_w=>tt_grouppatternslist(
            ( new /aws1/cl_sgmgrouppatslist_w( |string| ) )
          )
          iv_rolename = |string|
        )
      )
    )
  )
  io_maintenanceconfig = new /aws1/cl_sgmptrappmaintenanc00( |string| )
  it_tags = VALUE /aws1/cl_sgmtag=>tt_taglist(
    (
      new /aws1/cl_sgmtag(
        iv_key = |string|
        iv_value = |string|
      )
    )
  )
  iv_authtype = |string|
  iv_clienttoken = |string|
  iv_enableautominorvrsupgrade = ABAP_TRUE
  iv_enableiamsessionbasedid = ABAP_TRUE
  iv_executionrolearn = |string|
  iv_kmskeyid = |string|
  iv_name = |string|
  iv_tier = |string|
  iv_type = |string|
).

This is an example of reading all possible response values

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