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

tencentcloud.RumWhitelist

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 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:

    InstanceId string
    Instance ID, such as taw-123.
    Remark string
    Remarks.
    WhitelistUin string
    uin: business identifier.
    Aid string
    Business identifier.
    RumWhitelistId string
    ID of the resource.
    InstanceId string
    Instance ID, such as taw-123.
    Remark string
    Remarks.
    WhitelistUin string
    uin: business identifier.
    Aid string
    Business identifier.
    RumWhitelistId string
    ID of the resource.
    instanceId String
    Instance ID, such as taw-123.
    remark String
    Remarks.
    whitelistUin String
    uin: business identifier.
    aid String
    Business identifier.
    rumWhitelistId String
    ID of the resource.
    instanceId string
    Instance ID, such as taw-123.
    remark string
    Remarks.
    whitelistUin string
    uin: business identifier.
    aid string
    Business identifier.
    rumWhitelistId string
    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_id str
    ID of the resource.
    instanceId String
    Instance ID, such as taw-123.
    remark String
    Remarks.
    whitelistUin String
    uin: business identifier.
    aid String
    Business identifier.
    rumWhitelistId String
    ID of the resource.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the RumWhitelist resource produces the following output properties:

    CreateTime string
    Creation time.
    CreateUser string
    Creator ID.
    Id string
    The provider-assigned unique ID for this managed resource.
    Ttl string
    End time.
    Wid string
    Auto-Increment allowlist ID.
    CreateTime string
    Creation time.
    CreateUser string
    Creator ID.
    Id string
    The provider-assigned unique ID for this managed resource.
    Ttl string
    End time.
    Wid string
    Auto-Increment allowlist ID.
    createTime String
    Creation time.
    createUser String
    Creator ID.
    id String
    The provider-assigned unique ID for this managed resource.
    ttl String
    End time.
    wid String
    Auto-Increment allowlist ID.
    createTime string
    Creation time.
    createUser 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.
    createTime String
    Creation time.
    createUser 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.
    The following state arguments are supported:
    Aid string
    Business identifier.
    CreateTime string
    Creation time.
    CreateUser string
    Creator ID.
    InstanceId string
    Instance ID, such as taw-123.
    Remark string
    Remarks.
    RumWhitelistId string
    ID of the resource.
    Ttl string
    End time.
    WhitelistUin string
    uin: business identifier.
    Wid string
    Auto-Increment allowlist ID.
    Aid string
    Business identifier.
    CreateTime string
    Creation time.
    CreateUser string
    Creator ID.
    InstanceId string
    Instance ID, such as taw-123.
    Remark string
    Remarks.
    RumWhitelistId string
    ID of the resource.
    Ttl string
    End time.
    WhitelistUin string
    uin: business identifier.
    Wid string
    Auto-Increment allowlist ID.
    aid String
    Business identifier.
    createTime String
    Creation time.
    createUser String
    Creator ID.
    instanceId String
    Instance ID, such as taw-123.
    remark String
    Remarks.
    rumWhitelistId String
    ID of the resource.
    ttl String
    End time.
    whitelistUin String
    uin: business identifier.
    wid String
    Auto-Increment allowlist ID.
    aid string
    Business identifier.
    createTime string
    Creation time.
    createUser string
    Creator ID.
    instanceId string
    Instance ID, such as taw-123.
    remark string
    Remarks.
    rumWhitelistId string
    ID of the resource.
    ttl string
    End time.
    whitelistUin 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_id str
    ID of the resource.
    ttl str
    End time.
    whitelist_uin str
    uin: business identifier.
    wid str
    Auto-Increment allowlist ID.
    aid String
    Business identifier.
    createTime String
    Creation time.
    createUser String
    Creator ID.
    instanceId String
    Instance ID, such as taw-123.
    remark String
    Remarks.
    rumWhitelistId String
    ID of the resource.
    ttl String
    End time.
    whitelistUin 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.
    tencentcloud logo
    tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack