Skip to content

DomainProps

Properties for defining a Domain.

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

Initializer

import ros_cdk_cdn
ros_cdk_cdn.DomainProps(
  cdn_type: typing.Union[str, IResolvable],
  domain_name: typing.Union[str, IResolvable],
  check_url: typing.Union[str, IResolvable] = None,
  origin_servers: typing.Union[IResolvable, typing.List[typing.Union[IResolvable, OriginServersProperty]]] = None,
  resource_group_id: typing.Union[str, IResolvable] = None,
  scope: typing.Union[str, IResolvable] = None,
  sources: typing.Union[str, IResolvable] = None,
  tags: typing.List[TagsProperty] = None,
  top_level_domain: typing.Union[str, IResolvable] = None
)

Properties

Name Type Description
cdn_type typing.Union[str, ros_cdk_core.IResolvable] Property cdnType: The business type.
domain_name typing.Union[str, ros_cdk_core.IResolvable] Property domainName: The CDN domain name.
check_url typing.Union[str, ros_cdk_core.IResolvable] Property checkUrl: The validation of the origin.
origin_servers typing.Union[ros_cdk_core.IResolvable, typing.List[typing.Union[ros_cdk_core.IResolvable, OriginServersProperty]]] Property originServers: The list of origin URLs.
resource_group_id typing.Union[str, ros_cdk_core.IResolvable] Property resourceGroupId: The ID of the resource group.
scope typing.Union[str, ros_cdk_core.IResolvable] Property scope: Valid values: domestic, overseas, and global.
sources typing.Union[str, ros_cdk_core.IResolvable] Property sources: The list of origin URLs.
tags typing.List[TagsProperty] Property tags: Tags to attach to instance.
top_level_domain typing.Union[str, ros_cdk_core.IResolvable] Property topLevelDomain: The top-level domain, which can only be configured by users on the whitelist.

cdn_typeRequired

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

Property cdnType: The business type.

Valid values: web, download, video, livestream, and httpsdelivery. web: acceleration of images and small files download. download: acceleration of large file downloads. video: live streaming acceleration. httpsdelivery: SSL acceleration for HTTPS.


domain_nameRequired

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

Property domainName: The CDN domain name.

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


check_urlOptional

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

Property checkUrl: The validation of the origin.


origin_serversOptional

origin_servers: typing.Union[IResolvable, typing.List[typing.Union[IResolvable, OriginServersProperty]]]
  • Type: typing.Union[ros_cdk_core.IResolvable, typing.List[typing.Union[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.


resource_group_idOptional

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

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

Property scope: Valid values: domestic, overseas, and global.

Default value: domestic. The setting is supported for users outside mainland China, users in mainland China of level 3 or above.


sourcesOptional

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

Property sources: The list of origin URLs.


tagsOptional

tags: typing.List[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.


top_level_domainOptional

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

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