/AWS1/CL_MDL=>UPDATEINPUT()
¶
About UpdateInput¶
Updates an input.
Method Signature¶
IMPORTING¶
Required arguments:¶
iv_inputid
TYPE /AWS1/MDL__STRING
/AWS1/MDL__STRING
¶
Unique ID of the input.
Optional arguments:¶
it_destinations
TYPE /AWS1/CL_MDLINPUTDSTREQUEST=>TT___LISTOFINPUTDSTREQUEST
TT___LISTOFINPUTDSTREQUEST
¶
Destination settings for PUSH type inputs.
it_inputdevices
TYPE /AWS1/CL_MDLINPUTDEVICEREQUEST=>TT___LISTOFINPUTDEVICEREQUEST
TT___LISTOFINPUTDEVICEREQUEST
¶
Settings for the devices.
it_inputsecuritygroups
TYPE /AWS1/CL_MDL__LISTOF__STRING_W=>TT___LISTOF__STRING
TT___LISTOF__STRING
¶
A list of security groups referenced by IDs to attach to the input.
it_mediaconnectflows
TYPE /AWS1/CL_MDLMEDIACNCTFLOWREQ=>TT___LISTOFMEDIACNCTFLOWREQ
TT___LISTOFMEDIACNCTFLOWREQ
¶
A list of the MediaConnect Flow ARNs that you want to use as the source of the input. You can specify as few as one Flow and presently, as many as two. The only requirement is when you have more than one is that each Flow is in a separate Availability Zone as this ensures your EML input is redundant to AZ issues.
iv_name
TYPE /AWS1/MDL__STRING
/AWS1/MDL__STRING
¶
Name of the input.
iv_rolearn
TYPE /AWS1/MDL__STRING
/AWS1/MDL__STRING
¶
The Amazon Resource Name (ARN) of the role this input assumes during and after creation.
it_sources
TYPE /AWS1/CL_MDLINPUTSOURCEREQUEST=>TT___LISTOFINPUTSOURCEREQUEST
TT___LISTOFINPUTSOURCEREQUEST
¶
The source URLs for a PULL-type input. Every PULL type input needs exactly two source URLs for redundancy. Only specify sources for PULL type Inputs. Leave Destinations empty.
io_srtsettings
TYPE REF TO /AWS1/CL_MDLSRTSETTINGSREQUEST
/AWS1/CL_MDLSRTSETTINGSREQUEST
¶
The settings associated with an SRT input.
io_multicastsettings
TYPE REF TO /AWS1/CL_MDLMULTICASTSTGSUPREQ
/AWS1/CL_MDLMULTICASTSTGSUPREQ
¶
Multicast Input settings.
io_smpte2110receivergrpstgs
TYPE REF TO /AWS1/CL_MDLSMPTE2110RECEIVE00
/AWS1/CL_MDLSMPTE2110RECEIVE00
¶
Include this parameter if the input is a SMPTE 2110 input, to identify the stream sources for this input.
it_sdisources
TYPE /AWS1/CL_MDLINPUTSDISOURCES_W=>TT_INPUTSDISOURCES
TT_INPUTSDISOURCES
¶
SdiSources
RETURNING¶
oo_output
TYPE REF TO /aws1/cl_mdlupdateinputrsp
/AWS1/CL_MDLUPDATEINPUTRSP
¶
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_mdl~updateinput(
io_multicastsettings = new /aws1/cl_mdlmulticaststgsupreq(
it_sources = VALUE /aws1/cl_mdlmulticastsrcupdreq=>tt___listofmulticastsrcupdreq(
(
new /aws1/cl_mdlmulticastsrcupdreq(
iv_sourceip = |string|
iv_url = |string|
)
)
)
)
io_smpte2110receivergrpstgs = new /aws1/cl_mdlsmpte2110receive00(
it_smpte2110receivergroups = VALUE /aws1/cl_mdlsmpte2110receive01=>tt___lstofsmpte2110receivergrp(
(
new /aws1/cl_mdlsmpte2110receive01(
io_sdpsettings = new /aws1/cl_mdlsmpte2110receive02(
io_videosdp = new /aws1/cl_mdlinputsdplocation(
iv_mediaindex = 123
iv_sdpurl = |string|
)
it_ancillarysdps = VALUE /aws1/cl_mdlinputsdplocation=>tt___listofinputsdplocation(
(
new /aws1/cl_mdlinputsdplocation(
iv_mediaindex = 123
iv_sdpurl = |string|
)
)
)
it_audiosdps = VALUE /aws1/cl_mdlinputsdplocation=>tt___listofinputsdplocation(
(
new /aws1/cl_mdlinputsdplocation(
iv_mediaindex = 123
iv_sdpurl = |string|
)
)
)
)
)
)
)
)
io_srtsettings = new /aws1/cl_mdlsrtsettingsrequest(
it_srtcallersources = VALUE /aws1/cl_mdlsrtcallersourcereq=>tt___listofsrtcallersourcereq(
(
new /aws1/cl_mdlsrtcallersourcereq(
io_decryption = new /aws1/cl_mdlsrtcallerdecrypt00(
iv_algorithm = |string|
iv_passphrasesecretarn = |string|
)
iv_minimumlatency = 123
iv_srtlisteneraddress = |string|
iv_srtlistenerport = |string|
iv_streamid = |string|
)
)
)
)
it_destinations = VALUE /aws1/cl_mdlinputdstrequest=>tt___listofinputdstrequest(
(
new /aws1/cl_mdlinputdstrequest(
it_networkroutes = VALUE /aws1/cl_mdlinputreqdstroute=>tt___listofinputreqdstroute(
(
new /aws1/cl_mdlinputreqdstroute(
iv_cidr = |string|
iv_gateway = |string|
)
)
)
iv_network = |string|
iv_staticipaddress = |string|
iv_streamname = |string|
)
)
)
it_inputdevices = VALUE /aws1/cl_mdlinputdevicerequest=>tt___listofinputdevicerequest(
( new /aws1/cl_mdlinputdevicerequest( |string| ) )
)
it_inputsecuritygroups = VALUE /aws1/cl_mdl__listof__string_w=>tt___listof__string(
( new /aws1/cl_mdl__listof__string_w( |string| ) )
)
it_mediaconnectflows = VALUE /aws1/cl_mdlmediacnctflowreq=>tt___listofmediacnctflowreq(
( new /aws1/cl_mdlmediacnctflowreq( |string| ) )
)
it_sdisources = VALUE /aws1/cl_mdlinputsdisources_w=>tt_inputsdisources(
( new /aws1/cl_mdlinputsdisources_w( |string| ) )
)
it_sources = VALUE /aws1/cl_mdlinputsourcerequest=>tt___listofinputsourcerequest(
(
new /aws1/cl_mdlinputsourcerequest(
iv_passwordparam = |string|
iv_url = |string|
iv_username = |string|
)
)
)
iv_inputid = |string|
iv_name = |string|
iv_rolearn = |string|
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
lo_input = lo_result->get_input( ).
IF lo_input IS NOT INITIAL.
lv___string = lo_input->get_arn( ).
LOOP AT lo_input->get_attachedchannels( ) into lo_row.
lo_row_1 = lo_row.
IF lo_row_1 IS NOT INITIAL.
lv___string = lo_row_1->get_value( ).
ENDIF.
ENDLOOP.
LOOP AT lo_input->get_destinations( ) into lo_row_2.
lo_row_3 = lo_row_2.
IF lo_row_3 IS NOT INITIAL.
lv___string = lo_row_3->get_ip( ).
lv___string = lo_row_3->get_port( ).
lv___string = lo_row_3->get_url( ).
lo_inputdestinationvpc = lo_row_3->get_vpc( ).
IF lo_inputdestinationvpc IS NOT INITIAL.
lv___string = lo_inputdestinationvpc->get_availabilityzone( ).
lv___string = lo_inputdestinationvpc->get_networkinterfaceid( ).
ENDIF.
lv___string = lo_row_3->get_network( ).
LOOP AT lo_row_3->get_networkroutes( ) into lo_row_4.
lo_row_5 = lo_row_4.
IF lo_row_5 IS NOT INITIAL.
lv___string = lo_row_5->get_cidr( ).
lv___string = lo_row_5->get_gateway( ).
ENDIF.
ENDLOOP.
ENDIF.
ENDLOOP.
lv___string = lo_input->get_id( ).
lv_inputclass = lo_input->get_inputclass( ).
LOOP AT lo_input->get_inputdevices( ) into lo_row_6.
lo_row_7 = lo_row_6.
IF lo_row_7 IS NOT INITIAL.
lv___string = lo_row_7->get_id( ).
ENDIF.
ENDLOOP.
LOOP AT lo_input->get_inputpartnerids( ) into lo_row.
lo_row_1 = lo_row.
IF lo_row_1 IS NOT INITIAL.
lv___string = lo_row_1->get_value( ).
ENDIF.
ENDLOOP.
lv_inputsourcetype = lo_input->get_inputsourcetype( ).
LOOP AT lo_input->get_mediaconnectflows( ) into lo_row_8.
lo_row_9 = lo_row_8.
IF lo_row_9 IS NOT INITIAL.
lv___string = lo_row_9->get_flowarn( ).
ENDIF.
ENDLOOP.
lv___string = lo_input->get_name( ).
lv___string = lo_input->get_rolearn( ).
LOOP AT lo_input->get_securitygroups( ) into lo_row.
lo_row_1 = lo_row.
IF lo_row_1 IS NOT INITIAL.
lv___string = lo_row_1->get_value( ).
ENDIF.
ENDLOOP.
LOOP AT lo_input->get_sources( ) into lo_row_10.
lo_row_11 = lo_row_10.
IF lo_row_11 IS NOT INITIAL.
lv___string = lo_row_11->get_passwordparam( ).
lv___string = lo_row_11->get_url( ).
lv___string = lo_row_11->get_username( ).
ENDIF.
ENDLOOP.
lv_inputstate = lo_input->get_state( ).
LOOP AT lo_input->get_tags( ) into ls_row_12.
lv_key = ls_row_12-key.
lo_value = ls_row_12-value.
IF lo_value IS NOT INITIAL.
lv___string = lo_value->get_value( ).
ENDIF.
ENDLOOP.
lv_inputtype = lo_input->get_type( ).
lo_srtsettings = lo_input->get_srtsettings( ).
IF lo_srtsettings IS NOT INITIAL.
LOOP AT lo_srtsettings->get_srtcallersources( ) into lo_row_13.
lo_row_14 = lo_row_13.
IF lo_row_14 IS NOT INITIAL.
lo_srtcallerdecryption = lo_row_14->get_decryption( ).
IF lo_srtcallerdecryption IS NOT INITIAL.
lv_algorithm = lo_srtcallerdecryption->get_algorithm( ).
lv___string = lo_srtcallerdecryption->get_passphrasesecretarn( ).
ENDIF.
lv___integer = lo_row_14->get_minimumlatency( ).
lv___string = lo_row_14->get_srtlisteneraddress( ).
lv___string = lo_row_14->get_srtlistenerport( ).
lv___string = lo_row_14->get_streamid( ).
ENDIF.
ENDLOOP.
ENDIF.
lv_inputnetworklocation = lo_input->get_inputnetworklocation( ).
lo_multicastsettings = lo_input->get_multicastsettings( ).
IF lo_multicastsettings IS NOT INITIAL.
LOOP AT lo_multicastsettings->get_sources( ) into lo_row_15.
lo_row_16 = lo_row_15.
IF lo_row_16 IS NOT INITIAL.
lv___string = lo_row_16->get_sourceip( ).
lv___string = lo_row_16->get_url( ).
ENDIF.
ENDLOOP.
ENDIF.
lo_smpte2110receivergroups = lo_input->get_smpte2110receivergrpstgs( ).
IF lo_smpte2110receivergroups IS NOT INITIAL.
LOOP AT lo_smpte2110receivergroups->get_smpte2110receivergroups( ) into lo_row_17.
lo_row_18 = lo_row_17.
IF lo_row_18 IS NOT INITIAL.
lo_smpte2110receivergroups_1 = lo_row_18->get_sdpsettings( ).
IF lo_smpte2110receivergroups_1 IS NOT INITIAL.
LOOP AT lo_smpte2110receivergroups_1->get_ancillarysdps( ) into lo_row_19.
lo_row_20 = lo_row_19.
IF lo_row_20 IS NOT INITIAL.
lv___integer = lo_row_20->get_mediaindex( ).
lv___string = lo_row_20->get_sdpurl( ).
ENDIF.
ENDLOOP.
LOOP AT lo_smpte2110receivergroups_1->get_audiosdps( ) into lo_row_19.
lo_row_20 = lo_row_19.
IF lo_row_20 IS NOT INITIAL.
lv___integer = lo_row_20->get_mediaindex( ).
lv___string = lo_row_20->get_sdpurl( ).
ENDIF.
ENDLOOP.
lo_inputsdplocation = lo_smpte2110receivergroups_1->get_videosdp( ).
IF lo_inputsdplocation IS NOT INITIAL.
lv___integer = lo_inputsdplocation->get_mediaindex( ).
lv___string = lo_inputsdplocation->get_sdpurl( ).
ENDIF.
ENDIF.
ENDIF.
ENDLOOP.
ENDIF.
LOOP AT lo_input->get_sdisources( ) into lo_row_21.
lo_row_22 = lo_row_21.
IF lo_row_22 IS NOT INITIAL.
lv___string = lo_row_22->get_value( ).
ENDIF.
ENDLOOP.
ENDIF.
ENDIF.