<gh_stars>0// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***

using System;
using System.Collections.Generic;
using System.Collections.Immutable;
using System.Threading.Tasks;
using Pulumi.Serialization;
using Pulumi;

namespace TencentCloudIAC.PulumiPackage.Tencentcloud.Rum
{
    /// <summary>
    /// Provides a resource to create a rum offline_log_config_attachment
    /// 
    /// ## Example Usage
    /// 
    /// ```csharp
    /// using Pulumi;
    /// using Tencentcloud = TencentCloudIAC.PulumiPackage.Tencentcloud;
    /// 
    /// class MyStack : Stack
    /// {
    ///     public MyStack()
    ///     {
    ///         var offlineLogConfigAttachment = new Tencentcloud.Rum.OfflineLogConfigAttachment("offlineLogConfigAttachment", new Tencentcloud.Rum.OfflineLogConfigAttachmentArgs
    ///         {
    ///             ProjectKey = "ZEYrYfvaYQ30jRdmPx",
    ///             UniqueId = "100027012454",
    ///         });
    ///     }
    /// 
    /// }
    /// ```
    /// 
    /// ## Import
    /// 
    /// rum offline_log_config_attachment can be imported using the id, e.g.
    /// 
    /// ```sh
    ///  $ pulumi import tencentcloud:Rum/offlineLogConfigAttachment:OfflineLogConfigAttachment offline_log_config_attachment ZEYrYfvaYQ30jRdmPx#100027012454
    /// ```
    /// </summary>
    [TencentcloudResourceType("tencentcloud:Rum/offlineLogConfigAttachment:OfflineLogConfigAttachment")]
    public partial class OfflineLogConfigAttachment : Pulumi.CustomResource
    {
        /// <summary>
        /// Interface call information.
        /// </summary>
        [Output("msg")]
        public Output<string> Msg { get; private set; } = null!;

        /// <summary>
        /// Unique project key for reporting.
        /// </summary>
        [Output("projectKey")]
        public Output<string> ProjectKey { get; private set; } = null!;

        /// <summary>
        /// Unique identifier of the user to be listened on(aid or uin).
        /// </summary>
        [Output("uniqueId")]
        public Output<string> UniqueId { get; private set; } = null!;


        /// <summary>
        /// Create a OfflineLogConfigAttachment resource with the given unique name, arguments, and options.
        /// </summary>
        ///
        /// <param name="name">The unique name of the resource</param>
        /// <param name="args">The arguments used to populate this resource's properties</param>
        /// <param name="options">A bag of options that control this resource's behavior</param>
        public OfflineLogConfigAttachment(string name, OfflineLogConfigAttachmentArgs args, CustomResourceOptions? options = null)
            : base("tencentcloud:Rum/offlineLogConfigAttachment:OfflineLogConfigAttachment", name, args ?? new OfflineLogConfigAttachmentArgs(), MakeResourceOptions(options, ""))
        {
        }

        private OfflineLogConfigAttachment(string name, Input<string> id, OfflineLogConfigAttachmentState? state = null, CustomResourceOptions? options = null)
            : base("tencentcloud:Rum/offlineLogConfigAttachment:OfflineLogConfigAttachment", name, state, MakeResourceOptions(options, id))
        {
        }

        private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions? options, Input<string>? id)
        {
            var defaultOptions = new CustomResourceOptions
            {
                Version = Utilities.Version,
                PluginDownloadURL = "github://api.github.com/tencentcloudstack",
            };
            var merged = CustomResourceOptions.Merge(defaultOptions, options);
            // Override the ID if one was specified for consistency with other language SDKs.
            merged.Id = id ?? merged.Id;
            return merged;
        }
        /// <summary>
        /// Get an existing OfflineLogConfigAttachment resource's state with the given name, ID, and optional extra
        /// properties used to qualify the lookup.
        /// </summary>
        ///
        /// <param name="name">The unique name of the resulting resource.</param>
        /// <param name="id">The unique provider ID of the resource to lookup.</param>
        /// <param name="state">Any extra arguments used during the lookup.</param>
        /// <param name="options">A bag of options that control this resource's behavior</param>
        public static OfflineLogConfigAttachment Get(string name, Input<string> id, OfflineLogConfigAttachmentState? state = null, CustomResourceOptions? options = null)
        {
            return new OfflineLogConfigAttachment(name, id, state, options);
        }
    }

    public sealed class OfflineLogConfigAttachmentArgs : Pulumi.ResourceArgs
    {
        /// <summary>
        /// Unique project key for reporting.
        /// </summary>
        [Input("projectKey", required: true)]
        public Input<string> ProjectKey { get; set; } = null!;

        /// <summary>
        /// Unique identifier of the user to be listened on(aid or uin).
        /// </summary>
        [Input("uniqueId", required: true)]
        public Input<string> UniqueId { get; set; } = null!;

        public OfflineLogConfigAttachmentArgs()
        {
        }
    }

    public sealed class OfflineLogConfigAttachmentState : Pulumi.ResourceArgs
    {
        /// <summary>
        /// Interface call information.
        /// </summary>
        [Input("msg")]
        public Input<string>? Msg { get; set; }

        /// <summary>
        /// Unique project key for reporting.
        /// </summary>
        [Input("projectKey")]
        public Input<string>? ProjectKey { get; set; }

        /// <summary>
        /// Unique identifier of the user to be listened on(aid or uin).
        /// </summary>
        [Input("uniqueId")]
        public Input<string>? UniqueId { get; set; }

        public OfflineLogConfigAttachmentState()
        {
        }
    }
}
