PortProps
Properties for defining a Port
.
See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-ddospro-port
Initializer
import ros_cdk_ddospro
ros_cdk_ddospro.PortProps(
frontend_protocol: typing.Union[str, IResolvable],
instance_id: typing.Union[str, IResolvable],
real_servers: typing.Union[IResolvable, typing.List[typing.Union[str, IResolvable]]],
backend_port: typing.Union[str, IResolvable] = None,
frontend_port: typing.Union[str, IResolvable] = None
)
Properties
Name | Type | Description |
---|---|---|
frontend_protocol |
typing.Union[str, ros_cdk_core.IResolvable] |
Property frontendProtocol: The type of the protocol. |
instance_id |
typing.Union[str, ros_cdk_core.IResolvable] |
Property instanceId: The ID of the Anti-DDoS Pro or Anti-DDoS Premium instance to which the port forwarding rule belongs. |
real_servers |
typing.Union[ros_cdk_core.IResolvable, typing.List[typing.Union[str, ros_cdk_core.IResolvable]]] |
Property realServers: An array that consists of the IP addresses of origin servers. |
backend_port |
typing.Union[str, ros_cdk_core.IResolvable] |
Property backendPort: The port of the origin server. |
frontend_port |
typing.Union[str, ros_cdk_core.IResolvable] |
Property frontendPort: The forwarding port. |
frontend_protocol
Required
frontend_protocol: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property frontendProtocol: The type of the protocol.
Valid values: tcp udp
instance_id
Required
instance_id: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property instanceId: The ID of the Anti-DDoS Pro or Anti-DDoS Premium instance to which the port forwarding rule belongs.
real_servers
Required
real_servers: typing.Union[IResolvable, typing.List[typing.Union[str, IResolvable]]]
- Type: typing.Union[ros_cdk_core.IResolvable, typing.List[typing.Union[str, ros_cdk_core.IResolvable]]]
Property realServers: An array that consists of the IP addresses of origin servers.
backend_port
Optional
backend_port: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property backendPort: The port of the origin server.
Valid values: 0 to 65535.
frontend_port
Optional
frontend_port: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property frontendPort: The forwarding port.
Valid values: 0 to 65535.