Dns Domain Args
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());
}
}
Content copied to clipboard
Import
DNS domain can be imported using the id or domain name, e.g.
$ pulumi import alicloud:dns/dnsDomain:DnsDomain example aliyun.com
Content copied to clipboard
Constructors
Functions
Properties
Link copied to clipboard
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