1. Packages
  2. Tencentcloud Provider
  3. API Docs
  4. RumTawInstance
tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack

tencentcloud.RumTawInstance

Explore with Pulumi AI

tencentcloud logo
tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack

    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:

    AreaId double
    Region ID (at least greater than 0).
    ChargeType double
    Billing type (1: Pay-as-you-go).
    DataRetentionDays double
    Data retention period (at least greater than 0).
    InstanceName string
    Instance name (up to 255 bytes).
    InstanceDesc string
    Instance description (up to 1,024 bytes).
    RumTawInstanceId string
    ID of the resource.
    Tags Dictionary<string, string>
    Tag description list. Up to 10 tag key-value pairs are supported and must be unique.
    AreaId float64
    Region ID (at least greater than 0).
    ChargeType float64
    Billing type (1: Pay-as-you-go).
    DataRetentionDays float64
    Data retention period (at least greater than 0).
    InstanceName string
    Instance name (up to 255 bytes).
    InstanceDesc string
    Instance description (up to 1,024 bytes).
    RumTawInstanceId string
    ID of the resource.
    Tags map[string]string
    Tag description list. Up to 10 tag key-value pairs are supported and must be unique.
    areaId Double
    Region ID (at least greater than 0).
    chargeType Double
    Billing type (1: Pay-as-you-go).
    dataRetentionDays Double
    Data retention period (at least greater than 0).
    instanceName String
    Instance name (up to 255 bytes).
    instanceDesc String
    Instance description (up to 1,024 bytes).
    rumTawInstanceId String
    ID of the resource.
    tags Map<String,String>
    Tag description list. Up to 10 tag key-value pairs are supported and must be unique.
    areaId number
    Region ID (at least greater than 0).
    chargeType number
    Billing type (1: Pay-as-you-go).
    dataRetentionDays number
    Data retention period (at least greater than 0).
    instanceName string
    Instance name (up to 255 bytes).
    instanceDesc string
    Instance description (up to 1,024 bytes).
    rumTawInstanceId string
    ID of the resource.
    tags {[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_days float
    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_instance_id str
    ID of the resource.
    tags Mapping[str, str]
    Tag description list. Up to 10 tag key-value pairs are supported and must be unique.
    areaId Number
    Region ID (at least greater than 0).
    chargeType Number
    Billing type (1: Pay-as-you-go).
    dataRetentionDays Number
    Data retention period (at least greater than 0).
    instanceName String
    Instance name (up to 255 bytes).
    instanceDesc String
    Instance description (up to 1,024 bytes).
    rumTawInstanceId String
    ID of the resource.
    tags 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:

    ChargeStatus double
    Billing status (1 = in use, 2 = expired, 3 = destroyed, 4 = assigning, 5 = failed).
    ClusterId double
    Cluster ID.
    CreatedAt string
    Create time.
    Id string
    The provider-assigned unique ID for this managed resource.
    InstanceStatus double
    Instance status (1 = creating, 2 = running, 3 = exception, 4 = restarting, 5 = stopping, 6 = stopped, 7 = deleted).
    UpdatedAt string
    Update time.
    ChargeStatus float64
    Billing status (1 = in use, 2 = expired, 3 = destroyed, 4 = assigning, 5 = failed).
    ClusterId float64
    Cluster ID.
    CreatedAt string
    Create time.
    Id string
    The provider-assigned unique ID for this managed resource.
    InstanceStatus float64
    Instance status (1 = creating, 2 = running, 3 = exception, 4 = restarting, 5 = stopping, 6 = stopped, 7 = deleted).
    UpdatedAt string
    Update time.
    chargeStatus Double
    Billing status (1 = in use, 2 = expired, 3 = destroyed, 4 = assigning, 5 = failed).
    clusterId Double
    Cluster ID.
    createdAt String
    Create time.
    id String
    The provider-assigned unique ID for this managed resource.
    instanceStatus Double
    Instance status (1 = creating, 2 = running, 3 = exception, 4 = restarting, 5 = stopping, 6 = stopped, 7 = deleted).
    updatedAt String
    Update time.
    chargeStatus number
    Billing status (1 = in use, 2 = expired, 3 = destroyed, 4 = assigning, 5 = failed).
    clusterId number
    Cluster ID.
    createdAt string
    Create time.
    id string
    The provider-assigned unique ID for this managed resource.
    instanceStatus number
    Instance status (1 = creating, 2 = running, 3 = exception, 4 = restarting, 5 = stopping, 6 = stopped, 7 = deleted).
    updatedAt 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.
    chargeStatus Number
    Billing status (1 = in use, 2 = expired, 3 = destroyed, 4 = assigning, 5 = failed).
    clusterId Number
    Cluster ID.
    createdAt String
    Create time.
    id String
    The provider-assigned unique ID for this managed resource.
    instanceStatus Number
    Instance status (1 = creating, 2 = running, 3 = exception, 4 = restarting, 5 = stopping, 6 = stopped, 7 = deleted).
    updatedAt 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.
    The following state arguments are supported:
    AreaId double
    Region ID (at least greater than 0).
    ChargeStatus double
    Billing status (1 = in use, 2 = expired, 3 = destroyed, 4 = assigning, 5 = failed).
    ChargeType double
    Billing type (1: Pay-as-you-go).
    ClusterId double
    Cluster ID.
    CreatedAt string
    Create time.
    DataRetentionDays double
    Data retention period (at least greater than 0).
    InstanceDesc string
    Instance description (up to 1,024 bytes).
    InstanceName string
    Instance name (up to 255 bytes).
    InstanceStatus double
    Instance status (1 = creating, 2 = running, 3 = exception, 4 = restarting, 5 = stopping, 6 = stopped, 7 = deleted).
    RumTawInstanceId string
    ID of the resource.
    Tags Dictionary<string, string>
    Tag description list. Up to 10 tag key-value pairs are supported and must be unique.
    UpdatedAt string
    Update time.
    AreaId float64
    Region ID (at least greater than 0).
    ChargeStatus float64
    Billing status (1 = in use, 2 = expired, 3 = destroyed, 4 = assigning, 5 = failed).
    ChargeType float64
    Billing type (1: Pay-as-you-go).
    ClusterId float64
    Cluster ID.
    CreatedAt string
    Create time.
    DataRetentionDays float64
    Data retention period (at least greater than 0).
    InstanceDesc string
    Instance description (up to 1,024 bytes).
    InstanceName string
    Instance name (up to 255 bytes).
    InstanceStatus float64
    Instance status (1 = creating, 2 = running, 3 = exception, 4 = restarting, 5 = stopping, 6 = stopped, 7 = deleted).
    RumTawInstanceId string
    ID of the resource.
    Tags map[string]string
    Tag description list. Up to 10 tag key-value pairs are supported and must be unique.
    UpdatedAt string
    Update time.
    areaId Double
    Region ID (at least greater than 0).
    chargeStatus Double
    Billing status (1 = in use, 2 = expired, 3 = destroyed, 4 = assigning, 5 = failed).
    chargeType Double
    Billing type (1: Pay-as-you-go).
    clusterId Double
    Cluster ID.
    createdAt String
    Create time.
    dataRetentionDays Double
    Data retention period (at least greater than 0).
    instanceDesc String
    Instance description (up to 1,024 bytes).
    instanceName String
    Instance name (up to 255 bytes).
    instanceStatus Double
    Instance status (1 = creating, 2 = running, 3 = exception, 4 = restarting, 5 = stopping, 6 = stopped, 7 = deleted).
    rumTawInstanceId String
    ID of the resource.
    tags Map<String,String>
    Tag description list. Up to 10 tag key-value pairs are supported and must be unique.
    updatedAt String
    Update time.
    areaId number
    Region ID (at least greater than 0).
    chargeStatus number
    Billing status (1 = in use, 2 = expired, 3 = destroyed, 4 = assigning, 5 = failed).
    chargeType number
    Billing type (1: Pay-as-you-go).
    clusterId number
    Cluster ID.
    createdAt string
    Create time.
    dataRetentionDays number
    Data retention period (at least greater than 0).
    instanceDesc string
    Instance description (up to 1,024 bytes).
    instanceName string
    Instance name (up to 255 bytes).
    instanceStatus number
    Instance status (1 = creating, 2 = running, 3 = exception, 4 = restarting, 5 = stopping, 6 = stopped, 7 = deleted).
    rumTawInstanceId string
    ID of the resource.
    tags {[key: string]: string}
    Tag description list. Up to 10 tag key-value pairs are supported and must be unique.
    updatedAt 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_days float
    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_instance_id str
    ID of the resource.
    tags Mapping[str, str]
    Tag description list. Up to 10 tag key-value pairs are supported and must be unique.
    updated_at str
    Update time.
    areaId Number
    Region ID (at least greater than 0).
    chargeStatus Number
    Billing status (1 = in use, 2 = expired, 3 = destroyed, 4 = assigning, 5 = failed).
    chargeType Number
    Billing type (1: Pay-as-you-go).
    clusterId Number
    Cluster ID.
    createdAt String
    Create time.
    dataRetentionDays Number
    Data retention period (at least greater than 0).
    instanceDesc String
    Instance description (up to 1,024 bytes).
    instanceName String
    Instance name (up to 255 bytes).
    instanceStatus Number
    Instance status (1 = creating, 2 = running, 3 = exception, 4 = restarting, 5 = stopping, 6 = stopped, 7 = deleted).
    rumTawInstanceId String
    ID of the resource.
    tags Map<String>
    Tag description list. Up to 10 tag key-value pairs are supported and must be unique.
    updatedAt 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.
    tencentcloud logo
    tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack