/AWS1/IF_MGN=>UPDATENETWORKMIGRATIONDEFN()¶
About UpdateNetworkMigrationDefinition¶
Updates an existing network migration definition with new source or target configurations.
Method Signature¶
METHODS /AWS1/IF_MGN~UPDATENETWORKMIGRATIONDEFN
IMPORTING
!IV_NETWORKMIGRATIONDEFNID TYPE /AWS1/MGNNETWORKMIGRDEFNID OPTIONAL
!IV_NAME TYPE /AWS1/MGNNETWORKMIGRDEFNNAME OPTIONAL
!IV_DESCRIPTION TYPE /AWS1/MGNNETWORKMIGRDEFNDESC OPTIONAL
!IT_SOURCECONFIGURATIONS TYPE /AWS1/CL_MGNSOURCECONF=>TT_SOURCECONFIGURATIONLIST OPTIONAL
!IO_TARGETS3CONFIGURATION TYPE REF TO /AWS1/CL_MGNTARGETS3CONFUPDATE OPTIONAL
!IO_TARGETNETWORK TYPE REF TO /AWS1/CL_MGNTARGETNETUPDATE OPTIONAL
!IV_TARGETDEPLOYMENT TYPE /AWS1/MGNTARGETDEPLOYMENT OPTIONAL
!IT_SCOPETAGS TYPE /AWS1/CL_MGNSCOPETAGSMAP_W=>TT_SCOPETAGSMAP OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_mgnnetworkmigrdefn
RAISING
/AWS1/CX_MGNACCESSDENIEDEX
/AWS1/CX_MGNRESOURCENOTFOUNDEX
/AWS1/CX_MGNVALIDATIONEX
/AWS1/CX_MGNCLIENTEXC
/AWS1/CX_MGNSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
iv_networkmigrationdefnid TYPE /AWS1/MGNNETWORKMIGRDEFNID /AWS1/MGNNETWORKMIGRDEFNID¶
The unique identifier of the network migration definition to update.
Optional arguments:¶
iv_name TYPE /AWS1/MGNNETWORKMIGRDEFNNAME /AWS1/MGNNETWORKMIGRDEFNNAME¶
The updated name of the network migration definition.
iv_description TYPE /AWS1/MGNNETWORKMIGRDEFNDESC /AWS1/MGNNETWORKMIGRDEFNDESC¶
The updated description of the network migration definition.
it_sourceconfigurations TYPE /AWS1/CL_MGNSOURCECONF=>TT_SOURCECONFIGURATIONLIST TT_SOURCECONFIGURATIONLIST¶
The updated list of source configurations.
io_targets3configuration TYPE REF TO /AWS1/CL_MGNTARGETS3CONFUPDATE /AWS1/CL_MGNTARGETS3CONFUPDATE¶
The updated S3 configuration for storing the target network artifacts.
io_targetnetwork TYPE REF TO /AWS1/CL_MGNTARGETNETUPDATE /AWS1/CL_MGNTARGETNETUPDATE¶
The updated target network configuration.
iv_targetdeployment TYPE /AWS1/MGNTARGETDEPLOYMENT /AWS1/MGNTARGETDEPLOYMENT¶
The updated target deployment configuration.
it_scopetags TYPE /AWS1/CL_MGNSCOPETAGSMAP_W=>TT_SCOPETAGSMAP TT_SCOPETAGSMAP¶
The updated scope tags for the network migration definition.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_mgnnetworkmigrdefn /AWS1/CL_MGNNETWORKMIGRDEFN¶
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->updatenetworkmigrationdefn(
io_targetnetwork = new /aws1/cl_mgntargetnetupdate(
iv_inboundcidr = |string|
iv_inspectioncidr = |string|
iv_outboundcidr = |string|
iv_topology = |string|
)
io_targets3configuration = new /aws1/cl_mgntargets3confupdate(
iv_s3bucket = |string|
iv_s3bucketowner = |string|
)
it_scopetags = VALUE /aws1/cl_mgnscopetagsmap_w=>tt_scopetagsmap(
(
VALUE /aws1/cl_mgnscopetagsmap_w=>ts_scopetagsmap_maprow(
key = |string|
value = new /aws1/cl_mgnscopetagsmap_w( |string| )
)
)
)
it_sourceconfigurations = VALUE /aws1/cl_mgnsourceconf=>tt_sourceconfigurationlist(
(
new /aws1/cl_mgnsourceconf(
io_sources3configuration = new /aws1/cl_mgnsources3conf(
iv_s3bucket = |string|
iv_s3bucketowner = |string|
iv_s3key = |string|
)
iv_sourceenvironment = |string|
)
)
)
iv_description = |string|
iv_name = |string|
iv_networkmigrationdefnid = |string|
iv_targetdeployment = |string|
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
lv_arn = lo_result->get_arn( ).
lv_networkmigrationdefinit = lo_result->get_networkmigrationdefnid( ).
lv_networkmigrationdefinit_1 = lo_result->get_name( ).
lv_networkmigrationdefinit_2 = lo_result->get_description( ).
LOOP AT lo_result->get_sourceconfigurations( ) into lo_row.
lo_row_1 = lo_row.
IF lo_row_1 IS NOT INITIAL.
lv_sourceenvironment = lo_row_1->get_sourceenvironment( ).
lo_sources3configuration = lo_row_1->get_sources3configuration( ).
IF lo_sources3configuration IS NOT INITIAL.
lv_s3bucketname = lo_sources3configuration->get_s3bucket( ).
lv_accountid = lo_sources3configuration->get_s3bucketowner( ).
lv_s3keyname = lo_sources3configuration->get_s3key( ).
ENDIF.
ENDIF.
ENDLOOP.
lo_targets3configuration = lo_result->get_targets3configuration( ).
IF lo_targets3configuration IS NOT INITIAL.
lv_s3bucketname = lo_targets3configuration->get_s3bucket( ).
lv_accountid = lo_targets3configuration->get_s3bucketowner( ).
ENDIF.
lo_targetnetwork = lo_result->get_targetnetwork( ).
IF lo_targetnetwork IS NOT INITIAL.
lv_targetnetworktopology = lo_targetnetwork->get_topology( ).
lv_cidr = lo_targetnetwork->get_inboundcidr( ).
lv_cidr = lo_targetnetwork->get_outboundcidr( ).
lv_cidr = lo_targetnetwork->get_inspectioncidr( ).
ENDIF.
lv_targetdeployment = lo_result->get_targetdeployment( ).
lv_timestamp = lo_result->get_createdat( ).
lv_timestamp = lo_result->get_updatedat( ).
LOOP AT lo_result->get_tags( ) into ls_row_2.
lv_key = ls_row_2-key.
lo_value = ls_row_2-value.
IF lo_value IS NOT INITIAL.
lv_tagvalue = lo_value->get_value( ).
ENDIF.
ENDLOOP.
LOOP AT lo_result->get_scopetags( ) into ls_row_3.
lv_key_1 = ls_row_3-key.
lo_value_1 = ls_row_3-value.
IF lo_value_1 IS NOT INITIAL.
lv_scopetagvalue = lo_value_1->get_value( ).
ENDIF.
ENDLOOP.
ENDIF.
Sample UpdateNetworkMigrationDefinition call¶
Sample UpdateNetworkMigrationDefinition call
DATA(lo_result) = lo_client->updatenetworkmigrationdefn(
io_targetnetwork = new /aws1/cl_mgntargetnetupdate(
iv_inboundcidr = |192.168.1.0/24|
iv_topology = |ISOLATED_VPC|
)
io_targets3configuration = new /aws1/cl_mgntargets3confupdate(
iv_s3bucket = |target_bucket|
iv_s3bucketowner = |012345678901|
)
it_sourceconfigurations = VALUE /aws1/cl_mgnsourceconf=>tt_sourceconfigurationlist(
(
new /aws1/cl_mgnsourceconf(
io_sources3configuration = new /aws1/cl_mgnsources3conf(
iv_s3bucket = |source_bucket|
iv_s3bucketowner = |012345678901|
iv_s3key = |source_key|
)
iv_sourceenvironment = |NSX|
)
)
)
iv_description = |network 1 description|
iv_name = |network1|
iv_networkmigrationdefnid = |nmd-01234567891234567|
).