interface IotTopicPublishProperty
| Language | Type name |
|---|---|
.NET | Amazon.CDK.Mixins.Preview.AWS.IoTEvents.Mixins.CfnAlarmModelPropsMixin.IotTopicPublishProperty |
Go | github.com/aws/aws-cdk-go/awscdkmixinspreview/v2/awsiotevents/mixins#CfnAlarmModelPropsMixin_IotTopicPublishProperty |
Java | software.amazon.awscdk.mixins.preview.services.iotevents.mixins.CfnAlarmModelPropsMixin.IotTopicPublishProperty |
Python | aws_cdk.mixins_preview.aws_iotevents.mixins.CfnAlarmModelPropsMixin.IotTopicPublishProperty |
TypeScript | @aws-cdk/mixins-preview » aws_iotevents » mixins » CfnAlarmModelPropsMixin » 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 { mixins as iotevents_mixins } from '@aws-cdk/mixins-preview/aws-iotevents';
const iotTopicPublishProperty: iotevents_mixins.CfnAlarmModelPropsMixin.IotTopicPublishProperty = {
mqttTopic: 'mqttTopic',
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
(optional)
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.

.NET
Go
Java
Python
TypeScript