QosPolicy
- Implements: IQosPolicy
This class encapsulates and extends the ROS resource type ALIYUN::SAG::QosPolicy.
Initializers
import com.aliyun.ros.cdk.sag.QosPolicy;
QosPolicy.Builder.create(Construct scope, java.lang.String id, java.lang.Boolean enableResourcePropertyConstraint)
.destCidr(java.lang.String)
.destCidr(IResolvable)
.destPortRange(java.lang.String)
.destPortRange(IResolvable)
.ipProtocol(java.lang.String)
.ipProtocol(IResolvable)
.priority(java.lang.Number)
.priority(IResolvable)
.qosId(java.lang.String)
.qosId(IResolvable)
.sourceCidr(java.lang.String)
.sourceCidr(IResolvable)
.sourcePortRange(java.lang.String)
.sourcePortRange(IResolvable)
// .description(java.lang.String)
// .description(IResolvable)
// .dpiGroupIds(IResolvable)
// .dpiGroupIds(java.util.List<java.lang.String)
// .dpiGroupIds(IResolvable>)
// .dpiSignatureIds(IResolvable)
// .dpiSignatureIds(java.util.List<java.lang.String)
// .dpiSignatureIds(IResolvable>)
// .endTime(java.lang.String)
// .endTime(IResolvable)
// .name(java.lang.String)
// .name(IResolvable)
// .startTime(java.lang.String)
// .startTime(IResolvable)
.build();
| Name | Type | Description |
|---|---|---|
scope | com.aliyun.ros.cdk.core.Construct | No description. |
id | java.lang.String | No description. |
enableResourcePropertyConstraint | java.lang.Boolean | No description. |
destCidr | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property destCidr: The range of the destination IP addresses. |
destPortRange | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property destPortRange: The range of destination ports. |
ipProtocol | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property ipProtocol: The type of the protocol that applies to the traffic classification rule. |
priority | java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable | Property priority: The priority of the throttling rule to which the stream classification rule belongs. |
qosId | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property qosId: The ID of the QoS policy. |
sourceCidr | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property sourceCidr: The range of the source IP addresses. |
sourcePortRange | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property sourcePortRange: The range of source ports. |
description | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property description: The description of the stream classification rule for the QoS policy. |
dpiGroupIds | com.aliyun.ros.cdk.core.IResolvable OR java.util.List | Property dpiGroupIds: The ID of the application group. |
dpiSignatureIds | com.aliyun.ros.cdk.core.IResolvable OR java.util.List | Property dpiSignatureIds: The ID of the application. |
endTime | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property endTime: The time when the traffic classification rule becomes invalid. |
name | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property name: The name of the stream classification rule. |
startTime | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property startTime: The time when the traffic classification rule takes effect. |
scopeRequired
- Type: com.aliyun.ros.cdk.core.Construct
idRequired
- Type: java.lang.String
enableResourcePropertyConstraintOptional
- Type: java.lang.Boolean
destCidrRequired
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property destCidr: The range of the destination IP addresses.
Specify the value of this parameter in CIDR notation. Example: 192.168.10.0/24.
destPortRangeRequired
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property destPortRange: The range of destination ports.
Valid values: 1 to 65535 and -1. Set this parameter in one of the following formats: 1/200: a port range from 1 to 200 80/80: port 80 -1/-1: all ports
ipProtocolRequired
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property ipProtocol: The type of the protocol that applies to the traffic classification rule.
The supported protocols provided in this topic are for reference only. The actual protocols in the console shall prevail.
priorityRequired
- Type: java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable
Property priority: The priority of the throttling rule to which the stream classification rule belongs.
Valid values: 1 to 3. A smaller value indicates a higher priority.
qosIdRequired
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property qosId: The ID of the QoS policy.
sourceCidrRequired
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property sourceCidr: The range of the source IP addresses.
Specify the value of this parameter in CIDR notation. Example: 192.168.1.0/24.
sourcePortRangeRequired
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property sourcePortRange: The range of source ports.
Valid values: 1 to 65535 and -1. Set this parameter in one of the following formats: 1/200: a port range from 1 to 200 80/80: port 80 -1/-1: all ports
descriptionOptional
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property description: The description of the stream classification rule for the QoS policy.
The description must be 1 to 512 characters in length. It must start with a letter or a Chinese character and can contain digits, underscores (_), and hyphens (-).
dpiGroupIdsOptional
- Type: com.aliyun.ros.cdk.core.IResolvable OR java.util.List
Property dpiGroupIds: The ID of the application group.
You can enter at most 100 application group IDs at a time. You can call the ListDpiGroups operation to query application group IDs and information about the applications.
dpiSignatureIdsOptional
- Type: com.aliyun.ros.cdk.core.IResolvable OR java.util.List
Property dpiSignatureIds: The ID of the application.
You can enter at most 100 application IDs at a time. You can call the ListDpiSignatures operation to query application IDs and information about the applications.
endTimeOptional
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property endTime: The time when the traffic classification rule becomes invalid.
Specify the time in the ISO 8601 standard in the YYYY-MM-DDThh:mm:ss+0800 format. The time must be in UTC+8.
nameOptional
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property name: The name of the stream classification rule.
The name must be 2 to 100 characters in length. It must start with a letter or a Chinese character and can contain digits, hyphens (-), and underscores (_).
startTimeOptional
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property startTime: The time when the traffic classification rule takes effect.
Specify the time in the ISO 8601 standard in the YYYY-MM-DDThh:mm:ss+0800 format. The time must be in UTC+8.
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 java.lang.String toString()
Returns a string representation of this construct.
synthesize
public void synthesize(ISynthesisSession session)
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.
- Type: com.aliyun.ros.cdk.core.ISynthesisSession
The synthesis session.
addCondition
public void addCondition(RosCondition condition)
- Type: com.aliyun.ros.cdk.core.RosCondition
addCount
public void addCount(java.lang.Number OR IResolvable count)
- Type: java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable
addDependency
public void addDependency(Resource resource)
- Type: com.aliyun.ros.cdk.core.Resource
addResourceDesc
public void addResourceDesc(java.lang.String desc)
- Type: java.lang.String
applyRemovalPolicy
public void applyRemovalPolicy(RemovalPolicy policy)
- Type: com.aliyun.ros.cdk.core.RemovalPolicy
fetchCondition
public RosCondition fetchCondition()
fetchDependency
public java.util.List<java.lang.String> fetchDependency()
fetchResourceDesc
public java.lang.String fetchResourceDesc()
getAtt
public IResolvable getAtt(java.lang.String name)
- Type: java.lang.String
setMetadata
public void setMetadata(java.lang.String key, java.lang.Object value)
- Type: java.lang.String
- Type: java.lang.Object
Static Functions
| Name | Description |
|---|---|
isConstruct | Return whether the given object is a Construct. |
isConstruct
import com.aliyun.ros.cdk.sag.QosPolicy;
QosPolicy.isConstruct(java.lang.Object x)
Return whether the given object is a Construct.
- Type: java.lang.Object
Properties
| Name | Type | Description |
|---|---|---|
node | com.aliyun.ros.cdk.core.ConstructNode | The construct tree node associated with this construct. |
env | com.aliyun.ros.cdk.core.IResourceEnvironment | The environment this resource belongs to. |
ref | java.lang.String | No description. |
stack | com.aliyun.ros.cdk.core.Stack | The stack in which this resource is defined. |
resource | com.aliyun.ros.cdk.core.RosResource | No description. |
attrQosPolicyId | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Attribute QosPolicyId: The ID of the traffic classification rule. |
props | QosPolicyProps | No description. |
nodeRequired
public ConstructNode getNode();
- Type: com.aliyun.ros.cdk.core.ConstructNode
The construct tree node associated with this construct.
envRequired
public IResourceEnvironment getEnv();
- Type: com.aliyun.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 java.lang.String getRef();
- Type: java.lang.String
stackRequired
public Stack getStack();
- Type: com.aliyun.ros.cdk.core.Stack
The stack in which this resource is defined.
resourceOptional
public RosResource getResource();
- Type: com.aliyun.ros.cdk.core.RosResource
attrQosPolicyIdRequired
public java.lang.Object getAttrQosPolicyId();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Attribute QosPolicyId: The ID of the traffic classification rule.
propsRequired
public QosPolicyProps getProps();
- Type: QosPolicyProps