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

tencentcloud.RumOfflineLogConfigAttachment

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 offline_log_config_attachment

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const offlineLogConfigAttachment = new tencentcloud.RumOfflineLogConfigAttachment("offlineLogConfigAttachment", {
        projectKey: "ZEYrYfvaYQ30jRdmPx",
        uniqueId: "100027012454",
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    offline_log_config_attachment = tencentcloud.RumOfflineLogConfigAttachment("offlineLogConfigAttachment",
        project_key="ZEYrYfvaYQ30jRdmPx",
        unique_id="100027012454")
    
    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.NewRumOfflineLogConfigAttachment(ctx, "offlineLogConfigAttachment", &tencentcloud.RumOfflineLogConfigAttachmentArgs{
    			ProjectKey: pulumi.String("ZEYrYfvaYQ30jRdmPx"),
    			UniqueId:   pulumi.String("100027012454"),
    		})
    		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 offlineLogConfigAttachment = new Tencentcloud.RumOfflineLogConfigAttachment("offlineLogConfigAttachment", new()
        {
            ProjectKey = "ZEYrYfvaYQ30jRdmPx",
            UniqueId = "100027012454",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.tencentcloud.RumOfflineLogConfigAttachment;
    import com.pulumi.tencentcloud.RumOfflineLogConfigAttachmentArgs;
    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 offlineLogConfigAttachment = new RumOfflineLogConfigAttachment("offlineLogConfigAttachment", RumOfflineLogConfigAttachmentArgs.builder()
                .projectKey("ZEYrYfvaYQ30jRdmPx")
                .uniqueId("100027012454")
                .build());
    
        }
    }
    
    resources:
      offlineLogConfigAttachment:
        type: tencentcloud:RumOfflineLogConfigAttachment
        properties:
          projectKey: ZEYrYfvaYQ30jRdmPx
          uniqueId: '100027012454'
    

    Create RumOfflineLogConfigAttachment Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new RumOfflineLogConfigAttachment(name: string, args: RumOfflineLogConfigAttachmentArgs, opts?: CustomResourceOptions);
    @overload
    def RumOfflineLogConfigAttachment(resource_name: str,
                                      args: RumOfflineLogConfigAttachmentArgs,
                                      opts: Optional[ResourceOptions] = None)
    
    @overload
    def RumOfflineLogConfigAttachment(resource_name: str,
                                      opts: Optional[ResourceOptions] = None,
                                      project_key: Optional[str] = None,
                                      unique_id: Optional[str] = None,
                                      rum_offline_log_config_attachment_id: Optional[str] = None)
    func NewRumOfflineLogConfigAttachment(ctx *Context, name string, args RumOfflineLogConfigAttachmentArgs, opts ...ResourceOption) (*RumOfflineLogConfigAttachment, error)
    public RumOfflineLogConfigAttachment(string name, RumOfflineLogConfigAttachmentArgs args, CustomResourceOptions? opts = null)
    public RumOfflineLogConfigAttachment(String name, RumOfflineLogConfigAttachmentArgs args)
    public RumOfflineLogConfigAttachment(String name, RumOfflineLogConfigAttachmentArgs args, CustomResourceOptions options)
    
    type: tencentcloud:RumOfflineLogConfigAttachment
    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 RumOfflineLogConfigAttachmentArgs
    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 RumOfflineLogConfigAttachmentArgs
    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 RumOfflineLogConfigAttachmentArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args RumOfflineLogConfigAttachmentArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args RumOfflineLogConfigAttachmentArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    RumOfflineLogConfigAttachment 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 RumOfflineLogConfigAttachment resource accepts the following input properties:

    ProjectKey string
    Unique project key for reporting.
    UniqueId string
    Unique identifier of the user to be listened on(aid or uin).
    RumOfflineLogConfigAttachmentId string
    ID of the resource.
    ProjectKey string
    Unique project key for reporting.
    UniqueId string
    Unique identifier of the user to be listened on(aid or uin).
    RumOfflineLogConfigAttachmentId string
    ID of the resource.
    projectKey String
    Unique project key for reporting.
    uniqueId String
    Unique identifier of the user to be listened on(aid or uin).
    rumOfflineLogConfigAttachmentId String
    ID of the resource.
    projectKey string
    Unique project key for reporting.
    uniqueId string
    Unique identifier of the user to be listened on(aid or uin).
    rumOfflineLogConfigAttachmentId string
    ID of the resource.
    project_key str
    Unique project key for reporting.
    unique_id str
    Unique identifier of the user to be listened on(aid or uin).
    rum_offline_log_config_attachment_id str
    ID of the resource.
    projectKey String
    Unique project key for reporting.
    uniqueId String
    Unique identifier of the user to be listened on(aid or uin).
    rumOfflineLogConfigAttachmentId String
    ID of the resource.

    Outputs

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

    Id string
    The provider-assigned unique ID for this managed resource.
    Msg string
    Interface call information.
    Id string
    The provider-assigned unique ID for this managed resource.
    Msg string
    Interface call information.
    id String
    The provider-assigned unique ID for this managed resource.
    msg String
    Interface call information.
    id string
    The provider-assigned unique ID for this managed resource.
    msg string
    Interface call information.
    id str
    The provider-assigned unique ID for this managed resource.
    msg str
    Interface call information.
    id String
    The provider-assigned unique ID for this managed resource.
    msg String
    Interface call information.

    Look up Existing RumOfflineLogConfigAttachment Resource

    Get an existing RumOfflineLogConfigAttachment 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?: RumOfflineLogConfigAttachmentState, opts?: CustomResourceOptions): RumOfflineLogConfigAttachment
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            msg: Optional[str] = None,
            project_key: Optional[str] = None,
            rum_offline_log_config_attachment_id: Optional[str] = None,
            unique_id: Optional[str] = None) -> RumOfflineLogConfigAttachment
    func GetRumOfflineLogConfigAttachment(ctx *Context, name string, id IDInput, state *RumOfflineLogConfigAttachmentState, opts ...ResourceOption) (*RumOfflineLogConfigAttachment, error)
    public static RumOfflineLogConfigAttachment Get(string name, Input<string> id, RumOfflineLogConfigAttachmentState? state, CustomResourceOptions? opts = null)
    public static RumOfflineLogConfigAttachment get(String name, Output<String> id, RumOfflineLogConfigAttachmentState state, CustomResourceOptions options)
    resources:  _:    type: tencentcloud:RumOfflineLogConfigAttachment    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:
    Msg string
    Interface call information.
    ProjectKey string
    Unique project key for reporting.
    RumOfflineLogConfigAttachmentId string
    ID of the resource.
    UniqueId string
    Unique identifier of the user to be listened on(aid or uin).
    Msg string
    Interface call information.
    ProjectKey string
    Unique project key for reporting.
    RumOfflineLogConfigAttachmentId string
    ID of the resource.
    UniqueId string
    Unique identifier of the user to be listened on(aid or uin).
    msg String
    Interface call information.
    projectKey String
    Unique project key for reporting.
    rumOfflineLogConfigAttachmentId String
    ID of the resource.
    uniqueId String
    Unique identifier of the user to be listened on(aid or uin).
    msg string
    Interface call information.
    projectKey string
    Unique project key for reporting.
    rumOfflineLogConfigAttachmentId string
    ID of the resource.
    uniqueId string
    Unique identifier of the user to be listened on(aid or uin).
    msg str
    Interface call information.
    project_key str
    Unique project key for reporting.
    rum_offline_log_config_attachment_id str
    ID of the resource.
    unique_id str
    Unique identifier of the user to be listened on(aid or uin).
    msg String
    Interface call information.
    projectKey String
    Unique project key for reporting.
    rumOfflineLogConfigAttachmentId String
    ID of the resource.
    uniqueId String
    Unique identifier of the user to be listened on(aid or uin).

    Import

    rum offline_log_config_attachment can be imported using the id, e.g.

    $ pulumi import tencentcloud:index/rumOfflineLogConfigAttachment:RumOfflineLogConfigAttachment offline_log_config_attachment ZEYrYfvaYQ30jRdmPx#100027012454
    

    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