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",
});
}
}
Inherited Members
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 SourceDomainAttachment(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 SourceDomainNames
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>> |
InstanceId
The id of the DNS instance.
Declaration
public Output<string> InstanceId { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Methods
View SourceGet(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 |