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:
- Limit
Type string The speed limiting method. Valid values: Absolute, Percent.
- Priority int
The priority of the specified stream.
- Qos
Id string The instance ID of the QoS.
- Description string
The description of the QoS speed limiting rule.
- Max
Bandwidth intAbs 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 intPercent 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 intAbs 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 intPercent 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..
- Percent
Source stringType The bandwidth type when the speed is limited based on percentage. Valid values: CcnBandwidth, InternetUpBandwidth.The default value is InternetUpBandwidth.
- Limit
Type string The speed limiting method. Valid values: Absolute, Percent.
- Priority int
The priority of the specified stream.
- Qos
Id string The instance ID of the QoS.
- Description string
The description of the QoS speed limiting rule.
- Max
Bandwidth intAbs 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 intPercent 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 intAbs 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 intPercent 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..
- Percent
Source stringType The bandwidth type when the speed is limited based on percentage. Valid values: CcnBandwidth, InternetUpBandwidth.The default value is InternetUpBandwidth.
- limit
Type string The speed limiting method. Valid values: Absolute, Percent.
- priority number
The priority of the specified stream.
- qos
Id string The instance ID of the QoS.
- description string
The description of the QoS speed limiting rule.
- max
Bandwidth numberAbs 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 numberPercent 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 numberAbs 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 numberPercent 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..
- percent
Source stringType 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_ floatabs 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_ floatpercent 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_ floatabs 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_ floatpercent 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_ strtype 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:
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): QosCarstatic 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.
- Limit
Type string The speed limiting method. Valid values: Absolute, Percent.
- Max
Bandwidth intAbs 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 intPercent 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 intAbs 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 intPercent 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..
- Percent
Source stringType 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.
- Qos
Id string The instance ID of the QoS.
- Description string
The description of the QoS speed limiting rule.
- Limit
Type string The speed limiting method. Valid values: Absolute, Percent.
- Max
Bandwidth intAbs 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 intPercent 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 intAbs 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 intPercent 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..
- Percent
Source stringType 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.
- Qos
Id string The instance ID of the QoS.
- description string
The description of the QoS speed limiting rule.
- limit
Type string The speed limiting method. Valid values: Absolute, Percent.
- max
Bandwidth numberAbs 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 numberPercent 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 numberAbs 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 numberPercent 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..
- percent
Source stringType 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.
- qos
Id 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_ floatabs 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_ floatpercent 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_ floatabs 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_ floatpercent 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_ strtype 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
alicloudTerraform Provider.