Skip to content

/AWS1/CL_DMG=>DELETEMIGRATIONPROJECT()

About DeleteMigrationProject

Deletes the specified migration project.

The migration project must be closed before you can delete it.

Method Signature

IMPORTING

Required arguments:

iv_migrationprojectid TYPE /AWS1/DMGSTRING /AWS1/DMGSTRING

The name or Amazon Resource Name (ARN) of the migration project to delete.

RETURNING

oo_output TYPE REF TO /aws1/cl_dmgdelmigrationproj01 /AWS1/CL_DMGDELMIGRATIONPROJ01

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_dmg~deletemigrationproject( |string| ).

This is an example of reading all possible response values

lo_result = lo_result.
IF lo_result IS NOT INITIAL.
  lo_migrationproject = lo_result->get_migrationproject( ).
  IF lo_migrationproject IS NOT INITIAL.
    lv_string = lo_migrationproject->get_migrationprojectname( ).
    lv_string = lo_migrationproject->get_migrationprojectarn( ).
    lv_iso8601datetime = lo_migrationproject->get_migrationprojectcreati00( ).
    LOOP AT lo_migrationproject->get_srcdatapvdrdescriptors( ) into lo_row.
      lo_row_1 = lo_row.
      IF lo_row_1 IS NOT INITIAL.
        lv_string = lo_row_1->get_secretsmanagersecretid( ).
        lv_string = lo_row_1->get_secretsmanageraccrolearn( ).
        lv_string = lo_row_1->get_dataprovidername( ).
        lv_string = lo_row_1->get_dataproviderarn( ).
      ENDIF.
    ENDLOOP.
    LOOP AT lo_migrationproject->get_tgtdatapvdrdescriptors( ) into lo_row.
      lo_row_1 = lo_row.
      IF lo_row_1 IS NOT INITIAL.
        lv_string = lo_row_1->get_secretsmanagersecretid( ).
        lv_string = lo_row_1->get_secretsmanageraccrolearn( ).
        lv_string = lo_row_1->get_dataprovidername( ).
        lv_string = lo_row_1->get_dataproviderarn( ).
      ENDIF.
    ENDLOOP.
    lv_string = lo_migrationproject->get_instanceprofilearn( ).
    lv_string = lo_migrationproject->get_instanceprofilename( ).
    lv_string = lo_migrationproject->get_transformationrules( ).
    lv_string = lo_migrationproject->get_description( ).
    lo_scapplicationattributes = lo_migrationproject->get_schconvrsapplicationat00( ).
    IF lo_scapplicationattributes IS NOT INITIAL.
      lv_string = lo_scapplicationattributes->get_s3bucketpath( ).
      lv_string = lo_scapplicationattributes->get_s3bucketrolearn( ).
    ENDIF.
  ENDIF.
ENDIF.

Delete Migration Project

Deletes the specified migration project.

DATA(lo_result) = lo_client->/aws1/if_dmg~deletemigrationproject( |arn:aws:dms:us-east-1:012345678901:migration-project:EXAMPLEABCDEFGHIJKLMNOPQRSTUVWXYZ012345| ).