Skip to content

DomainProps

Properties for defining a Domain.

See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-cdn-domain

Initializer

import { DomainProps } from '@alicloud/ros-cdk-cdn'
const domainProps: DomainProps = { ... }

Properties

Name Type Description
cdnType string | @alicloud/ros-cdk-core.IResolvable Property cdnType: The business type of the domain name.
domainName string | @alicloud/ros-cdk-core.IResolvable Property domainName: The CDN domain name.
checkUrl string | @alicloud/ros-cdk-core.IResolvable Property checkUrl: The health check URL.
originServers @alicloud/ros-cdk-core.IResolvable | @alicloud/ros-cdk-core.IResolvable | OriginServersProperty[] Property originServers: The list of origin URLs.
resourceGroupId string | @alicloud/ros-cdk-core.IResolvable Property resourceGroupId: The ID of the resource group.
scope string | @alicloud/ros-cdk-core.IResolvable Property scope: The acceleration region.
sources string | @alicloud/ros-cdk-core.IResolvable Property sources: The list of origin URLs.
tags TagsProperty[] Property tags: Tags to attach to instance.
topLevelDomain string | @alicloud/ros-cdk-core.IResolvable Property topLevelDomain: The top-level domain, which can only be configured by users on the whitelist.

cdnTypeRequired

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

Property cdnType: The business type of the domain name.

Valid values: - web: images and small files. - download: large files. - video: on-demand video and audio streaming.


domainNameRequired

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

Property domainName: The CDN domain name.

Wildcard domain names that start with periods (.) are supported. For example, .a.com.


checkUrlOptional

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

Property checkUrl: The health check URL.


originServersOptional

public readonly originServers: IResolvable | IResolvable | OriginServersProperty[];
  • Type: @alicloud/ros-cdk-core.IResolvable | @alicloud/ros-cdk-core.IResolvable | OriginServersProperty[]

Property originServers: The list of origin URLs.

It has the same function as Sources, but has a higher priority than it.


resourceGroupIdOptional

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

Property resourceGroupId: The ID of the resource group.

If this is left blank, the system automatically fills in the ID of the default resource group.


scopeOptional

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

Property scope: The acceleration region.

Valid values: - domestic (default): Chinese mainland only. - overseas: global (excluding the Chinese mainland). - global: global.


sourcesOptional

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

Property sources: The list of origin URLs.


tagsOptional

public readonly tags: TagsProperty[];

Property tags: Tags to attach to instance.

Max support 20 tags to add during create instance. Each tag with two properties Key and Value, and Key is required.


topLevelDomainOptional

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

Property topLevelDomain: The top-level domain, which can only be configured by users on the whitelist.