tencentcloud.GaapGlobalDomain
Explore with Pulumi AI
Provides a resource to create a gaap global domain
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const globalDomain = new tencentcloud.GaapGlobalDomain("globalDomain", {
alias: "demo",
defaultValue: "xxxxxx.com",
projectId: 0,
tags: {
key: "value",
},
});
import pulumi
import pulumi_tencentcloud as tencentcloud
global_domain = tencentcloud.GaapGlobalDomain("globalDomain",
alias="demo",
default_value="xxxxxx.com",
project_id=0,
tags={
"key": "value",
})
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/tencentcloud/tencentcloud"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := tencentcloud.NewGaapGlobalDomain(ctx, "globalDomain", &tencentcloud.GaapGlobalDomainArgs{
Alias: pulumi.String("demo"),
DefaultValue: pulumi.String("xxxxxx.com"),
ProjectId: pulumi.Float64(0),
Tags: pulumi.StringMap{
"key": pulumi.String("value"),
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Tencentcloud = Pulumi.Tencentcloud;
return await Deployment.RunAsync(() =>
{
var globalDomain = new Tencentcloud.GaapGlobalDomain("globalDomain", new()
{
Alias = "demo",
DefaultValue = "xxxxxx.com",
ProjectId = 0,
Tags =
{
{ "key", "value" },
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.GaapGlobalDomain;
import com.pulumi.tencentcloud.GaapGlobalDomainArgs;
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 globalDomain = new GaapGlobalDomain("globalDomain", GaapGlobalDomainArgs.builder()
.alias("demo")
.defaultValue("xxxxxx.com")
.projectId(0)
.tags(Map.of("key", "value"))
.build());
}
}
resources:
globalDomain:
type: tencentcloud:GaapGlobalDomain
properties:
alias: demo
defaultValue: xxxxxx.com
projectId: 0
tags:
key: value
Create GaapGlobalDomain Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new GaapGlobalDomain(name: string, args: GaapGlobalDomainArgs, opts?: CustomResourceOptions);
@overload
def GaapGlobalDomain(resource_name: str,
args: GaapGlobalDomainArgs,
opts: Optional[ResourceOptions] = None)
@overload
def GaapGlobalDomain(resource_name: str,
opts: Optional[ResourceOptions] = None,
default_value: Optional[str] = None,
project_id: Optional[float] = None,
alias: Optional[str] = None,
gaap_global_domain_id: Optional[str] = None,
status: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None)
func NewGaapGlobalDomain(ctx *Context, name string, args GaapGlobalDomainArgs, opts ...ResourceOption) (*GaapGlobalDomain, error)
public GaapGlobalDomain(string name, GaapGlobalDomainArgs args, CustomResourceOptions? opts = null)
public GaapGlobalDomain(String name, GaapGlobalDomainArgs args)
public GaapGlobalDomain(String name, GaapGlobalDomainArgs args, CustomResourceOptions options)
type: tencentcloud:GaapGlobalDomain
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 GaapGlobalDomainArgs
- 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 GaapGlobalDomainArgs
- 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 GaapGlobalDomainArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args GaapGlobalDomainArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args GaapGlobalDomainArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
GaapGlobalDomain 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 GaapGlobalDomain resource accepts the following input properties:
- Default
Value string - Domain name default entry.
- Project
Id double - Domain Name Project ID.
- Alias string
- alias.
- Gaap
Global stringDomain Id - ID of the resource.
- Status string
- Global domain statue. Available values: open and close, default is open.
- Dictionary<string, string>
- Instance tags.
- Default
Value string - Domain name default entry.
- Project
Id float64 - Domain Name Project ID.
- Alias string
- alias.
- Gaap
Global stringDomain Id - ID of the resource.
- Status string
- Global domain statue. Available values: open and close, default is open.
- map[string]string
- Instance tags.
- default
Value String - Domain name default entry.
- project
Id Double - Domain Name Project ID.
- alias String
- alias.
- gaap
Global StringDomain Id - ID of the resource.
- status String
- Global domain statue. Available values: open and close, default is open.
- Map<String,String>
- Instance tags.
- default
Value string - Domain name default entry.
- project
Id number - Domain Name Project ID.
- alias string
- alias.
- gaap
Global stringDomain Id - ID of the resource.
- status string
- Global domain statue. Available values: open and close, default is open.
- {[key: string]: string}
- Instance tags.
- default_
value str - Domain name default entry.
- project_
id float - Domain Name Project ID.
- alias str
- alias.
- gaap_
global_ strdomain_ id - ID of the resource.
- status str
- Global domain statue. Available values: open and close, default is open.
- Mapping[str, str]
- Instance tags.
- default
Value String - Domain name default entry.
- project
Id Number - Domain Name Project ID.
- alias String
- alias.
- gaap
Global StringDomain Id - ID of the resource.
- status String
- Global domain statue. Available values: open and close, default is open.
- Map<String>
- Instance tags.
Outputs
All input properties are implicitly available as output properties. Additionally, the GaapGlobalDomain 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 GaapGlobalDomain Resource
Get an existing GaapGlobalDomain 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?: GaapGlobalDomainState, opts?: CustomResourceOptions): GaapGlobalDomain
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
alias: Optional[str] = None,
default_value: Optional[str] = None,
gaap_global_domain_id: Optional[str] = None,
project_id: Optional[float] = None,
status: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None) -> GaapGlobalDomain
func GetGaapGlobalDomain(ctx *Context, name string, id IDInput, state *GaapGlobalDomainState, opts ...ResourceOption) (*GaapGlobalDomain, error)
public static GaapGlobalDomain Get(string name, Input<string> id, GaapGlobalDomainState? state, CustomResourceOptions? opts = null)
public static GaapGlobalDomain get(String name, Output<String> id, GaapGlobalDomainState state, CustomResourceOptions options)
resources: _: type: tencentcloud:GaapGlobalDomain get: id: ${id}
- 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.
- Alias string
- alias.
- Default
Value string - Domain name default entry.
- Gaap
Global stringDomain Id - ID of the resource.
- Project
Id double - Domain Name Project ID.
- Status string
- Global domain statue. Available values: open and close, default is open.
- Dictionary<string, string>
- Instance tags.
- Alias string
- alias.
- Default
Value string - Domain name default entry.
- Gaap
Global stringDomain Id - ID of the resource.
- Project
Id float64 - Domain Name Project ID.
- Status string
- Global domain statue. Available values: open and close, default is open.
- map[string]string
- Instance tags.
- alias String
- alias.
- default
Value String - Domain name default entry.
- gaap
Global StringDomain Id - ID of the resource.
- project
Id Double - Domain Name Project ID.
- status String
- Global domain statue. Available values: open and close, default is open.
- Map<String,String>
- Instance tags.
- alias string
- alias.
- default
Value string - Domain name default entry.
- gaap
Global stringDomain Id - ID of the resource.
- project
Id number - Domain Name Project ID.
- status string
- Global domain statue. Available values: open and close, default is open.
- {[key: string]: string}
- Instance tags.
- alias str
- alias.
- default_
value str - Domain name default entry.
- gaap_
global_ strdomain_ id - ID of the resource.
- project_
id float - Domain Name Project ID.
- status str
- Global domain statue. Available values: open and close, default is open.
- Mapping[str, str]
- Instance tags.
- alias String
- alias.
- default
Value String - Domain name default entry.
- gaap
Global StringDomain Id - ID of the resource.
- project
Id Number - Domain Name Project ID.
- status String
- Global domain statue. Available values: open and close, default is open.
- Map<String>
- Instance tags.
Import
gaap global_domain can be imported using the id, e.g.
$ pulumi import tencentcloud:index/gaapGlobalDomain:GaapGlobalDomain global_domain ${projectId}#${domainId}
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- tencentcloud tencentcloudstack/terraform-provider-tencentcloud
- License
- Notes
- This Pulumi package is based on the
tencentcloud
Terraform Provider.