ICacheRule
-
Extends: com.aliyun.ros.cdk.core.IResource
-
Implemented By: CacheRule, ICacheRule
Represents a CacheRule.
Properties
| Name | Type | Description |
|---|---|---|
node | com.aliyun.ros.cdk.core.ConstructNode | The construct tree node for this construct. |
env | com.aliyun.ros.cdk.core.IResourceEnvironment | The environment this resource belongs to. |
stack | com.aliyun.ros.cdk.core.Stack | The stack in which this resource is defined. |
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 for 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.
stackRequired
public Stack getStack();
- Type: com.aliyun.ros.cdk.core.Stack
The stack in which this resource is defined.
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();
- Type: CacheRuleProps