Show / Hide Table of Contents

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

}
Inheritance
System.Object
Resource
CustomResource
QosPolicy
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 QosPolicy : CustomResource

Constructors

View Source

QosPolicy(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 Source

Description

The description of the QoS policy.

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

DestCidr

The destination CIDR block.

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

DestPortRange

The destination port range.

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

EndTime

The expiration time of the quintuple rule.

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

IpProtocol

The transport layer protocol.

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

Name

The name of the QoS policy.

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

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>
View Source

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>
View Source

SourceCidr

The source CIDR block.

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

SourcePortRange

The source port range of the transport layer.

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

StartTime

The time when the quintuple rule takes effect.

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

Methods

View Source

Get(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
  • View Source
Back to top Copyright 2016-2020, Pulumi Corporation.