interface CloudwatchLogsActionProperty
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.IoT.CfnTopicRule.CloudwatchLogsActionProperty |
Java | software.amazon.awscdk.services.iot.CfnTopicRule.CloudwatchLogsActionProperty |
Python | aws_cdk.aws_iot.CfnTopicRule.CloudwatchLogsActionProperty |
TypeScript | @aws-cdk/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 * as iot from '@aws-cdk/aws-iot';
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.