aws-cdk-lib.aws_iot.CfnTopicRule.RepublishActionProperty

interface RepublishActionProperty

LanguageType name
.NETAmazon.CDK.AWS.IoT.CfnTopicRule.RepublishActionProperty
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awsiot#CfnTopicRule_RepublishActionProperty
Javasoftware.amazon.awscdk.services.iot.CfnTopicRule.RepublishActionProperty
Pythonaws_cdk.aws_iot.CfnTopicRule.RepublishActionProperty
TypeScript aws-cdk-lib » aws_iot » CfnTopicRule » RepublishActionProperty

Describes an action to republish to another topic.

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 republishActionProperty: iot.CfnTopicRule.RepublishActionProperty = {
  roleArn: 'roleArn',
  topic: 'topic',

  // the properties below are optional
  headers: {
    contentType: 'contentType',
    correlationData: 'correlationData',
    messageExpiry: 'messageExpiry',
    payloadFormatIndicator: 'payloadFormatIndicator',
    responseTopic: 'responseTopic',
    userProperties: [{
      key: 'key',
      value: 'value',
    }],
  },
  qos: 123,
};

Properties

NameTypeDescription
roleArnstringThe ARN of the IAM role that grants access.
topicstringThe name of the MQTT topic.
headers?IResolvable | RepublishActionHeadersPropertyMQTT Version 5.0 headers information. For more information, see MQTT in the IoT Core Developer Guide.
qos?numberThe Quality of Service (QoS) level to use when republishing messages.

roleArn

Type: string

The ARN of the IAM role that grants access.


topic

Type: string

The name of the MQTT topic.


headers?

Type: IResolvable | RepublishActionHeadersProperty (optional)

MQTT Version 5.0 headers information. For more information, see MQTT in the IoT Core Developer Guide.


qos?

Type: number (optional)

The Quality of Service (QoS) level to use when republishing messages.

The default value is 0.