QosCar

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 in 1.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

using Pulumi;
using AliCloud = Pulumi.AliCloud;

class MyStack : Stack
{
    public MyStack()
    {
        var defaultQos = new AliCloud.RocketMQ.Qos("defaultQos", new AliCloud.RocketMQ.QosArgs
        {
        });
        var defaultQosCar = new AliCloud.RocketMQ.QosCar("defaultQosCar", new AliCloud.RocketMQ.QosCarArgs
        {
            Description = "tf-testSagQosCarDescription",
            LimitType = "Absolute",
            MaxBandwidthAbs = 20,
            MaxBandwidthPercent = 20,
            MinBandwidthAbs = 10,
            MinBandwidthPercent = 10,
            PercentSourceType = "InternetUpBandwidth",
            Priority = 1,
            QosId = defaultQos.Id,
        });
    }

}

Coming soon!

import pulumi
import pulumi_alicloud as alicloud

default_qos = alicloud.rocketmq.Qos("defaultQos")
default_qos_car = alicloud.rocketmq.QosCar("defaultQosCar",
    description="tf-testSagQosCarDescription",
    limit_type="Absolute",
    max_bandwidth_abs="20",
    max_bandwidth_percent="20",
    min_bandwidth_abs="10",
    min_bandwidth_percent="10",
    percent_source_type="InternetUpBandwidth",
    priority="1",
    qos_id=default_qos.id)
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";

const defaultQos = new alicloud.rocketmq.Qos("default", {});
const defaultQosCar = new alicloud.rocketmq.QosCar("default", {
    description: "tf-testSagQosCarDescription",
    limitType: "Absolute",
    maxBandwidthAbs: 20,
    maxBandwidthPercent: 20,
    minBandwidthAbs: 10,
    minBandwidthPercent: 10,
    percentSourceType: "InternetUpBandwidth",
    priority: 1,
    qosId: defaultQos.id,
});

Create a QosCar Resource

new QosCar(name: string, args: QosCarArgs, opts?: CustomResourceOptions);
def QosCar(resource_name, opts=None, description=None, limit_type=None, max_bandwidth_abs=None, max_bandwidth_percent=None, min_bandwidth_abs=None, min_bandwidth_percent=None, name=None, percent_source_type=None, priority=None, qos_id=None, __props__=None);
func NewQosCar(ctx *Context, name string, args QosCarArgs, opts ...ResourceOption) (*QosCar, error)
public QosCar(string name, QosCarArgs args, CustomResourceOptions? opts = null)
name string
The unique name of the resource.
args QosCarArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name str
The unique name of the resource.
opts ResourceOptions
A bag of options that control this resource's behavior.
ctx Context
Context object for the current deployment.
name string
The unique name of the resource.
args QosCarArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args QosCarArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.

QosCar Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.

Inputs

The QosCar resource accepts the following input properties:

LimitType string

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

Priority int

The priority of the specified stream.

QosId string

The instance ID of the QoS.

Description string

The description of the QoS speed limiting rule.

MaxBandwidthAbs int

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

MaxBandwidthPercent int

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.

MinBandwidthAbs int

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.

MinBandwidthPercent int

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.

Name string

The name of the QoS speed limiting rule..

PercentSourceType string

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

LimitType string

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

Priority int

The priority of the specified stream.

QosId string

The instance ID of the QoS.

Description string

The description of the QoS speed limiting rule.

MaxBandwidthAbs int

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

MaxBandwidthPercent int

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.

MinBandwidthAbs int

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.

MinBandwidthPercent int

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.

Name string

The name of the QoS speed limiting rule..

PercentSourceType string

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

limitType string

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

priority number

The priority of the specified stream.

qosId string

The instance ID of the QoS.

description string

The description of the QoS speed limiting rule.

maxBandwidthAbs number

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

maxBandwidthPercent number

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.

minBandwidthAbs number

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.

minBandwidthPercent number

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.

name string

The name of the QoS speed limiting rule..

percentSourceType string

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

limit_type str

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

priority float

The priority of the specified stream.

qos_id str

The instance ID of the QoS.

description str

The description of the QoS speed limiting rule.

max_bandwidth_abs float

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

max_bandwidth_percent float

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.

min_bandwidth_abs float

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.

min_bandwidth_percent float

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.

name str

The name of the QoS speed limiting rule..

percent_source_type str

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

Outputs

All input properties are implicitly available as output properties. Additionally, the QosCar resource produces the following output properties:

Id string
The provider-assigned unique ID for this managed resource.
Id string
The provider-assigned unique ID for this managed resource.
id string
The provider-assigned unique ID for this managed resource.
id str
The provider-assigned unique ID for this managed resource.

Look up an Existing QosCar Resource

Get an existing QosCar resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

public static get(name: string, id: Input<ID>, state?: QosCarState, opts?: CustomResourceOptions): QosCar
static get(resource_name, id, opts=None, description=None, limit_type=None, max_bandwidth_abs=None, max_bandwidth_percent=None, min_bandwidth_abs=None, min_bandwidth_percent=None, name=None, percent_source_type=None, priority=None, qos_id=None, __props__=None);
func GetQosCar(ctx *Context, name string, id IDInput, state *QosCarState, opts ...ResourceOption) (*QosCar, error)
public static QosCar Get(string name, Input<string> id, QosCarState? state, CustomResourceOptions? opts = null)
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
resource_name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.

The following state arguments are supported:

Description string

The description of the QoS speed limiting rule.

LimitType string

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

MaxBandwidthAbs int

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

MaxBandwidthPercent int

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.

MinBandwidthAbs int

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.

MinBandwidthPercent int

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.

Name string

The name of the QoS speed limiting rule..

PercentSourceType string

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

Priority int

The priority of the specified stream.

QosId string

The instance ID of the QoS.

Description string

The description of the QoS speed limiting rule.

LimitType string

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

MaxBandwidthAbs int

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

MaxBandwidthPercent int

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.

MinBandwidthAbs int

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.

MinBandwidthPercent int

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.

Name string

The name of the QoS speed limiting rule..

PercentSourceType string

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

Priority int

The priority of the specified stream.

QosId string

The instance ID of the QoS.

description string

The description of the QoS speed limiting rule.

limitType string

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

maxBandwidthAbs number

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

maxBandwidthPercent number

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.

minBandwidthAbs number

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.

minBandwidthPercent number

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.

name string

The name of the QoS speed limiting rule..

percentSourceType string

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

priority number

The priority of the specified stream.

qosId string

The instance ID of the QoS.

description str

The description of the QoS speed limiting rule.

limit_type str

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

max_bandwidth_abs float

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

max_bandwidth_percent float

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.

min_bandwidth_abs float

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.

min_bandwidth_percent float

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.

name str

The name of the QoS speed limiting rule..

percent_source_type str

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

priority float

The priority of the specified stream.

qos_id str

The instance ID of the QoS.

Package Details

Repository
https://github.com/pulumi/pulumi-alicloud
License
Apache-2.0
Notes
This Pulumi package is based on the alicloud Terraform Provider.