AWS::KinesisAnalyticsV2::ApplicationCloudWatchLoggingOption
Adds an Amazon CloudWatch log stream to monitor application configuration errors.
Note
Only one ApplicationCloudWatchLoggingOption resource can be attached per application.
Syntax
To declare this entity in your AWS CloudFormation template, use the following syntax:
JSON
{ "Type" : "AWS::KinesisAnalyticsV2::ApplicationCloudWatchLoggingOption", "Properties" : { "ApplicationName" :
String
, "CloudWatchLoggingOption" :CloudWatchLoggingOption
} }
YAML
Type: AWS::KinesisAnalyticsV2::ApplicationCloudWatchLoggingOption Properties: ApplicationName:
String
CloudWatchLoggingOption:CloudWatchLoggingOption
Properties
ApplicationName
-
The name of the application.
Required: Yes
Type: String
Update requires: Replacement
CloudWatchLoggingOption
-
Provides a description of Amazon CloudWatch logging options, including the log stream Amazon Resource Name (ARN).
Required: Yes
Type: CloudWatchLoggingOption
Update requires: No interruption
Return values
Fn::GetAtt
Examples
Create an ApplicationCloudWatchLoggingOption resource
JSON
{ "BasicApplicationV2CloudWatchLoggingOption": { "Type": "AWS::KinesisAnalyticsV2::ApplicationCloudWatchLoggingOption", "Properties": { "ApplicationName": { "Ref": "BasicApplication" }, "CloudWatchLoggingOption": { "LogStreamARN": { "Fn::Join": [ ":", [ "arn:aws:logs", { "Ref": "AWS::Region" }, { "Ref": "AWS::AccountId" }, "log-group", { "Ref": "TestCWLogGroup" }, "log-stream", { "Ref": "TestCWLogStream" } ] ] } } } } }
YAML
BasicApplicationV2CloudWatchLoggingOption: Type: AWS::KinesisAnalyticsV2::ApplicationCloudWatchLoggingOption Properties: ApplicationName: Ref: BasicApplication CloudWatchLoggingOption: LogStreamARN: Fn::Join: - ":" - - arn:aws:logs - Ref: AWS::Region - Ref: AWS::AccountId - log-group - Ref: TestCWLogGroup - log-stream - Ref: TestCWLogStream
See also
-
AddApplicationCloudWatchLoggingOption in the Amazon Kinesis Data Analytics API Reference