@Override
    public AddApplicationCloudWatchLoggingOptionResult addApplicationCloudWatchLoggingOption(AddApplicationCloudWatchLoggingOptionRequest request) {
        request = beforeClientExecution(request);
        return executeAddApplicationCloudWatchLoggingOption(request);
    }
<note>
<p>
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
<a href="/kinesisanalytics/latest/apiv2/Welcome.html">Amazon Kinesis Data Analytics API V2 Documentation</a>.
</p>
</note>
<p>
Adds a CloudWatch log stream to monitor application configuration errors. For more information about using
CloudWatch log streams with Amazon Kinesis Analytics applications, see <a
href="https://docs.aws.amazon.com/kinesisanalytics/latest/dev/cloudwatch-logs.html">Working with Amazon
CloudWatch Logs</a>.
</p>

@param addApplicationCloudWatchLoggingOptionRequest
@return Result of the AddApplicationCloudWatchLoggingOption operation returned by the service.
@throws ResourceNotFoundException
        Specified application can't be found.
@throws ResourceInUseException
        Application is not available for this operation.
@throws InvalidArgumentException
        Specified input parameter value is invalid.
@throws ConcurrentModificationException
        Exception thrown as a result of concurrent modification to an application. For example, two individuals
        attempting to edit the same application at the same time.
@throws UnsupportedOperationException
        The request was rejected because a specified parameter is not supported or a specified resource is not
        valid for this operation.
@sample AmazonKinesisAnalytics.AddApplicationCloudWatchLoggingOption
@see <a
     href="http://docs.aws.amazon.com/goto/WebAPI/kinesisanalytics-2015-08-14/AddApplicationCloudWatchLoggingOption"
     target="_top">AWS API Documentation</a>
aws-java-sdk-kinesis/src/main/java/com/amazonaws/services/kinesisanalytics/AmazonKinesisAnalyticsClient.java