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. 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-3`, `ap-southeast-5`, `ap-northeast-1`, `eu-central-1`

Example Usage

Basic Usage

import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
const config = new pulumi.Config();
const name = config.get("name") || "tf_example";
const _default = new alicloud.sag.Qos("default", {name: name});
const defaultQosCar = new alicloud.sag.QosCar("default", {
qosId: _default.id,
name: name,
description: name,
priority: 1,
limitType: "Absolute",
minBandwidthAbs: 10,
maxBandwidthAbs: 20,
percentSourceType: "InternetUpBandwidth",
});
import pulumi
import pulumi_alicloud as alicloud
config = pulumi.Config()
name = config.get("name")
if name is None:
name = "tf_example"
default = alicloud.sag.Qos("default", name=name)
default_qos_car = alicloud.sag.QosCar("default",
qos_id=default.id,
name=name,
description=name,
priority=1,
limit_type="Absolute",
min_bandwidth_abs=10,
max_bandwidth_abs=20,
percent_source_type="InternetUpBandwidth")
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AliCloud = Pulumi.AliCloud;
return await Deployment.RunAsync(() =>
{
var config = new Config();
var name = config.Get("name") ?? "tf_example";
var @default = new AliCloud.Sag.Qos("default", new()
{
Name = name,
});
var defaultQosCar = new AliCloud.Sag.QosCar("default", new()
{
QosId = @default.Id,
Name = name,
Description = name,
Priority = 1,
LimitType = "Absolute",
MinBandwidthAbs = 10,
MaxBandwidthAbs = 20,
PercentSourceType = "InternetUpBandwidth",
});
});
package main
import (
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/sag"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
cfg := config.New(ctx, "")
name := "tf_example"
if param := cfg.Get("name"); param != "" {
name = param
}
_default, err := sag.NewQos(ctx, "default", &sag.QosArgs{
Name: pulumi.String(name),
})
if err != nil {
return err
}
_, err = sag.NewQosCar(ctx, "default", &sag.QosCarArgs{
QosId: _default.ID(),
Name: pulumi.String(name),
Description: pulumi.String(name),
Priority: pulumi.Int(1),
LimitType: pulumi.String("Absolute"),
MinBandwidthAbs: pulumi.Int(10),
MaxBandwidthAbs: pulumi.Int(20),
PercentSourceType: pulumi.String("InternetUpBandwidth"),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.sag.Qos;
import com.pulumi.alicloud.sag.QosArgs;
import com.pulumi.alicloud.sag.QosCar;
import com.pulumi.alicloud.sag.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 default_ = new Qos("default", QosArgs.builder()
.name(name)
.build());
var defaultQosCar = new QosCar("defaultQosCar", QosCarArgs.builder()
.qosId(default_.id())
.name(name)
.description(name)
.priority("1")
.limitType("Absolute")
.minBandwidthAbs("10")
.maxBandwidthAbs("20")
.percentSourceType("InternetUpBandwidth")
.build());
}
}
configuration:
name:
type: string
default: tf_example
resources:
default:
type: alicloud:sag:Qos
properties:
name: ${name}
defaultQosCar:
type: alicloud:sag:QosCar
name: default
properties:
qosId: ${default.id}
name: ${name}
description: ${name}
priority: '1'
limitType: Absolute
minBandwidthAbs: '10'
maxBandwidthAbs: '20'
percentSourceType: InternetUpBandwidth

Import

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

$ pulumi import alicloud:sag/qosCar:QosCar example <qos_id>:<qos_car_id>

Constructors

Link copied to clipboard
constructor(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)

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.

Functions

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