/AWS1/IF_CHP=>CREATEMEDIASTREAMPIPELINE()¶
About CreateMediaStreamPipeline¶
Creates a streaming media pipeline.
Method Signature¶
METHODS /AWS1/IF_CHP~CREATEMEDIASTREAMPIPELINE
IMPORTING
!IT_SOURCES TYPE /AWS1/CL_CHPMEDIASTREAMSOURCE=>TT_MEDIASTREAMSOURCELIST OPTIONAL
!IT_SINKS TYPE /AWS1/CL_CHPMEDIASTREAMSINK=>TT_MEDIASTREAMSINKLIST OPTIONAL
!IV_CLIENTREQUESTTOKEN TYPE /AWS1/CHPCLIENTREQUESTTOKEN OPTIONAL
!IT_TAGS TYPE /AWS1/CL_CHPTAG=>TT_TAGLIST OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_chpcremediastrmplrsp
RAISING
/AWS1/CX_CHPBADREQUESTEX
/AWS1/CX_CHPFORBIDDENEXCEPTION
/AWS1/CX_CHPNOTFOUNDEXCEPTION
/AWS1/CX_CHPRESRCLIMITEXCDEX
/AWS1/CX_CHPSERVICEFAILUREEX
/AWS1/CX_CHPSERVICEUNAVAILEX
/AWS1/CX_CHPTHROTTLEDCLIENTEX
/AWS1/CX_CHPUNAUTHDCLIENTEX
/AWS1/CX_CHPCLIENTEXC
/AWS1/CX_CHPSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
it_sources TYPE /AWS1/CL_CHPMEDIASTREAMSOURCE=>TT_MEDIASTREAMSOURCELIST TT_MEDIASTREAMSOURCELIST¶
The data sources for the media pipeline.
it_sinks TYPE /AWS1/CL_CHPMEDIASTREAMSINK=>TT_MEDIASTREAMSINKLIST TT_MEDIASTREAMSINKLIST¶
The data sink for the media pipeline.
Optional arguments:¶
iv_clientrequesttoken TYPE /AWS1/CHPCLIENTREQUESTTOKEN /AWS1/CHPCLIENTREQUESTTOKEN¶
The token assigned to the client making the request.
it_tags TYPE /AWS1/CL_CHPTAG=>TT_TAGLIST TT_TAGLIST¶
The tags assigned to the media pipeline.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_chpcremediastrmplrsp /AWS1/CL_CHPCREMEDIASTRMPLRSP¶
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->createmediastreampipeline(
it_sinks = VALUE /aws1/cl_chpmediastreamsink=>tt_mediastreamsinklist(
(
new /aws1/cl_chpmediastreamsink(
iv_mediastreamtype = |string|
iv_reservedstreamcapacity = 123
iv_sinkarn = |string|
iv_sinktype = |string|
)
)
)
it_sources = VALUE /aws1/cl_chpmediastreamsource=>tt_mediastreamsourcelist(
(
new /aws1/cl_chpmediastreamsource(
iv_sourcearn = |string|
iv_sourcetype = |string|
)
)
)
it_tags = VALUE /aws1/cl_chptag=>tt_taglist(
(
new /aws1/cl_chptag(
iv_key = |string|
iv_value = |string|
)
)
)
iv_clientrequesttoken = |string|
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
lo_mediastreampipeline = lo_result->get_mediastreampipeline( ).
IF lo_mediastreampipeline IS NOT INITIAL.
lv_guidstring = lo_mediastreampipeline->get_mediapipelineid( ).
lv_amazonresourcename = lo_mediastreampipeline->get_mediapipelinearn( ).
lv_iso8601timestamp = lo_mediastreampipeline->get_createdtimestamp( ).
lv_iso8601timestamp = lo_mediastreampipeline->get_updatedtimestamp( ).
lv_mediapipelinestatus = lo_mediastreampipeline->get_status( ).
LOOP AT lo_mediastreampipeline->get_sources( ) into lo_row.
lo_row_1 = lo_row.
IF lo_row_1 IS NOT INITIAL.
lv_mediapipelinesourcetype = lo_row_1->get_sourcetype( ).
lv_arn = lo_row_1->get_sourcearn( ).
ENDIF.
ENDLOOP.
LOOP AT lo_mediastreampipeline->get_sinks( ) into lo_row_2.
lo_row_3 = lo_row_2.
IF lo_row_3 IS NOT INITIAL.
lv_arn = lo_row_3->get_sinkarn( ).
lv_mediastreampipelinesink = lo_row_3->get_sinktype( ).
lv_reservedstreamcapacity = lo_row_3->get_reservedstreamcapacity( ).
lv_mediastreamtype = lo_row_3->get_mediastreamtype( ).
ENDIF.
ENDLOOP.
ENDIF.
ENDIF.