Skip to content

CompressionRuleProps

Properties for defining a CompressionRule.

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

Initializer

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

Properties

Name Type Description
siteId number | @alicloud/ros-cdk-core.IResolvable Property siteId: The site ID, which can be obtained by calling the ListSites API.
brotli string | @alicloud/ros-cdk-core.IResolvable Property brotli: Brotli compression.
gzip string | @alicloud/ros-cdk-core.IResolvable Property gzip: Gzip compression.
paymentType string | @alicloud/ros-cdk-core.IResolvable Property paymentType: Payment Type.
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.
zstd string | @alicloud/ros-cdk-core.IResolvable Property zstd: Zstd compression.

siteIdRequired

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

Property siteId: The site ID, which can be obtained by calling the ListSites API.


brotliOptional

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

Property brotli: Brotli compression.

Value range: on: Enable. off: Disable.


gzipOptional

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

Property gzip: Gzip compression.

Value range: on: Enable. off: Disable.


paymentTypeOptional

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

Property paymentType: Payment Type.


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: Enable. off: Disable.


ruleNameOptional

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

Property ruleName: Rule name.

When adding global configuration, this parameter does not need to be set.


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.


zstdOptional

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

Property zstd: Zstd compression.

Value range: on: Enable. off: Disable.