Skip to content
v2.273.0

CloudwatchLogsActionProperty Struct ​

Describes an action that updates a CloudWatch log.

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 ​

batchModeboolean | IResolvablebatch_modetyping.Union[bool, IResolvable]batchModeBooleanBatchModeboolBatchModeinterface{}#
Indicates whether batches of log records will be extracted and uploaded into CloudWatch.
logGroupNamestringlog_group_namestrlogGroupNameStringLogGroupNamestringLogGroupName*stringrequired#
The CloudWatch log name.
roleArnstringrole_arnstrroleArnStringRoleArnstringRoleArn*stringrequired#
The IAM role that allows access to the CloudWatch log.