Skip to content

OriginRule

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

Initializers

import { OriginRule } from '@alicloud/ros-cdk-esa'
new OriginRule(scope: Construct, id: string, props: OriginRuleProps, enableResourcePropertyConstraint?: boolean)
Name Type Description
scope @alicloud/ros-cdk-core.Construct No description.
id string No description.
props OriginRuleProps No description.
enableResourcePropertyConstraint boolean No description.

scopeRequired

  • Type: @alicloud/ros-cdk-core.Construct

idRequired

  • Type: string

propsRequired


enableResourcePropertyConstraintOptional

  • Type: boolean

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 toString(): string

Returns a string representation of this construct.

synthesize

public synthesize(session: ISynthesisSession): void

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: @alicloud/ros-cdk-core.ISynthesisSession

The synthesis session.


addCondition

public addCondition(condition: RosCondition): void

conditionRequired

  • Type: @alicloud/ros-cdk-core.RosCondition

addCount

public addCount(count: number | IResolvable): void

countRequired

  • Type: number | @alicloud/ros-cdk-core.IResolvable

addDependency

public addDependency(resource: Resource): void

resourceRequired

  • Type: @alicloud/ros-cdk-core.Resource

addResourceDesc

public addResourceDesc(desc: string): void

descRequired

  • Type: string

applyRemovalPolicy

public applyRemovalPolicy(policy: RemovalPolicy): void

policyRequired

  • Type: @alicloud/ros-cdk-core.RemovalPolicy

fetchCondition

public fetchCondition(): RosCondition

fetchDependency

public fetchDependency(): string[]

fetchResourceDesc

public fetchResourceDesc(): string

getAtt

public getAtt(name: string): IResolvable

nameRequired

  • Type: string

setMetadata

public setMetadata(key: string, value: any): void

keyRequired

  • Type: string

valueRequired

  • Type: any

Static Functions

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

isConstruct

import { OriginRule } from '@alicloud/ros-cdk-esa'
OriginRule.isConstruct(x: any)

Return whether the given object is a Construct.

xRequired

  • Type: any

Properties

Name Type Description
node @alicloud/ros-cdk-core.ConstructNode The construct tree node associated with this construct.
env @alicloud/ros-cdk-core.IResourceEnvironment The environment this resource belongs to.
ref string No description.
stack @alicloud/ros-cdk-core.Stack The stack in which this resource is defined.
resource @alicloud/ros-cdk-core.RosResource No description.
attrConfigId string | @alicloud/ros-cdk-core.IResolvable Attribute ConfigId: Back-to-source rule configuration ID.
attrConfigType string | @alicloud/ros-cdk-core.IResolvable Attribute ConfigType: The configuration type.
attrDnsRecord string | @alicloud/ros-cdk-core.IResolvable Attribute DnsRecord: Overwrite the DNS resolution record of the origin request.
attrFollow302Enable string | @alicloud/ros-cdk-core.IResolvable Attribute Follow302Enable: Return Source 302 follow switch.
attrFollow302MaxTries string | @alicloud/ros-cdk-core.IResolvable Attribute Follow302MaxTries: 302 follows the upper limit of the number of times, with a value range of [1-5].
attrFollow302RetainArgs string | @alicloud/ros-cdk-core.IResolvable Attribute Follow302RetainArgs: Retain the original request parameter switch.
attrFollow302RetainHeader string | @alicloud/ros-cdk-core.IResolvable Attribute Follow302RetainHeader: Retain the original request header switch.
attrFollow302TargetHost string | @alicloud/ros-cdk-core.IResolvable Attribute Follow302TargetHost: Modify the source host after 302.
attrOriginHost string | @alicloud/ros-cdk-core.IResolvable Attribute OriginHost: The HOST carried in the back-to-origin request.
attrOriginHttpPort string | @alicloud/ros-cdk-core.IResolvable Attribute OriginHttpPort: The port of the origin station accessed when the HTTP protocol is used to return to the origin.
attrOriginHttpsPort string | @alicloud/ros-cdk-core.IResolvable Attribute OriginHttpsPort: The port of the origin station accessed when the HTTPS protocol is used to return to the origin.
attrOriginMtls string | @alicloud/ros-cdk-core.IResolvable Attribute OriginMtls: The mtls switch.
attrOriginReadTimeout string | @alicloud/ros-cdk-core.IResolvable Attribute OriginReadTimeout: Read timeout interval of the source station (s).
attrOriginScheme string | @alicloud/ros-cdk-core.IResolvable Attribute OriginScheme: The protocol used by the back-to-origin request.
attrOriginSni string | @alicloud/ros-cdk-core.IResolvable Attribute OriginSni: SNI carried in the back-to-origin request.
attrOriginVerify string | @alicloud/ros-cdk-core.IResolvable Attribute OriginVerify: Source station certificate verification switch.
attrRange string | @alicloud/ros-cdk-core.IResolvable Attribute Range: Use the range sharding method to download the file from the source.
attrRangeChunkSize string | @alicloud/ros-cdk-core.IResolvable Attribute RangeChunkSize: range shard size.
attrRule string | @alicloud/ros-cdk-core.IResolvable Attribute Rule: Rule content, using conditional expressions to match user requests.
attrRuleEnable string | @alicloud/ros-cdk-core.IResolvable Attribute RuleEnable: Rule switch.
attrRuleName string | @alicloud/ros-cdk-core.IResolvable Attribute RuleName: Rule name.
attrSequence string | @alicloud/ros-cdk-core.IResolvable Attribute Sequence: Order of rule execution.
attrSiteVersion string | @alicloud/ros-cdk-core.IResolvable Attribute SiteVersion: The version number of the site configuration.
props OriginRuleProps No description.

nodeRequired

public readonly node: ConstructNode;
  • Type: @alicloud/ros-cdk-core.ConstructNode

The construct tree node associated with this construct.


envRequired

public readonly env: IResourceEnvironment;
  • Type: @alicloud/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 readonly ref: string;
  • Type: string

stackRequired

public readonly stack: Stack;
  • Type: @alicloud/ros-cdk-core.Stack

The stack in which this resource is defined.


resourceOptional

public readonly resource: RosResource;
  • Type: @alicloud/ros-cdk-core.RosResource

attrConfigIdRequired

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

Attribute ConfigId: Back-to-source rule configuration ID.


attrConfigTypeRequired

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

Attribute ConfigType: The configuration type.

You can use this parameter to check the global configuration or rule configuration.


attrDnsRecordRequired

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

Attribute DnsRecord: Overwrite the DNS resolution record of the origin request.


attrFollow302EnableRequired

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

Attribute Follow302Enable: Return Source 302 follow switch.


attrFollow302MaxTriesRequired

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

Attribute Follow302MaxTries: 302 follows the upper limit of the number of times, with a value range of [1-5].


attrFollow302RetainArgsRequired

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

Attribute Follow302RetainArgs: Retain the original request parameter switch.


attrFollow302RetainHeaderRequired

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

Attribute Follow302RetainHeader: Retain the original request header switch.


attrFollow302TargetHostRequired

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

Attribute Follow302TargetHost: Modify the source host after 302.


attrOriginHostRequired

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

Attribute OriginHost: The HOST carried in the back-to-origin request.


attrOriginHttpPortRequired

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

Attribute OriginHttpPort: The port of the origin station accessed when the HTTP protocol is used to return to the origin.


attrOriginHttpsPortRequired

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

Attribute OriginHttpsPort: The port of the origin station accessed when the HTTPS protocol is used to return to the origin.


attrOriginMtlsRequired

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

Attribute OriginMtls: The mtls switch.


attrOriginReadTimeoutRequired

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

Attribute OriginReadTimeout: Read timeout interval of the source station (s).


attrOriginSchemeRequired

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

Attribute OriginScheme: The protocol used by the back-to-origin request.


attrOriginSniRequired

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

Attribute OriginSni: SNI carried in the back-to-origin request.


attrOriginVerifyRequired

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

Attribute OriginVerify: Source station certificate verification switch.


attrRangeRequired

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

Attribute Range: Use the range sharding method to download the file from the source.


attrRangeChunkSizeRequired

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

Attribute RangeChunkSize: range shard size.


attrRuleRequired

public readonly attrRule: string | IResolvable;
  • Type: string | @alicloud/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 readonly attrRuleEnable: string | IResolvable;
  • Type: string | @alicloud/ros-cdk-core.IResolvable

Attribute RuleEnable: Rule switch.

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


attrRuleNameRequired

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

Attribute RuleName: Rule name.

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


attrSequenceRequired

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

Attribute Sequence: Order of rule execution.

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


attrSiteVersionRequired

public readonly attrSiteVersion: string | IResolvable;
  • Type: string | @alicloud/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.


propsRequired

public readonly props: OriginRuleProps;