Show / Hide Table of Contents

Class 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,
    });
}

}
Inheritance
System.Object
Resource
CustomResource
QosCar
Inherited Members
CustomResource.Id
Resource.GetResourceType()
Resource.GetResourceName()
Resource.Urn
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Pulumi.AliCloud.RocketMQ
Assembly: Pulumi.AliCloud.dll
Syntax
public class QosCar : CustomResource

Constructors

View Source

QosCar(String, QosCarArgs, CustomResourceOptions)

Create a QosCar resource with the given unique name, arguments, and options.

Declaration
public QosCar(string name, QosCarArgs args, CustomResourceOptions options = null)
Parameters
Type Name Description
System.String name

The unique name of the resource

QosCarArgs args

The arguments used to populate this resource's properties

CustomResourceOptions options

A bag of options that control this resource's behavior

Properties

View Source

Description

The description of the QoS speed limiting rule.

Declaration
public Output<string> Description { get; }
Property Value
Type Description
Output<System.String>
View Source

LimitType

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

Declaration
public Output<string> LimitType { get; }
Property Value
Type Description
Output<System.String>
View Source

MaxBandwidthAbs

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

Declaration
public Output<int?> MaxBandwidthAbs { get; }
Property Value
Type Description
Output<System.Nullable<System.Int32>>
View Source

MaxBandwidthPercent

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.

Declaration
public Output<int?> MaxBandwidthPercent { get; }
Property Value
Type Description
Output<System.Nullable<System.Int32>>
View Source

MinBandwidthAbs

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.

Declaration
public Output<int?> MinBandwidthAbs { get; }
Property Value
Type Description
Output<System.Nullable<System.Int32>>
View Source

MinBandwidthPercent

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.

Declaration
public Output<int?> MinBandwidthPercent { get; }
Property Value
Type Description
Output<System.Nullable<System.Int32>>
View Source

Name

The name of the QoS speed limiting rule..

Declaration
public Output<string> Name { get; }
Property Value
Type Description
Output<System.String>
View Source

PercentSourceType

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

Declaration
public Output<string> PercentSourceType { get; }
Property Value
Type Description
Output<System.String>
View Source

Priority

The priority of the specified stream.

Declaration
public Output<int> Priority { get; }
Property Value
Type Description
Output<System.Int32>
View Source

QosId

The instance ID of the QoS.

Declaration
public Output<string> QosId { get; }
Property Value
Type Description
Output<System.String>

Methods

View Source

Get(String, Input<String>, QosCarState, CustomResourceOptions)

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

Declaration
public static QosCar Get(string name, Input<string> id, QosCarState state = null, CustomResourceOptions options = null)
Parameters
Type Name Description
System.String name

The unique name of the resulting resource.

Input<System.String> id

The unique provider ID of the resource to lookup.

QosCarState state

Any extra arguments used during the lookup.

CustomResourceOptions options

A bag of options that control this resource's behavior

Returns
Type Description
QosCar
  • View Source
Back to top Copyright 2016-2020, Pulumi Corporation.