Skip to content

/AWS1/IF_DMG=>MODIFYCONVERSIONCONF()

About ModifyConversionConfiguration

Modifies the specified schema conversion configuration using the provided parameters.

Required permissions: dms:UpdateConversionConfiguration. For more information, see Actions, resources, and condition keys for Database Migration Service.

Method Signature

METHODS /AWS1/IF_DMG~MODIFYCONVERSIONCONF
  IMPORTING
    !IV_MIGRATIONPROJECTID TYPE /AWS1/DMGMIGRATIONPROJECTID OPTIONAL
    !IV_CONVERSIONCONFIGURATION TYPE /AWS1/DMGSTRING OPTIONAL
  RETURNING
    VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_dmgmdfyconvrsconfrsp
  RAISING
    /AWS1/CX_DMGINVRESRCSTATEFAULT
    /AWS1/CX_DMGRESRCNOTFOUNDFAULT
    /AWS1/CX_DMGCLIENTEXC
    /AWS1/CX_DMGSERVEREXC
    /AWS1/CX_RT_TECHNICAL_GENERIC
    /AWS1/CX_RT_SERVICE_GENERIC.

IMPORTING

Required arguments:

iv_migrationprojectid TYPE /AWS1/DMGMIGRATIONPROJECTID /AWS1/DMGMIGRATIONPROJECTID

The migration project name or Amazon Resource Name (ARN).

iv_conversionconfiguration TYPE /AWS1/DMGSTRING /AWS1/DMGSTRING

A JSON string that contains the schema conversion settings to update. For the format and available settings, see Specifying schema conversion settings for migration projects.

Usage:

  • Include only the sections and keys to change. The operation merges supplied values with the existing configuration.

RETURNING

oo_output TYPE REF TO /aws1/cl_dmgmdfyconvrsconfrsp /AWS1/CL_DMGMDFYCONVRSCONFRSP

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->modifyconversionconf(
  iv_conversionconfiguration = |string|
  iv_migrationprojectid = |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_migrationprojectid( ).
ENDIF.

Modifying conversion configuration for a migration project

The following example enables generative AI assisted conversion and updates a conversion pair setting for a migration project.

DATA(lo_result) = lo_client->modifyconversionconf(
  iv_conversionconfiguration = |{"Common project settings":{"EnableGenAiConversion":true},"MSSQL_TO_AURORA_POSTGRESQL":{"ConvertProceduresToFunction":false}}|
  iv_migrationprojectid = |arn:aws:dms:us-east-1:111122223333:migration-project:EXAMPLEABCDEFGHIJKLMNOPQRS|
).