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.
kinesisanalytics_add_application_cloud_watch_logging_option(
ApplicationName, CurrentApplicationVersionId, CloudWatchLoggingOption)
[required] The Kinesis Analytics application name.
[required] The version ID of the Kinesis Analytics application.
[required] 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 PutLogEvents
policy action enabled.
svc$add_application_cloud_watch_logging_option( ApplicationName = "string", CurrentApplicationVersionId = 123, CloudWatchLoggingOption = list( LogStreamARN = "string", RoleARN = "string" ) )
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.