@aws-cdk_aws-iot-actions-alpha.IotRepublishMqttActionProps

interface IotRepublishMqttActionProps ๐Ÿ”น

LanguageType name
.NETAmazon.CDK.AWS.IoT.Actions.Alpha.IotRepublishMqttActionProps
Gogithub.com/aws/aws-cdk-go/awscdkiotactionsalpha/v2#IotRepublishMqttActionProps
Javasoftware.amazon.awscdk.services.iot.actions.alpha.IotRepublishMqttActionProps
Pythonaws_cdk.aws_iot_actions_alpha.IotRepublishMqttActionProps
TypeScript (source)@aws-cdk/aws-iot-actions-alpha ยป IotRepublishMqttActionProps

Configuration properties of an action to republish MQTT messages.

Example

new iot.TopicRule(this, 'TopicRule', {
  sql: iot.IotSql.fromStringAsVer20160323("SELECT topic(2) as device_id, timestamp() as timestamp, temperature FROM 'device/+/data'"),
  actions: [
    new actions.IotRepublishMqttAction('${topic()}/republish', {
      qualityOfService: actions.MqttQualityOfService.AT_LEAST_ONCE, // optional property, default is MqttQualityOfService.ZERO_OR_MORE_TIMES
    }),
  ],
});

Properties

NameTypeDescription
qualityOfService?๐Ÿ”นMqttQualityOfServiceThe Quality of Service (QoS) level to use when republishing messages.
role?๐Ÿ”นIRoleThe IAM role that allows access to AWS service.

qualityOfService?๐Ÿ”น

Type: MqttQualityOfService (optional, default: MqttQualityOfService.ZERO_OR_MORE_TIMES)

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

See also: https://docs.aws.amazon.com/iot/latest/developerguide/mqtt.html#mqtt-qos


role?๐Ÿ”น

Type: IRole (optional, default: a new role will be created)

The IAM role that allows access to AWS service.