@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-07T23:47:08.525Z") @Stability(value=Experimental) public interface TopicRuleProps extends software.amazon.jsii.JsiiSerializable
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();
| Modifier and Type | Interface and Description |
|---|---|
static class |
TopicRuleProps.Builder
A builder for
TopicRuleProps |
static class |
TopicRuleProps.Jsii$Proxy
An implementation for
TopicRuleProps |
| Modifier and Type | Method and Description |
|---|---|
static TopicRuleProps.Builder |
builder() |
default List<IAction> |
getActions()
(experimental) The actions associated with the topic rule.
|
default String |
getDescription()
(experimental) A textual description of the topic rule.
|
default Boolean |
getEnabled()
(experimental) Specifies whether the rule is enabled.
|
default IAction |
getErrorAction()
(experimental) The action AWS IoT performs when it is unable to perform a rule's action.
|
IotSql |
getSql()
(experimental) A simplified SQL syntax to filter messages received on an MQTT topic and push the data elsewhere.
|
default String |
getTopicRuleName()
(experimental) The name of the topic rule.
|
@Stability(value=Experimental) @NotNull IotSql getSql()
@Stability(value=Experimental) @Nullable default List<IAction> getActions()
Default: No actions will be perform
@Stability(value=Experimental) @Nullable default String getDescription()
Default: None
@Stability(value=Experimental) @Nullable default Boolean getEnabled()
Default: true
@Stability(value=Experimental) @Nullable default IAction getErrorAction()
Default: - no action will be performed
@Stability(value=Experimental) @Nullable default String getTopicRuleName()
Default: None
@Stability(value=Experimental) static TopicRuleProps.Builder builder()
TopicRuleProps.Builder of TopicRulePropsCopyright © 2022. All rights reserved.