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 ros_cdk_ddospro
ros_cdk_ddospro.ProInstance(
  scope: Construct,
  id: str,
  address_type: typing.Union[str, IResolvable] = None,
  bandwidth: typing.Union[typing.Union[int, float], IResolvable] = None,
  base_bandwidth: typing.Union[typing.Union[int, float], IResolvable] = None,
  burst_bandwidth_mode: typing.Union[str, IResolvable] = None,
  domain_count: typing.Union[typing.Union[int, float], IResolvable] = None,
  edition: typing.Union[str, IResolvable] = None,
  function_version: typing.Union[str, IResolvable] = None,
  normal_qps: typing.Union[typing.Union[int, float], IResolvable] = None,
  period: typing.Union[typing.Union[int, float], IResolvable] = None,
  period_unit: typing.Union[str, IResolvable] = None,
  port_count: typing.Union[typing.Union[int, float], IResolvable] = None,
  service_bandwidth: typing.Union[typing.Union[int, float], IResolvable] = None,
  service_partner: typing.Union[str, IResolvable] = None,
  tags: typing.List[TagsProperty] = None,
  enable_resource_property_constraint: bool = None
)
| Name | Type | Description | 
|---|---|---|
scope | 
ros_cdk_core.Construct | 
No description. | 
id | 
str | 
No description. | 
address_type | 
typing.Union[str, ros_cdk_core.IResolvable] | 
Property addressType: The IP version of the IP address. | 
bandwidth | 
typing.Union[typing.Union[int, float], ros_cdk_core.IResolvable] | 
Property bandwidth: The burstable protection bandwidth. | 
base_bandwidth | 
typing.Union[typing.Union[int, float], ros_cdk_core.IResolvable] | 
Property baseBandwidth: The basic protection bandwidth. | 
burst_bandwidth_mode | 
typing.Union[str, ros_cdk_core.IResolvable] | 
Property burstBandwidthMode: The metering method of the 95th percentile burstable clean bandwidth. | 
domain_count | 
typing.Union[typing.Union[int, float], ros_cdk_core.IResolvable] | 
Property domainCount: The number of domain names that you want to protect. | 
edition | 
typing.Union[str, ros_cdk_core.IResolvable] | 
Property edition: The mitigation plan of the instance. | 
function_version | 
typing.Union[str, ros_cdk_core.IResolvable] | 
Property functionVersion: The function plan of the instance. | 
normal_qps | 
typing.Union[typing.Union[int, float], ros_cdk_core.IResolvable] | 
Property normalQps: The clean queries per second (QPS) provided by the instance. | 
period | 
typing.Union[typing.Union[int, float], 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. | 
period_unit | 
typing.Union[str, ros_cdk_core.IResolvable] | 
Property periodUnit: The unit of the subscription duration. | 
port_count | 
typing.Union[typing.Union[int, float], ros_cdk_core.IResolvable] | 
Property portCount: The number of ports that you want to protect. | 
service_bandwidth | 
typing.Union[typing.Union[int, float], ros_cdk_core.IResolvable] | 
Property serviceBandwidth: The clean bandwidth provided by the instance. | 
service_partner | 
typing.Union[str, ros_cdk_core.IResolvable] | 
Property servicePartner: The type of the protection line. | 
tags | 
typing.List[TagsProperty] | 
Property tags: Tags to attach to instance. | 
enable_resource_property_constraint | 
bool | 
No description. | 
scopeRequired 
- Type: ros_cdk_core.Construct
 
idRequired 
- Type: str
 
address_typeOptional 
- Type: typing.Union[str, ros_cdk_core.IResolvable]
 
Property addressType: The IP version of the IP address.
Valid values: Ipv4、Ipv6
bandwidthOptional 
- Type: typing.Union[typing.Union[int, float], 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.
base_bandwidthOptional 
- Type: typing.Union[typing.Union[int, float], ros_cdk_core.IResolvable]
 
Property baseBandwidth: The basic protection bandwidth.
Unit: Gbit/s. Valid values: 30, 60, 100, 300, 400, 500, and 600.
burst_bandwidth_modeOptional 
- Type: typing.Union[str, 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.
domain_countOptional 
- Type: typing.Union[typing.Union[int, float], 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.
editionOptional 
- Type: typing.Union[str, ros_cdk_core.IResolvable]
 
Property edition: The mitigation plan of the instance.
Set the value to coop, which indicates the Profession mitigation plan.
function_versionOptional 
- Type: typing.Union[str, ros_cdk_core.IResolvable]
 
Property functionVersion: The function plan of the instance.
Valid values: 0: the Standard function plan 1: the Enhanced function plan.
normal_qpsOptional 
- Type: typing.Union[typing.Union[int, float], 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.
periodOptional 
- Type: typing.Union[typing.Union[int, float], 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.
period_unitOptional 
- Type: typing.Union[str, ros_cdk_core.IResolvable]
 
Property periodUnit: The unit of the subscription duration.
Valid values: Month Year Default value: Month.
port_countOptional 
- Type: typing.Union[typing.Union[int, float], 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.
service_bandwidthOptional 
- Type: typing.Union[typing.Union[int, float], 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.
service_partnerOptional 
- Type: typing.Union[str, 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.
tagsOptional 
- Type: typing.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.
enable_resource_property_constraintOptional 
- Type: bool
 
Methods
| Name | Description | 
|---|---|
to_string | 
Returns a string representation of this construct. | 
synthesize | 
Allows this construct to emit artifacts into the cloud assembly during synthesis. | 
add_condition | 
No description. | 
add_count | 
No description. | 
add_dependency | 
No description. | 
add_resource_desc | 
No description. | 
apply_removal_policy | 
No description. | 
get_att | 
No description. | 
set_metadata | 
No description. | 
to_string 
def to_string() -> str
Returns a string representation of this construct.
synthesize 
def synthesize(
  session: ISynthesisSession
) -> None
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: ros_cdk_core.ISynthesisSession
 
The synthesis session.
add_condition 
def add_condition(
  condition: RosCondition
) -> None
- Type: ros_cdk_core.RosCondition
 
add_count 
def add_count(
  count: typing.Union[typing.Union[int, float], IResolvable]
) -> None
- Type: typing.Union[typing.Union[int, float], ros_cdk_core.IResolvable]
 
add_dependency 
def add_dependency(
  resource: Resource
) -> None
- Type: ros_cdk_core.Resource
 
add_resource_desc 
def add_resource_desc(
  desc: str
) -> None
- Type: str
 
apply_removal_policy 
def apply_removal_policy(
  policy: RemovalPolicy
) -> None
- Type: ros_cdk_core.RemovalPolicy
 
get_att 
def get_att(
  name: str
) -> IResolvable
- Type: str
 
set_metadata 
def set_metadata(
  key: str,
  value: typing.Any
) -> None
- Type: str
 
- Type: typing.Any
 
Static Functions
| Name | Description | 
|---|---|
is_construct | 
Return whether the given object is a Construct. | 
is_construct 
import ros_cdk_ddospro
ros_cdk_ddospro.ProInstance.is_construct(
  x: typing.Any
)
Return whether the given object is a Construct.
- Type: typing.Any
 
Properties
| Name | Type | Description | 
|---|---|---|
node | 
ros_cdk_core.ConstructNode | 
The construct tree node associated with this construct. | 
ref | 
str | 
No description. | 
stack | 
ros_cdk_core.Stack | 
The stack in which this resource is defined. | 
resource | 
ros_cdk_core.RosResource | 
No description. | 
attr_instance_id | 
ros_cdk_core.IResolvable | 
Attribute InstanceId: The ID of the instance. | 
nodeRequired 
node: ConstructNode
- Type: ros_cdk_core.ConstructNode
 
The construct tree node associated with this construct.
refRequired 
ref: str
- Type: str
 
stackRequired 
stack: Stack
- Type: ros_cdk_core.Stack
 
The stack in which this resource is defined.
resourceOptional 
resource: RosResource
- Type: ros_cdk_core.RosResource
 
attr_instance_idRequired 
attr_instance_id: IResolvable
- Type: ros_cdk_core.IResolvable
 
Attribute InstanceId: The ID of the instance.