PremiumInstance
This class encapsulates and extends the ROS resource type ALIYUN::DDoSPro::PremiumInstance
, which is used to create an Anti-DDoS Proxy (Outside Chinese Mainland) instance.
Initializers
import com.aliyun.ros.cdk.ddospro.PremiumInstance;
PremiumInstance.Builder.create(Construct scope, java.lang.String id, java.lang.Boolean enableResourcePropertyConstraint)
// .burstBandwidthMode(java.lang.String)
// .burstBandwidthMode(IResolvable)
// .domainCount(java.lang.Number)
// .domainCount(IResolvable)
// .functionVersion(java.lang.String)
// .functionVersion(IResolvable)
// .normalBandwidth(java.lang.Number)
// .normalBandwidth(IResolvable)
// .normalQps(java.lang.Number)
// .normalQps(IResolvable)
// .period(java.lang.Number)
// .period(IResolvable)
// .periodUnit(java.lang.String)
// .periodUnit(IResolvable)
// .portCount(java.lang.Number)
// .portCount(IResolvable)
// .productPlan(java.lang.String)
// .productPlan(IResolvable)
// .tags(java.util.List<TagsProperty>)
.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. |
burstBandwidthMode |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property burstBandwidthMode: The metering method of the 95th percentile burstable clean bandwidth. |
domainCount |
java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable |
Property domainCount: The number of domain names that you want to protect. |
functionVersion |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property functionVersion: The function plan of the instance. |
normalBandwidth |
java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable |
Property normalBandwidth: The clean bandwidth provided by the instance. |
normalQps |
java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable |
Property normalQps: The clean QPS provided by the instance. |
period |
java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable |
Property period: The subscription period of the firewallIf PeriodUnit is Month, the valid range is 1, 2, 3, 4, 5, 6, 12, 24 If PeriodUnit is Year, the valid range is 1, 2. |
periodUnit |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property periodUnit: The unit of the subscription duration. |
portCount |
java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable |
Property portCount: The number of ports that you want to protect. |
productPlan |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property productPlan: The mitigation plan of the instance. |
tags |
java.util.List<TagsProperty> |
Property tags: Tags to attach to instance. |
scope
Required
- Type: com.aliyun.ros.cdk.core.Construct
id
Required
- Type: java.lang.String
enableResourcePropertyConstraint
Optional
- Type: java.lang.Boolean
burstBandwidthMode
Optional
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property burstBandwidthMode: The metering method of the 95th percentile burstable clean bandwidth.
Valid values: 0: disables the burstable clean bandwidth feature. 1: enables the burstable clean bandwidth feature and uses the daily 95th percentile metering method. 2: enables the burstable clean bandwidth feature and uses the monthly 95th percentile metering method.
domainCount
Optional
- Type: java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable
Property domainCount: The number of domain names that you want to protect.
The value of DomainCount varies based on the value of ProductPlan. If you set ProductPlan to 0, you can set DomainCount to a value that ranges from 10 to 200. The value must be a multiple of 10. If you set ProductPlan to 1, you can set DomainCount to a value that ranges from 10 to 200. The value must be a multiple of 10. If you set ProductPlan to 2, you do not need to specify this parameter. If you set ProductPlan to 3, you can set DomainCount to a value that ranges from 10 to 200. The value must be a multiple of 10.
functionVersion
Optional
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property functionVersion: The function plan of the instance.
Valid values: 0: the Standard function plan 1: the Enhanced function plan.
normalBandwidth
Optional
- Type: java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable
Property normalBandwidth: The clean bandwidth provided by the instance.
Unit: Mbit/s. The value of NormalBandwidth varies based on the value of ProductPlan. If you set ProductPlan to 0, you can set NormalBandwidth to 100, 150, 200, 250, or 300. If you set ProductPlan to 1, you can set NormalBandwidth to 100, 150, 200, 250, or 300. If you set ProductPlan to 2, you can set NormalBandwidth to 10, 20, 30, 40, 50, 60, 70, 80, 90, or 100. If you set ProductPlan to 3, you can set NormalBandwidth to 10, 20, 30, 40, 50, 60, 70, 80, 90, 100, 150, or 200.
normalQps
Optional
- Type: java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable
Property normalQps: The clean QPS provided by the instance.
The value of NormalQps varies based on the value of ProductPlan. If you set ProductPlan to 0, you can set NormalQps to a value that ranges from 500 to 100000. The value must be a multiple of 100. If you set ProductPlan to 1, you can set NormalQps to a value that ranges from 1000 to 100000. The value must be a multiple of 100. If you set ProductPlan to 2, you do not need to specify this parameter. If you set ProductPlan to 3, you can set NormalQps to a value that ranges from 500 to 100000. The value must be a multiple of 100.
period
Optional
- Type: java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable
Property period: The subscription period of the firewallIf PeriodUnit is Month, the valid range is 1, 2, 3, 4, 5, 6, 12, 24 If PeriodUnit is Year, the valid range is 1, 2.
periodUnit
Optional
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property periodUnit: The unit of the subscription duration.
Valid values: Month Year Default value: Month.
portCount
Optional
- Type: java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable
Property portCount: The number of ports that you want to protect.
The value of PortCount varies based on the value of ProductPlan. If you set ProductPlan to 0, you can set PortCount to a value that ranges from 5 to 400. The value must be a multiple of 5. If you set ProductPlan to 1, you can set PortCount to a value that ranges from 5 to 400. The value must be a multiple of 5. If you set ProductPlan to 2, you do not need to specify this parameter. If you set ProductPlan to 3, you can set PortCount to a value that ranges from 5 to 400. The value must be a multiple of 5.
productPlan
Optional
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property productPlan: The mitigation plan of the instance.
Valid values: 0: the Insurance mitigation plan 1: the Unlimited mitigation plan 2: the Chinese Mainland Acceleration (CMA) mitigation plan 3: the Secure Chinese Mainland Acceleration (Sec-CMA) mitigation plan
tags
Optional
- Type: java.util.List<TagsProperty>
Property tags: Tags to attach to instance.
Max support 20 tags to add during create instance. Each tag with two properties Key and Value, and Key is required.
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. |
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
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.ddospro.PremiumInstance;
PremiumInstance.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. |
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. |
attrInstanceId |
com.aliyun.ros.cdk.core.IResolvable |
Attribute InstanceId: The ID of the instance. |
node
Required
public ConstructNode getNode();
- Type: com.aliyun.ros.cdk.core.ConstructNode
The construct tree node associated with this construct.
ref
Required
public java.lang.String getRef();
- Type: java.lang.String
stack
Required
public Stack getStack();
- Type: com.aliyun.ros.cdk.core.Stack
The stack in which this resource is defined.
resource
Optional
public RosResource getResource();
- Type: com.aliyun.ros.cdk.core.RosResource
attrInstanceId
Required
public IResolvable getAttrInstanceId();
- Type: com.aliyun.ros.cdk.core.IResolvable
Attribute InstanceId: The ID of the instance.