add_application_cloud_watch_logging_option
(**kwargs)¶Adds an Amazon CloudWatch log stream to monitor application configuration errors.
See also: AWS API Documentation
Request Syntax
response = client.add_application_cloud_watch_logging_option(
ApplicationName='string',
CurrentApplicationVersionId=123,
CloudWatchLoggingOption={
'LogStreamARN': 'string'
},
ConditionalToken='string'
)
[REQUIRED]
The Kinesis Data Analytics application name.
CurrentApplicationVersionId
or the ConditionalToken
.You can retrieve the application version ID using DescribeApplication. For better concurrency support, use the ConditionalToken
parameter instead of CurrentApplicationVersionId
.[REQUIRED]
Provides the Amazon CloudWatch log stream Amazon Resource Name (ARN).
The ARN of the CloudWatch log to receive application messages.
CurrentApplicationVersionId
or the ConditionalToken
. You get the application's current ConditionalToken
using DescribeApplication. For better concurrency support, use the ConditionalToken
parameter instead of CurrentApplicationVersionId
.dict
Response Syntax
{
'ApplicationARN': 'string',
'ApplicationVersionId': 123,
'CloudWatchLoggingOptionDescriptions': [
{
'CloudWatchLoggingOptionId': 'string',
'LogStreamARN': 'string',
'RoleARN': 'string'
},
]
}
Response Structure
(dict) --
ApplicationARN (string) --
The application's ARN.
ApplicationVersionId (integer) --
The new version ID of the Kinesis Data Analytics application. Kinesis Data Analytics updates the ApplicationVersionId
each time you change the CloudWatch logging options.
CloudWatchLoggingOptionDescriptions (list) --
The descriptions of the current CloudWatch logging options for the Kinesis Data Analytics application.
(dict) --
Describes the Amazon CloudWatch logging option.
CloudWatchLoggingOptionId (string) --
The ID of the CloudWatch logging option description.
LogStreamARN (string) --
The Amazon Resource Name (ARN) of the CloudWatch log to receive application messages.
RoleARN (string) --
The IAM ARN of the role to use to send application messages.
Note
Provided for backward compatibility. Applications created with the current API version have an application-level service execution role rather than a resource-level role.
Exceptions
KinesisAnalyticsV2.Client.exceptions.ResourceNotFoundException
KinesisAnalyticsV2.Client.exceptions.ResourceInUseException
KinesisAnalyticsV2.Client.exceptions.InvalidArgumentException
KinesisAnalyticsV2.Client.exceptions.ConcurrentModificationException
KinesisAnalyticsV2.Client.exceptions.InvalidRequestException
KinesisAnalyticsV2.Client.exceptions.InvalidApplicationConfigurationException