tencentcloud.RumWhitelist
Explore with Pulumi AI
Provides a resource to create a rum whitelist
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const whitelist = new tencentcloud.RumWhitelist("whitelist", {
instanceId: "rum-pasZKEI3RLgakj",
remark: "white list remark",
whitelistUin: "20221122",
});
import pulumi
import pulumi_tencentcloud as tencentcloud
whitelist = tencentcloud.RumWhitelist("whitelist",
instance_id="rum-pasZKEI3RLgakj",
remark="white list remark",
whitelist_uin="20221122")
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.NewRumWhitelist(ctx, "whitelist", &tencentcloud.RumWhitelistArgs{
InstanceId: pulumi.String("rum-pasZKEI3RLgakj"),
Remark: pulumi.String("white list remark"),
WhitelistUin: pulumi.String("20221122"),
})
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 whitelist = new Tencentcloud.RumWhitelist("whitelist", new()
{
InstanceId = "rum-pasZKEI3RLgakj",
Remark = "white list remark",
WhitelistUin = "20221122",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.RumWhitelist;
import com.pulumi.tencentcloud.RumWhitelistArgs;
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 whitelist = new RumWhitelist("whitelist", RumWhitelistArgs.builder()
.instanceId("rum-pasZKEI3RLgakj")
.remark("white list remark")
.whitelistUin("20221122")
.build());
}
}
resources:
whitelist:
type: tencentcloud:RumWhitelist
properties:
instanceId: rum-pasZKEI3RLgakj
remark: white list remark
whitelistUin: '20221122'
Create RumWhitelist Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new RumWhitelist(name: string, args: RumWhitelistArgs, opts?: CustomResourceOptions);
@overload
def RumWhitelist(resource_name: str,
args: RumWhitelistArgs,
opts: Optional[ResourceOptions] = None)
@overload
def RumWhitelist(resource_name: str,
opts: Optional[ResourceOptions] = None,
instance_id: Optional[str] = None,
remark: Optional[str] = None,
whitelist_uin: Optional[str] = None,
aid: Optional[str] = None,
rum_whitelist_id: Optional[str] = None)
func NewRumWhitelist(ctx *Context, name string, args RumWhitelistArgs, opts ...ResourceOption) (*RumWhitelist, error)
public RumWhitelist(string name, RumWhitelistArgs args, CustomResourceOptions? opts = null)
public RumWhitelist(String name, RumWhitelistArgs args)
public RumWhitelist(String name, RumWhitelistArgs args, CustomResourceOptions options)
type: tencentcloud:RumWhitelist
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 RumWhitelistArgs
- 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 RumWhitelistArgs
- 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 RumWhitelistArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args RumWhitelistArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args RumWhitelistArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
RumWhitelist 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 RumWhitelist resource accepts the following input properties:
- Instance
Id string - Instance ID, such as taw-123.
- Remark string
- Remarks.
- Whitelist
Uin string - uin: business identifier.
- Aid string
- Business identifier.
- Rum
Whitelist stringId - ID of the resource.
- Instance
Id string - Instance ID, such as taw-123.
- Remark string
- Remarks.
- Whitelist
Uin string - uin: business identifier.
- Aid string
- Business identifier.
- Rum
Whitelist stringId - ID of the resource.
- instance
Id String - Instance ID, such as taw-123.
- remark String
- Remarks.
- whitelist
Uin String - uin: business identifier.
- aid String
- Business identifier.
- rum
Whitelist StringId - ID of the resource.
- instance
Id string - Instance ID, such as taw-123.
- remark string
- Remarks.
- whitelist
Uin string - uin: business identifier.
- aid string
- Business identifier.
- rum
Whitelist stringId - ID of the resource.
- instance_
id str - Instance ID, such as taw-123.
- remark str
- Remarks.
- whitelist_
uin str - uin: business identifier.
- aid str
- Business identifier.
- rum_
whitelist_ strid - ID of the resource.
- instance
Id String - Instance ID, such as taw-123.
- remark String
- Remarks.
- whitelist
Uin String - uin: business identifier.
- aid String
- Business identifier.
- rum
Whitelist StringId - ID of the resource.
Outputs
All input properties are implicitly available as output properties. Additionally, the RumWhitelist resource produces the following output properties:
- Create
Time string - Creation time.
- Create
User string - Creator ID.
- Id string
- The provider-assigned unique ID for this managed resource.
- Ttl string
- End time.
- Wid string
- Auto-Increment allowlist ID.
- Create
Time string - Creation time.
- Create
User string - Creator ID.
- Id string
- The provider-assigned unique ID for this managed resource.
- Ttl string
- End time.
- Wid string
- Auto-Increment allowlist ID.
- create
Time String - Creation time.
- create
User String - Creator ID.
- id String
- The provider-assigned unique ID for this managed resource.
- ttl String
- End time.
- wid String
- Auto-Increment allowlist ID.
- create
Time string - Creation time.
- create
User string - Creator ID.
- id string
- The provider-assigned unique ID for this managed resource.
- ttl string
- End time.
- wid string
- Auto-Increment allowlist ID.
- create_
time str - Creation time.
- create_
user str - Creator ID.
- id str
- The provider-assigned unique ID for this managed resource.
- ttl str
- End time.
- wid str
- Auto-Increment allowlist ID.
- create
Time String - Creation time.
- create
User String - Creator ID.
- id String
- The provider-assigned unique ID for this managed resource.
- ttl String
- End time.
- wid String
- Auto-Increment allowlist ID.
Look up Existing RumWhitelist Resource
Get an existing RumWhitelist 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?: RumWhitelistState, opts?: CustomResourceOptions): RumWhitelist
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
aid: Optional[str] = None,
create_time: Optional[str] = None,
create_user: Optional[str] = None,
instance_id: Optional[str] = None,
remark: Optional[str] = None,
rum_whitelist_id: Optional[str] = None,
ttl: Optional[str] = None,
whitelist_uin: Optional[str] = None,
wid: Optional[str] = None) -> RumWhitelist
func GetRumWhitelist(ctx *Context, name string, id IDInput, state *RumWhitelistState, opts ...ResourceOption) (*RumWhitelist, error)
public static RumWhitelist Get(string name, Input<string> id, RumWhitelistState? state, CustomResourceOptions? opts = null)
public static RumWhitelist get(String name, Output<String> id, RumWhitelistState state, CustomResourceOptions options)
resources: _: type: tencentcloud:RumWhitelist 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.
- Aid string
- Business identifier.
- Create
Time string - Creation time.
- Create
User string - Creator ID.
- Instance
Id string - Instance ID, such as taw-123.
- Remark string
- Remarks.
- Rum
Whitelist stringId - ID of the resource.
- Ttl string
- End time.
- Whitelist
Uin string - uin: business identifier.
- Wid string
- Auto-Increment allowlist ID.
- Aid string
- Business identifier.
- Create
Time string - Creation time.
- Create
User string - Creator ID.
- Instance
Id string - Instance ID, such as taw-123.
- Remark string
- Remarks.
- Rum
Whitelist stringId - ID of the resource.
- Ttl string
- End time.
- Whitelist
Uin string - uin: business identifier.
- Wid string
- Auto-Increment allowlist ID.
- aid String
- Business identifier.
- create
Time String - Creation time.
- create
User String - Creator ID.
- instance
Id String - Instance ID, such as taw-123.
- remark String
- Remarks.
- rum
Whitelist StringId - ID of the resource.
- ttl String
- End time.
- whitelist
Uin String - uin: business identifier.
- wid String
- Auto-Increment allowlist ID.
- aid string
- Business identifier.
- create
Time string - Creation time.
- create
User string - Creator ID.
- instance
Id string - Instance ID, such as taw-123.
- remark string
- Remarks.
- rum
Whitelist stringId - ID of the resource.
- ttl string
- End time.
- whitelist
Uin string - uin: business identifier.
- wid string
- Auto-Increment allowlist ID.
- aid str
- Business identifier.
- create_
time str - Creation time.
- create_
user str - Creator ID.
- instance_
id str - Instance ID, such as taw-123.
- remark str
- Remarks.
- rum_
whitelist_ strid - ID of the resource.
- ttl str
- End time.
- whitelist_
uin str - uin: business identifier.
- wid str
- Auto-Increment allowlist ID.
- aid String
- Business identifier.
- create
Time String - Creation time.
- create
User String - Creator ID.
- instance
Id String - Instance ID, such as taw-123.
- remark String
- Remarks.
- rum
Whitelist StringId - ID of the resource.
- ttl String
- End time.
- whitelist
Uin String - uin: business identifier.
- wid String
- Auto-Increment allowlist ID.
Import
rum whitelist can be imported using the id, e.g.
$ pulumi import tencentcloud:index/rumWhitelist:RumWhitelist whitelist whitelist_id
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.