Skip to content

PortProps

Properties for defining a Port.

See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-ddospro-port

Initializer

import { PortProps } from '@alicloud/ros-cdk-ddospro'
const portProps: PortProps = { ... }

Properties

Name Type Description
frontendProtocol string | @alicloud/ros-cdk-core.IResolvable Property frontendProtocol: The type of the protocol.
instanceId string | @alicloud/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.
realServers @alicloud/ros-cdk-core.IResolvable | string | @alicloud/ros-cdk-core.IResolvable[] Property realServers: An array that consists of the IP addresses of origin servers.
backendPort string | @alicloud/ros-cdk-core.IResolvable Property backendPort: The port of the origin server.
frontendPort string | @alicloud/ros-cdk-core.IResolvable Property frontendPort: The forwarding port.

frontendProtocolRequired

public readonly frontendProtocol: string | IResolvable;
  • Type: string | @alicloud/ros-cdk-core.IResolvable

Property frontendProtocol: The type of the protocol.

Valid values: tcp udp


instanceIdRequired

public readonly instanceId: string | IResolvable;
  • Type: string | @alicloud/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.


realServersRequired

public readonly realServers: IResolvable | string | IResolvable[];
  • Type: @alicloud/ros-cdk-core.IResolvable | string | @alicloud/ros-cdk-core.IResolvable[]

Property realServers: An array that consists of the IP addresses of origin servers.


backendPortOptional

public readonly backendPort: string | IResolvable;
  • Type: string | @alicloud/ros-cdk-core.IResolvable

Property backendPort: The port of the origin server.

Valid values: 0 to 65535.


frontendPortOptional

public readonly frontendPort: string | IResolvable;
  • Type: string | @alicloud/ros-cdk-core.IResolvable

Property frontendPort: The forwarding port.

Valid values: 0 to 65535.