Alibaba Cloud

v3.28.0 published on Tuesday, Aug 16, 2022 by Pulumi

DomainGroup

Provides a Alidns Domain Group resource. For information about Alidns Domain Group and how to use it, see What is Resource Alidns Domain Group.

NOTE: Available in v1.84.0+.

Example Usage

using Pulumi;
using AliCloud = Pulumi.AliCloud;

class MyStack : Stack
{
    public MyStack()
    {
        // Add a new Alinds Domain Group.
        var example = new AliCloud.Dns.DomainGroup("example", new AliCloud.Dns.DomainGroupArgs
        {
            DomainGroupName = "tf-testDG",
        });
    }

}
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 {
		_, err := dns.NewDomainGroup(ctx, "example", &dns.DomainGroupArgs{
			DomainGroupName: pulumi.String("tf-testDG"),
		})
		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.DomainGroup;
import com.pulumi.alicloud.dns.DomainGroupArgs;
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 example = new DomainGroup("example", DomainGroupArgs.builder()        
            .domainGroupName("tf-testDG")
            .build());

    }
}
import pulumi
import pulumi_alicloud as alicloud

# Add a new Alinds Domain Group.
example = alicloud.dns.DomainGroup("example", domain_group_name="tf-testDG")
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";

// Add a new Alinds Domain Group.
const example = new alicloud.dns.DomainGroup("example", {
    domainGroupName: "tf-testDG",
});
resources:
  # Add a new Alinds Domain Group.
  example:
    type: alicloud:dns:DomainGroup
    properties:
      domainGroupName: tf-testDG

Create a DomainGroup Resource

new DomainGroup(name: string, args?: DomainGroupArgs, opts?: CustomResourceOptions);
@overload
def DomainGroup(resource_name: str,
                opts: Optional[ResourceOptions] = None,
                domain_group_name: Optional[str] = None,
                group_name: Optional[str] = None,
                lang: Optional[str] = None)
@overload
def DomainGroup(resource_name: str,
                args: Optional[DomainGroupArgs] = None,
                opts: Optional[ResourceOptions] = None)
func NewDomainGroup(ctx *Context, name string, args *DomainGroupArgs, opts ...ResourceOption) (*DomainGroup, error)
public DomainGroup(string name, DomainGroupArgs? args = null, CustomResourceOptions? opts = null)
public DomainGroup(String name, DomainGroupArgs args)
public DomainGroup(String name, DomainGroupArgs args, CustomResourceOptions options)
type: alicloud:dns:DomainGroup
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

name string
The unique name of the resource.
args DomainGroupArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name str
The unique name of the resource.
args DomainGroupArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name string
The unique name of the resource.
args DomainGroupArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args DomainGroupArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name String
The unique name of the resource.
args DomainGroupArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

DomainGroup Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

The DomainGroup resource accepts the following input properties:

DomainGroupName string

The Name of the domain group. The domain_group_name is required when the value of the group_name is Empty.

GroupName string

The Name of the domain group. The group_name has been deprecated from provider version 1.97.0. Please use domain_group_name instead.

Deprecated:

Field 'group_name' has been deprecated from version 1.97.0. Use 'domain_group_name' instead.

Lang string

User language.

DomainGroupName string

The Name of the domain group. The domain_group_name is required when the value of the group_name is Empty.

GroupName string

The Name of the domain group. The group_name has been deprecated from provider version 1.97.0. Please use domain_group_name instead.

Deprecated:

Field 'group_name' has been deprecated from version 1.97.0. Use 'domain_group_name' instead.

Lang string

User language.

domainGroupName String

The Name of the domain group. The domain_group_name is required when the value of the group_name is Empty.

groupName String

The Name of the domain group. The group_name has been deprecated from provider version 1.97.0. Please use domain_group_name instead.

Deprecated:

Field 'group_name' has been deprecated from version 1.97.0. Use 'domain_group_name' instead.

lang String

User language.

domainGroupName string

The Name of the domain group. The domain_group_name is required when the value of the group_name is Empty.

groupName string

The Name of the domain group. The group_name has been deprecated from provider version 1.97.0. Please use domain_group_name instead.

Deprecated:

Field 'group_name' has been deprecated from version 1.97.0. Use 'domain_group_name' instead.

lang string

User language.

domain_group_name str

The Name of the domain group. The domain_group_name is required when the value of the group_name is Empty.

group_name str

The Name of the domain group. The group_name has been deprecated from provider version 1.97.0. Please use domain_group_name instead.

Deprecated:

Field 'group_name' has been deprecated from version 1.97.0. Use 'domain_group_name' instead.

lang str

User language.

domainGroupName String

The Name of the domain group. The domain_group_name is required when the value of the group_name is Empty.

groupName String

The Name of the domain group. The group_name has been deprecated from provider version 1.97.0. Please use domain_group_name instead.

Deprecated:

Field 'group_name' has been deprecated from version 1.97.0. Use 'domain_group_name' instead.

lang String

User language.

Outputs

All input properties are implicitly available as output properties. Additionally, the DomainGroup resource produces the following output properties:

Id string

The provider-assigned unique ID for this managed resource.

Id string

The provider-assigned unique ID for this managed resource.

id String

The provider-assigned unique ID for this managed resource.

id string

The provider-assigned unique ID for this managed resource.

id str

The provider-assigned unique ID for this managed resource.

id String

The provider-assigned unique ID for this managed resource.

Look up an Existing DomainGroup Resource

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

public static get(name: string, id: Input<ID>, state?: DomainGroupState, opts?: CustomResourceOptions): DomainGroup
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        domain_group_name: Optional[str] = None,
        group_name: Optional[str] = None,
        lang: Optional[str] = None) -> DomainGroup
func GetDomainGroup(ctx *Context, name string, id IDInput, state *DomainGroupState, opts ...ResourceOption) (*DomainGroup, error)
public static DomainGroup Get(string name, Input<string> id, DomainGroupState? state, CustomResourceOptions? opts = null)
public static DomainGroup get(String name, Output<String> id, DomainGroupState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
resource_name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
The following state arguments are supported:
DomainGroupName string

The Name of the domain group. The domain_group_name is required when the value of the group_name is Empty.

GroupName string

The Name of the domain group. The group_name has been deprecated from provider version 1.97.0. Please use domain_group_name instead.

Deprecated:

Field 'group_name' has been deprecated from version 1.97.0. Use 'domain_group_name' instead.

Lang string

User language.

DomainGroupName string

The Name of the domain group. The domain_group_name is required when the value of the group_name is Empty.

GroupName string

The Name of the domain group. The group_name has been deprecated from provider version 1.97.0. Please use domain_group_name instead.

Deprecated:

Field 'group_name' has been deprecated from version 1.97.0. Use 'domain_group_name' instead.

Lang string

User language.

domainGroupName String

The Name of the domain group. The domain_group_name is required when the value of the group_name is Empty.

groupName String

The Name of the domain group. The group_name has been deprecated from provider version 1.97.0. Please use domain_group_name instead.

Deprecated:

Field 'group_name' has been deprecated from version 1.97.0. Use 'domain_group_name' instead.

lang String

User language.

domainGroupName string

The Name of the domain group. The domain_group_name is required when the value of the group_name is Empty.

groupName string

The Name of the domain group. The group_name has been deprecated from provider version 1.97.0. Please use domain_group_name instead.

Deprecated:

Field 'group_name' has been deprecated from version 1.97.0. Use 'domain_group_name' instead.

lang string

User language.

domain_group_name str

The Name of the domain group. The domain_group_name is required when the value of the group_name is Empty.

group_name str

The Name of the domain group. The group_name has been deprecated from provider version 1.97.0. Please use domain_group_name instead.

Deprecated:

Field 'group_name' has been deprecated from version 1.97.0. Use 'domain_group_name' instead.

lang str

User language.

domainGroupName String

The Name of the domain group. The domain_group_name is required when the value of the group_name is Empty.

groupName String

The Name of the domain group. The group_name has been deprecated from provider version 1.97.0. Please use domain_group_name instead.

Deprecated:

Field 'group_name' has been deprecated from version 1.97.0. Use 'domain_group_name' instead.

lang String

User language.

Import

Alidns domain group can be imported using the id, e.g.

 $ pulumi import alicloud:dns/domainGroup:DomainGroup example 0932eb3ddee7499085c4d13d45*****

Package Details

Repository
https://github.com/pulumi/pulumi-alicloud
License
Apache-2.0
Notes

This Pulumi package is based on the alicloud Terraform Provider.