Skip to content

IOriginRule

Represents a OriginRule.

Properties

Name Type Description
node ros_cdk_core.ConstructNode The construct tree node for this construct.
env ros_cdk_core.IResourceEnvironment The environment this resource belongs to.
stack ros_cdk_core.Stack The stack in which this resource is defined.
attr_config_id typing.Union[str, ros_cdk_core.IResolvable] Attribute ConfigId: Back-to-source rule configuration ID.
attr_config_type typing.Union[str, ros_cdk_core.IResolvable] Attribute ConfigType: The configuration type.
attr_dns_record typing.Union[str, ros_cdk_core.IResolvable] Attribute DnsRecord: Overwrite the DNS resolution record of the origin request.
attr_follow302_enable typing.Union[str, ros_cdk_core.IResolvable] Attribute Follow302Enable: Return Source 302 follow switch.
attr_follow302_max_tries typing.Union[str, ros_cdk_core.IResolvable] Attribute Follow302MaxTries: 302 follows the upper limit of the number of times, with a value range of [1-5].
attr_follow302_retain_args typing.Union[str, ros_cdk_core.IResolvable] Attribute Follow302RetainArgs: Retain the original request parameter switch.
attr_follow302_retain_header typing.Union[str, ros_cdk_core.IResolvable] Attribute Follow302RetainHeader: Retain the original request header switch.
attr_follow302_target_host typing.Union[str, ros_cdk_core.IResolvable] Attribute Follow302TargetHost: Modify the source host after 302.
attr_origin_host typing.Union[str, ros_cdk_core.IResolvable] Attribute OriginHost: The HOST carried in the back-to-origin request.
attr_origin_http_port typing.Union[str, ros_cdk_core.IResolvable] Attribute OriginHttpPort: The port of the origin station accessed when the HTTP protocol is used to return to the origin.
attr_origin_https_port typing.Union[str, ros_cdk_core.IResolvable] Attribute OriginHttpsPort: The port of the origin station accessed when the HTTPS protocol is used to return to the origin.
attr_origin_mtls typing.Union[str, ros_cdk_core.IResolvable] Attribute OriginMtls: The mtls switch.
attr_origin_read_timeout typing.Union[str, ros_cdk_core.IResolvable] Attribute OriginReadTimeout: Read timeout interval of the source station (s).
attr_origin_scheme typing.Union[str, ros_cdk_core.IResolvable] Attribute OriginScheme: The protocol used by the back-to-origin request.
attr_origin_sni typing.Union[str, ros_cdk_core.IResolvable] Attribute OriginSni: SNI carried in the back-to-origin request.
attr_origin_verify typing.Union[str, ros_cdk_core.IResolvable] Attribute OriginVerify: Source station certificate verification switch.
attr_range typing.Union[str, ros_cdk_core.IResolvable] Attribute Range: Use the range sharding method to download the file from the source.
attr_range_chunk_size typing.Union[str, ros_cdk_core.IResolvable] Attribute RangeChunkSize: range shard size.
attr_rule typing.Union[str, ros_cdk_core.IResolvable] Attribute Rule: Rule content, using conditional expressions to match user requests.
attr_rule_enable typing.Union[str, ros_cdk_core.IResolvable] Attribute RuleEnable: Rule switch.
attr_rule_name typing.Union[str, ros_cdk_core.IResolvable] Attribute RuleName: Rule name.
attr_sequence typing.Union[str, ros_cdk_core.IResolvable] Attribute Sequence: Order of rule execution.
attr_site_version typing.Union[str, ros_cdk_core.IResolvable] Attribute SiteVersion: The version number of the site configuration.
props OriginRuleProps No description.

nodeRequired

node: ConstructNode
  • Type: ros_cdk_core.ConstructNode

The construct tree node for this construct.


envRequired

env: IResourceEnvironment
  • Type: 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

stack: Stack
  • Type: ros_cdk_core.Stack

The stack in which this resource is defined.


attr_config_idRequired

attr_config_id: typing.Union[str, IResolvable]
  • Type: typing.Union[str, ros_cdk_core.IResolvable]

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


attr_config_typeRequired

attr_config_type: typing.Union[str, IResolvable]
  • Type: typing.Union[str, ros_cdk_core.IResolvable]

Attribute ConfigType: The configuration type.

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


attr_dns_recordRequired

attr_dns_record: typing.Union[str, IResolvable]
  • Type: typing.Union[str, ros_cdk_core.IResolvable]

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


attr_follow302_enableRequired

attr_follow302_enable: typing.Union[str, IResolvable]
  • Type: typing.Union[str, ros_cdk_core.IResolvable]

Attribute Follow302Enable: Return Source 302 follow switch.


attr_follow302_max_triesRequired

attr_follow302_max_tries: typing.Union[str, IResolvable]
  • Type: typing.Union[str, ros_cdk_core.IResolvable]

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


attr_follow302_retain_argsRequired

attr_follow302_retain_args: typing.Union[str, IResolvable]
  • Type: typing.Union[str, ros_cdk_core.IResolvable]

Attribute Follow302RetainArgs: Retain the original request parameter switch.


attr_follow302_retain_headerRequired

attr_follow302_retain_header: typing.Union[str, IResolvable]
  • Type: typing.Union[str, ros_cdk_core.IResolvable]

Attribute Follow302RetainHeader: Retain the original request header switch.


attr_follow302_target_hostRequired

attr_follow302_target_host: typing.Union[str, IResolvable]
  • Type: typing.Union[str, ros_cdk_core.IResolvable]

Attribute Follow302TargetHost: Modify the source host after 302.


attr_origin_hostRequired

attr_origin_host: typing.Union[str, IResolvable]
  • Type: typing.Union[str, ros_cdk_core.IResolvable]

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


attr_origin_http_portRequired

attr_origin_http_port: typing.Union[str, IResolvable]
  • Type: typing.Union[str, ros_cdk_core.IResolvable]

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


attr_origin_https_portRequired

attr_origin_https_port: typing.Union[str, IResolvable]
  • Type: typing.Union[str, ros_cdk_core.IResolvable]

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


attr_origin_mtlsRequired

attr_origin_mtls: typing.Union[str, IResolvable]
  • Type: typing.Union[str, ros_cdk_core.IResolvable]

Attribute OriginMtls: The mtls switch.


attr_origin_read_timeoutRequired

attr_origin_read_timeout: typing.Union[str, IResolvable]
  • Type: typing.Union[str, ros_cdk_core.IResolvable]

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


attr_origin_schemeRequired

attr_origin_scheme: typing.Union[str, IResolvable]
  • Type: typing.Union[str, ros_cdk_core.IResolvable]

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


attr_origin_sniRequired

attr_origin_sni: typing.Union[str, IResolvable]
  • Type: typing.Union[str, ros_cdk_core.IResolvable]

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


attr_origin_verifyRequired

attr_origin_verify: typing.Union[str, IResolvable]
  • Type: typing.Union[str, ros_cdk_core.IResolvable]

Attribute OriginVerify: Source station certificate verification switch.


attr_rangeRequired

attr_range: typing.Union[str, IResolvable]
  • Type: typing.Union[str, ros_cdk_core.IResolvable]

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


attr_range_chunk_sizeRequired

attr_range_chunk_size: typing.Union[str, IResolvable]
  • Type: typing.Union[str, ros_cdk_core.IResolvable]

Attribute RangeChunkSize: range shard size.


attr_ruleRequired

attr_rule: typing.Union[str, IResolvable]
  • Type: typing.Union[str, 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.


attr_rule_enableRequired

attr_rule_enable: typing.Union[str, IResolvable]
  • Type: typing.Union[str, ros_cdk_core.IResolvable]

Attribute RuleEnable: Rule switch.

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


attr_rule_nameRequired

attr_rule_name: typing.Union[str, IResolvable]
  • Type: typing.Union[str, ros_cdk_core.IResolvable]

Attribute RuleName: Rule name.

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


attr_sequenceRequired

attr_sequence: typing.Union[str, IResolvable]
  • Type: typing.Union[str, ros_cdk_core.IResolvable]

Attribute Sequence: Order of rule execution.

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


attr_site_versionRequired

attr_site_version: typing.Union[str, IResolvable]
  • Type: typing.Union[str, 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

props: OriginRuleProps