Class TopicRule.Builder
java.lang.Object
software.amazon.awscdk.services.iot.TopicRule.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<TopicRule>
- Enclosing class:
- TopicRule
@Stability(Experimental)
public static final class TopicRule.Builder
extends Object
implements software.amazon.jsii.Builder<TopicRule>
(experimental) A fluent builder for
TopicRule
.-
Method Summary
Modifier and TypeMethodDescription(experimental) The actions associated with the topic rule.build()
static TopicRule.Builder
description
(String description) (experimental) A textual description of the topic rule.(experimental) Specifies whether the rule is enabled.errorAction
(IAction errorAction) (experimental) The action AWS IoT performs when it is unable to perform a rule's action.(experimental) A simplified SQL syntax to filter messages received on an MQTT topic and push the data elsewhere.topicRuleName
(String topicRuleName) (experimental) The name of the topic rule.
-
Method Details
-
create
@Stability(Experimental) public static TopicRule.Builder create(software.constructs.Construct scope, String id) - Parameters:
scope
- This parameter is required.id
- This parameter is required.- Returns:
- a new instance of
TopicRule.Builder
.
-
sql
(experimental) A simplified SQL syntax to filter messages received on an MQTT topic and push the data elsewhere.- Parameters:
sql
- A simplified SQL syntax to filter messages received on an MQTT topic and push the data elsewhere. This parameter is required.- Returns:
this
- See Also:
-
actions
(experimental) The actions associated with the topic rule.Default: No actions will be perform
- Parameters:
actions
- The actions associated with the topic rule. This parameter is required.- Returns:
this
-
description
(experimental) A textual description of the topic rule.Default: None
- Parameters:
description
- A textual description of the topic rule. This parameter is required.- Returns:
this
-
enabled
(experimental) Specifies whether the rule is enabled.Default: true
- Parameters:
enabled
- Specifies whether the rule is enabled. This parameter is required.- Returns:
this
-
errorAction
(experimental) The action AWS IoT performs when it is unable to perform a rule's action.Default: - no action will be performed
- Parameters:
errorAction
- The action AWS IoT performs when it is unable to perform a rule's action. This parameter is required.- Returns:
this
-
topicRuleName
(experimental) The name of the topic rule.Default: None
- Parameters:
topicRuleName
- The name of the topic rule. This parameter is required.- Returns:
this
-
build
-