/AWS1/IF_KNY=>UPDATEAPPLICATION()¶
About UpdateApplication¶
This documentation is for version 1 of the Amazon Kinesis Data Analytics API, which only supports SQL applications. Version 2 of the API supports SQL and Java applications. For more information about version 2, see Amazon Kinesis Data Analytics API V2 Documentation.
Updates an existing Amazon Kinesis Analytics application. Using this API, you can update application code, input configuration, and output configuration.
Note that Amazon Kinesis Analytics updates the CurrentApplicationVersionId
each time you update your application.
This operation requires permission for the
kinesisanalytics:UpdateApplication action.
Method Signature¶
METHODS /AWS1/IF_KNY~UPDATEAPPLICATION
IMPORTING
!IV_APPLICATIONNAME TYPE /AWS1/KNYAPPLICATIONNAME OPTIONAL
!IV_CURRENTAPPLICATIONVRSID TYPE /AWS1/KNYAPPLICATIONVERSIONID OPTIONAL
!IO_APPLICATIONUPDATE TYPE REF TO /AWS1/CL_KNYAPPLICATIONUPDATE OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_knyupdapplicationrsp
RAISING
/AWS1/CX_KNYCODEVALIDATIONEX
/AWS1/CX_KNYCONCURRENTMODEX
/AWS1/CX_KNYINVALIDARGUMENTEX
/AWS1/CX_KNYRESOURCEINUSEEX
/AWS1/CX_KNYRESOURCENOTFOUNDEX
/AWS1/CX_KNYUNSUPPORTEDOPEX
/AWS1/CX_KNYCLIENTEXC
/AWS1/CX_KNYSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
iv_applicationname TYPE /AWS1/KNYAPPLICATIONNAME /AWS1/KNYAPPLICATIONNAME¶
Name of the Amazon Kinesis Analytics application to update.
iv_currentapplicationvrsid TYPE /AWS1/KNYAPPLICATIONVERSIONID /AWS1/KNYAPPLICATIONVERSIONID¶
The current application version ID. You can use the DescribeApplication operation to get this value.
io_applicationupdate TYPE REF TO /AWS1/CL_KNYAPPLICATIONUPDATE /AWS1/CL_KNYAPPLICATIONUPDATE¶
Describes application updates.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_knyupdapplicationrsp /AWS1/CL_KNYUPDAPPLICATIONRSP¶
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->updateapplication(
io_applicationupdate = new /aws1/cl_knyapplicationupdate(
it_cloudwatchlogoptionupds = VALUE /aws1/cl_knycloudwatchlogopt02=>tt_cloudwatchlogoptionupdates(
(
new /aws1/cl_knycloudwatchlogopt02(
iv_cloudwatchloggingoptionid = |string|
iv_logstreamarnupdate = |string|
iv_rolearnupdate = |string|
)
)
)
it_inputupdates = VALUE /aws1/cl_knyinputupdate=>tt_inputupdates(
(
new /aws1/cl_knyinputupdate(
io_inputparallelismupdate = new /aws1/cl_knyinpparallelismupd( 123 )
io_inputprocessingconfupdate = new /aws1/cl_knyinpprocingconfupd(
io_inputlambdaprocorupdate = new /aws1/cl_knyinplambdaprocorupd(
iv_resourcearnupdate = |string|
iv_rolearnupdate = |string|
)
)
io_inputschemaupdate = new /aws1/cl_knyinputschemaupdate(
io_recordformatupdate = new /aws1/cl_knyrecordformat(
io_mappingparameters = new /aws1/cl_knymappingparameters(
io_csvmappingparameters = new /aws1/cl_knycsvmappingparams(
iv_recordcolumndelimiter = |string|
iv_recordrowdelimiter = |string|
)
io_jsonmappingparameters = new /aws1/cl_knyjsonmappingparams( |string| )
)
iv_recordformattype = |string|
)
it_recordcolumnupdates = VALUE /aws1/cl_knyrecordcolumn=>tt_recordcolumns(
(
new /aws1/cl_knyrecordcolumn(
iv_mapping = |string|
iv_name = |string|
iv_sqltype = |string|
)
)
)
iv_recordencodingupdate = |string|
)
io_kinesisfirehoseinputupd = new /aws1/cl_knykinesisfirehosei01(
iv_resourcearnupdate = |string|
iv_rolearnupdate = |string|
)
io_kinesisstreamsinputupdate = new /aws1/cl_knykinesisstrmsinpupd(
iv_resourcearnupdate = |string|
iv_rolearnupdate = |string|
)
iv_inputid = |string|
iv_nameprefixupdate = |string|
)
)
)
it_outputupdates = VALUE /aws1/cl_knyoutputupdate=>tt_outputupdates(
(
new /aws1/cl_knyoutputupdate(
io_destinationschemaupdate = new /aws1/cl_knydestinationschema( |string| )
io_kinesisfirehoseoutputupd = new /aws1/cl_knykinesisfirehoseo01(
iv_resourcearnupdate = |string|
iv_rolearnupdate = |string|
)
io_kinesisstreamsoutputupd = new /aws1/cl_knykinesisstrmsoutupd(
iv_resourcearnupdate = |string|
iv_rolearnupdate = |string|
)
io_lambdaoutputupdate = new /aws1/cl_knylambdaoutputupdate(
iv_resourcearnupdate = |string|
iv_rolearnupdate = |string|
)
iv_nameupdate = |string|
iv_outputid = |string|
)
)
)
it_referencedatasrcupdates = VALUE /aws1/cl_knyreferencedatasrcup=>tt_referencedatasourceupdates(
(
new /aws1/cl_knyreferencedatasrcup(
io_referenceschemaupdate = new /aws1/cl_knysourceschema(
io_recordformat = new /aws1/cl_knyrecordformat(
io_mappingparameters = new /aws1/cl_knymappingparameters(
io_csvmappingparameters = new /aws1/cl_knycsvmappingparams(
iv_recordcolumndelimiter = |string|
iv_recordrowdelimiter = |string|
)
io_jsonmappingparameters = new /aws1/cl_knyjsonmappingparams( |string| )
)
iv_recordformattype = |string|
)
it_recordcolumns = VALUE /aws1/cl_knyrecordcolumn=>tt_recordcolumns(
(
new /aws1/cl_knyrecordcolumn(
iv_mapping = |string|
iv_name = |string|
iv_sqltype = |string|
)
)
)
iv_recordencoding = |string|
)
io_s3referencedatasrcupdate = new /aws1/cl_knys3referencedatas01(
iv_bucketarnupdate = |string|
iv_filekeyupdate = |string|
iv_referencerolearnupdate = |string|
)
iv_referenceid = |string|
iv_tablenameupdate = |string|
)
)
)
iv_applicationcodeupdate = |string|
)
iv_applicationname = |string|
iv_currentapplicationvrsid = 123
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
ENDIF.