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 of the domain name. |
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 health check URL. |
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: The acceleration region. |
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 of the domain name.
Valid values:
- web: images and small files.
- download: large files.
- video: on-demand video and audio streaming.
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 health check URL.
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: The acceleration region.
Valid values:
- domestic (default): Chinese mainland only.
- overseas: global (excluding the Chinese mainland).
- global: global.
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]
- Type: 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.