ZoneProps
Properties for defining a Zone.
See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-pvtz-zone
Initializer
import ros_cdk_pvtz
ros_cdk_pvtz.ZoneProps(
zone_name: typing.Union[str, IResolvable],
dns_group: typing.Union[str, IResolvable] = None,
ignored_stack_tag_keys: typing.Union[IResolvable, typing.List[typing.Union[str, IResolvable]]] = None,
proxy_pattern: typing.Union[str, IResolvable] = None,
remark: typing.Union[str, IResolvable] = None,
resource_group_id: typing.Union[str, IResolvable] = None,
tags: typing.List[TagsProperty] = None
)
Properties
| Name | Type | Description |
|---|---|---|
zone_name | typing.Union[str, ros_cdk_core.IResolvable] | Property zoneName: Zone name. |
dns_group | typing.Union[str, ros_cdk_core.IResolvable] | Property dnsGroup: The location of the built-in authoritative zone. |
ignored_stack_tag_keys | typing.Union[ros_cdk_core.IResolvable, typing.List[typing.Union[str, ros_cdk_core.IResolvable]]] | Property ignoredStackTagKeys: Stack tag keys to ignore. |
proxy_pattern | typing.Union[str, ros_cdk_core.IResolvable] | Property proxyPattern: Specifies whether to enable subdomain recursive proxy. |
remark | typing.Union[str, ros_cdk_core.IResolvable] | Property remark: 50 characters at most. |
resource_group_id | typing.Union[str, ros_cdk_core.IResolvable] | Property resourceGroupId: Resource group id. |
tags | typing.List[TagsProperty] | Property tags: Tags to attach to instance. |
zone_nameRequired
zone_name: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property zoneName: Zone name.
dns_groupOptional
dns_group: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property dnsGroup: The location of the built-in authoritative zone.
Valid values:
- NORMAL_ZONE: Standard zone. DNS responses are cached. If a cache miss occurs, the query is sent to the built-in authoritative standard zone. The time to live (TTL) value affects the time when a DNS record change takes effect. You cannot use custom DNS lines or weighted round-robin.
- FAST_ZONE: Accelerated zone (recommended). DNS queries are directly responded to with the lowest latency. DNS record changes take effect in real time. You can use custom DNS lines and weighted round-robin. Default value: NORMAL_ZONE.
The built-in authoritative accelerated zone is located before the cache module. DNS responses are not cached. This may increase the number of DNS queries and your costs. Starting from April 30, 2025 (UTC+8), when new users activate Cloud DNS PrivateZone, added zones are set as accelerated zones by default.
ignored_stack_tag_keysOptional
ignored_stack_tag_keys: typing.Union[IResolvable, typing.List[typing.Union[str, IResolvable]]]
- Type: typing.Union[ros_cdk_core.IResolvable, typing.List[typing.Union[str, ros_cdk_core.IResolvable]]]
Property ignoredStackTagKeys: Stack tag keys to ignore.
proxy_patternOptional
proxy_pattern: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property proxyPattern: Specifies whether to enable subdomain recursive proxy.
Valid values:
- ZONE: Disables the feature. If a DNS query for a subdomain that does not exist under the current domain name is received, an NXDOMAIN error is returned.
- RECORD: Enables the feature. If a DNS query for a subdomain that does not exist under the current domain name is received, the query is processed by the forwarding and recursion modules in sequence. The final result is used to respond to the DNS query. Default value: ZONE.
remarkOptional
remark: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property remark: 50 characters at most.
It can only contain numbers, Chinese, English and special characters: "_-,.,。".
resource_group_idOptional
resource_group_id: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property resourceGroupId: Resource group id.
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.