Class CfnDetectorModel.IotTopicPublishProperty
Information required to publish the MQTT message through the AWS IoT message broker.
Inheritance
System.Object
CfnDetectorModel.IotTopicPublishProperty
Implements
Namespace: Amazon.CDK.AWS.IoTEvents
Assembly: Amazon.CDK.AWS.IoTEvents.dll
Syntax (csharp)
public class IotTopicPublishProperty : Object, CfnDetectorModel.IIotTopicPublishProperty
Syntax (vb)
Public Class IotTopicPublishProperty
Inherits Object
Implements CfnDetectorModel.IIotTopicPublishProperty
Remarks
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.IoTEvents;
var iotTopicPublishProperty = new IotTopicPublishProperty {
MqttTopic = "mqttTopic",
// the properties below are optional
Payload = new PayloadProperty {
ContentExpression = "contentExpression",
Type = "type"
}
};
Synopsis
Constructors
IotTopicPublishProperty() |
Properties
MqttTopic | The MQTT topic of the message. |
Payload | You can configure the action payload when you publish a message to an AWS IoT Core topic. |
Constructors
IotTopicPublishProperty()
public IotTopicPublishProperty()
Properties
MqttTopic
The MQTT topic of the message.
public string MqttTopic { get; set; }
Property Value
System.String
Remarks
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.
Payload
You can configure the action payload when you publish a message to an AWS IoT Core topic.
public object Payload { get; set; }
Property Value
System.Object