Skip to content

CacheRule

This class encapsulates and extends the ROS resource type ALIYUN::ESA::CacheRule.

Initializers

import com.aliyun.ros.cdk.esa.CacheRule;
CacheRule.Builder.create(Construct scope, java.lang.String id, java.lang.Boolean enableResourcePropertyConstraint)
    .siteId(java.lang.Number)
    .siteId(IResolvable)
//  .additionalCacheablePorts(java.lang.Number)
//  .additionalCacheablePorts(IResolvable)
//  .browserCacheMode(java.lang.String)
//  .browserCacheMode(IResolvable)
//  .browserCacheTtl(java.lang.Number)
//  .browserCacheTtl(IResolvable)
//  .bypassCache(java.lang.String)
//  .bypassCache(IResolvable)
//  .cacheDeceptionArmor(java.lang.String)
//  .cacheDeceptionArmor(IResolvable)
//  .cacheReserveEligibility(java.lang.String)
//  .cacheReserveEligibility(IResolvable)
//  .checkPresenceCookie(java.lang.String)
//  .checkPresenceCookie(IResolvable)
//  .checkPresenceHeader(java.lang.String)
//  .checkPresenceHeader(IResolvable)
//  .edgeCacheMode(java.lang.String)
//  .edgeCacheMode(IResolvable)
//  .edgeCacheTtl(java.lang.Number)
//  .edgeCacheTtl(IResolvable)
//  .edgeStatusCodeCacheTtl(java.lang.String)
//  .edgeStatusCodeCacheTtl(IResolvable)
//  .includeCookie(java.lang.String)
//  .includeCookie(IResolvable)
//  .includeHeader(java.lang.String)
//  .includeHeader(IResolvable)
//  .queryString(java.lang.String)
//  .queryString(IResolvable)
//  .queryStringMode(java.lang.String)
//  .queryStringMode(IResolvable)
//  .rule(java.lang.String)
//  .rule(IResolvable)
//  .ruleEnable(java.lang.String)
//  .ruleEnable(IResolvable)
//  .ruleName(java.lang.String)
//  .ruleName(IResolvable)
//  .sequence(java.lang.Number)
//  .sequence(IResolvable)
//  .serveStale(java.lang.String)
//  .serveStale(IResolvable)
//  .siteVersion(java.lang.Number)
//  .siteVersion(IResolvable)
//  .sortQueryStringForCache(java.lang.String)
//  .sortQueryStringForCache(IResolvable)
//  .userDeviceType(java.lang.String)
//  .userDeviceType(IResolvable)
//  .userGeo(java.lang.String)
//  .userGeo(IResolvable)
//  .userLanguage(java.lang.String)
//  .userLanguage(IResolvable)
    .build();
Name Type Description
scope com.aliyun.ros.cdk.core.Construct No description.
id java.lang.String No description.
enableResourcePropertyConstraint java.lang.Boolean No description.
siteId java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable Property siteId: The site ID, which can be obtained by calling the [ListSites] API.
additionalCacheablePorts java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable Property additionalCacheablePorts: Enable caching on specified ports.
browserCacheMode java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property browserCacheMode: Browser cache mode.
browserCacheTtl java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable Property browserCacheTtl: Browser cache expiration time in seconds.
bypassCache java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property bypassCache: Set the bypass cache mode.
cacheDeceptionArmor java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property cacheDeceptionArmor: Cache deception protection.
cacheReserveEligibility java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property cacheReserveEligibility: Cache retention eligibility.
checkPresenceCookie java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property checkPresenceCookie: When generating the cache key, check if the cookie exists.
checkPresenceHeader java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property checkPresenceHeader: When generating the cache key, check if the header exists.
edgeCacheMode java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property edgeCacheMode: Edge cache mode.
edgeCacheTtl java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable Property edgeCacheTtl: Edge cache expiration time in seconds.
edgeStatusCodeCacheTtl java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property edgeStatusCodeCacheTtl: Status code cache expiration time in seconds.
includeCookie java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property includeCookie: When generating the cache key, add the specified cookie names and their values.
includeHeader java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property includeHeader: When generating the cache key, add the specified header names and their values.
queryString java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property queryString: Query strings to be reserved or excluded.
queryStringMode java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property queryStringMode: The processing mode for query strings when generating the cache key.
rule java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property rule: Rule content, using conditional expressions to match user requests.
ruleEnable java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property ruleEnable: Rule switch.
ruleName java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property ruleName: Rule name.
sequence java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable Property sequence: Order of rule execution.
serveStale java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property serveStale: Serve stale cache.
siteVersion java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable Property siteVersion: The version number of the site configuration.
sortQueryStringForCache java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property sortQueryStringForCache: Query string sorting, disabled by default.
userDeviceType java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property userDeviceType: When generating the cache key, add the client device type.
userGeo java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property userGeo: When generating the cache key, add the client's geographic location.
userLanguage java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property userLanguage: When generating cache keys, include the client's language type.

scopeRequired

  • Type: com.aliyun.ros.cdk.core.Construct

idRequired

  • Type: java.lang.String

enableResourcePropertyConstraintOptional

  • Type: java.lang.Boolean

siteIdRequired

  • Type: java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable

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


additionalCacheablePortsOptional

  • Type: java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable

Property additionalCacheablePorts: Enable caching on specified ports.

Value range: 8880, 2052, 2082, 2086, 2095, 2053, 2083, 2087, 2096.


browserCacheModeOptional

  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Property browserCacheMode: Browser cache mode.

Possible values:

  • no_cacheno_cache: Do not cache.
  • follow_origin: Follow the origin server's cache policy.
  • override_origin: Override the origin server's cache policy.

browserCacheTtlOptional

  • Type: java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable

Property browserCacheTtl: Browser cache expiration time in seconds.


bypassCacheOptional

  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Property bypassCache: Set the bypass cache mode.

Possible values:

  • cache_all: Cache all requests.
  • bypass_all: Bypass cache for all requests.

cacheDeceptionArmorOptional

  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Property cacheDeceptionArmor: Cache deception protection.

Used to defend against web cache deception attacks, only the cache content that passes the validation will be cached. Value range:

  • on: Enabled.
  • off: Disabled.

cacheReserveEligibilityOptional

  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Property cacheReserveEligibility: Cache retention eligibility.

Used to control whether user requests bypass the cache retention node when returning to the origin. Possible values:

  • bypass_cache_reserve: Requests bypass cache retention.
  • eligible_for_cache_reserve: Eligible for cache retention.

checkPresenceCookieOptional

  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Property checkPresenceCookie: When generating the cache key, check if the cookie exists.

If it does, add the cookie name (case-insensitive) to the cache key. Multiple cookie names are supported, separated by spaces.


checkPresenceHeaderOptional

  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Property checkPresenceHeader: When generating the cache key, check if the header exists.

If it does, add the header name (case-insensitive) to the cache key. Multiple header names are supported, separated by spaces.


edgeCacheModeOptional

  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Property edgeCacheMode: Edge cache mode.

Possible values:

  • follow_origin: Follow the origin server's cache policy (if it exists), otherwise use the default cache policy.
  • no_cache: Do not cache.
  • override_origin: Override the origin server's cache policy.
  • follow_origin_bypass: Follow the origin server's cache policy (if it exists), otherwise do not cache.

edgeCacheTtlOptional

  • Type: java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable

Property edgeCacheTtl: Edge cache expiration time in seconds.


edgeStatusCodeCacheTtlOptional

  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Property edgeStatusCodeCacheTtl: Status code cache expiration time in seconds.

Multiple values are separated by commas, for example: 4xx=999999,5xx=999998


includeCookieOptional

  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Property includeCookie: When generating the cache key, add the specified cookie names and their values.

Multiple values are supported, separated by spaces.


includeHeaderOptional

  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Property includeHeader: When generating the cache key, add the specified header names and their values.

Multiple values are supported, separated by spaces.


queryStringOptional

  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Property queryString: Query strings to be reserved or excluded.

Multiple values are supported, separated by spaces.


queryStringModeOptional

  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Property queryStringMode: The processing mode for query strings when generating the cache key.

Possible values:

  • ignore_all: Ignore all.
  • exclude_query_string: Exclude specified query strings.
  • reserve_all: Default, reserve all.
  • include_query_string: Include specified query strings.

ruleOptional

  • Type: java.lang.String OR com.aliyun.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

  • Type: java.lang.String OR com.aliyun.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

  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Property ruleName: Rule name.

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


sequenceOptional

  • Type: java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable

Property sequence: Order of rule execution.

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


serveStaleOptional

  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Property serveStale: Serve stale cache.

When enabled, the node can still respond to user requests with expired cached files when the origin server is unavailable. Value range:

  • on: Enabled.
  • off: Disabled.

siteVersionOptional

  • Type: java.lang.Number OR com.aliyun.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.


sortQueryStringForCacheOptional

  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Property sortQueryStringForCache: Query string sorting, disabled by default.

Possible values:

  • on: Enable.
  • off: Disable.

userDeviceTypeOptional

  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Property userDeviceType: When generating the cache key, add the client device type.

Possible values:

  • on: Enable.
  • off: Disable.

userGeoOptional

  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Property userGeo: When generating the cache key, add the client's geographic location.

Possible values:

  • on: Enable.
  • off: Disable.

userLanguageOptional

  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Property userLanguage: When generating cache keys, include the client's language type.

Possible values:

  • on: Enable.
  • off: Disable.

Methods

Name Description
toString Returns a string representation of this construct.
synthesize Allows this construct to emit artifacts into the cloud assembly during synthesis.
addCondition No description.
addCount No description.
addDependency No description.
addResourceDesc No description.
applyRemovalPolicy No description.
fetchCondition No description.
fetchDependency No description.
fetchResourceDesc No description.
getAtt No description.
setMetadata No description.

toString

public java.lang.String toString()

Returns a string representation of this construct.

synthesize

public void synthesize(ISynthesisSession session)

Allows this construct to emit artifacts into the cloud assembly during synthesis.

This method is usually implemented by framework-level constructs such as Stack and Asset as they participate in synthesizing the cloud assembly.

sessionRequired

  • Type: com.aliyun.ros.cdk.core.ISynthesisSession

The synthesis session.


addCondition

public void addCondition(RosCondition condition)

conditionRequired

  • Type: com.aliyun.ros.cdk.core.RosCondition

addCount

public void addCount(java.lang.Number OR IResolvable count)

countRequired

  • Type: java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable

addDependency

public void addDependency(Resource resource)

resourceRequired

  • Type: com.aliyun.ros.cdk.core.Resource

addResourceDesc

public void addResourceDesc(java.lang.String desc)

descRequired

  • Type: java.lang.String

applyRemovalPolicy

public void applyRemovalPolicy(RemovalPolicy policy)

policyRequired

  • Type: com.aliyun.ros.cdk.core.RemovalPolicy

fetchCondition

public RosCondition fetchCondition()

fetchDependency

public java.util.List<java.lang.String> fetchDependency()

fetchResourceDesc

public java.lang.String fetchResourceDesc()

getAtt

public IResolvable getAtt(java.lang.String name)

nameRequired

  • Type: java.lang.String

setMetadata

public void setMetadata(java.lang.String key, java.lang.Object value)

keyRequired

  • Type: java.lang.String

valueRequired

  • Type: java.lang.Object

Static Functions

Name Description
isConstruct Return whether the given object is a Construct.

isConstruct

import com.aliyun.ros.cdk.esa.CacheRule;
CacheRule.isConstruct(java.lang.Object x)

Return whether the given object is a Construct.

xRequired

  • Type: java.lang.Object

Properties

Name Type Description
node com.aliyun.ros.cdk.core.ConstructNode The construct tree node associated with this construct.
env com.aliyun.ros.cdk.core.IResourceEnvironment The environment this resource belongs to.
ref java.lang.String No description.
stack com.aliyun.ros.cdk.core.Stack The stack in which this resource is defined.
resource com.aliyun.ros.cdk.core.RosResource No description.
attrAdditionalCacheablePorts java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Attribute AdditionalCacheablePorts: Enable caching on specified ports.
attrBrowserCacheMode java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Attribute BrowserCacheMode: Browser cache mode.
attrBrowserCacheTtl java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Attribute BrowserCacheTtl: Browser cache expiration time in seconds.
attrBypassCache java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Attribute BypassCache: Set the bypass cache mode.
attrCacheDeceptionArmor java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Attribute CacheDeceptionArmor: Cache deception protection.
attrCacheReserveEligibility java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Attribute CacheReserveEligibility: Cache retention eligibility.
attrCacheRuleId java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Attribute CacheRuleId: Cache Rule Id.
attrCheckPresenceCookie java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Attribute CheckPresenceCookie: When generating the cache key, check if the cookie exists.
attrCheckPresenceHeader java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Attribute CheckPresenceHeader: When generating the cache key, check if the header exists.
attrConfigType java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Attribute ConfigType: Configuration type, which can be used to query global or rule-based configurations.
attrEdgeCacheMode java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Attribute EdgeCacheMode: Edge cache mode.
attrEdgeCacheTtl java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Attribute EdgeCacheTtl: Edge cache expiration time in seconds.
attrEdgeStatusCodeCacheTtl java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Attribute EdgeStatusCodeCacheTtl: Status code cache expiration time in seconds.
attrIncludeCookie java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Attribute IncludeCookie: When generating the cache key, add the specified cookie names and their values.
attrIncludeHeader java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Attribute IncludeHeader: When generating the cache key, add the specified header names and their values.
attrQueryString java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Attribute QueryString: Query strings to be reserved or excluded.
attrQueryStringMode java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Attribute QueryStringMode: The processing mode for query strings when generating the cache key.
attrRule java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Attribute Rule: Rule content, using conditional expressions to match user requests.
attrRuleEnable java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Attribute RuleEnable: Rule switch.
attrRuleName java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Attribute RuleName: Rule name.
attrSequence java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Attribute Sequence: Order of rule execution.
attrServeStale java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Attribute ServeStale: Serve stale cache.
attrSiteVersion java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Attribute SiteVersion: The version number of the site configuration.
attrSortQueryStringForCache java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Attribute SortQueryStringForCache: Query string sorting, disabled by default.
attrUserDeviceType java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Attribute UserDeviceType: When generating the cache key, add the client device type.
attrUserGeo java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Attribute UserGeo: When generating the cache key, add the client's geographic location.
attrUserLanguage java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Attribute UserLanguage: When generating cache keys, include the client's language type.
props CacheRuleProps No description.

nodeRequired

public ConstructNode getNode();
  • Type: com.aliyun.ros.cdk.core.ConstructNode

The construct tree node associated with this construct.


envRequired

public IResourceEnvironment getEnv();
  • Type: com.aliyun.ros.cdk.core.IResourceEnvironment

The environment this resource belongs to.

For resources that are created and managed by the CDK (generally, those created by creating new class instances like Role, Bucket, etc.), this is always the same as the environment of the stack they belong to; however, for imported resources (those obtained from static methods like fromRoleArn, fromBucketName, etc.), that might be different than the stack they were imported into.


refRequired

public java.lang.String getRef();
  • Type: java.lang.String

stackRequired

public Stack getStack();
  • Type: com.aliyun.ros.cdk.core.Stack

The stack in which this resource is defined.


resourceOptional

public RosResource getResource();
  • Type: com.aliyun.ros.cdk.core.RosResource

attrAdditionalCacheablePortsRequired

public java.lang.Object getAttrAdditionalCacheablePorts();
  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Attribute AdditionalCacheablePorts: Enable caching on specified ports.


attrBrowserCacheModeRequired

public java.lang.Object getAttrBrowserCacheMode();
  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Attribute BrowserCacheMode: Browser cache mode.


attrBrowserCacheTtlRequired

public java.lang.Object getAttrBrowserCacheTtl();
  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Attribute BrowserCacheTtl: Browser cache expiration time in seconds.


attrBypassCacheRequired

public java.lang.Object getAttrBypassCache();
  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Attribute BypassCache: Set the bypass cache mode.


attrCacheDeceptionArmorRequired

public java.lang.Object getAttrCacheDeceptionArmor();
  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Attribute CacheDeceptionArmor: Cache deception protection.

Used to defend against web cache deception attacks, only the cache content that passes the validation will be cached.


attrCacheReserveEligibilityRequired

public java.lang.Object getAttrCacheReserveEligibility();
  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Attribute CacheReserveEligibility: Cache retention eligibility.

Used to control whether user requests bypass the cache retention node when returning to the origin.


attrCacheRuleIdRequired

public java.lang.Object getAttrCacheRuleId();
  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Attribute CacheRuleId: Cache Rule Id.


attrCheckPresenceCookieRequired

public java.lang.Object getAttrCheckPresenceCookie();
  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Attribute CheckPresenceCookie: When generating the cache key, check if the cookie exists.

If it does, add the cookie name (case-insensitive) to the cache key. Multiple cookie names are supported, separated by spaces.


attrCheckPresenceHeaderRequired

public java.lang.Object getAttrCheckPresenceHeader();
  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Attribute CheckPresenceHeader: When generating the cache key, check if the header exists.

If it does, add the header name (case-insensitive) to the cache key. Multiple header names are supported, separated by spaces.


attrConfigTypeRequired

public java.lang.Object getAttrConfigType();
  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Attribute ConfigType: Configuration type, which can be used to query global or rule-based configurations.


attrEdgeCacheModeRequired

public java.lang.Object getAttrEdgeCacheMode();
  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Attribute EdgeCacheMode: Edge cache mode.


attrEdgeCacheTtlRequired

public java.lang.Object getAttrEdgeCacheTtl();
  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Attribute EdgeCacheTtl: Edge cache expiration time in seconds.


attrEdgeStatusCodeCacheTtlRequired

public java.lang.Object getAttrEdgeStatusCodeCacheTtl();
  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Attribute EdgeStatusCodeCacheTtl: Status code cache expiration time in seconds.


attrIncludeCookieRequired

public java.lang.Object getAttrIncludeCookie();
  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Attribute IncludeCookie: When generating the cache key, add the specified cookie names and their values.

Multiple values are supported, separated by spaces.


attrIncludeHeaderRequired

public java.lang.Object getAttrIncludeHeader();
  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Attribute IncludeHeader: When generating the cache key, add the specified header names and their values.

Multiple values are supported, separated by spaces.


attrQueryStringRequired

public java.lang.Object getAttrQueryString();
  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Attribute QueryString: Query strings to be reserved or excluded.

Multiple values are supported, separated by spaces.


attrQueryStringModeRequired

public java.lang.Object getAttrQueryStringMode();
  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Attribute QueryStringMode: The processing mode for query strings when generating the cache key.


attrRuleRequired

public java.lang.Object getAttrRule();
  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

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

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


attrRuleEnableRequired

public java.lang.Object getAttrRuleEnable();
  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Attribute RuleEnable: Rule switch.

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


attrRuleNameRequired

public java.lang.Object getAttrRuleName();
  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Attribute RuleName: Rule name.

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


attrSequenceRequired

public java.lang.Object getAttrSequence();
  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Attribute Sequence: Order of rule execution.

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


attrServeStaleRequired

public java.lang.Object getAttrServeStale();
  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Attribute ServeStale: Serve stale cache.

When enabled, the node can still respond to user requests with expired cached files when the origin server is unavailable.


attrSiteVersionRequired

public java.lang.Object getAttrSiteVersion();
  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Attribute 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.


attrSortQueryStringForCacheRequired

public java.lang.Object getAttrSortQueryStringForCache();
  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Attribute SortQueryStringForCache: Query string sorting, disabled by default.


attrUserDeviceTypeRequired

public java.lang.Object getAttrUserDeviceType();
  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Attribute UserDeviceType: When generating the cache key, add the client device type.


attrUserGeoRequired

public java.lang.Object getAttrUserGeo();
  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Attribute UserGeo: When generating the cache key, add the client's geographic location.


attrUserLanguageRequired

public java.lang.Object getAttrUserLanguage();
  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Attribute UserLanguage: When generating cache keys, include the client's language type.


propsRequired

public CacheRuleProps getProps();