Skip to content

TrafficQosRule

This class encapsulates and extends the ROS resource type ALIYUN::VPC::TrafficQosRule.

Initializers

import { TrafficQosRule } from '@alicloud/ros-cdk-vpc'
new TrafficQosRule(scope: Construct, id: string, props: TrafficQosRuleProps, enableResourcePropertyConstraint?: boolean)
Name Type Description
scope @alicloud/ros-cdk-core.Construct No description.
id string No description.
props TrafficQosRuleProps No description.
enableResourcePropertyConstraint boolean No description.

scopeRequired

  • Type: @alicloud/ros-cdk-core.Construct

idRequired

  • Type: string

propsRequired


enableResourcePropertyConstraintOptional

  • Type: boolean

Methods

Name Description
toString Returns a string representation of this construct.
synthesize Allows this construct to emit artifacts into the cloud assembly during synthesis.
addCondition No description.
addCount No description.
addDependency No description.
addResourceDesc No description.
applyRemovalPolicy No description.
fetchCondition No description.
fetchDependency No description.
fetchResourceDesc No description.
getAtt No description.
setMetadata No description.

toString

public toString(): string

Returns a string representation of this construct.

synthesize

public synthesize(session: ISynthesisSession): void

Allows this construct to emit artifacts into the cloud assembly during synthesis.

This method is usually implemented by framework-level constructs such as Stack and Asset as they participate in synthesizing the cloud assembly.

sessionRequired

  • Type: @alicloud/ros-cdk-core.ISynthesisSession

The synthesis session.


addCondition

public addCondition(condition: RosCondition): void

conditionRequired

  • Type: @alicloud/ros-cdk-core.RosCondition

addCount

public addCount(count: number | IResolvable): void

countRequired

  • Type: number | @alicloud/ros-cdk-core.IResolvable

addDependency

public addDependency(resource: Resource): void

resourceRequired

  • Type: @alicloud/ros-cdk-core.Resource

addResourceDesc

public addResourceDesc(desc: string): void

descRequired

  • Type: string

applyRemovalPolicy

public applyRemovalPolicy(policy: RemovalPolicy): void

policyRequired

  • Type: @alicloud/ros-cdk-core.RemovalPolicy

fetchCondition

public fetchCondition(): RosCondition

fetchDependency

public fetchDependency(): string[]

fetchResourceDesc

public fetchResourceDesc(): string

getAtt

public getAtt(name: string): IResolvable

nameRequired

  • Type: string

setMetadata

public setMetadata(key: string, value: any): void

keyRequired

  • Type: string

valueRequired

  • Type: any

Static Functions

Name Description
isConstruct Return whether the given object is a Construct.

isConstruct

import { TrafficQosRule } from '@alicloud/ros-cdk-vpc'
TrafficQosRule.isConstruct(x: any)

Return whether the given object is a Construct.

xRequired

  • Type: any

Properties

Name Type Description
node @alicloud/ros-cdk-core.ConstructNode The construct tree node associated with this construct.
env @alicloud/ros-cdk-core.IResourceEnvironment The environment this resource belongs to.
ref string No description.
stack @alicloud/ros-cdk-core.Stack The stack in which this resource is defined.
resource @alicloud/ros-cdk-core.RosResource No description.
attrDstCidr string | @alicloud/ros-cdk-core.IResolvable Attribute DstCidr: The destination IPv4 CIDR block that matches the QoS rule traffic.
attrDstIpv6Cidr string | @alicloud/ros-cdk-core.IResolvable Attribute DstIpv6Cidr: The QoS rule traffic matches the Destination IPv6 network segment.
attrDstPortRange string | @alicloud/ros-cdk-core.IResolvable Attribute DstPortRange: QoS rule traffic matches the destination port number range.
attrMatchDscp string | @alicloud/ros-cdk-core.IResolvable Attribute MatchDscp: The DSCP value of the traffic matched by the QoS rule.
attrPriority string | @alicloud/ros-cdk-core.IResolvable Attribute Priority: QoS rule priority.
attrProtocol string | @alicloud/ros-cdk-core.IResolvable Attribute Protocol: QoS rule protocol type.
attrQosId string | @alicloud/ros-cdk-core.IResolvable Attribute QosId: The QoS policy ID.
attrQueueId string | @alicloud/ros-cdk-core.IResolvable Attribute QueueId: The QoS queue ID.
attrRemarkingDscp string | @alicloud/ros-cdk-core.IResolvable Attribute RemarkingDscp: Modify The DSCP value in the flow.
attrRuleDescription string | @alicloud/ros-cdk-core.IResolvable Attribute RuleDescription: The description of the QoS rule.
attrRuleId string | @alicloud/ros-cdk-core.IResolvable Attribute RuleId: The ID of the QoS rule.
attrRuleName string | @alicloud/ros-cdk-core.IResolvable Attribute RuleName: The name of the QoS rule.
attrSrcCidr string | @alicloud/ros-cdk-core.IResolvable Attribute SrcCidr: The source IPv4 CIDR block that matches the QoS rule traffic.
attrSrcIpv6Cidr string | @alicloud/ros-cdk-core.IResolvable Attribute SrcIpv6Cidr: The QoS rule traffic matches the source IPv6 network segment.
attrSrcPortRange string | @alicloud/ros-cdk-core.IResolvable Attribute SrcPortRange: The source port number of the QoS rule traffic matching.
props TrafficQosRuleProps No description.

nodeRequired

public readonly node: ConstructNode;
  • Type: @alicloud/ros-cdk-core.ConstructNode

The construct tree node associated with this construct.


envRequired

public readonly env: IResourceEnvironment;
  • Type: @alicloud/ros-cdk-core.IResourceEnvironment

The environment this resource belongs to.

For resources that are created and managed by the CDK (generally, those created by creating new class instances like Role, Bucket, etc.), this is always the same as the environment of the stack they belong to; however, for imported resources (those obtained from static methods like fromRoleArn, fromBucketName, etc.), that might be different than the stack they were imported into.


refRequired

public readonly ref: string;
  • Type: string

stackRequired

public readonly stack: Stack;
  • Type: @alicloud/ros-cdk-core.Stack

The stack in which this resource is defined.


resourceOptional

public readonly resource: RosResource;
  • Type: @alicloud/ros-cdk-core.RosResource

attrDstCidrRequired

public readonly attrDstCidr: string | IResolvable;
  • Type: string | @alicloud/ros-cdk-core.IResolvable

Attribute DstCidr: The destination IPv4 CIDR block that matches the QoS rule traffic.


attrDstIpv6CidrRequired

public readonly attrDstIpv6Cidr: string | IResolvable;
  • Type: string | @alicloud/ros-cdk-core.IResolvable

Attribute DstIpv6Cidr: The QoS rule traffic matches the Destination IPv6 network segment.


attrDstPortRangeRequired

public readonly attrDstPortRange: string | IResolvable;
  • Type: string | @alicloud/ros-cdk-core.IResolvable

Attribute DstPortRange: QoS rule traffic matches the destination port number range.

Value range: 0 to 65535. If not, the value is -1. Currently, only a single port number is supported, and the start and end of the port number must be the same. The corresponding destination port number range is fixed for different protocol types.


attrMatchDscpRequired

public readonly attrMatchDscp: string | IResolvable;
  • Type: string | @alicloud/ros-cdk-core.IResolvable

Attribute MatchDscp: The DSCP value of the traffic matched by the QoS rule.

Value range: 0 to 63. If not, the value is -1.


attrPriorityRequired

public readonly attrPriority: string | IResolvable;
  • Type: string | @alicloud/ros-cdk-core.IResolvable

Attribute Priority: QoS rule priority.

Value range: 1 to 9000. The larger the number, the higher the priority. The priority of a QoS rule cannot be repeated in the same QoS policy.


attrProtocolRequired

public readonly attrProtocol: string | IResolvable;
  • Type: string | @alicloud/ros-cdk-core.IResolvable

Attribute Protocol: QoS rule protocol type.


attrQosIdRequired

public readonly attrQosId: string | IResolvable;
  • Type: string | @alicloud/ros-cdk-core.IResolvable

Attribute QosId: The QoS policy ID.


attrQueueIdRequired

public readonly attrQueueId: string | IResolvable;
  • Type: string | @alicloud/ros-cdk-core.IResolvable

Attribute QueueId: The QoS queue ID.


attrRemarkingDscpRequired

public readonly attrRemarkingDscp: string | IResolvable;
  • Type: string | @alicloud/ros-cdk-core.IResolvable

Attribute RemarkingDscp: Modify The DSCP value in the flow.

Value range: 0 to 63. If the value is not modified, the value is -1.


attrRuleDescriptionRequired

public readonly attrRuleDescription: string | IResolvable;
  • Type: string | @alicloud/ros-cdk-core.IResolvable

Attribute RuleDescription: The description of the QoS rule.


attrRuleIdRequired

public readonly attrRuleId: string | IResolvable;
  • Type: string | @alicloud/ros-cdk-core.IResolvable

Attribute RuleId: The ID of the QoS rule.


attrRuleNameRequired

public readonly attrRuleName: string | IResolvable;
  • Type: string | @alicloud/ros-cdk-core.IResolvable

Attribute RuleName: The name of the QoS rule.


attrSrcCidrRequired

public readonly attrSrcCidr: string | IResolvable;
  • Type: string | @alicloud/ros-cdk-core.IResolvable

Attribute SrcCidr: The source IPv4 CIDR block that matches the QoS rule traffic.


attrSrcIpv6CidrRequired

public readonly attrSrcIpv6Cidr: string | IResolvable;
  • Type: string | @alicloud/ros-cdk-core.IResolvable

Attribute SrcIpv6Cidr: The QoS rule traffic matches the source IPv6 network segment.


attrSrcPortRangeRequired

public readonly attrSrcPortRange: string | IResolvable;
  • Type: string | @alicloud/ros-cdk-core.IResolvable

Attribute SrcPortRange: The source port number of the QoS rule traffic matching.

The value range is 0 to 65535. If the traffic does not match, the value is -1. Currently, only a single port number is supported, and the start and end of the port number must be the same.


propsRequired

public readonly props: TrafficQosRuleProps;