# CloudwatchLogsActionProperty

Describes an action that updates a CloudWatch log.

- Source: Generated code
- Type last changed: v2.93.0 · 23 Aug 2023

## Example

```ts
// 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

- `batchMode`: boolean | [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) — Indicates whether batches of log records will be extracted and uploaded into CloudWatch.

- `logGroupName`: string (required) — The CloudWatch log name.

- `roleArn`: string (required) — The IAM role that allows access to the CloudWatch log.
