software.amazon.awscdk.services.iot.actions.alpha.MqttQualityOfService Maven / Gradle / Ivy
Show all versions of iot-actions-alpha Show documentation
package software.amazon.awscdk.services.iot.actions.alpha;
/**
* (experimental) MQTT Quality of Service (QoS) indicates the level of assurance for delivery of an MQTT Message.
*
* Example:
*
*
* TopicRule.Builder.create(this, "TopicRule")
* .sql(IotSql.fromStringAsVer20160323("SELECT topic(2) as device_id, timestamp() as timestamp, temperature FROM 'device/+/data'"))
* .actions(List.of(
* IotRepublishMqttAction.Builder.create("${topic()}/republish")
* .qualityOfService(MqttQualityOfService.AT_LEAST_ONCE)
* .build()))
* .build();
*
*
* @see https://docs.aws.amazon.com/iot/latest/developerguide/mqtt.html#mqtt-qos
*/
@javax.annotation.Generated(value = "jsii-pacmak/1.103.1 (build bef2dea)", date = "2024-09-24T10:56:42.458Z")
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
@software.amazon.jsii.Jsii(module = software.amazon.awscdk.services.iot.actions.alpha.$Module.class, fqn = "@aws-cdk/aws-iot-actions-alpha.MqttQualityOfService")
public enum MqttQualityOfService {
/**
* (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.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
ZERO_OR_MORE_TIMES,
/**
* (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.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
AT_LEAST_ONCE,
}