QosCarArgs

data class QosCarArgs(val description: Output<String>? = null, val limitType: Output<String>? = null, val maxBandwidthAbs: Output<Int>? = null, val maxBandwidthPercent: Output<Int>? = null, val minBandwidthAbs: Output<Int>? = null, val minBandwidthPercent: Output<Int>? = null, val name: Output<String>? = null, val percentSourceType: Output<String>? = null, val priority: Output<Int>? = null, val qosId: Output<String>? = null) : ConvertibleToJava<QosCarArgs>

Provides a Sag qos car resource. You need to create a QoS car to set priorities, rate limits, and quintuple rules for different messages. For information about Sag Qos Car and how to use it, see What is Qos Car.

NOTE: Available since v1.60.0. NOTE: Only the following regions support. `cn-shanghai`, `cn-shanghai-finance-1`, `cn-hongkong`, `ap-southeast-1`, `ap-southeast-2`, `ap-southeast-3`, `ap-southeast-5`, `ap-northeast-1`, `eu-central-1`

Example Usage

Basic Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.rocketmq.Qos;
import com.pulumi.alicloud.rocketmq.QosCar;
import com.pulumi.alicloud.rocketmq.QosCarArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var config = ctx.config();
final var name = config.get("name").orElse("tf_example");
var defaultQos = new Qos("defaultQos");
var defaultQosCar = new QosCar("defaultQosCar", QosCarArgs.builder()
.qosId(defaultQos.id())
.description(name)
.priority("1")
.limitType("Absolute")
.minBandwidthAbs("10")
.maxBandwidthAbs("20")
.minBandwidthPercent("10")
.maxBandwidthPercent("20")
.percentSourceType("InternetUpBandwidth")
.build());
}
}

Import

The Sag Qos Car can be imported using the id, e.g.

$ pulumi import alicloud:rocketmq/qosCar:QosCar example qos-abc123456:qoscar-abc123456

Constructors

Link copied to clipboard
fun QosCarArgs(description: Output<String>? = null, limitType: Output<String>? = null, maxBandwidthAbs: Output<Int>? = null, maxBandwidthPercent: Output<Int>? = null, minBandwidthAbs: Output<Int>? = null, minBandwidthPercent: Output<Int>? = null, name: Output<String>? = null, percentSourceType: Output<String>? = null, priority: Output<Int>? = null, qosId: Output<String>? = null)

Functions

Link copied to clipboard
open override fun toJava(): QosCarArgs

Properties

Link copied to clipboard
val description: Output<String>? = null

The description of the QoS speed limiting rule.

Link copied to clipboard
val limitType: Output<String>? = null

The speed limiting method. Valid values: Absolute, Percent.

Link copied to clipboard
val maxBandwidthAbs: Output<Int>? = null

The maximum bandwidth allowed for the stream specified in the quintuple rule. This parameter is required when the value of the LimitType is Absolute.

Link copied to clipboard
val maxBandwidthPercent: Output<Int>? = null

The maximum bandwidth percentage allowed for the stream specified in the quintuple rule. It is based on the maximum upstream bandwidth you set for the associated Smart Access Gateway (SAG) instance.This parameter is required when the value of the LimitType parameter is Percent.

Link copied to clipboard
val minBandwidthAbs: Output<Int>? = null

The minimum bandwidth allowed for the stream specified in the quintuple rule. This parameter is required when the value of the LimitType parameter is Absolute.

Link copied to clipboard
val minBandwidthPercent: Output<Int>? = null

The minimum bandwidth percentage allowed for the stream specified in the quintuple rule. It is based on the maximum upstream bandwidth you set for the associated SAG instance.This parameter is required when the value of the LimitType parameter is Percent.

Link copied to clipboard
val name: Output<String>? = null

The name of the QoS speed limiting rule..

Link copied to clipboard
val percentSourceType: Output<String>? = null

The bandwidth type when the speed is limited based on percentage. Valid values: CcnBandwidth, InternetUpBandwidth.The default value is InternetUpBandwidth.

Link copied to clipboard
val priority: Output<Int>? = null

The priority of the specified stream.

Link copied to clipboard
val qosId: Output<String>? = null

The instance ID of the QoS.