public static interface CfnDetectorModel.IotTopicPublishProperty
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() |
java.lang.String |
getMqttTopic()
The MQTT topic of the message.
|
default java.lang.Object |
getPayload()
You can configure the action payload when you publish a message to an AWS IoT Core topic.
|
java.lang.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.
default java.lang.Object getPayload()
static CfnDetectorModel.IotTopicPublishProperty.Builder builder()