RepublishActionHeadersProperty Struct
Specifies MQTT Version 5.0 headers information. For more information, see MQTT in the IoT Core Developer Guide.
| Source | |
|---|---|
| Type last changed |
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',
}],
};
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_iot as iot
republish_action_headers_property = iot.CfnTopicRule.RepublishActionHeadersProperty(
content_type="contentType",
correlation_data="correlationData",
message_expiry="messageExpiry",
payload_format_indicator="payloadFormatIndicator",
response_topic="responseTopic",
user_properties=[iot.CfnTopicRule.UserPropertyProperty(
key="key",
value="value"
)]
)
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.iot.*;
RepublishActionHeadersProperty republishActionHeadersProperty = RepublishActionHeadersProperty.builder()
.contentType("contentType")
.correlationData("correlationData")
.messageExpiry("messageExpiry")
.payloadFormatIndicator("payloadFormatIndicator")
.responseTopic("responseTopic")
.userProperties(List.of(UserPropertyProperty.builder()
.key("key")
.value("value")
.build()))
.build();
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.IoT;
var republishActionHeadersProperty = new RepublishActionHeadersProperty {
ContentType = "contentType",
CorrelationData = "correlationData",
MessageExpiry = "messageExpiry",
PayloadFormatIndicator = "payloadFormatIndicator",
ResponseTopic = "responseTopic",
UserProperties = new [] { new UserPropertyProperty {
Key = "key",
Value = "value"
} }
};
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"
republishActionHeadersProperty := &RepublishActionHeadersProperty{
ContentType: jsii.String("contentType"),
CorrelationData: jsii.String("correlationData"),
MessageExpiry: jsii.String("messageExpiry"),
PayloadFormatIndicator: jsii.String("payloadFormatIndicator"),
ResponseTopic: jsii.String("responseTopic"),
UserProperties: []interface{}{
&UserPropertyProperty{
Key: jsii.String("key"),
Value: jsii.String("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.user_propertiesoptionaltyping.Union[IResolvable, typing.List[typing.Union[IResolvable, UserPropertyProperty]]]userPropertiesoptionalIResolvableUserPropertiesoptionalIResolvableUserPropertiesoptionalinterface{} #