interface IotTopicPublishProperty
Language | Type name |
---|---|
![]() | Amazon.CDK.AWS.IoTEvents.CfnAlarmModel.IotTopicPublishProperty |
![]() | github.com/aws/aws-cdk-go/awscdk/v2/awsiotevents#CfnAlarmModel_IotTopicPublishProperty |
![]() | software.amazon.awscdk.services.iotevents.CfnAlarmModel.IotTopicPublishProperty |
![]() | aws_cdk.aws_iotevents.CfnAlarmModel.IotTopicPublishProperty |
![]() | aws-cdk-lib » aws_iotevents » CfnAlarmModel » IotTopicPublishProperty |
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 { aws_iotevents as iotevents } from 'aws-cdk-lib';
const iotTopicPublishProperty: iotevents.CfnAlarmModel.IotTopicPublishProperty = {
mqttTopic: 'mqttTopic',
// the properties below are optional
payload: {
contentExpression: 'contentExpression',
type: 'type',
},
};
Properties
Name | Type | Description |
---|---|---|
mqtt | string | The MQTT topic of the message. |
payload? | IResolvable | Payload | You can configure the action payload when you publish a message to an AWS IoT Core topic. |
mqttTopic
Type:
string
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.
payload?
Type:
IResolvable
|
Payload
(optional)
You can configure the action payload when you publish a message to an AWS IoT Core topic.