Class QosPolicy
Provides a Sag qos policy resource. You need to create a QoS policy to set priorities, rate limits, and quintuple rules for different messages.
For information about Sag Qos Policy and how to use it, see What is Qos Policy.
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 defaultQosPolicy = new AliCloud.RocketMQ.QosPolicy("defaultQosPolicy", new AliCloud.RocketMQ.QosPolicyArgs
{
Description = "tf-testSagQosPolicyDescription",
DestCidr = "10.10.0.0/24",
DestPortRange = "-1/-1",
EndTime = "2019-10-26T16:41:33+0800",
IpProtocol = "ALL",
Priority = "1",
QosId = defaultQos.Id,
SourceCidr = "192.168.0.0/24",
SourcePortRange = "-1/-1",
StartTime = "2019-10-25T16:41:33+0800",
});
}
}
Inherited Members
Namespace: Pulumi.AliCloud.RocketMQ
Assembly: Pulumi.AliCloud.dll
Syntax
public class QosPolicy : CustomResource
Constructors
View SourceQosPolicy(String, QosPolicyArgs, CustomResourceOptions)
Create a QosPolicy resource with the given unique name, arguments, and options.
Declaration
public QosPolicy(string name, QosPolicyArgs args, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resource |
| QosPolicyArgs | args | The arguments used to populate this resource's properties |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Properties
View SourceDescription
The description of the QoS policy.
Declaration
public Output<string> Description { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
DestCidr
The destination CIDR block.
Declaration
public Output<string> DestCidr { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
DestPortRange
The destination port range.
Declaration
public Output<string> DestPortRange { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
EndTime
The expiration time of the quintuple rule.
Declaration
public Output<string> EndTime { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
IpProtocol
The transport layer protocol.
Declaration
public Output<string> IpProtocol { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Name
The name of the QoS policy.
Declaration
public Output<string> Name { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Priority
The priority of the quintuple rule. A smaller value indicates a higher priority. If the priorities of two quintuple rules are the same, the rule created earlier is applied first.Value range: 1 to 7.
Declaration
public Output<int> Priority { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Int32> |
QosId
The instance ID of the QoS policy to which the quintuple rule is created.
Declaration
public Output<string> QosId { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
SourceCidr
The source CIDR block.
Declaration
public Output<string> SourceCidr { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
SourcePortRange
The source port range of the transport layer.
Declaration
public Output<string> SourcePortRange { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
StartTime
The time when the quintuple rule takes effect.
Declaration
public Output<string> StartTime { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Methods
View SourceGet(String, Input<String>, QosPolicyState, CustomResourceOptions)
Get an existing QosPolicy resource's state with the given name, ID, and optional extra properties used to qualify the lookup.
Declaration
public static QosPolicy Get(string name, Input<string> id, QosPolicyState 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. |
| QosPolicyState | state | Any extra arguments used during the lookup. |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Returns
| Type | Description |
|---|---|
| QosPolicy |