@Generated(value="jsii-pacmak/1.70.0 (build 03c2f6f)", date="2022-11-01T13:16:50.510Z") @Stability(value=Experimental) public class TopicRule extends Resource implements ITopicRule
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 | Class and Description |
|---|---|
static class |
TopicRule.Builder
(experimental) A fluent builder for
TopicRule. |
software.amazon.jsii.JsiiObject.InitializationModeITopicRule.Jsii$Default, ITopicRule.Jsii$Proxy| Modifier | Constructor and Description |
|---|---|
|
TopicRule(software.constructs.Construct scope,
String id,
TopicRuleProps props) |
protected |
TopicRule(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
TopicRule(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
void |
addAction(IAction action)
(experimental) Add a action to the topic rule.
|
static ITopicRule |
fromTopicRuleArn(software.constructs.Construct scope,
String id,
String topicRuleArn)
(experimental) Import an existing AWS IoT Rule provided an ARN.
|
String |
getTopicRuleArn()
(experimental) Arn of this topic rule.
|
String |
getTopicRuleName()
(experimental) Name of this topic rule.
|
applyRemovalPolicy, generatePhysicalName, getEnv, getPhysicalName, getResourceArnAttribute, getResourceNameAttribute, getStack, isResourcegetNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validatejsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitapplyRemovalPolicy, getEnv, getStackgetNodeprotected TopicRule(software.amazon.jsii.JsiiObjectRef objRef)
protected TopicRule(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Experimental)
public TopicRule(@NotNull
software.constructs.Construct scope,
@NotNull
String id,
@NotNull
TopicRuleProps props)
scope - This parameter is required.id - This parameter is required.props - This parameter is required.@Stability(value=Experimental) @NotNull public static ITopicRule fromTopicRuleArn(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull String topicRuleArn)
scope - The parent creating construct (usually `this`). This parameter is required.id - The construct's name. This parameter is required.topicRuleArn - AWS IoT Rule ARN (i.e. arn:aws:iot:@Stability(value=Experimental)
public void addAction(@NotNull
IAction action)
action - the action to associate with the topic rule. This parameter is required.@Stability(value=Experimental) @NotNull public String getTopicRuleArn()
getTopicRuleArn in interface ITopicRule@Stability(value=Experimental) @NotNull public String getTopicRuleName()
getTopicRuleName in interface ITopicRuleCopyright © 2022. All rights reserved.