ZoneRecordArgs

data class ZoneRecordArgs(val lang: Output<String>? = null, val priority: Output<Int>? = null, val remark: Output<String>? = null, val resourceRecord: Output<String>? = null, val rr: Output<String>? = null, val status: Output<String>? = null, val ttl: Output<Int>? = null, val type: Output<String>? = null, val userClientIp: Output<String>? = null, val value: Output<String>? = null, val zoneId: Output<String>? = null) : ConvertibleToJava<ZoneRecordArgs>

Example Usage

Basic Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.pvtz.Zone;
import com.pulumi.alicloud.pvtz.ZoneRecord;
import com.pulumi.alicloud.pvtz.ZoneRecordArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var zone = new Zone("zone");
var foo = new ZoneRecord("foo", ZoneRecordArgs.builder()
.zoneId(zone.id())
.rr("www")
.type("CNAME")
.value("bbb.test.com")
.ttl(60)
.build());
}
}

Import

Private Zone Record can be imported using the id, e.g.

$ pulumi import alicloud:pvtz/zoneRecord:ZoneRecord example abc123456

Constructors

Link copied to clipboard
fun ZoneRecordArgs(lang: Output<String>? = null, priority: Output<Int>? = null, remark: Output<String>? = null, resourceRecord: Output<String>? = null, rr: Output<String>? = null, status: Output<String>? = null, ttl: Output<Int>? = null, type: Output<String>? = null, userClientIp: Output<String>? = null, value: Output<String>? = null, zoneId: Output<String>? = null)

Functions

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

Properties

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

User language.

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

The priority of the Private Zone Record. At present, only can "MX" record support it. Valid values: 1-99. Default to 1.

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

The remark of the Private Zone Record.

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

The resource record of the Private Zone Record.

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

The rr of the Private Zone Record.

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

Resolve record status. Value:

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

The ttl of the Private Zone Record. Default to 60.

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

The type of the Private Zone Record. Valid values: A, CNAME, TXT, MX, PTR, SRV.

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

The value of the Private Zone Record.

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

The name of the Private Zone Record.