ProInstance
This class encapsulates and extends the ROS resource type ALIYUN::DDoSPro::ProInstance
, which is used to create an Anti-DDoS Proxy (Chinese Mainland) instance.
Initializers
import com.aliyun.ros.cdk.ddospro.ProInstance;
ProInstance.Builder.create(Construct scope, java.lang.String id, java.lang.Boolean enableResourcePropertyConstraint)
// .addressType(java.lang.String)
// .addressType(IResolvable)
// .bandwidth(java.lang.Number)
// .bandwidth(IResolvable)
// .baseBandwidth(java.lang.Number)
// .baseBandwidth(IResolvable)
// .burstBandwidthMode(java.lang.String)
// .burstBandwidthMode(IResolvable)
// .domainCount(java.lang.Number)
// .domainCount(IResolvable)
// .edition(java.lang.String)
// .edition(IResolvable)
// .functionVersion(java.lang.String)
// .functionVersion(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)
// .serviceBandwidth(java.lang.Number)
// .serviceBandwidth(IResolvable)
// .servicePartner(java.lang.String)
// .servicePartner(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. |
addressType |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property addressType: The IP version of the IP address. |
bandwidth |
java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable |
Property bandwidth: The burstable protection bandwidth. |
baseBandwidth |
java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable |
Property baseBandwidth: The basic protection bandwidth. |
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. |
edition |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property edition: The mitigation plan of the instance. |
functionVersion |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property functionVersion: The function plan of the instance. |
normalQps |
java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable |
Property normalQps: The clean queries per second (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. |
serviceBandwidth |
java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable |
Property serviceBandwidth: The clean bandwidth provided by the instance. |
servicePartner |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property servicePartner: The type of the protection line. |
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
addressType
Optional
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property addressType: The IP version of the IP address.
Valid values: Ipv4、Ipv6
bandwidth
Optional
- Type: java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable
Property bandwidth: The burstable protection bandwidth.
Unit: Gbit/s. The burstable protection bandwidth must be greater than or equal to the basic protection bandwidth. The value of Bandwidth varies based on the value of BaseBandwidth.
baseBandwidth
Optional
- Type: java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable
Property baseBandwidth: The basic protection bandwidth.
Unit: Gbit/s. Valid values: 30, 60, 100, 300, 400, 500, and 600.
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.
Valid values: 50 to 2000. The value must be a multiple of 10.
edition
Optional
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property edition: The mitigation plan of the instance.
Set the value to coop, which indicates the Profession mitigation plan.
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.
normalQps
Optional
- Type: java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable
Property normalQps: The clean queries per second (QPS) provided by the instance.
Valid values: 3000 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.
Valid values: 50 to 400. The value must be a multiple of 5.
serviceBandwidth
Optional
- Type: java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable
Property serviceBandwidth: The clean bandwidth provided by the instance.
Unit: Mbit/s. Valid values: 100 to 5000. The value must be a multiple of 50.
servicePartner
Optional
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property servicePartner: The type of the protection line.
Set the value to coop-line-001, which indicates the default protection line.
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.ProInstance;
ProInstance.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.