tencentcloud.RumProject
Explore with Pulumi AI
Provides a resource to create a rum project
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const exampleRumTawInstance = new tencentcloud.RumTawInstance("exampleRumTawInstance", {
areaId: 1,
chargeType: 1,
dataRetentionDays: 30,
instanceName: "tf-example",
instanceDesc: "desc.",
tags: {
createdBy: "terraform",
},
});
const exampleRumProject = new tencentcloud.RumProject("exampleRumProject", {
instanceId: exampleRumTawInstance.rumTawInstanceId,
rate: "100",
enableUrlGroup: 0,
type: "web",
repo: "https://github.com/xxx",
url: "iac-tf.com",
desc: "desc.",
});
import pulumi
import pulumi_tencentcloud as tencentcloud
example_rum_taw_instance = tencentcloud.RumTawInstance("exampleRumTawInstance",
area_id=1,
charge_type=1,
data_retention_days=30,
instance_name="tf-example",
instance_desc="desc.",
tags={
"createdBy": "terraform",
})
example_rum_project = tencentcloud.RumProject("exampleRumProject",
instance_id=example_rum_taw_instance.rum_taw_instance_id,
rate="100",
enable_url_group=0,
type="web",
repo="https://github.com/xxx",
url="iac-tf.com",
desc="desc.")
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 {
exampleRumTawInstance, err := tencentcloud.NewRumTawInstance(ctx, "exampleRumTawInstance", &tencentcloud.RumTawInstanceArgs{
AreaId: pulumi.Float64(1),
ChargeType: pulumi.Float64(1),
DataRetentionDays: pulumi.Float64(30),
InstanceName: pulumi.String("tf-example"),
InstanceDesc: pulumi.String("desc."),
Tags: pulumi.StringMap{
"createdBy": pulumi.String("terraform"),
},
})
if err != nil {
return err
}
_, err = tencentcloud.NewRumProject(ctx, "exampleRumProject", &tencentcloud.RumProjectArgs{
InstanceId: exampleRumTawInstance.RumTawInstanceId,
Rate: pulumi.String("100"),
EnableUrlGroup: pulumi.Float64(0),
Type: pulumi.String("web"),
Repo: pulumi.String("https://github.com/xxx"),
Url: pulumi.String("iac-tf.com"),
Desc: pulumi.String("desc."),
})
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 exampleRumTawInstance = new Tencentcloud.RumTawInstance("exampleRumTawInstance", new()
{
AreaId = 1,
ChargeType = 1,
DataRetentionDays = 30,
InstanceName = "tf-example",
InstanceDesc = "desc.",
Tags =
{
{ "createdBy", "terraform" },
},
});
var exampleRumProject = new Tencentcloud.RumProject("exampleRumProject", new()
{
InstanceId = exampleRumTawInstance.RumTawInstanceId,
Rate = "100",
EnableUrlGroup = 0,
Type = "web",
Repo = "https://github.com/xxx",
Url = "iac-tf.com",
Desc = "desc.",
});
});
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 com.pulumi.tencentcloud.RumProject;
import com.pulumi.tencentcloud.RumProjectArgs;
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 exampleRumTawInstance = new RumTawInstance("exampleRumTawInstance", RumTawInstanceArgs.builder()
.areaId("1")
.chargeType("1")
.dataRetentionDays("30")
.instanceName("tf-example")
.instanceDesc("desc.")
.tags(Map.of("createdBy", "terraform"))
.build());
var exampleRumProject = new RumProject("exampleRumProject", RumProjectArgs.builder()
.instanceId(exampleRumTawInstance.rumTawInstanceId())
.rate("100")
.enableUrlGroup("0")
.type("web")
.repo("https://github.com/xxx")
.url("iac-tf.com")
.desc("desc.")
.build());
}
}
resources:
exampleRumTawInstance:
type: tencentcloud:RumTawInstance
properties:
areaId: '1'
chargeType: '1'
dataRetentionDays: '30'
instanceName: tf-example
instanceDesc: desc.
tags:
createdBy: terraform
exampleRumProject:
type: tencentcloud:RumProject
properties:
instanceId: ${exampleRumTawInstance.rumTawInstanceId}
rate: '100'
enableUrlGroup: '0'
type: web
repo: https://github.com/xxx
url: iac-tf.com
desc: desc.
Create RumProject Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new RumProject(name: string, args: RumProjectArgs, opts?: CustomResourceOptions);
@overload
def RumProject(resource_name: str,
args: RumProjectArgs,
opts: Optional[ResourceOptions] = None)
@overload
def RumProject(resource_name: str,
opts: Optional[ResourceOptions] = None,
enable_url_group: Optional[float] = None,
instance_id: Optional[str] = None,
rate: Optional[str] = None,
type: Optional[str] = None,
desc: Optional[str] = None,
name: Optional[str] = None,
repo: Optional[str] = None,
rum_project_id: Optional[str] = None,
url: Optional[str] = None)
func NewRumProject(ctx *Context, name string, args RumProjectArgs, opts ...ResourceOption) (*RumProject, error)
public RumProject(string name, RumProjectArgs args, CustomResourceOptions? opts = null)
public RumProject(String name, RumProjectArgs args)
public RumProject(String name, RumProjectArgs args, CustomResourceOptions options)
type: tencentcloud:RumProject
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 RumProjectArgs
- 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 RumProjectArgs
- 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 RumProjectArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args RumProjectArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args RumProjectArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
RumProject 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 RumProject resource accepts the following input properties:
- Enable
Url doubleGroup - Whether to enable aggregation.
- Instance
Id string - Business system ID.
- Rate string
- Project sampling rate (greater than or equal to 0).
- Type string
- Project type (valid values:
web
,mp
,android
,ios
,node
,hippy
,weex
,viola
,rn
). - Desc string
- Description of the created project (optional and up to 1,000 characters).
- Name string
- Name of the created project (required and up to 200 characters).
- Repo string
- Repository address of the project (optional and up to 256 characters).
- Rum
Project stringId - ID of the resource.
- Url string
- Webpage address of the project (optional and up to 256 characters).
- Enable
Url float64Group - Whether to enable aggregation.
- Instance
Id string - Business system ID.
- Rate string
- Project sampling rate (greater than or equal to 0).
- Type string
- Project type (valid values:
web
,mp
,android
,ios
,node
,hippy
,weex
,viola
,rn
). - Desc string
- Description of the created project (optional and up to 1,000 characters).
- Name string
- Name of the created project (required and up to 200 characters).
- Repo string
- Repository address of the project (optional and up to 256 characters).
- Rum
Project stringId - ID of the resource.
- Url string
- Webpage address of the project (optional and up to 256 characters).
- enable
Url DoubleGroup - Whether to enable aggregation.
- instance
Id String - Business system ID.
- rate String
- Project sampling rate (greater than or equal to 0).
- type String
- Project type (valid values:
web
,mp
,android
,ios
,node
,hippy
,weex
,viola
,rn
). - desc String
- Description of the created project (optional and up to 1,000 characters).
- name String
- Name of the created project (required and up to 200 characters).
- repo String
- Repository address of the project (optional and up to 256 characters).
- rum
Project StringId - ID of the resource.
- url String
- Webpage address of the project (optional and up to 256 characters).
- enable
Url numberGroup - Whether to enable aggregation.
- instance
Id string - Business system ID.
- rate string
- Project sampling rate (greater than or equal to 0).
- type string
- Project type (valid values:
web
,mp
,android
,ios
,node
,hippy
,weex
,viola
,rn
). - desc string
- Description of the created project (optional and up to 1,000 characters).
- name string
- Name of the created project (required and up to 200 characters).
- repo string
- Repository address of the project (optional and up to 256 characters).
- rum
Project stringId - ID of the resource.
- url string
- Webpage address of the project (optional and up to 256 characters).
- enable_
url_ floatgroup - Whether to enable aggregation.
- instance_
id str - Business system ID.
- rate str
- Project sampling rate (greater than or equal to 0).
- type str
- Project type (valid values:
web
,mp
,android
,ios
,node
,hippy
,weex
,viola
,rn
). - desc str
- Description of the created project (optional and up to 1,000 characters).
- name str
- Name of the created project (required and up to 200 characters).
- repo str
- Repository address of the project (optional and up to 256 characters).
- rum_
project_ strid - ID of the resource.
- url str
- Webpage address of the project (optional and up to 256 characters).
- enable
Url NumberGroup - Whether to enable aggregation.
- instance
Id String - Business system ID.
- rate String
- Project sampling rate (greater than or equal to 0).
- type String
- Project type (valid values:
web
,mp
,android
,ios
,node
,hippy
,weex
,viola
,rn
). - desc String
- Description of the created project (optional and up to 1,000 characters).
- name String
- Name of the created project (required and up to 200 characters).
- repo String
- Repository address of the project (optional and up to 256 characters).
- rum
Project StringId - ID of the resource.
- url String
- Webpage address of the project (optional and up to 256 characters).
Outputs
All input properties are implicitly available as output properties. Additionally, the RumProject resource produces the following output properties:
- Create
Time string - Create Time.
- Creator string
- Creator ID.
- Id string
- The provider-assigned unique ID for this managed resource.
- Instance
Key string - Instance key.
- Instance
Name string - Instance name.
- Is
Star double - Starred status.
1
: yes;0
: no. - Key string
- Unique project key (12 characters).
- Project
Status double - Project status (
1
: Creating;2
: Running;3
: Abnormal;4
: Restarting;5
: Stopping;6
: Stopped;7
: Terminating;8
: Terminated).
- Create
Time string - Create Time.
- Creator string
- Creator ID.
- Id string
- The provider-assigned unique ID for this managed resource.
- Instance
Key string - Instance key.
- Instance
Name string - Instance name.
- Is
Star float64 - Starred status.
1
: yes;0
: no. - Key string
- Unique project key (12 characters).
- Project
Status float64 - Project status (
1
: Creating;2
: Running;3
: Abnormal;4
: Restarting;5
: Stopping;6
: Stopped;7
: Terminating;8
: Terminated).
- create
Time String - Create Time.
- creator String
- Creator ID.
- id String
- The provider-assigned unique ID for this managed resource.
- instance
Key String - Instance key.
- instance
Name String - Instance name.
- is
Star Double - Starred status.
1
: yes;0
: no. - key String
- Unique project key (12 characters).
- project
Status Double - Project status (
1
: Creating;2
: Running;3
: Abnormal;4
: Restarting;5
: Stopping;6
: Stopped;7
: Terminating;8
: Terminated).
- create
Time string - Create Time.
- creator string
- Creator ID.
- id string
- The provider-assigned unique ID for this managed resource.
- instance
Key string - Instance key.
- instance
Name string - Instance name.
- is
Star number - Starred status.
1
: yes;0
: no. - key string
- Unique project key (12 characters).
- project
Status number - Project status (
1
: Creating;2
: Running;3
: Abnormal;4
: Restarting;5
: Stopping;6
: Stopped;7
: Terminating;8
: Terminated).
- create_
time str - Create Time.
- creator str
- Creator ID.
- id str
- The provider-assigned unique ID for this managed resource.
- instance_
key str - Instance key.
- instance_
name str - Instance name.
- is_
star float - Starred status.
1
: yes;0
: no. - key str
- Unique project key (12 characters).
- project_
status float - Project status (
1
: Creating;2
: Running;3
: Abnormal;4
: Restarting;5
: Stopping;6
: Stopped;7
: Terminating;8
: Terminated).
- create
Time String - Create Time.
- creator String
- Creator ID.
- id String
- The provider-assigned unique ID for this managed resource.
- instance
Key String - Instance key.
- instance
Name String - Instance name.
- is
Star Number - Starred status.
1
: yes;0
: no. - key String
- Unique project key (12 characters).
- project
Status Number - Project status (
1
: Creating;2
: Running;3
: Abnormal;4
: Restarting;5
: Stopping;6
: Stopped;7
: Terminating;8
: Terminated).
Look up Existing RumProject Resource
Get an existing RumProject 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?: RumProjectState, opts?: CustomResourceOptions): RumProject
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
create_time: Optional[str] = None,
creator: Optional[str] = None,
desc: Optional[str] = None,
enable_url_group: Optional[float] = None,
instance_id: Optional[str] = None,
instance_key: Optional[str] = None,
instance_name: Optional[str] = None,
is_star: Optional[float] = None,
key: Optional[str] = None,
name: Optional[str] = None,
project_status: Optional[float] = None,
rate: Optional[str] = None,
repo: Optional[str] = None,
rum_project_id: Optional[str] = None,
type: Optional[str] = None,
url: Optional[str] = None) -> RumProject
func GetRumProject(ctx *Context, name string, id IDInput, state *RumProjectState, opts ...ResourceOption) (*RumProject, error)
public static RumProject Get(string name, Input<string> id, RumProjectState? state, CustomResourceOptions? opts = null)
public static RumProject get(String name, Output<String> id, RumProjectState state, CustomResourceOptions options)
resources: _: type: tencentcloud:RumProject 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.
- Create
Time string - Create Time.
- Creator string
- Creator ID.
- Desc string
- Description of the created project (optional and up to 1,000 characters).
- Enable
Url doubleGroup - Whether to enable aggregation.
- Instance
Id string - Business system ID.
- Instance
Key string - Instance key.
- Instance
Name string - Instance name.
- Is
Star double - Starred status.
1
: yes;0
: no. - Key string
- Unique project key (12 characters).
- Name string
- Name of the created project (required and up to 200 characters).
- Project
Status double - Project status (
1
: Creating;2
: Running;3
: Abnormal;4
: Restarting;5
: Stopping;6
: Stopped;7
: Terminating;8
: Terminated). - Rate string
- Project sampling rate (greater than or equal to 0).
- Repo string
- Repository address of the project (optional and up to 256 characters).
- Rum
Project stringId - ID of the resource.
- Type string
- Project type (valid values:
web
,mp
,android
,ios
,node
,hippy
,weex
,viola
,rn
). - Url string
- Webpage address of the project (optional and up to 256 characters).
- Create
Time string - Create Time.
- Creator string
- Creator ID.
- Desc string
- Description of the created project (optional and up to 1,000 characters).
- Enable
Url float64Group - Whether to enable aggregation.
- Instance
Id string - Business system ID.
- Instance
Key string - Instance key.
- Instance
Name string - Instance name.
- Is
Star float64 - Starred status.
1
: yes;0
: no. - Key string
- Unique project key (12 characters).
- Name string
- Name of the created project (required and up to 200 characters).
- Project
Status float64 - Project status (
1
: Creating;2
: Running;3
: Abnormal;4
: Restarting;5
: Stopping;6
: Stopped;7
: Terminating;8
: Terminated). - Rate string
- Project sampling rate (greater than or equal to 0).
- Repo string
- Repository address of the project (optional and up to 256 characters).
- Rum
Project stringId - ID of the resource.
- Type string
- Project type (valid values:
web
,mp
,android
,ios
,node
,hippy
,weex
,viola
,rn
). - Url string
- Webpage address of the project (optional and up to 256 characters).
- create
Time String - Create Time.
- creator String
- Creator ID.
- desc String
- Description of the created project (optional and up to 1,000 characters).
- enable
Url DoubleGroup - Whether to enable aggregation.
- instance
Id String - Business system ID.
- instance
Key String - Instance key.
- instance
Name String - Instance name.
- is
Star Double - Starred status.
1
: yes;0
: no. - key String
- Unique project key (12 characters).
- name String
- Name of the created project (required and up to 200 characters).
- project
Status Double - Project status (
1
: Creating;2
: Running;3
: Abnormal;4
: Restarting;5
: Stopping;6
: Stopped;7
: Terminating;8
: Terminated). - rate String
- Project sampling rate (greater than or equal to 0).
- repo String
- Repository address of the project (optional and up to 256 characters).
- rum
Project StringId - ID of the resource.
- type String
- Project type (valid values:
web
,mp
,android
,ios
,node
,hippy
,weex
,viola
,rn
). - url String
- Webpage address of the project (optional and up to 256 characters).
- create
Time string - Create Time.
- creator string
- Creator ID.
- desc string
- Description of the created project (optional and up to 1,000 characters).
- enable
Url numberGroup - Whether to enable aggregation.
- instance
Id string - Business system ID.
- instance
Key string - Instance key.
- instance
Name string - Instance name.
- is
Star number - Starred status.
1
: yes;0
: no. - key string
- Unique project key (12 characters).
- name string
- Name of the created project (required and up to 200 characters).
- project
Status number - Project status (
1
: Creating;2
: Running;3
: Abnormal;4
: Restarting;5
: Stopping;6
: Stopped;7
: Terminating;8
: Terminated). - rate string
- Project sampling rate (greater than or equal to 0).
- repo string
- Repository address of the project (optional and up to 256 characters).
- rum
Project stringId - ID of the resource.
- type string
- Project type (valid values:
web
,mp
,android
,ios
,node
,hippy
,weex
,viola
,rn
). - url string
- Webpage address of the project (optional and up to 256 characters).
- create_
time str - Create Time.
- creator str
- Creator ID.
- desc str
- Description of the created project (optional and up to 1,000 characters).
- enable_
url_ floatgroup - Whether to enable aggregation.
- instance_
id str - Business system ID.
- instance_
key str - Instance key.
- instance_
name str - Instance name.
- is_
star float - Starred status.
1
: yes;0
: no. - key str
- Unique project key (12 characters).
- name str
- Name of the created project (required and up to 200 characters).
- project_
status float - Project status (
1
: Creating;2
: Running;3
: Abnormal;4
: Restarting;5
: Stopping;6
: Stopped;7
: Terminating;8
: Terminated). - rate str
- Project sampling rate (greater than or equal to 0).
- repo str
- Repository address of the project (optional and up to 256 characters).
- rum_
project_ strid - ID of the resource.
- type str
- Project type (valid values:
web
,mp
,android
,ios
,node
,hippy
,weex
,viola
,rn
). - url str
- Webpage address of the project (optional and up to 256 characters).
- create
Time String - Create Time.
- creator String
- Creator ID.
- desc String
- Description of the created project (optional and up to 1,000 characters).
- enable
Url NumberGroup - Whether to enable aggregation.
- instance
Id String - Business system ID.
- instance
Key String - Instance key.
- instance
Name String - Instance name.
- is
Star Number - Starred status.
1
: yes;0
: no. - key String
- Unique project key (12 characters).
- name String
- Name of the created project (required and up to 200 characters).
- project
Status Number - Project status (
1
: Creating;2
: Running;3
: Abnormal;4
: Restarting;5
: Stopping;6
: Stopped;7
: Terminating;8
: Terminated). - rate String
- Project sampling rate (greater than or equal to 0).
- repo String
- Repository address of the project (optional and up to 256 characters).
- rum
Project StringId - ID of the resource.
- type String
- Project type (valid values:
web
,mp
,android
,ios
,node
,hippy
,weex
,viola
,rn
). - url String
- Webpage address of the project (optional and up to 256 characters).
Import
rum project can be imported using the id, e.g.
$ pulumi import tencentcloud:index/rumProject:RumProject example 139422
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.