/AWS1/IF_KNY=>ADDAPPLICATIONCLOUDWATCHLO00()¶
About AddApplicationCloudWatchLoggingOption¶
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.
Adds a CloudWatch log stream to monitor application configuration errors. For more information about using CloudWatch log streams with Amazon Kinesis Analytics applications, see Working with Amazon CloudWatch Logs.
Method Signature¶
METHODS /AWS1/IF_KNY~ADDAPPLICATIONCLOUDWATCHLO00
IMPORTING
!IV_APPLICATIONNAME TYPE /AWS1/KNYAPPLICATIONNAME OPTIONAL
!IV_CURRENTAPPLICATIONVRSID TYPE /AWS1/KNYAPPLICATIONVERSIONID OPTIONAL
!IO_CLOUDWATCHLOGGINGOPTION TYPE REF TO /AWS1/CL_KNYCLOUDWATCHLOGOPT00 OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_knyaddapplicationcl01
RAISING
/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¶
The Kinesis Analytics application name.
iv_currentapplicationvrsid TYPE /AWS1/KNYAPPLICATIONVERSIONID /AWS1/KNYAPPLICATIONVERSIONID¶
The version ID of the Kinesis Analytics application.
io_cloudwatchloggingoption TYPE REF TO /AWS1/CL_KNYCLOUDWATCHLOGOPT00 /AWS1/CL_KNYCLOUDWATCHLOGOPT00¶
Provides the CloudWatch log stream Amazon Resource Name (ARN) and the IAM role ARN. Note: To write application messages to CloudWatch, the IAM role that is used must have the
PutLogEventspolicy action enabled.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_knyaddapplicationcl01 /AWS1/CL_KNYADDAPPLICATIONCL01¶
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->addapplicationcloudwatchlo00(
io_cloudwatchloggingoption = new /aws1/cl_knycloudwatchlogopt00(
iv_logstreamarn = |string|
iv_rolearn = |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.