Skip to content

/AWS1/IF_MDX=>CREATEROUTEROUTPUT()

About CreateRouterOutput

Creates a new router output in AWS Elemental MediaConnect.

Method Signature

METHODS /AWS1/IF_MDX~CREATEROUTEROUTPUT
  IMPORTING
    !IV_NAME TYPE /AWS1/MDXSTRING OPTIONAL
    !IO_CONFIGURATION TYPE REF TO /AWS1/CL_MDXROUTEROUTPUTCONF OPTIONAL
    !IV_MAXIMUMBITRATE TYPE /AWS1/MDXLONG OPTIONAL
    !IV_ROUTINGSCOPE TYPE /AWS1/MDXROUTINGSCOPE OPTIONAL
    !IV_TIER TYPE /AWS1/MDXROUTEROUTPUTTIER OPTIONAL
    !IV_REGIONNAME TYPE /AWS1/MDXSTRING OPTIONAL
    !IV_AVAILABILITYZONE TYPE /AWS1/MDXSTRING OPTIONAL
    !IO_MAINTENANCECONFIGURATION TYPE REF TO /AWS1/CL_MDXMAINTENANCECONF 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_mdxcreaterouteroutrsp
  RAISING
    /AWS1/CX_MDXBADREQUESTEX
    /AWS1/CX_MDXCONFLICTEXCEPTION
    /AWS1/CX_MDXFORBIDDENEXCEPTION
    /AWS1/CX_MDXINTERNALSERVERER00
    /AWS1/CX_MDXRTROUTSVCQUOTAEXEX
    /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 output.

io_configuration TYPE REF TO /AWS1/CL_MDXROUTEROUTPUTCONF /AWS1/CL_MDXROUTEROUTPUTCONF

The configuration settings for the router output.

iv_maximumbitrate TYPE /AWS1/MDXLONG /AWS1/MDXLONG

The maximum bitrate for the router output.

iv_routingscope TYPE /AWS1/MDXROUTINGSCOPE /AWS1/MDXROUTINGSCOPE

Specifies whether the router output can take inputs that are in different Regions. REGIONAL (default) - can only take inputs from same Region. GLOBAL - can take inputs from any Region.

iv_tier TYPE /AWS1/MDXROUTEROUTPUTTIER /AWS1/MDXROUTEROUTPUTTIER

The tier level for the router output.

Optional arguments:

iv_regionname TYPE /AWS1/MDXSTRING /AWS1/MDXSTRING

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

iv_availabilityzone TYPE /AWS1/MDXSTRING /AWS1/MDXSTRING

The Availability Zone where you want to create the router output. This must be a valid Availability Zone for the region specified by regionName, or the current region if no regionName is provided.

io_maintenanceconfiguration TYPE REF TO /AWS1/CL_MDXMAINTENANCECONF /AWS1/CL_MDXMAINTENANCECONF

The maintenance configuration settings for the router output, including preferred maintenance windows and schedules.

it_tags TYPE /AWS1/CL_MDX__MAPOFSTRING_W=>TT___MAPOFSTRING TT___MAPOFSTRING

Key-value pairs that can be used to tag this router output.

iv_clienttoken TYPE /AWS1/MDXSTRING /AWS1/MDXSTRING

A unique identifier for the request to ensure idempotency.

RETURNING

oo_output TYPE REF TO /aws1/cl_mdxcreaterouteroutrsp /AWS1/CL_MDXCREATEROUTEROUTRSP

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->createrouteroutput(
  io_configuration = new /aws1/cl_mdxrouteroutputconf(
    io_mediaconnectflow = new /aws1/cl_mdxmediacnctflowrtr02(
      io_dsttransitencryption = new /aws1/cl_mdxflowtransitenc(
        io_encryptionkeyconf = new /aws1/cl_mdxflowtransitencke00(
          io_automatic = new /aws1/cl_mdxautomaticenckeyc00( )
          io_secretsmanager = new /aws1/cl_mdxsecretsmanageren00(
            iv_rolearn = |string|
            iv_secretarn = |string|
          )
        )
        iv_encryptionkeytype = |string|
      )
      iv_flowarn = |string|
      iv_flowsourcearn = |string|
    )
    io_medialiveinput = new /aws1/cl_mdxmedialiveinprtro00(
      io_dsttransitencryption = new /aws1/cl_mdxmedialivetransit00(
        io_encryptionkeyconf = new /aws1/cl_mdxmedialivetransit01(
          io_automatic = new /aws1/cl_mdxautomaticenckeyc00( )
          io_secretsmanager = new /aws1/cl_mdxsecretsmanageren00(
            iv_rolearn = |string|
            iv_secretarn = |string|
          )
        )
        iv_encryptionkeytype = |string|
      )
      iv_medialiveinputarn = |string|
      iv_medialivepipelineid = |string|
    )
    io_standard = new /aws1/cl_mdxstandardrtroutconf(
      io_protocolconfiguration = new /aws1/cl_mdxrouteroutprotconf(
        io_rist = new /aws1/cl_mdxristrouteroutconf(
          iv_destinationaddress = |string|
          iv_destinationport = 123
        )
        io_rtp = new /aws1/cl_mdxrtprouteroutconf(
          iv_destinationaddress = |string|
          iv_destinationport = 123
          iv_forwarderrorcorrection = |string|
        )
        io_srtcaller = new /aws1/cl_mdxsrtcallerrtroutc00(
          io_encryptionconfiguration = new /aws1/cl_mdxsrtencryptionconf(
            io_encryptionkey = new /aws1/cl_mdxsecretsmanageren00(
              iv_rolearn = |string|
              iv_secretarn = |string|
            )
          )
          iv_destinationaddress = |string|
          iv_destinationport = 123
          iv_minlatencymilliseconds = 123
          iv_streamid = |string|
        )
        io_srtlistener = new /aws1/cl_mdxsrtlstenerrtrout00(
          io_encryptionconfiguration = new /aws1/cl_mdxsrtencryptionconf(
            io_encryptionkey = new /aws1/cl_mdxsecretsmanageren00(
              iv_rolearn = |string|
              iv_secretarn = |string|
            )
          )
          iv_minlatencymilliseconds = 123
          iv_port = 123
        )
      )
      iv_networkinterfacearn = |string|
      iv_protocol = |string|
    )
  )
  io_maintenanceconfiguration = new /aws1/cl_mdxmaintenanceconf(
    io_default = new /aws1/cl_mdxdefmaintenanceconf( )
    io_preferreddaytime = new /aws1/cl_mdxpreferreddaytime00(
      iv_day = |string|
      iv_time = |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_availabilityzone = |string|
  iv_clienttoken = |string|
  iv_maximumbitrate = 123
  iv_name = |string|
  iv_regionname = |string|
  iv_routingscope = |string|
  iv_tier = |string|
).

This is an example of reading all possible response values

lo_result = lo_result.
IF lo_result IS NOT INITIAL.
  lo_routeroutput = lo_result->get_routeroutput( ).
  IF lo_routeroutput IS NOT INITIAL.
    lv_string = lo_routeroutput->get_name( ).
    lv_routeroutputarn = lo_routeroutput->get_arn( ).
    lv_string = lo_routeroutput->get_id( ).
    lv_routeroutputstate = lo_routeroutput->get_state( ).
    lv_routeroutputtype = lo_routeroutput->get_outputtype( ).
    lo_routeroutputconfigurati = lo_routeroutput->get_configuration( ).
    IF lo_routeroutputconfigurati IS NOT INITIAL.
      lo_standardrouteroutputcon = lo_routeroutputconfigurati->get_standard( ).
      IF lo_standardrouteroutputcon IS NOT INITIAL.
        lv_routernetworkinterfacea = lo_standardrouteroutputcon->get_networkinterfacearn( ).
        lo_routeroutputprotocolcon = lo_standardrouteroutputcon->get_protocolconfiguration( ).
        IF lo_routeroutputprotocolcon IS NOT INITIAL.
          lo_ristrouteroutputconfigu = lo_routeroutputprotocolcon->get_rist( ).
          IF lo_ristrouteroutputconfigu IS NOT INITIAL.
            lv_string = lo_ristrouteroutputconfigu->get_destinationaddress( ).
            lv_integer = lo_ristrouteroutputconfigu->get_destinationport( ).
          ENDIF.
          lo_srtlistenerrouteroutput = lo_routeroutputprotocolcon->get_srtlistener( ).
          IF lo_srtlistenerrouteroutput IS NOT INITIAL.
            lv_integer = lo_srtlistenerrouteroutput->get_port( ).
            lv_long = lo_srtlistenerrouteroutput->get_minlatencymilliseconds( ).
            lo_srtencryptionconfigurat = lo_srtlistenerrouteroutput->get_encryptionconfiguration( ).
            IF lo_srtencryptionconfigurat IS NOT INITIAL.
              lo_secretsmanagerencryptio = lo_srtencryptionconfigurat->get_encryptionkey( ).
              IF lo_secretsmanagerencryptio IS NOT INITIAL.
                lv_secretarn = lo_secretsmanagerencryptio->get_secretarn( ).
                lv_rolearn = lo_secretsmanagerencryptio->get_rolearn( ).
              ENDIF.
            ENDIF.
          ENDIF.
          lo_srtcallerrouteroutputco = lo_routeroutputprotocolcon->get_srtcaller( ).
          IF lo_srtcallerrouteroutputco IS NOT INITIAL.
            lv_string = lo_srtcallerrouteroutputco->get_destinationaddress( ).
            lv_integer = lo_srtcallerrouteroutputco->get_destinationport( ).
            lv_long = lo_srtcallerrouteroutputco->get_minlatencymilliseconds( ).
            lv_string = lo_srtcallerrouteroutputco->get_streamid( ).
            lo_srtencryptionconfigurat = lo_srtcallerrouteroutputco->get_encryptionconfiguration( ).
            IF lo_srtencryptionconfigurat IS NOT INITIAL.
              lo_secretsmanagerencryptio = lo_srtencryptionconfigurat->get_encryptionkey( ).
              IF lo_secretsmanagerencryptio IS NOT INITIAL.
                lv_secretarn = lo_secretsmanagerencryptio->get_secretarn( ).
                lv_rolearn = lo_secretsmanagerencryptio->get_rolearn( ).
              ENDIF.
            ENDIF.
          ENDIF.
          lo_rtprouteroutputconfigur = lo_routeroutputprotocolcon->get_rtp( ).
          IF lo_rtprouteroutputconfigur IS NOT INITIAL.
            lv_string = lo_rtprouteroutputconfigur->get_destinationaddress( ).
            lv_integer = lo_rtprouteroutputconfigur->get_destinationport( ).
            lv_forwarderrorcorrections = lo_rtprouteroutputconfigur->get_forwarderrorcorrection( ).
          ENDIF.
        ENDIF.
        lv_routeroutputprotocol = lo_standardrouteroutputcon->get_protocol( ).
      ENDIF.
      lo_mediaconnectflowroutero = lo_routeroutputconfigurati->get_mediaconnectflow( ).
      IF lo_mediaconnectflowroutero IS NOT INITIAL.
        lv_flowarn = lo_mediaconnectflowroutero->get_flowarn( ).
        lv_flowsourcearn = lo_mediaconnectflowroutero->get_flowsourcearn( ).
        lo_flowtransitencryption = lo_mediaconnectflowroutero->get_dsttransitencryption( ).
        IF lo_flowtransitencryption IS NOT INITIAL.
          lv_flowtransitencryptionke = lo_flowtransitencryption->get_encryptionkeytype( ).
          lo_flowtransitencryptionke_1 = lo_flowtransitencryption->get_encryptionkeyconf( ).
          IF lo_flowtransitencryptionke_1 IS NOT INITIAL.
            lo_secretsmanagerencryptio = lo_flowtransitencryptionke_1->get_secretsmanager( ).
            IF lo_secretsmanagerencryptio IS NOT INITIAL.
              lv_secretarn = lo_secretsmanagerencryptio->get_secretarn( ).
              lv_rolearn = lo_secretsmanagerencryptio->get_rolearn( ).
            ENDIF.
            lo_automaticencryptionkeyc = lo_flowtransitencryptionke_1->get_automatic( ).
            IF lo_automaticencryptionkeyc IS NOT INITIAL.
            ENDIF.
          ENDIF.
        ENDIF.
      ENDIF.
      lo_medialiveinputrouterout = lo_routeroutputconfigurati->get_medialiveinput( ).
      IF lo_medialiveinputrouterout IS NOT INITIAL.
        lv_medialiveinputarn = lo_medialiveinputrouterout->get_medialiveinputarn( ).
        lv_medialiveinputpipelinei = lo_medialiveinputrouterout->get_medialivepipelineid( ).
        lo_medialivetransitencrypt = lo_medialiveinputrouterout->get_dsttransitencryption( ).
        IF lo_medialivetransitencrypt IS NOT INITIAL.
          lv_medialivetransitencrypt_1 = lo_medialivetransitencrypt->get_encryptionkeytype( ).
          lo_medialivetransitencrypt_2 = lo_medialivetransitencrypt->get_encryptionkeyconf( ).
          IF lo_medialivetransitencrypt_2 IS NOT INITIAL.
            lo_secretsmanagerencryptio = lo_medialivetransitencrypt_2->get_secretsmanager( ).
            IF lo_secretsmanagerencryptio IS NOT INITIAL.
              lv_secretarn = lo_secretsmanagerencryptio->get_secretarn( ).
              lv_rolearn = lo_secretsmanagerencryptio->get_rolearn( ).
            ENDIF.
            lo_automaticencryptionkeyc = lo_medialivetransitencrypt_2->get_automatic( ).
            IF lo_automaticencryptionkeyc IS NOT INITIAL.
            ENDIF.
          ENDIF.
        ENDIF.
      ENDIF.
    ENDIF.
    lv_routeroutputroutedstate = lo_routeroutput->get_routedstate( ).
    lv_string = lo_routeroutput->get_regionname( ).
    lv_string = lo_routeroutput->get_availabilityzone( ).
    lv_long = lo_routeroutput->get_maximumbitrate( ).
    lv_routingscope = lo_routeroutput->get_routingscope( ).
    lv_routeroutputtier = lo_routeroutput->get_tier( ).
    lv_timestamp = lo_routeroutput->get_createdat( ).
    lv_timestamp = lo_routeroutput->get_updatedat( ).
    LOOP AT lo_routeroutput->get_messages( ) into lo_row.
      lo_row_1 = lo_row.
      IF lo_row_1 IS NOT INITIAL.
        lv_string = lo_row_1->get_code( ).
        lv_string = lo_row_1->get_message( ).
      ENDIF.
    ENDLOOP.
    LOOP AT lo_routeroutput->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_string = lo_value->get_value( ).
      ENDIF.
    ENDLOOP.
    lo_routeroutputstreamdetai = lo_routeroutput->get_streamdetails( ).
    IF lo_routeroutputstreamdetai IS NOT INITIAL.
      lo_standardrouteroutputstr = lo_routeroutputstreamdetai->get_standard( ).
      IF lo_standardrouteroutputstr IS NOT INITIAL.
        lv_string = lo_standardrouteroutputstr->get_destinationipaddress( ).
      ENDIF.
      lo_mediaconnectflowroutero_1 = lo_routeroutputstreamdetai->get_mediaconnectflow( ).
      IF lo_mediaconnectflowroutero_1 IS NOT INITIAL.
      ENDIF.
      lo_medialiveinputrouterout_1 = lo_routeroutputstreamdetai->get_medialiveinput( ).
      IF lo_medialiveinputrouterout_1 IS NOT INITIAL.
      ENDIF.
    ENDIF.
    lv_string = lo_routeroutput->get_ipaddress( ).
    lv_routerinputarn = lo_routeroutput->get_routedinputarn( ).
    lv_maintenancetype = lo_routeroutput->get_maintenancetype( ).
    lo_maintenanceconfiguratio = lo_routeroutput->get_maintenanceconfiguration( ).
    IF lo_maintenanceconfiguratio IS NOT INITIAL.
      lo_preferreddaytimemainten = lo_maintenanceconfiguratio->get_preferreddaytime( ).
      IF lo_preferreddaytimemainten IS NOT INITIAL.
        lv_day = lo_preferreddaytimemainten->get_day( ).
        lv_string = lo_preferreddaytimemainten->get_time( ).
      ENDIF.
      lo_defaultmaintenanceconfi = lo_maintenanceconfiguratio->get_default( ).
      IF lo_defaultmaintenanceconfi IS NOT INITIAL.
      ENDIF.
    ENDIF.
    lv_maintenancescheduletype = lo_routeroutput->get_maintenancescheduletype( ).
    lo_maintenanceschedule = lo_routeroutput->get_maintenanceschedule( ).
    IF lo_maintenanceschedule IS NOT INITIAL.
      lo_windowmaintenanceschedu = lo_maintenanceschedule->get_window( ).
      IF lo_windowmaintenanceschedu IS NOT INITIAL.
        lv_timestamp = lo_windowmaintenanceschedu->get_start( ).
        lv_timestamp = lo_windowmaintenanceschedu->get_end( ).
        lv_timestamp = lo_windowmaintenanceschedu->get_scheduledtime( ).
      ENDIF.
    ENDIF.
  ENDIF.
ENDIF.