DomainArgs

data class DomainArgs constructor(val groupId: Output<String>? = null, val name: Output<String>? = null, val resourceGroupId: Output<String>? = null) : ConvertibleToJava<DomainArgs>

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

import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
// Add a new Domain.
const dns = new alicloud.dns.Domain("dns", {
name: "starmove.com",
groupId: "85ab8713-4a30-4de4-9d20-155ff830f651",
});
import pulumi
import pulumi_alicloud as alicloud
# Add a new Domain.
dns = alicloud.dns.Domain("dns",
name="starmove.com",
group_id="85ab8713-4a30-4de4-9d20-155ff830f651")
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.Domain("dns", new()
{
Name = "starmove.com",
GroupId = "85ab8713-4a30-4de4-9d20-155ff830f651",
});
});
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.NewDomain(ctx, "dns", &dns.DomainArgs{
Name: pulumi.String("starmove.com"),
GroupId: pulumi.String("85ab8713-4a30-4de4-9d20-155ff830f651"),
})
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.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) {
// Add a new Domain.
var dns = new Domain("dns", DomainArgs.builder()
.name("starmove.com")
.groupId("85ab8713-4a30-4de4-9d20-155ff830f651")
.build());
}
}
resources:
# Add a new Domain.
dns:
type: alicloud:dns:Domain
properties:
name: starmove.com
groupId: 85ab8713-4a30-4de4-9d20-155ff830f651

Import

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

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

Constructors

Link copied to clipboard
constructor(groupId: Output<String>? = null, name: Output<String>? = null, resourceGroupId: Output<String>? = null)

Properties

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 name: Output<String>? = null

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 resourceGroupId: Output<String>? = null

The Id of resource group which the dns belongs.

Functions

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