DnsDomain

class DnsDomain : KotlinCustomResource

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

import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
// Add a new Domain.
const dns = new alicloud.dns.DnsDomain("dns", {
domainName: "starmove.com",
groupId: "85ab8713-4a30-4de4-9d20-155ff830****",
tags: {
Created: "Terraform",
Environment: "test",
},
});
import pulumi
import pulumi_alicloud as alicloud
# Add a new Domain.
dns = alicloud.dns.DnsDomain("dns",
domain_name="starmove.com",
group_id="85ab8713-4a30-4de4-9d20-155ff830****",
tags={
"Created": "Terraform",
"Environment": "test",
})
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AliCloud = Pulumi.AliCloud;
return await Deployment.RunAsync(() =>
{
// Add a new Domain.
var dns = new AliCloud.Dns.DnsDomain("dns", new()
{
DomainName = "starmove.com",
GroupId = "85ab8713-4a30-4de4-9d20-155ff830****",
Tags =
{
{ "Created", "Terraform" },
{ "Environment", "test" },
},
});
});
package main
import (
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/dns"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
// Add a new Domain.
_, err := dns.NewDnsDomain(ctx, "dns", &dns.DnsDomainArgs{
DomainName: pulumi.String("starmove.com"),
GroupId: pulumi.String("85ab8713-4a30-4de4-9d20-155ff830****"),
Tags: pulumi.StringMap{
"Created": pulumi.String("Terraform"),
"Environment": pulumi.String("test"),
},
})
if err != nil {
return err
}
return nil
})
}
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) {
// Add a new Domain.
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());
}
}
resources:
# Add a new Domain.
dns:
type: alicloud:dns:DnsDomain
properties:
domainName: starmove.com
groupId: 85ab8713-4a30-4de4-9d20-155ff830****
tags:
Created: Terraform
Environment: test

Import

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

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

Properties

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

The domain ID.

Link copied to clipboard
val domainName: Output<String>

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>?

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

Link copied to clipboard
val groupName: Output<String>
Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val lang: Output<String>?

User language.

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val punyCode: Output<String>
Link copied to clipboard
val remark: Output<String>?

Remarks information for your domain name.

Link copied to clipboard
val resourceGroupId: Output<String>

The Id of resource group which the dns domain belongs.

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

A mapping of tags to assign to the resource.

Link copied to clipboard
val urn: Output<String>