tencentcloud.RumTawInstance
Explore with Pulumi AI
Provides a resource to create a rum taw_instance
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const example = new tencentcloud.RumTawInstance("example", {
areaId: 1,
chargeType: 1,
dataRetentionDays: 30,
instanceDesc: "desc.",
instanceName: "tf-example",
tags: {
createdBy: "terraform",
},
});
import pulumi
import pulumi_tencentcloud as tencentcloud
example = tencentcloud.RumTawInstance("example",
area_id=1,
charge_type=1,
data_retention_days=30,
instance_desc="desc.",
instance_name="tf-example",
tags={
"createdBy": "terraform",
})
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.NewRumTawInstance(ctx, "example", &tencentcloud.RumTawInstanceArgs{
AreaId: pulumi.Float64(1),
ChargeType: pulumi.Float64(1),
DataRetentionDays: pulumi.Float64(30),
InstanceDesc: pulumi.String("desc."),
InstanceName: pulumi.String("tf-example"),
Tags: pulumi.StringMap{
"createdBy": pulumi.String("terraform"),
},
})
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.RumTawInstance("example", new()
{
AreaId = 1,
ChargeType = 1,
DataRetentionDays = 30,
InstanceDesc = "desc.",
InstanceName = "tf-example",
Tags =
{
{ "createdBy", "terraform" },
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.RumTawInstance;
import com.pulumi.tencentcloud.RumTawInstanceArgs;
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 RumTawInstance("example", RumTawInstanceArgs.builder()
.areaId("1")
.chargeType("1")
.dataRetentionDays("30")
.instanceDesc("desc.")
.instanceName("tf-example")
.tags(Map.of("createdBy", "terraform"))
.build());
}
}
resources:
example:
type: tencentcloud:RumTawInstance
properties:
areaId: '1'
chargeType: '1'
dataRetentionDays: '30'
instanceDesc: desc.
instanceName: tf-example
tags:
createdBy: terraform
Create RumTawInstance Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new RumTawInstance(name: string, args: RumTawInstanceArgs, opts?: CustomResourceOptions);
@overload
def RumTawInstance(resource_name: str,
args: RumTawInstanceArgs,
opts: Optional[ResourceOptions] = None)
@overload
def RumTawInstance(resource_name: str,
opts: Optional[ResourceOptions] = None,
area_id: Optional[float] = None,
charge_type: Optional[float] = None,
data_retention_days: Optional[float] = None,
instance_name: Optional[str] = None,
instance_desc: Optional[str] = None,
rum_taw_instance_id: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None)
func NewRumTawInstance(ctx *Context, name string, args RumTawInstanceArgs, opts ...ResourceOption) (*RumTawInstance, error)
public RumTawInstance(string name, RumTawInstanceArgs args, CustomResourceOptions? opts = null)
public RumTawInstance(String name, RumTawInstanceArgs args)
public RumTawInstance(String name, RumTawInstanceArgs args, CustomResourceOptions options)
type: tencentcloud:RumTawInstance
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 RumTawInstanceArgs
- 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 RumTawInstanceArgs
- 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 RumTawInstanceArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args RumTawInstanceArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args RumTawInstanceArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
RumTawInstance 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 RumTawInstance resource accepts the following input properties:
- Area
Id double - Region ID (at least greater than 0).
- Charge
Type double - Billing type (1: Pay-as-you-go).
- Data
Retention doubleDays - Data retention period (at least greater than 0).
- Instance
Name string - Instance name (up to 255 bytes).
- Instance
Desc string - Instance description (up to 1,024 bytes).
- Rum
Taw stringInstance Id - ID of the resource.
- Dictionary<string, string>
- Tag description list. Up to 10 tag key-value pairs are supported and must be unique.
- Area
Id float64 - Region ID (at least greater than 0).
- Charge
Type float64 - Billing type (1: Pay-as-you-go).
- Data
Retention float64Days - Data retention period (at least greater than 0).
- Instance
Name string - Instance name (up to 255 bytes).
- Instance
Desc string - Instance description (up to 1,024 bytes).
- Rum
Taw stringInstance Id - ID of the resource.
- map[string]string
- Tag description list. Up to 10 tag key-value pairs are supported and must be unique.
- area
Id Double - Region ID (at least greater than 0).
- charge
Type Double - Billing type (1: Pay-as-you-go).
- data
Retention DoubleDays - Data retention period (at least greater than 0).
- instance
Name String - Instance name (up to 255 bytes).
- instance
Desc String - Instance description (up to 1,024 bytes).
- rum
Taw StringInstance Id - ID of the resource.
- Map<String,String>
- Tag description list. Up to 10 tag key-value pairs are supported and must be unique.
- area
Id number - Region ID (at least greater than 0).
- charge
Type number - Billing type (1: Pay-as-you-go).
- data
Retention numberDays - Data retention period (at least greater than 0).
- instance
Name string - Instance name (up to 255 bytes).
- instance
Desc string - Instance description (up to 1,024 bytes).
- rum
Taw stringInstance Id - ID of the resource.
- {[key: string]: string}
- Tag description list. Up to 10 tag key-value pairs are supported and must be unique.
- area_
id float - Region ID (at least greater than 0).
- charge_
type float - Billing type (1: Pay-as-you-go).
- data_
retention_ floatdays - Data retention period (at least greater than 0).
- instance_
name str - Instance name (up to 255 bytes).
- instance_
desc str - Instance description (up to 1,024 bytes).
- rum_
taw_ strinstance_ id - ID of the resource.
- Mapping[str, str]
- Tag description list. Up to 10 tag key-value pairs are supported and must be unique.
- area
Id Number - Region ID (at least greater than 0).
- charge
Type Number - Billing type (1: Pay-as-you-go).
- data
Retention NumberDays - Data retention period (at least greater than 0).
- instance
Name String - Instance name (up to 255 bytes).
- instance
Desc String - Instance description (up to 1,024 bytes).
- rum
Taw StringInstance Id - ID of the resource.
- Map<String>
- Tag description list. Up to 10 tag key-value pairs are supported and must be unique.
Outputs
All input properties are implicitly available as output properties. Additionally, the RumTawInstance resource produces the following output properties:
- Charge
Status double - Billing status (
1
= in use,2
= expired,3
= destroyed,4
= assigning,5
= failed). - Cluster
Id double - Cluster ID.
- Created
At string - Create time.
- Id string
- The provider-assigned unique ID for this managed resource.
- Instance
Status double - Instance status (
1
= creating,2
= running,3
= exception,4
= restarting,5
= stopping,6
= stopped,7
= deleted). - Updated
At string - Update time.
- Charge
Status float64 - Billing status (
1
= in use,2
= expired,3
= destroyed,4
= assigning,5
= failed). - Cluster
Id float64 - Cluster ID.
- Created
At string - Create time.
- Id string
- The provider-assigned unique ID for this managed resource.
- Instance
Status float64 - Instance status (
1
= creating,2
= running,3
= exception,4
= restarting,5
= stopping,6
= stopped,7
= deleted). - Updated
At string - Update time.
- charge
Status Double - Billing status (
1
= in use,2
= expired,3
= destroyed,4
= assigning,5
= failed). - cluster
Id Double - Cluster ID.
- created
At String - Create time.
- id String
- The provider-assigned unique ID for this managed resource.
- instance
Status Double - Instance status (
1
= creating,2
= running,3
= exception,4
= restarting,5
= stopping,6
= stopped,7
= deleted). - updated
At String - Update time.
- charge
Status number - Billing status (
1
= in use,2
= expired,3
= destroyed,4
= assigning,5
= failed). - cluster
Id number - Cluster ID.
- created
At string - Create time.
- id string
- The provider-assigned unique ID for this managed resource.
- instance
Status number - Instance status (
1
= creating,2
= running,3
= exception,4
= restarting,5
= stopping,6
= stopped,7
= deleted). - updated
At string - Update time.
- charge_
status float - Billing status (
1
= in use,2
= expired,3
= destroyed,4
= assigning,5
= failed). - cluster_
id float - Cluster ID.
- created_
at str - Create time.
- id str
- The provider-assigned unique ID for this managed resource.
- instance_
status float - Instance status (
1
= creating,2
= running,3
= exception,4
= restarting,5
= stopping,6
= stopped,7
= deleted). - updated_
at str - Update time.
- charge
Status Number - Billing status (
1
= in use,2
= expired,3
= destroyed,4
= assigning,5
= failed). - cluster
Id Number - Cluster ID.
- created
At String - Create time.
- id String
- The provider-assigned unique ID for this managed resource.
- instance
Status Number - Instance status (
1
= creating,2
= running,3
= exception,4
= restarting,5
= stopping,6
= stopped,7
= deleted). - updated
At String - Update time.
Look up Existing RumTawInstance Resource
Get an existing RumTawInstance 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?: RumTawInstanceState, opts?: CustomResourceOptions): RumTawInstance
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
area_id: Optional[float] = None,
charge_status: Optional[float] = None,
charge_type: Optional[float] = None,
cluster_id: Optional[float] = None,
created_at: Optional[str] = None,
data_retention_days: Optional[float] = None,
instance_desc: Optional[str] = None,
instance_name: Optional[str] = None,
instance_status: Optional[float] = None,
rum_taw_instance_id: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None,
updated_at: Optional[str] = None) -> RumTawInstance
func GetRumTawInstance(ctx *Context, name string, id IDInput, state *RumTawInstanceState, opts ...ResourceOption) (*RumTawInstance, error)
public static RumTawInstance Get(string name, Input<string> id, RumTawInstanceState? state, CustomResourceOptions? opts = null)
public static RumTawInstance get(String name, Output<String> id, RumTawInstanceState state, CustomResourceOptions options)
resources: _: type: tencentcloud:RumTawInstance 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.
- Area
Id double - Region ID (at least greater than 0).
- Charge
Status double - Billing status (
1
= in use,2
= expired,3
= destroyed,4
= assigning,5
= failed). - Charge
Type double - Billing type (1: Pay-as-you-go).
- Cluster
Id double - Cluster ID.
- Created
At string - Create time.
- Data
Retention doubleDays - Data retention period (at least greater than 0).
- Instance
Desc string - Instance description (up to 1,024 bytes).
- Instance
Name string - Instance name (up to 255 bytes).
- Instance
Status double - Instance status (
1
= creating,2
= running,3
= exception,4
= restarting,5
= stopping,6
= stopped,7
= deleted). - Rum
Taw stringInstance Id - ID of the resource.
- Dictionary<string, string>
- Tag description list. Up to 10 tag key-value pairs are supported and must be unique.
- Updated
At string - Update time.
- Area
Id float64 - Region ID (at least greater than 0).
- Charge
Status float64 - Billing status (
1
= in use,2
= expired,3
= destroyed,4
= assigning,5
= failed). - Charge
Type float64 - Billing type (1: Pay-as-you-go).
- Cluster
Id float64 - Cluster ID.
- Created
At string - Create time.
- Data
Retention float64Days - Data retention period (at least greater than 0).
- Instance
Desc string - Instance description (up to 1,024 bytes).
- Instance
Name string - Instance name (up to 255 bytes).
- Instance
Status float64 - Instance status (
1
= creating,2
= running,3
= exception,4
= restarting,5
= stopping,6
= stopped,7
= deleted). - Rum
Taw stringInstance Id - ID of the resource.
- map[string]string
- Tag description list. Up to 10 tag key-value pairs are supported and must be unique.
- Updated
At string - Update time.
- area
Id Double - Region ID (at least greater than 0).
- charge
Status Double - Billing status (
1
= in use,2
= expired,3
= destroyed,4
= assigning,5
= failed). - charge
Type Double - Billing type (1: Pay-as-you-go).
- cluster
Id Double - Cluster ID.
- created
At String - Create time.
- data
Retention DoubleDays - Data retention period (at least greater than 0).
- instance
Desc String - Instance description (up to 1,024 bytes).
- instance
Name String - Instance name (up to 255 bytes).
- instance
Status Double - Instance status (
1
= creating,2
= running,3
= exception,4
= restarting,5
= stopping,6
= stopped,7
= deleted). - rum
Taw StringInstance Id - ID of the resource.
- Map<String,String>
- Tag description list. Up to 10 tag key-value pairs are supported and must be unique.
- updated
At String - Update time.
- area
Id number - Region ID (at least greater than 0).
- charge
Status number - Billing status (
1
= in use,2
= expired,3
= destroyed,4
= assigning,5
= failed). - charge
Type number - Billing type (1: Pay-as-you-go).
- cluster
Id number - Cluster ID.
- created
At string - Create time.
- data
Retention numberDays - Data retention period (at least greater than 0).
- instance
Desc string - Instance description (up to 1,024 bytes).
- instance
Name string - Instance name (up to 255 bytes).
- instance
Status number - Instance status (
1
= creating,2
= running,3
= exception,4
= restarting,5
= stopping,6
= stopped,7
= deleted). - rum
Taw stringInstance Id - ID of the resource.
- {[key: string]: string}
- Tag description list. Up to 10 tag key-value pairs are supported and must be unique.
- updated
At string - Update time.
- area_
id float - Region ID (at least greater than 0).
- charge_
status float - Billing status (
1
= in use,2
= expired,3
= destroyed,4
= assigning,5
= failed). - charge_
type float - Billing type (1: Pay-as-you-go).
- cluster_
id float - Cluster ID.
- created_
at str - Create time.
- data_
retention_ floatdays - Data retention period (at least greater than 0).
- instance_
desc str - Instance description (up to 1,024 bytes).
- instance_
name str - Instance name (up to 255 bytes).
- instance_
status float - Instance status (
1
= creating,2
= running,3
= exception,4
= restarting,5
= stopping,6
= stopped,7
= deleted). - rum_
taw_ strinstance_ id - ID of the resource.
- Mapping[str, str]
- Tag description list. Up to 10 tag key-value pairs are supported and must be unique.
- updated_
at str - Update time.
- area
Id Number - Region ID (at least greater than 0).
- charge
Status Number - Billing status (
1
= in use,2
= expired,3
= destroyed,4
= assigning,5
= failed). - charge
Type Number - Billing type (1: Pay-as-you-go).
- cluster
Id Number - Cluster ID.
- created
At String - Create time.
- data
Retention NumberDays - Data retention period (at least greater than 0).
- instance
Desc String - Instance description (up to 1,024 bytes).
- instance
Name String - Instance name (up to 255 bytes).
- instance
Status Number - Instance status (
1
= creating,2
= running,3
= exception,4
= restarting,5
= stopping,6
= stopped,7
= deleted). - rum
Taw StringInstance Id - ID of the resource.
- Map<String>
- Tag description list. Up to 10 tag key-value pairs are supported and must be unique.
- updated
At String - Update time.
Import
rum taw_instance can be imported using the id, e.g.
$ pulumi import tencentcloud:index/rumTawInstance:RumTawInstance example rum-WYsjMaiGOVXBeJ
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.