Domain

class Domain : KotlinCustomResource

Deprecated

This resource has been deprecated in favour of DnsDomain

DEPRECATED: This resource has been renamed to alicloud.dns.AlidnsDomain from version 1.95.0. Provides a DNS resource. 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.

Example Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.dns.Domain;
import com.pulumi.alicloud.dns.DomainArgs;
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 Domain("dns", DomainArgs.builder()
.groupId("85ab8713-4a30-4de4-9d20-155ff830f651")
.build());
}
}

Import

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

$ pulumi import alicloud:dns/domain:Domain example "aliyun.com"

Properties

Link copied to clipboard
val dnsServers: Output<List<String>>

A list of the dns server name.

Link copied to clipboard
val domainId: Output<String>

The domain ID.

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

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

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val name: Output<String>

Name of the domain. This name without suffix can have a string of 1 to 63 characters, 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 pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val resourceGroupId: Output<String>?

The Id of resource group which the dns belongs.

Link copied to clipboard
val urn: Output<String>