// *** 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 grafanaIntegration
    /// 
    /// ## Example Usage
    /// 
    /// ```csharp
    /// using Pulumi;
    /// using Tencentcloud = TencentCloudIAC.PulumiPackage.Tencentcloud;
    /// 
    /// class MyStack : Stack
    /// {
    ///     public MyStack()
    ///     {
    ///         var grafanaIntegration = new Tencentcloud.Monitor.GrafanaIntegration("grafanaIntegration", new Tencentcloud.Monitor.GrafanaIntegrationArgs
    ///         {
    ///             Content = "{\"kind\":\"tencentcloud-monitor-app\",\"spec\":{\"dataSourceSpec\":{\"authProvider\":{\"__anyOf\":\"使用密钥\",\"useRole\":true,\"secretId\":\"envkt@example.com\",\"secretKey\":\"12345678\"},\"name\":\"uint-test\"},\"grafanaSpec\":{\"organizationIds\":[]}}}",
    ///             InstanceId = "grafana-50nj6v00",
    ///             Kind = "tencentcloud-monitor-app",
    ///         });
    ///         var grafanaIntegrationUpdate = new Tencentcloud.Monitor.GrafanaIntegration("grafanaIntegrationUpdate", new Tencentcloud.Monitor.GrafanaIntegrationArgs
    ///         {
    ///             Content = "{\"id\":\"integration-9st6kqz6\",\"kind\":\"tencentcloud-monitor-app\",\"spec\":{\"dataSourceSpec\":{\"name\":\"uint-test3\",\"authProvider\":{\"secretId\":\"ROLE\",\"useRole\":true,\"__anyOf\":\"使用服务角色\"}},\"grafanaSpec\":{\"organizationIds\":[]}}}",
    ///             InstanceId = "grafana-50nj6v00",
    ///             Kind = "tencentcloud-monitor-app",
    ///         });
    ///     }
    /// 
    /// }
    /// ```
    /// </summary>
    [TencentcloudResourceType("tencentcloud:Monitor/grafanaIntegration:GrafanaIntegration")]
    public partial class GrafanaIntegration : Pulumi.CustomResource
    {
        /// <summary>
        /// generated json string of given integration json schema.
        /// </summary>
        [Output("content")]
        public Output<string> Content { get; private set; } = null!;

        /// <summary>
        /// integration desc.
        /// </summary>
        [Output("description")]
        public Output<string> Description { get; private set; } = null!;

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

        /// <summary>
        /// integration id.
        /// </summary>
        [Output("integrationId")]
        public Output<string> IntegrationId { get; private set; } = null!;

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


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

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

    public sealed class GrafanaIntegrationArgs : Pulumi.ResourceArgs
    {
        /// <summary>
        /// generated json string of given integration json schema.
        /// </summary>
        [Input("content")]
        public Input<string>? Content { get; set; }

        /// <summary>
        /// integration desc.
        /// </summary>
        [Input("description")]
        public Input<string>? Description { get; set; }

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

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

        public GrafanaIntegrationArgs()
        {
        }
    }

    public sealed class GrafanaIntegrationState : Pulumi.ResourceArgs
    {
        /// <summary>
        /// generated json string of given integration json schema.
        /// </summary>
        [Input("content")]
        public Input<string>? Content { get; set; }

        /// <summary>
        /// integration desc.
        /// </summary>
        [Input("description")]
        public Input<string>? Description { get; set; }

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

        /// <summary>
        /// integration id.
        /// </summary>
        [Input("integrationId")]
        public Input<string>? IntegrationId { get; set; }

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

        public GrafanaIntegrationState()
        {
        }
    }
}
