interface CloudwatchLogsActionProperty
| Language | Type name | 
|---|---|
  .NET | Amazon.CDK.AWS.IoT.CfnTopicRule.CloudwatchLogsActionProperty | 
  Go | github.com/aws/aws-cdk-go/awscdk/v2/awsiot#CfnTopicRule_CloudwatchLogsActionProperty | 
  Java | software.amazon.awscdk.services.iot.CfnTopicRule.CloudwatchLogsActionProperty | 
  Python | aws_cdk.aws_iot.CfnTopicRule.CloudwatchLogsActionProperty | 
  TypeScript  | aws-cdk-lib » aws_iot » CfnTopicRule » CloudwatchLogsActionProperty | 
Describes an action that updates a CloudWatch log.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_iot as iot } from 'aws-cdk-lib';
const cloudwatchLogsActionProperty: iot.CfnTopicRule.CloudwatchLogsActionProperty = {
  logGroupName: 'logGroupName',
  roleArn: 'roleArn',
  // the properties below are optional
  batchMode: false,
};
Properties
| Name | Type | Description | 
|---|---|---|
| log | string | The CloudWatch log name. | 
| role | string | The IAM role that allows access to the CloudWatch log. | 
| batch | boolean | IResolvable | Indicates whether batches of log records will be extracted and uploaded into CloudWatch. | 
logGroupName
Type:
string
The CloudWatch log name.
roleArn
Type:
string
The IAM role that allows access to the CloudWatch log.
batchMode?
Type:
boolean | IResolvable
(optional)
Indicates whether batches of log records will be extracted and uploaded into CloudWatch.

 .NET
 Go
 Java
 Python
 TypeScript