DnsDomainArgs

data class DnsDomainArgs(val domainName: Output<String>? = null, val groupId: Output<String>? = null, val lang: Output<String>? = null, val remark: Output<String>? = null, val resourceGroupId: Output<String>? = null, val tags: Output<Map<String, Any>>? = null) : ConvertibleToJava<DnsDomainArgs>

Provides a DNS domain resource.

DEPRECATED: This resource has been renamed to alicloud.dns.AlidnsDomain from version 1.95.0. NOTE: The domain name which you want to add must be already registered and had not added by another account. Every domain name can only exist in a unique group. NOTE: Available in v1.81.0+.

Example Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.dns.DnsDomain;
import com.pulumi.alicloud.dns.DnsDomainArgs;
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 dns = new DnsDomain("dns", DnsDomainArgs.builder()
.domainName("starmove.com")
.groupId("85ab8713-4a30-4de4-9d20-155ff830****")
.tags(Map.ofEntries(
Map.entry("Created", "Terraform"),
Map.entry("Environment", "test")
))
.build());
}
}

Import

DNS domain can be imported using the id or domain name, e.g.

$ pulumi import alicloud:dns/dnsDomain:DnsDomain example aliyun.com

Constructors

Link copied to clipboard
fun DnsDomainArgs(domainName: Output<String>? = null, groupId: Output<String>? = null, lang: Output<String>? = null, remark: Output<String>? = null, resourceGroupId: Output<String>? = null, tags: Output<Map<String, Any>>? = null)

Functions

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

Properties

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

Name of the domain. This name without suffix can have a string of 1 to 63 characters(domain name subject, excluding suffix), must contain only alphanumeric characters or "-", and must not begin or end with "-", and "-" must not in the 3th and 4th character positions at the same time. Suffix .sh and .tel are not supported.

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

Id of the group in which the domain will add. If not supplied, then use default group.

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

User language.

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

Remarks information for your domain name.

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

The Id of resource group which the dns domain belongs.

Link copied to clipboard
val tags: Output<Map<String, Any>>? = null

A mapping of tags to assign to the resource.