RecordArgs

data class RecordArgs constructor(val comment: Output<String>? = null, val content: Output<String>? = null, val data: Output<RecordDataArgs>? = null, val name: Output<String>? = null, val priority: Output<Double>? = null, val proxied: Output<Boolean>? = null, val settings: Output<RecordSettingsArgs>? = null, val tags: Output<List<String>>? = null, val ttl: Output<Double>? = null, val type: Output<String>? = null, val zoneId: Output<String>? = null) : ConvertibleToJava<RecordArgs>

Example Usage

resources:
exampleDnsRecord:
type: cloudflare:DnsRecord
name: example_dns_record
properties:
zoneId: 023e105f4ecef8ad9ca31a8372d0c353
comment: Domain verification record
content: 198.51.100.4
name: example.com
proxied: true
settings:
ipv4_only: true
ipv6_only: true
tags:
- owner:dns-team
ttl: 3600
type: A

Import

$ pulumi import cloudflare:index/record:Record example '<zone_id>/<dns_record_id>'

Constructors

Link copied to clipboard
constructor(comment: Output<String>? = null, content: Output<String>? = null, data: Output<RecordDataArgs>? = null, name: Output<String>? = null, priority: Output<Double>? = null, proxied: Output<Boolean>? = null, settings: Output<RecordSettingsArgs>? = null, tags: Output<List<String>>? = null, ttl: Output<Double>? = null, type: Output<String>? = null, zoneId: Output<String>? = null)

Properties

Link copied to clipboard
val comment: Output<String>? = null

Comments or notes about the DNS record. This field has no effect on DNS responses.

Link copied to clipboard
val content: Output<String>? = null

A valid IPv4 address.

Link copied to clipboard
val data: Output<RecordDataArgs>? = null

Components of a CAA record.

Link copied to clipboard
val name: Output<String>? = null

DNS record name (or @ for the zone apex) in Punycode.

Link copied to clipboard
val priority: Output<Double>? = null

Required for MX, SRV and URI records; unused by other record types. Records with lower priorities are preferred.

Link copied to clipboard
val proxied: Output<Boolean>? = null

Whether the record is receiving the performance and security benefits of Cloudflare.

Link copied to clipboard
val settings: Output<RecordSettingsArgs>? = null

Settings for the DNS record.

Link copied to clipboard
val tags: Output<List<String>>? = null

Custom tags for the DNS record. This field has no effect on DNS responses.

Link copied to clipboard
val ttl: Output<Double>? = null

Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the minimum reduced to 30 for Enterprise zones.

Link copied to clipboard
val type: Output<String>? = null

Record type. Available values: "A".

Link copied to clipboard
val zoneId: Output<String>? = null

Identifier.

Functions

Link copied to clipboard
open override fun toJava(): RecordArgs