/AWS1/CL_KNV=>UPDATESTREAM()
¶
About UpdateStream¶
Updates stream metadata, such as the device name and media type.
You must provide the stream name or the Amazon Resource Name (ARN) of the stream.
To make sure that you have the latest version of the stream before updating it, you
can specify the stream version. Kinesis Video Streams assigns a version to each stream.
When you update a stream, Kinesis Video Streams assigns a new version number. To get the
latest stream version, use the DescribeStream
API.
UpdateStream
is an asynchronous operation, and takes time to
complete.
Method Signature¶
IMPORTING¶
Required arguments:¶
iv_currentversion
TYPE /AWS1/KNVVERSION
/AWS1/KNVVERSION
¶
The version of the stream whose metadata you want to update.
Optional arguments:¶
iv_streamname
TYPE /AWS1/KNVSTREAMNAME
/AWS1/KNVSTREAMNAME
¶
The name of the stream whose metadata you want to update.
The stream name is an identifier for the stream, and must be unique for each account and region.
iv_streamarn
TYPE /AWS1/KNVRESOURCEARN
/AWS1/KNVRESOURCEARN
¶
The ARN of the stream whose metadata you want to update.
iv_devicename
TYPE /AWS1/KNVDEVICENAME
/AWS1/KNVDEVICENAME
¶
The name of the device that is writing to the stream.
In the current implementation, Kinesis Video Streams does not use this name.
iv_mediatype
TYPE /AWS1/KNVMEDIATYPE
/AWS1/KNVMEDIATYPE
¶
The stream's media type. Use
MediaType
to specify the type of content that the stream contains to the consumers of the stream. For more information about media types, see Media Types. If you choose to specify theMediaType
, see Naming Requirements.To play video on the console, you must specify the correct video type. For example, if the video in the stream is H.264, specify
video/h264
as theMediaType
.
RETURNING¶
oo_output
TYPE REF TO /aws1/cl_knvupdatestreamoutput
/AWS1/CL_KNVUPDATESTREAMOUTPUT
¶
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_knv~updatestream(
iv_currentversion = |string|
iv_devicename = |string|
iv_mediatype = |string|
iv_streamarn = |string|
iv_streamname = |string|
).
This is an example of reading all possible response values