DomainAttachment

class DomainAttachment : KotlinCustomResource

Provides bind the domain name to the DNS instance resource.

NOTE: Available in v1.80.0+. DEPRECATED: This resource has been deprecated from version 1.99.0. Please use new resource alicloud_alidns_domain_attachment.

Example Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.dns.DomainAttachment;
import com.pulumi.alicloud.dns.DomainAttachmentArgs;
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 DomainAttachment("dns", DomainAttachmentArgs.builder()
.domainNames(
"test111.abc",
"test222.abc")
.instanceId("dns-cn-mp91lyq9xxxx")
.build());
}
}

Import

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

$ pulumi import alicloud:dns/domainAttachment:DomainAttachment example dns-cn-v0h1ldjhxxx

Properties

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

The domain names bound to the DNS instance.

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

The id of the DNS instance.

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val urn: Output<String>