1. Packages
  2. Alibaba Cloud
  3. API Docs
  4. dns
  5. DomainGroup
Alibaba Cloud v3.51.0 published on Saturday, Mar 23, 2024 by Pulumi

alicloud.dns.DomainGroup

Explore with Pulumi AI

alicloud logo
Alibaba Cloud v3.51.0 published on Saturday, Mar 23, 2024 by Pulumi

    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 since v1.84.0.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as alicloud from "@pulumi/alicloud";
    
    const _default = new alicloud.dns.DomainGroup("default", {domainGroupName: "tf-example"});
    
    import pulumi
    import pulumi_alicloud as alicloud
    
    default = alicloud.dns.DomainGroup("default", domain_group_name="tf-example")
    
    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, "default", &dns.DomainGroupArgs{
    			DomainGroupName: pulumi.String("tf-example"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AliCloud = Pulumi.AliCloud;
    
    return await Deployment.RunAsync(() => 
    {
        var @default = new AliCloud.Dns.DomainGroup("default", new()
        {
            DomainGroupName = "tf-example",
        });
    
    });
    
    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 default_ = new DomainGroup("default", DomainGroupArgs.builder()        
                .domainGroupName("tf-example")
                .build());
    
        }
    }
    
    resources:
      default:
        type: alicloud:dns:DomainGroup
        properties:
          domainGroupName: tf-example
    

    Create 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 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
    Alibaba Cloud pulumi/pulumi-alicloud
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the alicloud Terraform Provider.
    alicloud logo
    Alibaba Cloud v3.51.0 published on Saturday, Mar 23, 2024 by Pulumi