/AWS1/IF_SGM=>CREATEIMAGE()¶
About CreateImage¶
Creates a custom SageMaker AI image. A SageMaker AI image is a set of image versions. Each image version represents a container image stored in Amazon ECR. For more information, see Bring your own SageMaker AI image.
Method Signature¶
METHODS /AWS1/IF_SGM~CREATEIMAGE
IMPORTING
!IV_DESCRIPTION TYPE /AWS1/SGMIMAGEDESCRIPTION OPTIONAL
!IV_DISPLAYNAME TYPE /AWS1/SGMIMAGEDISPLAYNAME OPTIONAL
!IV_IMAGENAME TYPE /AWS1/SGMIMAGENAME OPTIONAL
!IV_ROLEARN TYPE /AWS1/SGMROLEARN OPTIONAL
!IT_TAGS TYPE /AWS1/CL_SGMTAG=>TT_TAGLIST OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_sgmcreateimagersp
RAISING
/AWS1/CX_SGMRESOURCEINUSE
/AWS1/CX_SGMRESOURCELIMITEXCD
/AWS1/CX_SGMCLIENTEXC
/AWS1/CX_SGMSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
iv_imagename TYPE /AWS1/SGMIMAGENAME /AWS1/SGMIMAGENAME¶
The name of the image. Must be unique to your account.
iv_rolearn TYPE /AWS1/SGMROLEARN /AWS1/SGMROLEARN¶
The ARN of an IAM role that enables Amazon SageMaker AI to perform tasks on your behalf.
Optional arguments:¶
iv_description TYPE /AWS1/SGMIMAGEDESCRIPTION /AWS1/SGMIMAGEDESCRIPTION¶
The description of the image.
iv_displayname TYPE /AWS1/SGMIMAGEDISPLAYNAME /AWS1/SGMIMAGEDISPLAYNAME¶
The display name of the image. If not provided,
ImageNameis displayed.
it_tags TYPE /AWS1/CL_SGMTAG=>TT_TAGLIST TT_TAGLIST¶
A list of tags to apply to the image.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_sgmcreateimagersp /AWS1/CL_SGMCREATEIMAGERSP¶
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->createimage(
it_tags = VALUE /aws1/cl_sgmtag=>tt_taglist(
(
new /aws1/cl_sgmtag(
iv_key = |string|
iv_value = |string|
)
)
)
iv_description = |string|
iv_displayname = |string|
iv_imagename = |string|
iv_rolearn = |string|
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
lv_imagearn = lo_result->get_imagearn( ).
ENDIF.