<filename>sdk/dotnet/Tencentcloud/Monitor/TmpExporterIntegration.cs// *** 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.Monitor
{
    /// <summary>
    /// Provides a resource to create a monitor tmpExporterIntegration
    /// 
    /// &gt; **NOTE:** If you only want to upgrade the exporter version with same config, you can set `version` under `instanceSpec` with any value to trigger the change.
    /// 
    /// ## Example Usage
    /// 
    /// Use blackbox-exporter
    /// 
    /// ```csharp
    /// using Pulumi;
    /// using Tencentcloud = TencentCloudIAC.PulumiPackage.Tencentcloud;
    /// 
    /// class MyStack : Stack
    /// {
    ///     public MyStack()
    ///     {
    ///         var tmpExporterIntegration = new Tencentcloud.Monitor.TmpExporterIntegration("tmpExporterIntegration", new Tencentcloud.Monitor.TmpExporterIntegrationArgs
    ///         {
    ///             ClusterId = "cls-bmuaukfu",
    ///             Content = "{\"name\":\"test\",\"kind\":\"blackbox-exporter\",\"spec\":{\"instanceSpec\":{\"module\":\"http_get\",\"urls\":[\"xx\"]}}}",
    ///             InstanceId = "prom-dko9d0nu",
    ///             Kind = "blackbox-exporter",
    ///             KubeType = 1,
    ///         });
    ///     }
    /// 
    /// }
    /// ```
    /// 
    /// Use es-exporter
    /// 
    /// ```csharp
    /// using System.Collections.Generic;
    /// using System.Text.Json;
    /// using Pulumi;
    /// using Tencentcloud = TencentCloudIAC.PulumiPackage.Tencentcloud;
    /// 
    /// class MyStack : Stack
    /// {
    ///     public MyStack()
    ///     {
    ///         var tmpExporterIntegrationEs = new Tencentcloud.Monitor.TmpExporterIntegration("tmpExporterIntegrationEs", new Tencentcloud.Monitor.TmpExporterIntegrationArgs
    ///         {
    ///             InstanceId = tencentcloud_monitor_tmp_instance.TmpInstance.Id,
    ///             Kind = "es-exporter",
    ///             Content = JsonSerializer.Serialize(new Dictionary&lt;string, object?&gt;
    ///             {
    ///                 { "name", "ex-exporter-example" },
    ///                 { "kind", "es-exporter" },
    ///                 { "spec", new Dictionary&lt;string, object?&gt;
    ///                 {
    ///                     { "instanceSpec", new Dictionary&lt;string, object?&gt;
    ///                     {
    ///                         { "url", "http://127.0.0.1:9123" },
    ///                         { "labels", new Dictionary&lt;string, object?&gt;
    ///                         {
    ///                             { "instance", "es-abcd" },
    ///                         } },
    ///                         { "version", "1.70.1" },
    ///                         { "user", "fugiat Duis minim" },
    ///                         { "password", "exercitation cillum velit" },
    ///                     } },
    ///                     { "exporterSpec", new Dictionary&lt;string, object?&gt;
    ///                     {
    ///                         { "all", true },
    ///                         { "indicesSettings", false },
    ///                         { "snapshots", false },
    ///                         { "indices", true },
    ///                         { "shards", false },
    ///                     } },
    ///                 } },
    ///             }),
    ///             ClusterId = "",
    ///             KubeType = 3,
    ///         });
    ///     }
    /// 
    /// }
    /// ```
    /// </summary>
    [TencentcloudResourceType("tencentcloud:Monitor/tmpExporterIntegration:TmpExporterIntegration")]
    public partial class TmpExporterIntegration : Pulumi.CustomResource
    {
        /// <summary>
        /// Cluster ID.
        /// </summary>
        [Output("clusterId")]
        public Output<string> ClusterId { get; private set; } = null!;

        /// <summary>
        /// Integration config.
        /// </summary>
        [Output("content")]
        public Output<string> Content { get; private set; } = null!;

        /// <summary>
        /// Instance id.
        /// </summary>
        [Output("instanceId")]
        public Output<string> InstanceId { get; private set; } = null!;

        /// <summary>
        /// Type.
        /// </summary>
        [Output("kind")]
        public Output<string> Kind { get; private set; } = null!;

        /// <summary>
        /// Integration config.
        /// </summary>
        [Output("kubeType")]
        public Output<int> KubeType { get; private set; } = null!;


        /// <summary>
        /// Create a TmpExporterIntegration 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 TmpExporterIntegration(string name, TmpExporterIntegrationArgs args, CustomResourceOptions? options = null)
            : base("tencentcloud:Monitor/tmpExporterIntegration:TmpExporterIntegration", name, args ?? new TmpExporterIntegrationArgs(), MakeResourceOptions(options, ""))
        {
        }

        private TmpExporterIntegration(string name, Input<string> id, TmpExporterIntegrationState? state = null, CustomResourceOptions? options = null)
            : base("tencentcloud:Monitor/tmpExporterIntegration:TmpExporterIntegration", 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 TmpExporterIntegration 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 TmpExporterIntegration Get(string name, Input<string> id, TmpExporterIntegrationState? state = null, CustomResourceOptions? options = null)
        {
            return new TmpExporterIntegration(name, id, state, options);
        }
    }

    public sealed class TmpExporterIntegrationArgs : Pulumi.ResourceArgs
    {
        /// <summary>
        /// Cluster ID.
        /// </summary>
        [Input("clusterId", required: true)]
        public Input<string> ClusterId { get; set; } = null!;

        /// <summary>
        /// Integration config.
        /// </summary>
        [Input("content", required: true)]
        public Input<string> Content { get; set; } = null!;

        /// <summary>
        /// Instance id.
        /// </summary>
        [Input("instanceId", required: true)]
        public Input<string> InstanceId { get; set; } = null!;

        /// <summary>
        /// Type.
        /// </summary>
        [Input("kind", required: true)]
        public Input<string> Kind { get; set; } = null!;

        /// <summary>
        /// Integration config.
        /// </summary>
        [Input("kubeType", required: true)]
        public Input<int> KubeType { get; set; } = null!;

        public TmpExporterIntegrationArgs()
        {
        }
    }

    public sealed class TmpExporterIntegrationState : Pulumi.ResourceArgs
    {
        /// <summary>
        /// Cluster ID.
        /// </summary>
        [Input("clusterId")]
        public Input<string>? ClusterId { get; set; }

        /// <summary>
        /// Integration config.
        /// </summary>
        [Input("content")]
        public Input<string>? Content { get; set; }

        /// <summary>
        /// Instance id.
        /// </summary>
        [Input("instanceId")]
        public Input<string>? InstanceId { get; set; }

        /// <summary>
        /// Type.
        /// </summary>
        [Input("kind")]
        public Input<string>? Kind { get; set; }

        /// <summary>
        /// Integration config.
        /// </summary>
        [Input("kubeType")]
        public Input<int>? KubeType { get; set; }

        public TmpExporterIntegrationState()
        {
        }
    }
}
