Class CloudWatchLogsAction
(experimental) The action to send data to Amazon CloudWatch Logs.
Inheritance
System.Object
CloudWatchLogsAction
Implements
Namespace: Amazon.CDK.AWS.IoT.Actions.Alpha
Assembly: Amazon.CDK.AWS.IoT.Actions.Alpha.dll
Syntax (csharp)
public class CloudWatchLogsAction : DeputyBase, IAction
Syntax (vb)
Public Class CloudWatchLogsAction
Inherits DeputyBase
Implements IAction
Remarks
Stability: Experimental
ExampleMetadata: infused
Examples
using Amazon.CDK.AWS.Logs;
var logGroup = new LogGroup(this, "MyLogGroup");
new TopicRule(this, "TopicRule", new TopicRuleProps {
Sql = IotSql.FromStringAsVer20160323("SELECT topic(2) as device_id, timestamp() as timestamp FROM 'device/+/data'"),
ErrorAction = new CloudWatchLogsAction(logGroup)
});
Synopsis
Constructors
CloudWatchLogsAction(ILogGroup, ICloudWatchLogsActionProps) | |
CloudWatchLogsAction(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
CloudWatchLogsAction(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
Constructors
CloudWatchLogsAction(ILogGroup, ICloudWatchLogsActionProps)
public CloudWatchLogsAction(ILogGroup logGroup, ICloudWatchLogsActionProps props = null)
Parameters
- logGroup ILogGroup
The CloudWatch log group to which the action sends data.
- props ICloudWatchLogsActionProps
Optional properties to not use default.
Remarks
Stability: Experimental
CloudWatchLogsAction(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected CloudWatchLogsAction(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
CloudWatchLogsAction(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected CloudWatchLogsAction(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props