Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const example = new tencentcloud.IgtmInstance("example", {
domain: "domain.com",
accessType: "CUSTOM",
globalTtl: 60,
packageType: "STANDARD",
instanceName: "tf-example",
accessDomain: "domain.com",
accessSubDomain: "sub_domain.com",
remark: "remark.",
resourceId: "ins-lnpnnwvwxgs",
});
import pulumi
import pulumi_tencentcloud as tencentcloud
example = tencentcloud.IgtmInstance("example",
domain="domain.com",
access_type="CUSTOM",
global_ttl=60,
package_type="STANDARD",
instance_name="tf-example",
access_domain="domain.com",
access_sub_domain="sub_domain.com",
remark="remark.",
resource_id="ins-lnpnnwvwxgs")
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.NewIgtmInstance(ctx, "example", &tencentcloud.IgtmInstanceArgs{
Domain: pulumi.String("domain.com"),
AccessType: pulumi.String("CUSTOM"),
GlobalTtl: pulumi.Float64(60),
PackageType: pulumi.String("STANDARD"),
InstanceName: pulumi.String("tf-example"),
AccessDomain: pulumi.String("domain.com"),
AccessSubDomain: pulumi.String("sub_domain.com"),
Remark: pulumi.String("remark."),
ResourceId: pulumi.String("ins-lnpnnwvwxgs"),
})
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 example = new Tencentcloud.IgtmInstance("example", new()
{
Domain = "domain.com",
AccessType = "CUSTOM",
GlobalTtl = 60,
PackageType = "STANDARD",
InstanceName = "tf-example",
AccessDomain = "domain.com",
AccessSubDomain = "sub_domain.com",
Remark = "remark.",
ResourceId = "ins-lnpnnwvwxgs",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.IgtmInstance;
import com.pulumi.tencentcloud.IgtmInstanceArgs;
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 IgtmInstance("example", IgtmInstanceArgs.builder()
.domain("domain.com")
.accessType("CUSTOM")
.globalTtl(60.0)
.packageType("STANDARD")
.instanceName("tf-example")
.accessDomain("domain.com")
.accessSubDomain("sub_domain.com")
.remark("remark.")
.resourceId("ins-lnpnnwvwxgs")
.build());
}
}
resources:
example:
type: tencentcloud:IgtmInstance
properties:
domain: domain.com
accessType: CUSTOM
globalTtl: 60
packageType: STANDARD
instanceName: tf-example
accessDomain: domain.com
accessSubDomain: sub_domain.com
remark: remark.
resourceId: ins-lnpnnwvwxgs
Create IgtmInstance Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new IgtmInstance(name: string, args: IgtmInstanceArgs, opts?: CustomResourceOptions);@overload
def IgtmInstance(resource_name: str,
args: IgtmInstanceArgs,
opts: Optional[ResourceOptions] = None)
@overload
def IgtmInstance(resource_name: str,
opts: Optional[ResourceOptions] = None,
access_domain: Optional[str] = None,
access_sub_domain: Optional[str] = None,
access_type: Optional[str] = None,
domain: Optional[str] = None,
global_ttl: Optional[float] = None,
instance_name: Optional[str] = None,
package_type: Optional[str] = None,
resource_id: Optional[str] = None,
igtm_instance_id: Optional[str] = None,
remark: Optional[str] = None)func NewIgtmInstance(ctx *Context, name string, args IgtmInstanceArgs, opts ...ResourceOption) (*IgtmInstance, error)public IgtmInstance(string name, IgtmInstanceArgs args, CustomResourceOptions? opts = null)
public IgtmInstance(String name, IgtmInstanceArgs args)
public IgtmInstance(String name, IgtmInstanceArgs args, CustomResourceOptions options)
type: tencentcloud:IgtmInstance
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 IgtmInstanceArgs
- 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 IgtmInstanceArgs
- 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 IgtmInstanceArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args IgtmInstanceArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args IgtmInstanceArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
IgtmInstance 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 IgtmInstance resource accepts the following input properties:
- Access
Domain string - Access main domain.
- Access
Sub stringDomain - Access subdomain.
- Access
Type string - CUSTOM: Custom access domain SYSTEM: System access domain.
- Domain string
- Business domain.
- Global
Ttl double - Resolution effective time.
- Instance
Name string - Instance name.
- Package
Type string - Package type FREE: Free version STANDARD: Standard version ULTIMATE: Ultimate version.
- Resource
Id string - Package resource ID.
- Igtm
Instance stringId - ID of the resource.
- Remark string
- Remark.
- Access
Domain string - Access main domain.
- Access
Sub stringDomain - Access subdomain.
- Access
Type string - CUSTOM: Custom access domain SYSTEM: System access domain.
- Domain string
- Business domain.
- Global
Ttl float64 - Resolution effective time.
- Instance
Name string - Instance name.
- Package
Type string - Package type FREE: Free version STANDARD: Standard version ULTIMATE: Ultimate version.
- Resource
Id string - Package resource ID.
- Igtm
Instance stringId - ID of the resource.
- Remark string
- Remark.
- access
Domain String - Access main domain.
- access
Sub StringDomain - Access subdomain.
- access
Type String - CUSTOM: Custom access domain SYSTEM: System access domain.
- domain String
- Business domain.
- global
Ttl Double - Resolution effective time.
- instance
Name String - Instance name.
- package
Type String - Package type FREE: Free version STANDARD: Standard version ULTIMATE: Ultimate version.
- resource
Id String - Package resource ID.
- igtm
Instance StringId - ID of the resource.
- remark String
- Remark.
- access
Domain string - Access main domain.
- access
Sub stringDomain - Access subdomain.
- access
Type string - CUSTOM: Custom access domain SYSTEM: System access domain.
- domain string
- Business domain.
- global
Ttl number - Resolution effective time.
- instance
Name string - Instance name.
- package
Type string - Package type FREE: Free version STANDARD: Standard version ULTIMATE: Ultimate version.
- resource
Id string - Package resource ID.
- igtm
Instance stringId - ID of the resource.
- remark string
- Remark.
- access_
domain str - Access main domain.
- access_
sub_ strdomain - Access subdomain.
- access_
type str - CUSTOM: Custom access domain SYSTEM: System access domain.
- domain str
- Business domain.
- global_
ttl float - Resolution effective time.
- instance_
name str - Instance name.
- package_
type str - Package type FREE: Free version STANDARD: Standard version ULTIMATE: Ultimate version.
- resource_
id str - Package resource ID.
- igtm_
instance_ strid - ID of the resource.
- remark str
- Remark.
- access
Domain String - Access main domain.
- access
Sub StringDomain - Access subdomain.
- access
Type String - CUSTOM: Custom access domain SYSTEM: System access domain.
- domain String
- Business domain.
- global
Ttl Number - Resolution effective time.
- instance
Name String - Instance name.
- package
Type String - Package type FREE: Free version STANDARD: Standard version ULTIMATE: Ultimate version.
- resource
Id String - Package resource ID.
- igtm
Instance StringId - ID of the resource.
- remark String
- Remark.
Outputs
All input properties are implicitly available as output properties. Additionally, the IgtmInstance resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Instance
Id string - Instance ID.
- Id string
- The provider-assigned unique ID for this managed resource.
- Instance
Id string - Instance ID.
- id String
- The provider-assigned unique ID for this managed resource.
- instance
Id String - Instance ID.
- id string
- The provider-assigned unique ID for this managed resource.
- instance
Id string - Instance ID.
- id str
- The provider-assigned unique ID for this managed resource.
- instance_
id str - Instance ID.
- id String
- The provider-assigned unique ID for this managed resource.
- instance
Id String - Instance ID.
Look up Existing IgtmInstance Resource
Get an existing IgtmInstance 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?: IgtmInstanceState, opts?: CustomResourceOptions): IgtmInstance@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
access_domain: Optional[str] = None,
access_sub_domain: Optional[str] = None,
access_type: Optional[str] = None,
domain: Optional[str] = None,
global_ttl: Optional[float] = None,
igtm_instance_id: Optional[str] = None,
instance_id: Optional[str] = None,
instance_name: Optional[str] = None,
package_type: Optional[str] = None,
remark: Optional[str] = None,
resource_id: Optional[str] = None) -> IgtmInstancefunc GetIgtmInstance(ctx *Context, name string, id IDInput, state *IgtmInstanceState, opts ...ResourceOption) (*IgtmInstance, error)public static IgtmInstance Get(string name, Input<string> id, IgtmInstanceState? state, CustomResourceOptions? opts = null)public static IgtmInstance get(String name, Output<String> id, IgtmInstanceState state, CustomResourceOptions options)resources: _: type: tencentcloud:IgtmInstance 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.
- Access
Domain string - Access main domain.
- Access
Sub stringDomain - Access subdomain.
- Access
Type string - CUSTOM: Custom access domain SYSTEM: System access domain.
- Domain string
- Business domain.
- Global
Ttl double - Resolution effective time.
- Igtm
Instance stringId - ID of the resource.
- Instance
Id string - Instance ID.
- Instance
Name string - Instance name.
- Package
Type string - Package type FREE: Free version STANDARD: Standard version ULTIMATE: Ultimate version.
- Remark string
- Remark.
- Resource
Id string - Package resource ID.
- Access
Domain string - Access main domain.
- Access
Sub stringDomain - Access subdomain.
- Access
Type string - CUSTOM: Custom access domain SYSTEM: System access domain.
- Domain string
- Business domain.
- Global
Ttl float64 - Resolution effective time.
- Igtm
Instance stringId - ID of the resource.
- Instance
Id string - Instance ID.
- Instance
Name string - Instance name.
- Package
Type string - Package type FREE: Free version STANDARD: Standard version ULTIMATE: Ultimate version.
- Remark string
- Remark.
- Resource
Id string - Package resource ID.
- access
Domain String - Access main domain.
- access
Sub StringDomain - Access subdomain.
- access
Type String - CUSTOM: Custom access domain SYSTEM: System access domain.
- domain String
- Business domain.
- global
Ttl Double - Resolution effective time.
- igtm
Instance StringId - ID of the resource.
- instance
Id String - Instance ID.
- instance
Name String - Instance name.
- package
Type String - Package type FREE: Free version STANDARD: Standard version ULTIMATE: Ultimate version.
- remark String
- Remark.
- resource
Id String - Package resource ID.
- access
Domain string - Access main domain.
- access
Sub stringDomain - Access subdomain.
- access
Type string - CUSTOM: Custom access domain SYSTEM: System access domain.
- domain string
- Business domain.
- global
Ttl number - Resolution effective time.
- igtm
Instance stringId - ID of the resource.
- instance
Id string - Instance ID.
- instance
Name string - Instance name.
- package
Type string - Package type FREE: Free version STANDARD: Standard version ULTIMATE: Ultimate version.
- remark string
- Remark.
- resource
Id string - Package resource ID.
- access_
domain str - Access main domain.
- access_
sub_ strdomain - Access subdomain.
- access_
type str - CUSTOM: Custom access domain SYSTEM: System access domain.
- domain str
- Business domain.
- global_
ttl float - Resolution effective time.
- igtm_
instance_ strid - ID of the resource.
- instance_
id str - Instance ID.
- instance_
name str - Instance name.
- package_
type str - Package type FREE: Free version STANDARD: Standard version ULTIMATE: Ultimate version.
- remark str
- Remark.
- resource_
id str - Package resource ID.
- access
Domain String - Access main domain.
- access
Sub StringDomain - Access subdomain.
- access
Type String - CUSTOM: Custom access domain SYSTEM: System access domain.
- domain String
- Business domain.
- global
Ttl Number - Resolution effective time.
- igtm
Instance StringId - ID of the resource.
- instance
Id String - Instance ID.
- instance
Name String - Instance name.
- package
Type String - Package type FREE: Free version STANDARD: Standard version ULTIMATE: Ultimate version.
- remark String
- Remark.
- resource
Id String - Package resource ID.
Import
IGTM instance can be imported using the id, e.g.
$ pulumi import tencentcloud:index/igtmInstance:IgtmInstance example gtm-uukztqtoaru
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
tencentcloudTerraform Provider.
