Skip to content

/AWS1/CL_SGM=>CREATESPACE()

About CreateSpace

Creates a private space or a space used for real time collaboration in a domain.

Method Signature

IMPORTING

Required arguments:

iv_domainid TYPE /AWS1/SGMDOMAINID /AWS1/SGMDOMAINID

The ID of the associated domain.

iv_spacename TYPE /AWS1/SGMSPACENAME /AWS1/SGMSPACENAME

The name of the space.

Optional arguments:

it_tags TYPE /AWS1/CL_SGMTAG=>TT_TAGLIST TT_TAGLIST

Tags to associated with the space. Each tag consists of a key and an optional value. Tag keys must be unique for each resource. Tags are searchable using the Search API.

io_spacesettings TYPE REF TO /AWS1/CL_SGMSPACESETTINGS /AWS1/CL_SGMSPACESETTINGS

A collection of space settings.

io_ownershipsettings TYPE REF TO /AWS1/CL_SGMOWNERSHIPSETTINGS /AWS1/CL_SGMOWNERSHIPSETTINGS

A collection of ownership settings.

io_spacesharingsettings TYPE REF TO /AWS1/CL_SGMSPACESHARINGSTGS /AWS1/CL_SGMSPACESHARINGSTGS

A collection of space sharing settings.

iv_spacedisplayname TYPE /AWS1/SGMNONEMPTYSTRING64 /AWS1/SGMNONEMPTYSTRING64

The name of the space that appears in the SageMaker Studio UI.

RETURNING

oo_output TYPE REF TO /aws1/cl_sgmcreatespacersp /AWS1/CL_SGMCREATESPACERSP

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_sgm~createspace(
  io_ownershipsettings = new /aws1/cl_sgmownershipsettings( |string| )
  io_spacesettings = new /aws1/cl_sgmspacesettings(
    io_codeeditorappsettings = new /aws1/cl_sgmspacecodeeditora00(
      io_applifecyclemanagement = new /aws1/cl_sgmspaceapplcmanage00( new /aws1/cl_sgmspaceidlesettings( 123 ) )
      io_defaultresourcespec = new /aws1/cl_sgmresourcespec(
        iv_instancetype = |string|
        iv_lifecycleconfigarn = |string|
        iv_sagemakerimagearn = |string|
        iv_sagemakerimageversionarn = |string|
        iv_smimageversionalias = |string|
      )
    )
    io_jupyterlabappsettings = new /aws1/cl_sgmspacejupyterlaba00(
      io_applifecyclemanagement = new /aws1/cl_sgmspaceapplcmanage00( new /aws1/cl_sgmspaceidlesettings( 123 ) )
      io_defaultresourcespec = new /aws1/cl_sgmresourcespec(
        iv_instancetype = |string|
        iv_lifecycleconfigarn = |string|
        iv_sagemakerimagearn = |string|
        iv_sagemakerimageversionarn = |string|
        iv_smimageversionalias = |string|
      )
      it_coderepositories = VALUE /aws1/cl_sgmcoderepository=>tt_coderepositories(
        ( new /aws1/cl_sgmcoderepository( |string| ) )
      )
    )
    io_jupyterserverappsettings = new /aws1/cl_sgmjupyterserverapp00(
      io_defaultresourcespec = new /aws1/cl_sgmresourcespec(
        iv_instancetype = |string|
        iv_lifecycleconfigarn = |string|
        iv_sagemakerimagearn = |string|
        iv_sagemakerimageversionarn = |string|
        iv_smimageversionalias = |string|
      )
      it_coderepositories = VALUE /aws1/cl_sgmcoderepository=>tt_coderepositories(
        ( new /aws1/cl_sgmcoderepository( |string| ) )
      )
      it_lifecycleconfigarns = VALUE /aws1/cl_sgmlcconfigarns_w=>tt_lifecycleconfigarns(
        ( new /aws1/cl_sgmlcconfigarns_w( |string| ) )
      )
    )
    io_kernelgatewayappsettings = new /aws1/cl_sgmkernelgwappstgs(
      io_defaultresourcespec = new /aws1/cl_sgmresourcespec(
        iv_instancetype = |string|
        iv_lifecycleconfigarn = |string|
        iv_sagemakerimagearn = |string|
        iv_sagemakerimageversionarn = |string|
        iv_smimageversionalias = |string|
      )
      it_customimages = VALUE /aws1/cl_sgmcustomimage=>tt_customimages(
        (
          new /aws1/cl_sgmcustomimage(
            iv_appimageconfigname = |string|
            iv_imagename = |string|
            iv_imageversionnumber = 123
          )
        )
      )
      it_lifecycleconfigarns = VALUE /aws1/cl_sgmlcconfigarns_w=>tt_lifecycleconfigarns(
        ( new /aws1/cl_sgmlcconfigarns_w( |string| ) )
      )
    )
    io_spacestoragesettings = new /aws1/cl_sgmspacestoragestgs( new /aws1/cl_sgmebsstoragesettings( 123 ) )
    it_customfilesystems = VALUE /aws1/cl_sgmcustomfilesystem=>tt_customfilesystems(
      (
        new /aws1/cl_sgmcustomfilesystem(
          io_efsfilesystem = new /aws1/cl_sgmefsfilesystem( |string| )
          io_fsxlustrefilesystem = new /aws1/cl_sgmfsxlustrefilesys01( |string| )
        )
      )
    )
    iv_apptype = |string|
    iv_spacemanagedresources = |string|
  )
  io_spacesharingsettings = new /aws1/cl_sgmspacesharingstgs( |string| )
  it_tags = VALUE /aws1/cl_sgmtag=>tt_taglist(
    (
      new /aws1/cl_sgmtag(
        iv_key = |string|
        iv_value = |string|
      )
    )
  )
  iv_domainid = |string|
  iv_spacedisplayname = |string|
  iv_spacename = |string|
).

This is an example of reading all possible response values

lo_result = lo_result.
IF lo_result IS NOT INITIAL.
  lv_spacearn = lo_result->get_spacearn( ).
ENDIF.