Skip to content

NetworkOptimizationProps

Properties for defining a NetworkOptimization.

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

Initializer

import ros_cdk_esa
ros_cdk_esa.NetworkOptimizationProps(
  site_id: typing.Union[typing.Union[int, float], IResolvable],
  grpc: typing.Union[str, IResolvable] = None,
  http2_origin: typing.Union[str, IResolvable] = None,
  rule: typing.Union[str, IResolvable] = None,
  rule_enable: typing.Union[str, IResolvable] = None,
  rule_name: typing.Union[str, IResolvable] = None,
  sequence: typing.Union[typing.Union[int, float], IResolvable] = None,
  site_version: typing.Union[typing.Union[int, float], IResolvable] = None,
  smart_routing: typing.Union[str, IResolvable] = None,
  upload_max_filesize: typing.Union[typing.Union[int, float], IResolvable] = None,
  websocket: typing.Union[str, IResolvable] = None
)

Properties

Name Type Description
site_id typing.Union[typing.Union[int, float], ros_cdk_core.IResolvable] Property siteId: Site ID.
grpc typing.Union[str, ros_cdk_core.IResolvable] Property grpc: Whether to enable GRPC, default is disabled.
http2_origin typing.Union[str, ros_cdk_core.IResolvable] Property http2Origin: Whether to enable HTTP2 origin, default is disabled.
rule typing.Union[str, ros_cdk_core.IResolvable] Property rule: Rule content, using conditional expressions to match user requests.
rule_enable typing.Union[str, ros_cdk_core.IResolvable] Property ruleEnable: Rule switch.
rule_name typing.Union[str, ros_cdk_core.IResolvable] Property ruleName: Rule name.
sequence typing.Union[typing.Union[int, float], ros_cdk_core.IResolvable] Property sequence: Order of rule execution.
site_version typing.Union[typing.Union[int, float], ros_cdk_core.IResolvable] Property siteVersion: The version number of the site configuration.
smart_routing typing.Union[str, ros_cdk_core.IResolvable] Property smartRouting: Whether to enable smart routing service, default is disabled.
upload_max_filesize typing.Union[typing.Union[int, float], ros_cdk_core.IResolvable] Property uploadMaxFilesize: Maximum upload file size, in MB, value range: 100~500.
websocket typing.Union[str, ros_cdk_core.IResolvable] Property websocket: Whether to enable Websocket, default is enabled.

site_idRequired

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

Property siteId: Site ID.


grpcOptional

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

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

Value range:

  • on: Enabled
  • off: Disabled.

http2_originOptional

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

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

Value range:

  • on: Enabled
  • off: Disabled.

ruleOptional

rule: typing.Union[str, IResolvable]
  • Type: typing.Union[str, 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").

rule_enableOptional

rule_enable: typing.Union[str, IResolvable]
  • Type: typing.Union[str, 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.

rule_nameOptional

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

Property ruleName: Rule name.


sequenceOptional

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

Property sequence: Order of rule execution.

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


site_versionOptional

site_version: typing.Union[typing.Union[int, float], IResolvable]
  • Type: typing.Union[typing.Union[int, float], 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.


smart_routingOptional

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

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

Value range:

  • on: Enabled
  • off: Disabled.

upload_max_filesizeOptional

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

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


websocketOptional

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

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

Value range:

  • on: Enabled
  • off: Disabled.