Skip to content

HttpResponseHeaderModificationRuleProps

Properties for defining a HttpResponseHeaderModificationRule.

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

Initializer

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

Properties

Name Type Description
responseHeaderModification @alicloud/ros-cdk-core.IResolvable | @alicloud/ros-cdk-core.IResolvable | ResponseHeaderModificationProperty[] Property responseHeaderModification: Modify response headers, supporting add, delete, and modify operations.
siteId number | @alicloud/ros-cdk-core.IResolvable Property siteId: The site ID.
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.

responseHeaderModificationRequired

public readonly responseHeaderModification: IResolvable | IResolvable | ResponseHeaderModificationProperty[];

Property responseHeaderModification: Modify response headers, supporting add, delete, and modify operations.


siteIdRequired

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

Property siteId: The site ID.


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.

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.