Show / Hide Table of Contents

Class DomainAttachment

Provides bind the domain name to the DNS instance resource.

NOTE: Available in v1.80.0+.

Example Usage

using Pulumi;
using AliCloud = Pulumi.AliCloud;

class MyStack : Stack
{
public MyStack()
{
    var dns = new AliCloud.Dns.DomainAttachment("dns", new AliCloud.Dns.DomainAttachmentArgs
    {
        DomainNames = 
        {
            "test111.abc",
            "test222.abc",
        },
        InstanceId = "dns-cn-mp91lyq9xxxx",
    });
}

}
Inheritance
System.Object
Resource
CustomResource
DomainAttachment
Inherited Members
CustomResource.Id
Resource.GetResourceType()
Resource.GetResourceName()
Resource.Urn
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Pulumi.AliCloud.Dns
Assembly: Pulumi.AliCloud.dll
Syntax
public class DomainAttachment : CustomResource

Constructors

View Source

DomainAttachment(String, DomainAttachmentArgs, CustomResourceOptions)

Create a DomainAttachment resource with the given unique name, arguments, and options.

Declaration
public DomainAttachment(string name, DomainAttachmentArgs args, CustomResourceOptions options = null)
Parameters
Type Name Description
System.String name

The unique name of the resource

DomainAttachmentArgs args

The arguments used to populate this resource's properties

CustomResourceOptions options

A bag of options that control this resource's behavior

Properties

View Source

DomainNames

The domain names bound to the DNS instance.

Declaration
public Output<ImmutableArray<string>> DomainNames { get; }
Property Value
Type Description
Output<System.Collections.Immutable.ImmutableArray<System.String>>
View Source

InstanceId

The id of the DNS instance.

Declaration
public Output<string> InstanceId { get; }
Property Value
Type Description
Output<System.String>

Methods

View Source

Get(String, Input<String>, DomainAttachmentState, CustomResourceOptions)

Get an existing DomainAttachment resource's state with the given name, ID, and optional extra properties used to qualify the lookup.

Declaration
public static DomainAttachment Get(string name, Input<string> id, DomainAttachmentState state = null, CustomResourceOptions options = null)
Parameters
Type Name Description
System.String name

The unique name of the resulting resource.

Input<System.String> id

The unique provider ID of the resource to lookup.

DomainAttachmentState state

Any extra arguments used during the lookup.

CustomResourceOptions options

A bag of options that control this resource's behavior

Returns
Type Description
DomainAttachment
  • View Source
Back to top Copyright 2016-2020, Pulumi Corporation.