@Stability(value=Stable)
public static interface CfnDetectorModel.IotTopicPublishProperty
extends software.amazon.jsii.JsiiSerializable
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();
| Modifier and Type | Interface and Description |
|---|---|
static class |
CfnDetectorModel.IotTopicPublishProperty.Builder
A builder for
CfnDetectorModel.IotTopicPublishProperty |
static class |
CfnDetectorModel.IotTopicPublishProperty.Jsii$Proxy
An implementation for
CfnDetectorModel.IotTopicPublishProperty |
| Modifier and Type | Method and Description |
|---|---|
static CfnDetectorModel.IotTopicPublishProperty.Builder |
builder() |
String |
getMqttTopic()
The MQTT topic of the message.
|
default Object |
getPayload()
You can configure the action payload when you publish a message to an AWS IoT Core topic.
|
@Stability(value=Stable) @NotNull String getMqttTopic()
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.
@Stability(value=Stable) @Nullable default Object getPayload()
@Stability(value=Stable) static CfnDetectorModel.IotTopicPublishProperty.Builder builder()
Copyright © 2022. All rights reserved.