/AWS1/IF_MDV=>CREATEASSET()¶
About CreateAsset¶
Creates a new MediaPackage VOD Asset resource.
Method Signature¶
METHODS /AWS1/IF_MDV~CREATEASSET
IMPORTING
!IV_ID TYPE /AWS1/MDV__STRING OPTIONAL
!IV_PACKAGINGGROUPID TYPE /AWS1/MDV__STRING OPTIONAL
!IV_RESOURCEID TYPE /AWS1/MDV__STRING OPTIONAL
!IV_SOURCEARN TYPE /AWS1/MDV__STRING OPTIONAL
!IV_SOURCEROLEARN TYPE /AWS1/MDV__STRING OPTIONAL
!IT_TAGS TYPE /AWS1/CL_MDVTAGS_W=>TT_TAGS OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_mdvcreateassetrsp
RAISING
/AWS1/CX_MDVFORBIDDENEXCEPTION
/AWS1/CX_MDVINTERNALSERVERER00
/AWS1/CX_MDVNOTFOUNDEXCEPTION
/AWS1/CX_MDVSERVICEUNAVAILEX
/AWS1/CX_MDVTOOMANYREQUESTSEX
/AWS1/CX_MDVUNPROCABLEENTITYEX
/AWS1/CX_MDVCLIENTEXC
/AWS1/CX_MDVSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
iv_id TYPE /AWS1/MDV__STRING /AWS1/MDV__STRING¶
The unique identifier for the Asset.
iv_packaginggroupid TYPE /AWS1/MDV__STRING /AWS1/MDV__STRING¶
The ID of the PackagingGroup for the Asset.
iv_sourcearn TYPE /AWS1/MDV__STRING /AWS1/MDV__STRING¶
ARN of the source object in S3.
iv_sourcerolearn TYPE /AWS1/MDV__STRING /AWS1/MDV__STRING¶
The IAM role ARN used to access the source S3 bucket.
Optional arguments:¶
iv_resourceid TYPE /AWS1/MDV__STRING /AWS1/MDV__STRING¶
The resource ID to include in SPEKE key requests.
it_tags TYPE /AWS1/CL_MDVTAGS_W=>TT_TAGS TT_TAGS¶
Tags
RETURNING¶
oo_output TYPE REF TO /aws1/cl_mdvcreateassetrsp /AWS1/CL_MDVCREATEASSETRSP¶
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->createasset(
it_tags = VALUE /aws1/cl_mdvtags_w=>tt_tags(
(
VALUE /aws1/cl_mdvtags_w=>ts_tags_maprow(
key = |string|
value = new /aws1/cl_mdvtags_w( |string| )
)
)
)
iv_id = |string|
iv_packaginggroupid = |string|
iv_resourceid = |string|
iv_sourcearn = |string|
iv_sourcerolearn = |string|
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
lv___string = lo_result->get_arn( ).
lv___string = lo_result->get_createdat( ).
LOOP AT lo_result->get_egressendpoints( ) into lo_row.
lo_row_1 = lo_row.
IF lo_row_1 IS NOT INITIAL.
lv___string = lo_row_1->get_packagingconfigurationid( ).
lv___string = lo_row_1->get_status( ).
lv___string = lo_row_1->get_url( ).
ENDIF.
ENDLOOP.
lv___string = lo_result->get_id( ).
lv___string = lo_result->get_packaginggroupid( ).
lv___string = lo_result->get_resourceid( ).
lv___string = lo_result->get_sourcearn( ).
lv___string = lo_result->get_sourcerolearn( ).
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___string = lo_value->get_value( ).
ENDIF.
ENDLOOP.
ENDIF.