/AWS1/IF_MHS=>STARTIMPORTFILETASK()¶
About StartImportFileTask¶
Starts a file import.
Method Signature¶
METHODS /AWS1/IF_MHS~STARTIMPORTFILETASK
IMPORTING
!IV_NAME TYPE /AWS1/MHSSTRING OPTIONAL
!IV_S3BUCKET TYPE /AWS1/MHSIMPORTS3BUCKET OPTIONAL
!IV_S3KEY TYPE /AWS1/MHSSTRING OPTIONAL
!IV_DATASOURCETYPE TYPE /AWS1/MHSDATASOURCETYPE OPTIONAL
!IT_GROUPID TYPE /AWS1/CL_MHSGROUP=>TT_GROUPIDS OPTIONAL
!IV_S3BUCKETFORREPORTDATA TYPE /AWS1/MHSSTRING OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_mhsstrtimpfiletaskrsp
RAISING
/AWS1/CX_MHSACCESSDENIEDEX
/AWS1/CX_MHSINTERNALSERVEREX
/AWS1/CX_MHSSERVICEQUOTAEXCDEX
/AWS1/CX_MHSTHROTTLINGEX
/AWS1/CX_MHSVALIDATIONEX
/AWS1/CX_MHSCLIENTEXC
/AWS1/CX_MHSSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
iv_name TYPE /AWS1/MHSSTRING /AWS1/MHSSTRING¶
A descriptive name for the request.
iv_s3bucket TYPE /AWS1/MHSIMPORTS3BUCKET /AWS1/MHSIMPORTS3BUCKET¶
The S3 bucket where the import file is located. The bucket name is required to begin with
migrationhub-strategy-.
iv_s3key TYPE /AWS1/MHSSTRING /AWS1/MHSSTRING¶
The Amazon S3 key name of the import file.
Optional arguments:¶
iv_datasourcetype TYPE /AWS1/MHSDATASOURCETYPE /AWS1/MHSDATASOURCETYPE¶
Specifies the source that the servers are coming from. By default, Strategy Recommendations assumes that the servers specified in the import file are available in AWS Application Discovery Service.
it_groupid TYPE /AWS1/CL_MHSGROUP=>TT_GROUPIDS TT_GROUPIDS¶
Groups the resources in the import file together with a unique name. This ID can be as filter in
ListApplicationComponentsandListServers.
iv_s3bucketforreportdata TYPE /AWS1/MHSSTRING /AWS1/MHSSTRING¶
The S3 bucket where Strategy Recommendations uploads import results. The bucket name is required to begin with migrationhub-strategy-.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_mhsstrtimpfiletaskrsp /AWS1/CL_MHSSTRTIMPFILETASKRSP¶
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->startimportfiletask(
it_groupid = VALUE /aws1/cl_mhsgroup=>tt_groupids(
(
new /aws1/cl_mhsgroup(
iv_name = |string|
iv_value = |string|
)
)
)
iv_datasourcetype = |string|
iv_name = |string|
iv_s3bucket = |string|
iv_s3bucketforreportdata = |string|
iv_s3key = |string|
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
lv_string = lo_result->get_id( ).
ENDIF.