Interface CfnDetectorModel.IotTopicPublishProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnDetectorModel.IotTopicPublishProperty.Jsii$Proxy
- Enclosing class:
- CfnDetectorModel
@Stability(Stable)
public static interface CfnDetectorModel.IotTopicPublishProperty
extends software.amazon.jsii.JsiiSerializable
Information required to publish the MQTT message through the AWS IoT message broker.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.iotevents.*;
IotTopicPublishProperty iotTopicPublishProperty = IotTopicPublishProperty.builder()
.mqttTopic("mqttTopic")
// the properties below are optional
.payload(PayloadProperty.builder()
.contentExpression("contentExpression")
.type("type")
.build())
.build();
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnDetectorModel.IotTopicPublishPropertystatic final classAn implementation forCfnDetectorModel.IotTopicPublishProperty -
Method Summary
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getMqttTopic
The MQTT topic of the message.You can use a string expression that includes variables (
$variable.<variable-name>) and input values ($input.<input-name>.<path-to-datum>) as the topic string. -
getPayload
You can configure the action payload when you publish a message to an AWS IoT Core topic. -
builder
-