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

}

Coming soon!

import pulumi
import pulumi_alicloud as alicloud

default_qos = alicloud.rocketmq.Qos("defaultQos")
default_qos_policy = alicloud.rocketmq.QosPolicy("defaultQosPolicy",
    description="tf-testSagQosPolicyDescription",
    dest_cidr="10.10.0.0/24",
    dest_port_range="-1/-1",
    end_time="2019-10-26T16:41:33+0800",
    ip_protocol="ALL",
    priority="1",
    qos_id=default_qos.id,
    source_cidr="192.168.0.0/24",
    source_port_range="-1/-1",
    start_time="2019-10-25T16:41:33+0800")
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";

const defaultQos = new alicloud.rocketmq.Qos("default", {});
const defaultQosPolicy = new alicloud.rocketmq.QosPolicy("default", {
    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",
});

Create a QosPolicy Resource

def QosPolicy(resource_name, opts=None, description=None, dest_cidr=None, dest_port_range=None, end_time=None, ip_protocol=None, name=None, priority=None, qos_id=None, source_cidr=None, source_port_range=None, start_time=None, __props__=None);
func NewQosPolicy(ctx *Context, name string, args QosPolicyArgs, opts ...ResourceOption) (*QosPolicy, error)
public QosPolicy(string name, QosPolicyArgs args, CustomResourceOptions? opts = null)
name string
The unique name of the resource.
args QosPolicyArgs
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 QosPolicyArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args QosPolicyArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.

QosPolicy Resource Properties

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

Inputs

The QosPolicy resource accepts the following input properties:

DestCidr string

The destination CIDR block.

DestPortRange string

The destination port range.

IpProtocol string

The transport layer protocol.

Priority int

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.

QosId string

The instance ID of the QoS policy to which the quintuple rule is created.

SourceCidr string

The source CIDR block.

SourcePortRange string

The source port range of the transport layer.

Description string

The description of the QoS policy.

EndTime string

The expiration time of the quintuple rule.

Name string

The name of the QoS policy.

StartTime string

The time when the quintuple rule takes effect.

DestCidr string

The destination CIDR block.

DestPortRange string

The destination port range.

IpProtocol string

The transport layer protocol.

Priority int

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.

QosId string

The instance ID of the QoS policy to which the quintuple rule is created.

SourceCidr string

The source CIDR block.

SourcePortRange string

The source port range of the transport layer.

Description string

The description of the QoS policy.

EndTime string

The expiration time of the quintuple rule.

Name string

The name of the QoS policy.

StartTime string

The time when the quintuple rule takes effect.

destCidr string

The destination CIDR block.

destPortRange string

The destination port range.

ipProtocol string

The transport layer protocol.

priority number

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.

qosId string

The instance ID of the QoS policy to which the quintuple rule is created.

sourceCidr string

The source CIDR block.

sourcePortRange string

The source port range of the transport layer.

description string

The description of the QoS policy.

endTime string

The expiration time of the quintuple rule.

name string

The name of the QoS policy.

startTime string

The time when the quintuple rule takes effect.

dest_cidr str

The destination CIDR block.

dest_port_range str

The destination port range.

ip_protocol str

The transport layer protocol.

priority float

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.

qos_id str

The instance ID of the QoS policy to which the quintuple rule is created.

source_cidr str

The source CIDR block.

source_port_range str

The source port range of the transport layer.

description str

The description of the QoS policy.

end_time str

The expiration time of the quintuple rule.

name str

The name of the QoS policy.

start_time str

The time when the quintuple rule takes effect.

Outputs

All input properties are implicitly available as output properties. Additionally, the QosPolicy 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 QosPolicy Resource

Get an existing QosPolicy 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?: QosPolicyState, opts?: CustomResourceOptions): QosPolicy
static get(resource_name, id, opts=None, description=None, dest_cidr=None, dest_port_range=None, end_time=None, ip_protocol=None, name=None, priority=None, qos_id=None, source_cidr=None, source_port_range=None, start_time=None, __props__=None);
func GetQosPolicy(ctx *Context, name string, id IDInput, state *QosPolicyState, opts ...ResourceOption) (*QosPolicy, error)
public static QosPolicy Get(string name, Input<string> id, QosPolicyState? 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 policy.

DestCidr string

The destination CIDR block.

DestPortRange string

The destination port range.

EndTime string

The expiration time of the quintuple rule.

IpProtocol string

The transport layer protocol.

Name string

The name of the QoS policy.

Priority int

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.

QosId string

The instance ID of the QoS policy to which the quintuple rule is created.

SourceCidr string

The source CIDR block.

SourcePortRange string

The source port range of the transport layer.

StartTime string

The time when the quintuple rule takes effect.

Description string

The description of the QoS policy.

DestCidr string

The destination CIDR block.

DestPortRange string

The destination port range.

EndTime string

The expiration time of the quintuple rule.

IpProtocol string

The transport layer protocol.

Name string

The name of the QoS policy.

Priority int

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.

QosId string

The instance ID of the QoS policy to which the quintuple rule is created.

SourceCidr string

The source CIDR block.

SourcePortRange string

The source port range of the transport layer.

StartTime string

The time when the quintuple rule takes effect.

description string

The description of the QoS policy.

destCidr string

The destination CIDR block.

destPortRange string

The destination port range.

endTime string

The expiration time of the quintuple rule.

ipProtocol string

The transport layer protocol.

name string

The name of the QoS policy.

priority number

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.

qosId string

The instance ID of the QoS policy to which the quintuple rule is created.

sourceCidr string

The source CIDR block.

sourcePortRange string

The source port range of the transport layer.

startTime string

The time when the quintuple rule takes effect.

description str

The description of the QoS policy.

dest_cidr str

The destination CIDR block.

dest_port_range str

The destination port range.

end_time str

The expiration time of the quintuple rule.

ip_protocol str

The transport layer protocol.

name str

The name of the QoS policy.

priority float

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.

qos_id str

The instance ID of the QoS policy to which the quintuple rule is created.

source_cidr str

The source CIDR block.

source_port_range str

The source port range of the transport layer.

start_time str

The time when the quintuple rule takes effect.

Package Details

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