MqttQualityOfService

class aws_cdk.aws_iot_actions_alpha.MqttQualityOfService(value)

Bases: Enum

(experimental) MQTT Quality of Service (QoS) indicates the level of assurance for delivery of an MQTT Message.

See:

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

Stability:

experimental

ExampleMetadata:

infused

Example:

iot.TopicRule(self, "TopicRule",
    sql=iot.IotSql.from_string_as_ver20160323("SELECT topic(2) as device_id, timestamp() as timestamp, temperature FROM 'device/+/data'"),
    actions=[
        actions.IotRepublishMqttAction("${topic()}/republish",
            quality_of_service=actions.MqttQualityOfService.AT_LEAST_ONCE
        )
    ]
)

Attributes

AT_LEAST_ONCE

(experimental) QoS level 1.

Sent at least one time, and then repeatedly until a PUBACK response is received. The message is not considered complete until the sender receives a PUBACK response to indicate successful delivery.

Stability:

experimental

ZERO_OR_MORE_TIMES

(experimental) QoS level 0.

Sent zero or more times. This level should be used for messages that are sent over reliable communication links or that can be missed without a problem.

Stability:

experimental