Skip to content
v2.277.0

TopicRuleReference Struct ​

A reference to a TopicRule resource.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_iot as interfaces_iot } from 'aws-cdk-lib/interfaces';
const topicRuleReference: interfaces_iot.TopicRuleReference = {
  ruleName: 'ruleName',
  topicRuleArn: 'topicRuleArn',
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk.interfaces import aws_iot as interfaces_iot

topic_rule_reference = interfaces_iot.TopicRuleReference(
    rule_name="ruleName",
    topic_rule_arn="topicRuleArn"
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.interfaces.iot.*;

TopicRuleReference topicRuleReference = TopicRuleReference.builder()
        .ruleName("ruleName")
        .topicRuleArn("topicRuleArn")
        .build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.Interfaces.IoT;

var topicRuleReference = new TopicRuleReference {
    RuleName = "ruleName",
    TopicRuleArn = "topicRuleArn"
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

topicRuleReference := &TopicRuleReference{
	RuleName: jsii.String("ruleName"),
	TopicRuleArn: jsii.String("topicRuleArn"),
}

Properties ​

ruleNamestringrule_namestrruleNameStringRuleNamestringRuleName*stringrequired#
The RuleName of the TopicRule resource.
topicRuleArnstringtopic_rule_arnstrtopicRuleArnStringTopicRuleArnstringTopicRuleArn*stringrequired#
The ARN of the TopicRule resource.