Class CloudWatchLogsAction
java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.iot.actions.alpha.CloudWatchLogsAction
- All Implemented Interfaces:
IAction
,software.amazon.jsii.JsiiSerializable
@Generated(value="jsii-pacmak/1.104.0 (build e79254c)",
date="2024-10-31T19:13:08.315Z")
@Stability(Experimental)
public class CloudWatchLogsAction
extends software.amazon.jsii.JsiiObject
implements IAction
(experimental) The action to send data to Amazon CloudWatch Logs.
Example:
import software.amazon.awscdk.services.logs.*; LogGroup logGroup = new LogGroup(this, "MyLogGroup"); TopicRule.Builder.create(this, "TopicRule") .sql(IotSql.fromStringAsVer20160323("SELECT topic(2) as device_id, timestamp() as timestamp FROM 'device/+/data'")) .errorAction(new CloudWatchLogsAction(logGroup)) .build();
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
(experimental) A fluent builder forCloudWatchLogsAction
.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
Nested classes/interfaces inherited from interface software.amazon.awscdk.services.iot.alpha.IAction
IAction.Jsii$Default, IAction.Jsii$Proxy
-
Constructor Summary
ModifierConstructorDescriptionCloudWatchLogsAction
(ILogGroup logGroup) CloudWatchLogsAction
(ILogGroup logGroup, CloudWatchLogsActionProps props) protected
CloudWatchLogsAction
(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protected
CloudWatchLogsAction
(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Constructor Details
-
CloudWatchLogsAction
protected CloudWatchLogsAction(software.amazon.jsii.JsiiObjectRef objRef) -
CloudWatchLogsAction
protected CloudWatchLogsAction(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CloudWatchLogsAction
@Stability(Experimental) public CloudWatchLogsAction(@NotNull ILogGroup logGroup, @Nullable CloudWatchLogsActionProps props) - Parameters:
logGroup
- The CloudWatch log group to which the action sends data. This parameter is required.props
- Optional properties to not use default.
-
CloudWatchLogsAction
- Parameters:
logGroup
- The CloudWatch log group to which the action sends data. This parameter is required.
-