Skip to content

OriginInstanceProps

Properties for defining a OriginInstance.

See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-ddos-origininstance

Initializer

import ros_cdk_ddos
ros_cdk_ddos.OriginInstanceProps(
  edition: typing.Union[str, IResolvable],
  protection_mode: typing.Union[str, IResolvable],
  charge_type: typing.Union[str, IResolvable] = None,
  clean_bandwidth: typing.Union[typing.Union[int, float], IResolvable] = None,
  enable_log: typing.Union[bool, IResolvable] = None,
  ip_addresses: typing.Union[typing.Union[int, float], IResolvable] = None,
  network_protocol: typing.Union[str, IResolvable] = None,
  period: typing.Union[typing.Union[int, float], IResolvable] = None,
  period_unit: typing.Union[str, IResolvable] = None,
  tags: typing.List[TagsProperty] = None
)

Properties

Name Type Description
edition typing.Union[str, ros_cdk_core.IResolvable] Property edition: Edition of the instance.
protection_mode typing.Union[str, ros_cdk_core.IResolvable] Property protectionMode: The mode of the protection.
charge_type typing.Union[str, ros_cdk_core.IResolvable] Property chargeType: The charge type of the instance.
clean_bandwidth typing.Union[typing.Union[int, float], ros_cdk_core.IResolvable] Property cleanBandwidth: The mitigation capability of Anti-DDoS is measured by the inbound or outbound clean bandwidth.
enable_log typing.Union[bool, ros_cdk_core.IResolvable] Property enableLog: Whether to enable protection logs.
ip_addresses typing.Union[typing.Union[int, float], ros_cdk_core.IResolvable] Property ipAddresses: The number of ip addresses.
network_protocol typing.Union[str, ros_cdk_core.IResolvable] Property networkProtocol: The network protocol of the instance.
period typing.Union[typing.Union[int, float], ros_cdk_core.IResolvable] Property period: The period of the instance.
period_unit typing.Union[str, ros_cdk_core.IResolvable] Property periodUnit: The period unit of the instance.
tags typing.List[TagsProperty] Property tags: Tags to attach to instance.

editionRequired

edition: typing.Union[str, IResolvable]
  • Type: typing.Union[str, ros_cdk_core.IResolvable]

Property edition: Edition of the instance.

Valid values:

  • enterprise: Enterprise Edition.
  • smb: Affordable and general edition for small and medium-sized enterprises.

protection_modeRequired

protection_mode: typing.Union[str, IResolvable]
  • Type: typing.Union[str, ros_cdk_core.IResolvable]

Property protectionMode: The mode of the protection.

Valid values: unlimited: The Unlimited protection mode is intended for internal use within enterprises.


charge_typeOptional

charge_type: typing.Union[str, IResolvable]
  • Type: typing.Union[str, ros_cdk_core.IResolvable]

Property chargeType: The charge type of the instance.

Valid values: PostPaid: Pay-as-you-go. PrePaid: Subscription.


clean_bandwidthOptional

clean_bandwidth: typing.Union[typing.Union[int, float], IResolvable]
  • Type: typing.Union[typing.Union[int, float], ros_cdk_core.IResolvable]

Property cleanBandwidth: The mitigation capability of Anti-DDoS is measured by the inbound or outbound clean bandwidth.

When Edition is enterprise, CleanBandwidth ranges from 100 to 1000 Mbit/s.When Edition is smb, CleanBandwidth ranges from 50 to 1000 Mbit/s.


enable_logOptional

enable_log: typing.Union[bool, IResolvable]
  • Type: typing.Union[bool, ros_cdk_core.IResolvable]

Property enableLog: Whether to enable protection logs.


ip_addressesOptional

ip_addresses: typing.Union[typing.Union[int, float], IResolvable]
  • Type: typing.Union[typing.Union[int, float], ros_cdk_core.IResolvable]

Property ipAddresses: The number of ip addresses.

When Edition is smb, IP Addresses ranges from 1 to 29. When Edition is enterprise, The minimum number of IP Addresses is 30.


network_protocolOptional

network_protocol: typing.Union[str, IResolvable]
  • Type: typing.Union[str, ros_cdk_core.IResolvable]

Property networkProtocol: The network protocol of the instance.

Valid values: v4: IPv4. v6: IPv6. v4_6: IPv4+IPv6.


periodOptional

period: typing.Union[typing.Union[int, float], IResolvable]
  • Type: typing.Union[typing.Union[int, float], ros_cdk_core.IResolvable]

Property period: The period of the instance.


period_unitOptional

period_unit: typing.Union[str, IResolvable]
  • Type: typing.Union[str, ros_cdk_core.IResolvable]

Property periodUnit: The period unit of the instance.

Valid values: Month: Month. Year: Year.


tagsOptional

tags: 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.