/AWS1/IF_BDK=>CREATEMODELIMPORTJOB()¶
About CreateModelImportJob¶
Creates a model import job to import model that you have customized in other environments, such as Amazon SageMaker. For more information, see Import a customized model
Method Signature¶
METHODS /AWS1/IF_BDK~CREATEMODELIMPORTJOB
IMPORTING
!IV_JOBNAME TYPE /AWS1/BDKJOBNAME OPTIONAL
!IV_IMPORTEDMODELNAME TYPE /AWS1/BDKIMPORTEDMODELNAME OPTIONAL
!IV_ROLEARN TYPE /AWS1/BDKROLEARN OPTIONAL
!IO_MODELDATASOURCE TYPE REF TO /AWS1/CL_BDKMODELDATASOURCE OPTIONAL
!IT_JOBTAGS TYPE /AWS1/CL_BDKTAG=>TT_TAGLIST OPTIONAL
!IT_IMPORTEDMODELTAGS TYPE /AWS1/CL_BDKTAG=>TT_TAGLIST OPTIONAL
!IV_CLIENTREQUESTTOKEN TYPE /AWS1/BDKIDEMPOTENCYTOKEN OPTIONAL
!IO_VPCCONFIG TYPE REF TO /AWS1/CL_BDKVPCCONFIG OPTIONAL
!IV_IMPORTEDMODELKMSKEYID TYPE /AWS1/BDKKMSKEYID OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_bdkcremodelimpjobrsp
RAISING
/AWS1/CX_BDKACCESSDENIEDEX
/AWS1/CX_BDKCONFLICTEXCEPTION
/AWS1/CX_BDKINTERNALSERVEREX
/AWS1/CX_BDKRESOURCENOTFOUNDEX
/AWS1/CX_BDKSERVICEQUOTAEXCDEX
/AWS1/CX_BDKTHROTTLINGEX
/AWS1/CX_BDKTOOMANYTAGSEX
/AWS1/CX_BDKVALIDATIONEX
/AWS1/CX_BDKCLIENTEXC
/AWS1/CX_BDKSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
iv_jobname TYPE /AWS1/BDKJOBNAME /AWS1/BDKJOBNAME¶
The name of the import job.
iv_importedmodelname TYPE /AWS1/BDKIMPORTEDMODELNAME /AWS1/BDKIMPORTEDMODELNAME¶
The name of the imported model.
iv_rolearn TYPE /AWS1/BDKROLEARN /AWS1/BDKROLEARN¶
The Amazon Resource Name (ARN) of the model import job.
io_modeldatasource TYPE REF TO /AWS1/CL_BDKMODELDATASOURCE /AWS1/CL_BDKMODELDATASOURCE¶
The data source for the imported model.
Optional arguments:¶
it_jobtags TYPE /AWS1/CL_BDKTAG=>TT_TAGLIST TT_TAGLIST¶
Tags to attach to this import job.
it_importedmodeltags TYPE /AWS1/CL_BDKTAG=>TT_TAGLIST TT_TAGLIST¶
Tags to attach to the imported model.
iv_clientrequesttoken TYPE /AWS1/BDKIDEMPOTENCYTOKEN /AWS1/BDKIDEMPOTENCYTOKEN¶
A unique, case-sensitive identifier to ensure that the API request completes no more than one time. If this token matches a previous request, Amazon Bedrock ignores the request, but does not return an error. For more information, see Ensuring idempotency.
io_vpcconfig TYPE REF TO /AWS1/CL_BDKVPCCONFIG /AWS1/CL_BDKVPCCONFIG¶
VPC configuration parameters for the private Virtual Private Cloud (VPC) that contains the resources you are using for the import job.
iv_importedmodelkmskeyid TYPE /AWS1/BDKKMSKEYID /AWS1/BDKKMSKEYID¶
The imported model is encrypted at rest using this key.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_bdkcremodelimpjobrsp /AWS1/CL_BDKCREMODELIMPJOBRSP¶
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->createmodelimportjob(
io_modeldatasource = new /aws1/cl_bdkmodeldatasource( new /aws1/cl_bdks3datasource( |string| ) )
io_vpcconfig = new /aws1/cl_bdkvpcconfig(
it_securitygroupids = VALUE /aws1/cl_bdksecuritygroupids_w=>tt_securitygroupids(
( new /aws1/cl_bdksecuritygroupids_w( |string| ) )
)
it_subnetids = VALUE /aws1/cl_bdksubnetids_w=>tt_subnetids(
( new /aws1/cl_bdksubnetids_w( |string| ) )
)
)
it_importedmodeltags = VALUE /aws1/cl_bdktag=>tt_taglist(
(
new /aws1/cl_bdktag(
iv_key = |string|
iv_value = |string|
)
)
)
it_jobtags = VALUE /aws1/cl_bdktag=>tt_taglist(
(
new /aws1/cl_bdktag(
iv_key = |string|
iv_value = |string|
)
)
)
iv_clientrequesttoken = |string|
iv_importedmodelkmskeyid = |string|
iv_importedmodelname = |string|
iv_jobname = |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_modelimportjobarn = lo_result->get_jobarn( ).
ENDIF.