Skip to content

/AWS1/IF_MDX=>CREATEROUTERNETWORKINTERFACE()

About CreateRouterNetworkInterface

Creates a new router network interface in AWS Elemental MediaConnect.

Method Signature

METHODS /AWS1/IF_MDX~CREATEROUTERNETWORKINTERFACE
  IMPORTING
    !IV_NAME TYPE /AWS1/MDXSTRING OPTIONAL
    !IO_CONFIGURATION TYPE REF TO /AWS1/CL_MDXROUTERNETIFACECONF OPTIONAL
    !IV_REGIONNAME TYPE /AWS1/MDXSTRING OPTIONAL
    !IT_TAGS TYPE /AWS1/CL_MDX__MAPOFSTRING_W=>TT___MAPOFSTRING OPTIONAL
    !IV_CLIENTTOKEN TYPE /AWS1/MDXSTRING OPTIONAL
  RETURNING
    VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_mdxcrertrnetifacersp
  RAISING
    /AWS1/CX_MDXBADREQUESTEX
    /AWS1/CX_MDXCONFLICTEXCEPTION
    /AWS1/CX_MDXFORBIDDENEXCEPTION
    /AWS1/CX_MDXINTERNALSERVERER00
    /AWS1/CX_MDXRTRNETIFSVCQUOTA00
    /AWS1/CX_MDXSERVICEUNAVAILEX
    /AWS1/CX_MDXTOOMANYREQUESTSEX
    /AWS1/CX_MDXCLIENTEXC
    /AWS1/CX_MDXSERVEREXC
    /AWS1/CX_RT_TECHNICAL_GENERIC
    /AWS1/CX_RT_SERVICE_GENERIC.

IMPORTING

Required arguments:

iv_name TYPE /AWS1/MDXSTRING /AWS1/MDXSTRING

The name of the router network interface.

io_configuration TYPE REF TO /AWS1/CL_MDXROUTERNETIFACECONF /AWS1/CL_MDXROUTERNETIFACECONF

The configuration settings for the router network interface.

Optional arguments:

iv_regionname TYPE /AWS1/MDXSTRING /AWS1/MDXSTRING

The Amazon Web Services Region for the router network interface. Defaults to the current region if not specified.

it_tags TYPE /AWS1/CL_MDX__MAPOFSTRING_W=>TT___MAPOFSTRING TT___MAPOFSTRING

Key-value pairs that can be used to tag and organize this router network interface.

iv_clienttoken TYPE /AWS1/MDXSTRING /AWS1/MDXSTRING

A unique identifier for the request to ensure idempotency.

RETURNING

oo_output TYPE REF TO /aws1/cl_mdxcrertrnetifacersp /AWS1/CL_MDXCRERTRNETIFACERSP

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->createrouternetworkinterface(
  io_configuration = new /aws1/cl_mdxrouternetifaceconf(
    io_public = new /aws1/cl_mdxpubrtrnetifaceconf(
      it_allowrules = VALUE /aws1/cl_mdxpubrtrnetifacerule=>tt_networkinterfacerulelist(
        ( new /aws1/cl_mdxpubrtrnetifacerule( |string| ) )
      )
    )
    io_vpc = new /aws1/cl_mdxvpcrtrnetifaceconf(
      it_securitygroupids = VALUE /aws1/cl_mdxsecgroupidlist_w=>tt_securitygroupidlist(
        ( new /aws1/cl_mdxsecgroupidlist_w( |string| ) )
      )
      iv_subnetid = |string|
    )
  )
  it_tags = VALUE /aws1/cl_mdx__mapofstring_w=>tt___mapofstring(
    (
      VALUE /aws1/cl_mdx__mapofstring_w=>ts___mapofstring_maprow(
        key = |string|
        value = new /aws1/cl_mdx__mapofstring_w( |string| )
      )
    )
  )
  iv_clienttoken = |string|
  iv_name = |string|
  iv_regionname = |string|
).

This is an example of reading all possible response values

lo_result = lo_result.
IF lo_result IS NOT INITIAL.
  lo_routernetworkinterface = lo_result->get_routernetworkinterface( ).
  IF lo_routernetworkinterface IS NOT INITIAL.
    lv_string = lo_routernetworkinterface->get_name( ).
    lv_routernetworkinterfacea = lo_routernetworkinterface->get_arn( ).
    lv_string = lo_routernetworkinterface->get_id( ).
    lv_routernetworkinterfaces = lo_routernetworkinterface->get_state( ).
    lv_routernetworkinterfacet = lo_routernetworkinterface->get_networkinterfacetype( ).
    lo_routernetworkinterfacec = lo_routernetworkinterface->get_configuration( ).
    IF lo_routernetworkinterfacec IS NOT INITIAL.
      lo_publicrouternetworkinte = lo_routernetworkinterfacec->get_public( ).
      IF lo_publicrouternetworkinte IS NOT INITIAL.
        LOOP AT lo_publicrouternetworkinte->get_allowrules( ) into lo_row.
          lo_row_1 = lo_row.
          IF lo_row_1 IS NOT INITIAL.
            lv_string = lo_row_1->get_cidr( ).
          ENDIF.
        ENDLOOP.
      ENDIF.
      lo_vpcrouternetworkinterfa = lo_routernetworkinterfacec->get_vpc( ).
      IF lo_vpcrouternetworkinterfa IS NOT INITIAL.
        LOOP AT lo_vpcrouternetworkinterfa->get_securitygroupids( ) into lo_row_2.
          lo_row_3 = lo_row_2.
          IF lo_row_3 IS NOT INITIAL.
            lv_string = lo_row_3->get_value( ).
          ENDIF.
        ENDLOOP.
        lv_string = lo_vpcrouternetworkinterfa->get_subnetid( ).
      ENDIF.
    ENDIF.
    lv_integer = lo_routernetworkinterface->get_associatedoutputcount( ).
    lv_integer = lo_routernetworkinterface->get_associatedinputcount( ).
    lv_string = lo_routernetworkinterface->get_regionname( ).
    lv_timestamp = lo_routernetworkinterface->get_createdat( ).
    lv_timestamp = lo_routernetworkinterface->get_updatedat( ).
    LOOP AT lo_routernetworkinterface->get_tags( ) into ls_row_4.
      lv_key = ls_row_4-key.
      lo_value = ls_row_4-value.
      IF lo_value IS NOT INITIAL.
        lv_string = lo_value->get_value( ).
      ENDIF.
    ENDLOOP.
  ENDIF.
ENDIF.