Skip to content

ZoneProps

Properties for defining a Zone.

See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-pvtz-zone

Initializer

import com.aliyun.ros.cdk.pvtz.ZoneProps;
ZoneProps.builder()
    .zoneName(java.lang.String)
    .zoneName(IResolvable)
//  .dnsGroup(java.lang.String)
//  .dnsGroup(IResolvable)
//  .ignoredStackTagKeys(IResolvable)
//  .ignoredStackTagKeys(java.util.List<java.lang.String)
//  .ignoredStackTagKeys(IResolvable>)
//  .proxyPattern(java.lang.String)
//  .proxyPattern(IResolvable)
//  .remark(java.lang.String)
//  .remark(IResolvable)
//  .resourceGroupId(java.lang.String)
//  .resourceGroupId(IResolvable)
//  .tags(java.util.List<TagsProperty>)
    .build();

Properties

Name Type Description
zoneName java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property zoneName: Zone name.
dnsGroup java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property dnsGroup: The location of the built-in authoritative zone.
ignoredStackTagKeys com.aliyun.ros.cdk.core.IResolvable OR java.util.List Property ignoredStackTagKeys: Stack tag keys to ignore.
proxyPattern java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property proxyPattern: Specifies whether to enable subdomain recursive proxy.
remark java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property remark: 50 characters at most.
resourceGroupId java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property resourceGroupId: Resource group id.
tags java.util.List<TagsProperty> Property tags: Tags to attach to instance.

zoneNameRequired

public java.lang.Object getZoneName();
  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Property zoneName: Zone name.


dnsGroupOptional

public java.lang.Object getDnsGroup();
  • Type: java.lang.String OR com.aliyun.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.


ignoredStackTagKeysOptional

public java.lang.Object getIgnoredStackTagKeys();
  • Type: com.aliyun.ros.cdk.core.IResolvable OR java.util.List

Property ignoredStackTagKeys: Stack tag keys to ignore.


proxyPatternOptional

public java.lang.Object getProxyPattern();
  • Type: java.lang.String OR com.aliyun.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

public java.lang.Object getRemark();
  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Property remark: 50 characters at most.

It can only contain numbers, Chinese, English and special characters: "_-,.,。".


resourceGroupIdOptional

public java.lang.Object getResourceGroupId();
  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Property resourceGroupId: Resource group id.


tagsOptional

public java.util.List<TagsProperty> getTags();

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.