/AWS1/IF_IOT=>UPDATESTREAM()¶
About UpdateStream¶
Updates an existing stream. The stream version will be incremented by one.
Requires permission to access the UpdateStream action.
Method Signature¶
METHODS /AWS1/IF_IOT~UPDATESTREAM
IMPORTING
!IV_STREAMID TYPE /AWS1/IOTSTREAMID OPTIONAL
!IV_DESCRIPTION TYPE /AWS1/IOTSTREAMDESCRIPTION OPTIONAL
!IT_FILES TYPE /AWS1/CL_IOTSTREAMFILE=>TT_STREAMFILES OPTIONAL
!IV_ROLEARN TYPE /AWS1/IOTROLEARN OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_iotupdatestreamrsp
RAISING
/AWS1/CX_IOTINTERNALFAILUREEX
/AWS1/CX_IOTINVALIDREQUESTEX
/AWS1/CX_IOTLIMITEXCEEDEDEX
/AWS1/CX_IOTRESOURCENOTFOUNDEX
/AWS1/CX_IOTSERVICEUNAVAILEX
/AWS1/CX_IOTTHROTTLINGEX
/AWS1/CX_IOTUNAUTHORIZEDEX
/AWS1/CX_IOTCLIENTEXC
/AWS1/CX_IOTSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
iv_streamid TYPE /AWS1/IOTSTREAMID /AWS1/IOTSTREAMID¶
The stream ID.
Optional arguments:¶
iv_description TYPE /AWS1/IOTSTREAMDESCRIPTION /AWS1/IOTSTREAMDESCRIPTION¶
The description of the stream.
it_files TYPE /AWS1/CL_IOTSTREAMFILE=>TT_STREAMFILES TT_STREAMFILES¶
The files associated with the stream.
iv_rolearn TYPE /AWS1/IOTROLEARN /AWS1/IOTROLEARN¶
An IAM role that allows the IoT service principal assumes to access your S3 files.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_iotupdatestreamrsp /AWS1/CL_IOTUPDATESTREAMRSP¶
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->updatestream(
it_files = VALUE /aws1/cl_iotstreamfile=>tt_streamfiles(
(
new /aws1/cl_iotstreamfile(
io_s3location = new /aws1/cl_iots3location(
iv_bucket = |string|
iv_key = |string|
iv_version = |string|
)
iv_fileid = 123
)
)
)
iv_description = |string|
iv_rolearn = |string|
iv_streamid = |string|
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
lv_streamid = lo_result->get_streamid( ).
lv_streamarn = lo_result->get_streamarn( ).
lv_streamdescription = lo_result->get_description( ).
lv_streamversion = lo_result->get_streamversion( ).
ENDIF.