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 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
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new DomainGroup(name: string, args?: DomainGroupArgs, opts?: CustomResourceOptions);
@overload
def DomainGroup(resource_name: str,
args: Optional[DomainGroupArgs] = None,
opts: Optional[ResourceOptions] = None)
@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)
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.
Parameters
- 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.
Constructor example
The following reference example uses placeholder values for all input properties.
var domainGroupResource = new AliCloud.Dns.DomainGroup("domainGroupResource", new()
{
DomainGroupName = "string",
Lang = "string",
});
example, err := dns.NewDomainGroup(ctx, "domainGroupResource", &dns.DomainGroupArgs{
DomainGroupName: pulumi.String("string"),
Lang: pulumi.String("string"),
})
var domainGroupResource = new DomainGroup("domainGroupResource", DomainGroupArgs.builder()
.domainGroupName("string")
.lang("string")
.build());
domain_group_resource = alicloud.dns.DomainGroup("domainGroupResource",
domain_group_name="string",
lang="string")
const domainGroupResource = new alicloud.dns.DomainGroup("domainGroupResource", {
domainGroupName: "string",
lang: "string",
});
type: alicloud:dns:DomainGroup
properties:
domainGroupName: string
lang: string
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
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
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. - 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. - 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. - 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. - 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. - 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. - 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. - 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. - 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. - 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. - 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. - 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. - lang String
- User language.
Import
Alidns domain group can be imported using the id, e.g.
$ pulumi import alicloud:dns/domainGroup:DomainGroup example 0932eb3ddee7499085c4d13d45*****
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Alibaba Cloud pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
alicloud
Terraform Provider.