CloudWatchLogsAction
- class aws_cdk.aws_iot_actions.CloudWatchLogsAction(log_group, *, role=None)
Bases:
object
(experimental) The action to send data to Amazon CloudWatch Logs.
- Stability:
experimental
- ExampleMetadata:
infused
Example:
import aws_cdk.aws_logs as logs log_group = logs.LogGroup(self, "MyLogGroup") iot.TopicRule(self, "TopicRule", sql=iot.IotSql.from_string_as_ver20160323("SELECT topic(2) as device_id, timestamp() as timestamp FROM 'device/+/data'"), error_action=actions.CloudWatchLogsAction(log_group) )
- Parameters:
- Stability:
experimental
Methods
- bind(rule)
(experimental) Returns the topic rule action specification.
- Parameters:
rule (
ITopicRule
)- Stability:
experimental
- Return type: