AlidnsDomainArgs

data class AlidnsDomainArgs(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<AlidnsDomainArgs>

Provides a Alidns domain 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. NOTE: Available since v1.95.0.

Example Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.dns.DomainGroup;
import com.pulumi.alicloud.dns.DomainGroupArgs;
import com.pulumi.alicloud.dns.AlidnsDomain;
import com.pulumi.alicloud.dns.AlidnsDomainArgs;
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 defaultDomainGroup = new DomainGroup("defaultDomainGroup", DomainGroupArgs.builder()
.domainGroupName("tf-example")
.build());
var defaultAlidnsDomain = new AlidnsDomain("defaultAlidnsDomain", AlidnsDomainArgs.builder()
.domainName("starmove.com")
.groupId(defaultDomainGroup.id())
.tags(Map.ofEntries(
Map.entry("Created", "TF"),
Map.entry("For", "example")
))
.build());
}
}

Import

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

$ pulumi import alicloud:dns/alidnsDomain:AlidnsDomain example aliyun.com

Constructors

Link copied to clipboard
fun AlidnsDomainArgs(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(): AlidnsDomainArgs

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.