Skip to content

ZoneRecordProps

Properties for defining a ZoneRecord.

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

Initializer

import com.aliyun.ros.cdk.pvtz.ZoneRecordProps;
ZoneRecordProps.builder()
    .rr(java.lang.String)
    .rr(IResolvable)
    .status(java.lang.String)
    .status(IResolvable)
    .type(java.lang.String)
    .type(IResolvable)
    .value(java.lang.String)
    .value(IResolvable)
    .zoneId(java.lang.String)
    .zoneId(IResolvable)
//  .priority(java.lang.Number)
//  .priority(IResolvable)
//  .ttl(java.lang.Number)
//  .ttl(IResolvable)
    .build();

Properties

Name Type Description
rr java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property rr: The host record.
status java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property status: The status of the DNS record.
type java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property type: The type of the DNS record.
value java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property value: Record value.
zoneId java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property zoneId: Zone Id.
priority java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable Property priority: The priority of the MX record.
ttl java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable Property ttl: The time to live (TTL).

rrRequired

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

Property rr: The host record.

A host record is the prefix of a domain name. Common host records include www, @, * (for wildcard DNS), and mail (for mailboxes). For example, to resolve @.example.com, set the host record to "@", not an empty string.


statusRequired

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

Property status: The status of the DNS record.

Valid values:

  • ENABLE: Enables DNS resolution.
  • DISABLE: Pauses DNS resolution.

typeRequired

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

Property type: The type of the DNS record.

The following types are supported:

  • A: Maps a domain name to an IPv4 address in dotted decimal notation.
  • AAAA: Maps a domain name to an IPv6 address.
  • CNAME: Maps a domain name to another domain name.
  • TXT: A text record. The text can be up to 255 characters in length. TXT records are often used for Sender Policy Framework (SPF) records to prevent spam.
  • MX: Maps a domain name to the domain name of a mail server.
  • PTR: Maps an IP address to a domain name.
  • SRV: Specifies the server for a specific service. The format is: Priority Weight Port Target. Separate each value with a space.

Before adding a PTR record, configure a reverse lookup zone. For more information, see Reverse DNS lookups and PTR records.


valueRequired

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

Property value: Record value.


zoneIdRequired

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

Property zoneId: Zone Id.


priorityOptional

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

Property priority: The priority of the MX record.

A smaller value indicates a higher priority. Valid values: [1, 99].


ttlOptional

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

Property ttl: The time to live (TTL).

The unit is seconds (s). Valid values are 5, 30, 60, 3600 (1 hour), 43200 (12 hours), and 86400 (1 day). The default value is 60.