alicloud.dns.DomainGroup
Explore with Pulumi AI
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 System.Collections.Generic;
using System.Linq;
using Pulumi;
using AliCloud = Pulumi.AliCloud;
return await Deployment.RunAsync(() =>
{
// Add a new Alinds Domain Group.
var example = new AliCloud.Dns.DomainGroup("example", new()
{
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 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:
- Domain
Group stringName The Name of the domain group. The
domain_group_name
is required when the value of thegroup_name
is Empty.- Group
Name string The Name of the domain group. The
group_name
has been deprecated from provider version 1.97.0. Please usedomain_group_name
instead.Field 'group_name' has been deprecated from version 1.97.0. Use 'domain_group_name' instead.
- Lang string
User language.
- Domain
Group stringName The Name of the domain group. The
domain_group_name
is required when the value of thegroup_name
is Empty.- Group
Name string The Name of the domain group. The
group_name
has been deprecated from provider version 1.97.0. Please usedomain_group_name
instead.Field 'group_name' has been deprecated from version 1.97.0. Use 'domain_group_name' instead.
- Lang string
User language.
- domain
Group StringName The Name of the domain group. The
domain_group_name
is required when the value of thegroup_name
is Empty.- group
Name String The Name of the domain group. The
group_name
has been deprecated from provider version 1.97.0. Please usedomain_group_name
instead.Field 'group_name' has been deprecated from version 1.97.0. Use 'domain_group_name' instead.
- lang String
User language.
- domain
Group stringName The Name of the domain group. The
domain_group_name
is required when the value of thegroup_name
is Empty.- group
Name string The Name of the domain group. The
group_name
has been deprecated from provider version 1.97.0. Please usedomain_group_name
instead.Field 'group_name' has been deprecated from version 1.97.0. Use 'domain_group_name' instead.
- lang string
User language.
- domain_
group_ strname The Name of the domain group. The
domain_group_name
is required when the value of thegroup_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 usedomain_group_name
instead.Field 'group_name' has been deprecated from version 1.97.0. Use 'domain_group_name' instead.
- lang str
User language.
- domain
Group StringName The Name of the domain group. The
domain_group_name
is required when the value of thegroup_name
is Empty.- group
Name String The Name of the domain group. The
group_name
has been deprecated from provider version 1.97.0. Please usedomain_group_name
instead.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.
- Domain
Group stringName The Name of the domain group. The
domain_group_name
is required when the value of thegroup_name
is Empty.- Group
Name string The Name of the domain group. The
group_name
has been deprecated from provider version 1.97.0. Please usedomain_group_name
instead.Field 'group_name' has been deprecated from version 1.97.0. Use 'domain_group_name' instead.
- Lang string
User language.
- Domain
Group stringName The Name of the domain group. The
domain_group_name
is required when the value of thegroup_name
is Empty.- Group
Name string The Name of the domain group. The
group_name
has been deprecated from provider version 1.97.0. Please usedomain_group_name
instead.Field 'group_name' has been deprecated from version 1.97.0. Use 'domain_group_name' instead.
- Lang string
User language.
- domain
Group StringName The Name of the domain group. The
domain_group_name
is required when the value of thegroup_name
is Empty.- group
Name String The Name of the domain group. The
group_name
has been deprecated from provider version 1.97.0. Please usedomain_group_name
instead.Field 'group_name' has been deprecated from version 1.97.0. Use 'domain_group_name' instead.
- lang String
User language.
- domain
Group stringName The Name of the domain group. The
domain_group_name
is required when the value of thegroup_name
is Empty.- group
Name string The Name of the domain group. The
group_name
has been deprecated from provider version 1.97.0. Please usedomain_group_name
instead.Field 'group_name' has been deprecated from version 1.97.0. Use 'domain_group_name' instead.
- lang string
User language.
- domain_
group_ strname The Name of the domain group. The
domain_group_name
is required when the value of thegroup_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 usedomain_group_name
instead.Field 'group_name' has been deprecated from version 1.97.0. Use 'domain_group_name' instead.
- lang str
User language.
- domain
Group StringName The Name of the domain group. The
domain_group_name
is required when the value of thegroup_name
is Empty.- group
Name String The Name of the domain group. The
group_name
has been deprecated from provider version 1.97.0. Please usedomain_group_name
instead.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.