Skip to content

NetworkOptimizationProps

Properties for defining a NetworkOptimization.

See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-esa-networkoptimization

Initializer

import { NetworkOptimizationProps } from '@alicloud/ros-cdk-esa'
const networkOptimizationProps: NetworkOptimizationProps = { ... }

Properties

Name Type Description
siteId number | @alicloud/ros-cdk-core.IResolvable Property siteId: Site ID.
grpc string | @alicloud/ros-cdk-core.IResolvable Property grpc: Whether to enable GRPC, default is disabled.
http2Origin string | @alicloud/ros-cdk-core.IResolvable Property http2Origin: Whether to enable HTTP2 origin, default is disabled.
rule string | @alicloud/ros-cdk-core.IResolvable Property rule: Rule content, using conditional expressions to match user requests.
ruleEnable string | @alicloud/ros-cdk-core.IResolvable Property ruleEnable: Rule switch.
ruleName string | @alicloud/ros-cdk-core.IResolvable Property ruleName: Rule name.
sequence number | @alicloud/ros-cdk-core.IResolvable Property sequence: Order of rule execution.
siteVersion number | @alicloud/ros-cdk-core.IResolvable Property siteVersion: The version number of the site configuration.
smartRouting string | @alicloud/ros-cdk-core.IResolvable Property smartRouting: Whether to enable smart routing service, default is disabled.
uploadMaxFilesize number | @alicloud/ros-cdk-core.IResolvable Property uploadMaxFilesize: Maximum upload file size, in MB, value range: 100~500.
websocket string | @alicloud/ros-cdk-core.IResolvable Property websocket: Whether to enable Websocket, default is enabled.

siteIdRequired

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

Property siteId: Site ID.


grpcOptional

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

Property grpc: Whether to enable GRPC, default is disabled.

Value range: - on: Enabled - off: Disabled.


http2OriginOptional

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

Property http2Origin: Whether to enable HTTP2 origin, default is disabled.

Value range: - on: Enabled - off: Disabled.


ruleOptional

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

Property rule: Rule content, using conditional expressions to match user requests.

When adding global configuration, this parameter does not need to be set. There are two usage scenarios: - Match all incoming requests: value set to true - Match specified request: Set the value to a custom expression, for example: (http.host eq \"video.example.com\").


ruleEnableOptional

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

Property ruleEnable: Rule switch.

When adding global configuration, this parameter does not need to be set. Value range: - on: open. - off: close.


ruleNameOptional

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

Property ruleName: Rule name.


sequenceOptional

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

Property sequence: Order of rule execution.

The smaller the value, the higher the priority for execution.


siteVersionOptional

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

Property siteVersion: The version number of the site configuration.

For sites that have enabled configuration version management, this parameter can be used to specify the effective version of the configuration site, which defaults to version 0.


smartRoutingOptional

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

Property smartRouting: Whether to enable smart routing service, default is disabled.

Value range: - on: Enabled - off: Disabled.


uploadMaxFilesizeOptional

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

Property uploadMaxFilesize: Maximum upload file size, in MB, value range: 100~500.


websocketOptional

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

Property websocket: Whether to enable Websocket, default is enabled.

Value range: - on: Enabled - off: Disabled.