Skip to content

ZoneRecordProps

Properties for defining a ZoneRecord.

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

Initializer

import ros_cdk_pvtz
ros_cdk_pvtz.ZoneRecordProps(
  rr: typing.Union[str, IResolvable],
  status: typing.Union[str, IResolvable],
  type: typing.Union[str, IResolvable],
  value: typing.Union[str, IResolvable],
  zone_id: typing.Union[str, IResolvable],
  priority: typing.Union[typing.Union[int, float], IResolvable] = None,
  ttl: typing.Union[typing.Union[int, float], IResolvable] = None
)

Properties

Name Type Description
rr typing.Union[str, ros_cdk_core.IResolvable] Property rr: The host record.
status typing.Union[str, ros_cdk_core.IResolvable] Property status: The status of the DNS record.
type typing.Union[str, ros_cdk_core.IResolvable] Property type: The type of the DNS record.
value typing.Union[str, ros_cdk_core.IResolvable] Property value: Record value.
zone_id typing.Union[str, ros_cdk_core.IResolvable] Property zoneId: Zone Id.
priority typing.Union[typing.Union[int, float], ros_cdk_core.IResolvable] Property priority: The priority of the MX record.
ttl typing.Union[typing.Union[int, float], ros_cdk_core.IResolvable] Property ttl: The time to live (TTL).

rrRequired

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

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

Property status: The status of the DNS record.

Valid values:

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

typeRequired

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

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

Property value: Record value.


zone_idRequired

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

Property zoneId: Zone Id.


priorityOptional

priority: typing.Union[typing.Union[int, float], IResolvable]
  • Type: typing.Union[typing.Union[int, float], ros_cdk_core.IResolvable]

Property priority: The priority of the MX record.

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


ttlOptional

ttl: typing.Union[typing.Union[int, float], IResolvable]
  • Type: typing.Union[typing.Union[int, float], 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.