Interface TopicRuleProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
TopicRuleProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)",
date="2023-06-19T16:29:57.726Z")
@Stability(Experimental)
public interface TopicRuleProps
extends software.amazon.jsii.JsiiSerializable
(experimental) Properties for defining an AWS IoT Rule.
Example:
Bucket bucket = new Bucket(this, "MyBucket"); TopicRule.Builder.create(this, "TopicRule") .sql(IotSql.fromStringAsVer20160323("SELECT * FROM 'device/+/data'")) .actions(List.of( S3PutObjectAction.Builder.create(bucket) .accessControl(BucketAccessControl.PUBLIC_READ) .build())) .build();
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
A builder forTopicRuleProps
static final class
An implementation forTopicRuleProps
-
Method Summary
Modifier and TypeMethodDescriptionstatic TopicRuleProps.Builder
builder()
(experimental) The actions associated with the topic rule.default String
(experimental) A textual description of the topic rule.default Boolean
(experimental) Specifies whether the rule is enabled.default IAction
(experimental) The action AWS IoT performs when it is unable to perform a rule's action.getSql()
(experimental) A simplified SQL syntax to filter messages received on an MQTT topic and push the data elsewhere.default String
(experimental) The name of the topic rule.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getSql
(experimental) A simplified SQL syntax to filter messages received on an MQTT topic and push the data elsewhere.- See Also:
-
getActions
(experimental) The actions associated with the topic rule.Default: No actions will be perform
-
getDescription
(experimental) A textual description of the topic rule.Default: None
-
getEnabled
(experimental) Specifies whether the rule is enabled.Default: true
-
getErrorAction
(experimental) The action AWS IoT performs when it is unable to perform a rule's action.Default: - no action will be performed
-
getTopicRuleName
(experimental) The name of the topic rule.Default: None
-
builder
- Returns:
- a
TopicRuleProps.Builder
ofTopicRuleProps
-