RepublishActionHeadersProperty Struct
Specifies MQTT Version 5.0 headers information. For more information, see MQTT in the IoT Core Developer Guide.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_iot as iot } from 'aws-cdk-lib';
const republishActionHeadersProperty: iot.CfnTopicRule.RepublishActionHeadersProperty = {
contentType: 'contentType',
correlationData: 'correlationData',
messageExpiry: 'messageExpiry',
payloadFormatIndicator: 'payloadFormatIndicator',
responseTopic: 'responseTopic',
userProperties: [{
key: 'key',
value: 'value',
}],
};
Properties
contentTypeoptionalstringcontent_typeoptionalstrcontentTypeoptionalStringContentTypeoptionalstringContentTypeoptional*string#notes
For more information, see Content Type in the MQTT Version 5.0 specification.
Supports substitution templates .
correlationDataoptionalstringcorrelation_dataoptionalstrcorrelationDataoptionalStringCorrelationDataoptionalstringCorrelationDataoptional*string#notes
For more information, see Correlation Data in the MQTT Version 5.0 specification.
Supports substitution templates .
This binary data must be base64-encoded.
messageExpiryoptionalstringmessage_expiryoptionalstrmessageExpiryoptionalStringMessageExpiryoptionalstringMessageExpiryoptional*string#notes
If the messages haven't been sent to the subscribers within that interval, the message expires and is removed. The value of messageExpiry represents the number of seconds before it expires. For more information about the limits of messageExpiry , see Message broker and protocol limits and quotas in the IoT Core Reference Guide.
Supports substitution templates .
payloadFormatIndicatoroptionalstringpayload_format_indicatoroptionalstrpayloadFormatIndicatoroptionalStringPayloadFormatIndicatoroptionalstringPayloadFormatIndicatoroptional*string#notes
Valid values are UNSPECIFIED_BYTES and UTF8_DATA .
For more information, see Payload Format Indicator from the MQTT Version 5.0 specification.
Supports substitution templates .
responseTopicoptionalstringresponse_topicoptionalstrresponseTopicoptionalStringResponseTopicoptionalstringResponseTopicoptional*string#notes
The response topic is used to describe the topic to which the receiver should publish as part of the request-response flow. The topic must not contain wildcard characters.
For more information, see Response Topic in the MQTT Version 5.0 specification.
Supports substitution templates .
userPropertiesoptionalIResolvable | IResolvable | CfnTopicRule.UserPropertyProperty[]user_propertiesoptionaltyping.Union[IResolvable, typing.List[typing.Union[IResolvable, UserPropertyProperty]]]userPropertiesoptionalIResolvableUserPropertiesoptionalIResolvableUserPropertiesoptionalinterface{}#