// *** 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;

namespace Pulumi.AliCloud.Arms
{
    /// <summary>
    /// Provides a Application Real-Time Monitoring Service (ARMS) Alert Contact resource.
    /// 
    /// For information about Application Real-Time Monitoring Service (ARMS) Alert Contact and how to use it, see [What is Alert Contact](https://www.alibabacloud.com/help/en/doc-detail/42953.htm).
    /// 
    /// &gt; **NOTE:** Available in v1.129.0+.
    /// 
    /// ## Example Usage
    /// 
    /// Basic Usage
    /// 
    /// ```csharp
    /// using System.Collections.Generic;
    /// using Pulumi;
    /// using AliCloud = Pulumi.AliCloud;
    /// 
    /// return await Deployment.RunAsync(() =&gt; 
    /// {
    ///     var example = new AliCloud.Arms.AlertContact("example", new()
    ///     {
    ///         AlertContactName = "example_value",
    ///         DingRobotWebhookUrl = "https://oapi.dingtalk.com/robot/send?access_token=91f2f6****",
    ///         Email = "kenaa@example.com",
    ///         PhoneNum = "1381111****",
    ///     });
    /// 
    /// });
    /// ```
    /// 
    /// ## Import
    /// 
    /// Application Real-Time Monitoring Service (ARMS) Alert Contact can be imported using the id, e.g.
    /// 
    /// ```sh
    ///  $ pulumi import alicloud:arms/alertContact:AlertContact example &lt;id&gt;
    /// ```
    /// </summary>
    [AliCloudResourceType("alicloud:arms/alertContact:AlertContact")]
    public partial class AlertContact : global::Pulumi.CustomResource
    {
        /// <summary>
        /// The name of the alert contact.
        /// </summary>
        [Output("alertContactName")]
        public Output<string?> AlertContactName { get; private set; } = null!;

        /// <summary>
        /// The webhook URL of the DingTalk chatbot. For more information about how to obtain the URL, see Configure a DingTalk chatbot to send alert notifications: https://www.alibabacloud.com/help/en/doc-detail/106247.htm. You must specify at least one of the following parameters: PhoneNum, Email, and DingRobotWebhookUrl.
        /// </summary>
        [Output("dingRobotWebhookUrl")]
        public Output<string?> DingRobotWebhookUrl { get; private set; } = null!;

        /// <summary>
        /// The email address of the alert contact. You must specify at least one of the following parameters: PhoneNum, Email, and DingRobotWebhookUrl.
        /// </summary>
        [Output("email")]
        public Output<string?> Email { get; private set; } = null!;

        /// <summary>
        /// The mobile number of the alert contact. You must specify at least one of the following parameters: PhoneNum, Email, and DingRobotWebhookUrl.
        /// </summary>
        [Output("phoneNum")]
        public Output<string?> PhoneNum { get; private set; } = null!;

        /// <summary>
        /// Specifies whether the alert contact receives system notifications. Valid values:  true: receives system notifications. false: does not receive system notifications.
        /// </summary>
        [Output("systemNoc")]
        public Output<bool?> SystemNoc { get; private set; } = null!;


        /// <summary>
        /// Create a AlertContact 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 AlertContact(string name, AlertContactArgs? args = null, CustomResourceOptions? options = null)
            : base("alicloud:arms/alertContact:AlertContact", name, args ?? new AlertContactArgs(), MakeResourceOptions(options, ""))
        {
        }

        private AlertContact(string name, Input<string> id, AlertContactState? state = null, CustomResourceOptions? options = null)
            : base("alicloud:arms/alertContact:AlertContact", 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/rhysmdnz/pulumi-alicloud",
            };
            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 AlertContact 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 AlertContact Get(string name, Input<string> id, AlertContactState? state = null, CustomResourceOptions? options = null)
        {
            return new AlertContact(name, id, state, options);
        }
    }

    public sealed class AlertContactArgs : global::Pulumi.ResourceArgs
    {
        /// <summary>
        /// The name of the alert contact.
        /// </summary>
        [Input("alertContactName")]
        public Input<string>? AlertContactName { get; set; }

        /// <summary>
        /// The webhook URL of the DingTalk chatbot. For more information about how to obtain the URL, see Configure a DingTalk chatbot to send alert notifications: https://www.alibabacloud.com/help/en/doc-detail/106247.htm. You must specify at least one of the following parameters: PhoneNum, Email, and DingRobotWebhookUrl.
        /// </summary>
        [Input("dingRobotWebhookUrl")]
        public Input<string>? DingRobotWebhookUrl { get; set; }

        /// <summary>
        /// The email address of the alert contact. You must specify at least one of the following parameters: PhoneNum, Email, and DingRobotWebhookUrl.
        /// </summary>
        [Input("email")]
        public Input<string>? Email { get; set; }

        /// <summary>
        /// The mobile number of the alert contact. You must specify at least one of the following parameters: PhoneNum, Email, and DingRobotWebhookUrl.
        /// </summary>
        [Input("phoneNum")]
        public Input<string>? PhoneNum { get; set; }

        /// <summary>
        /// Specifies whether the alert contact receives system notifications. Valid values:  true: receives system notifications. false: does not receive system notifications.
        /// </summary>
        [Input("systemNoc")]
        public Input<bool>? SystemNoc { get; set; }

        public AlertContactArgs()
        {
        }
        public static new AlertContactArgs Empty => new AlertContactArgs();
    }

    public sealed class AlertContactState : global::Pulumi.ResourceArgs
    {
        /// <summary>
        /// The name of the alert contact.
        /// </summary>
        [Input("alertContactName")]
        public Input<string>? AlertContactName { get; set; }

        /// <summary>
        /// The webhook URL of the DingTalk chatbot. For more information about how to obtain the URL, see Configure a DingTalk chatbot to send alert notifications: https://www.alibabacloud.com/help/en/doc-detail/106247.htm. You must specify at least one of the following parameters: PhoneNum, Email, and DingRobotWebhookUrl.
        /// </summary>
        [Input("dingRobotWebhookUrl")]
        public Input<string>? DingRobotWebhookUrl { get; set; }

        /// <summary>
        /// The email address of the alert contact. You must specify at least one of the following parameters: PhoneNum, Email, and DingRobotWebhookUrl.
        /// </summary>
        [Input("email")]
        public Input<string>? Email { get; set; }

        /// <summary>
        /// The mobile number of the alert contact. You must specify at least one of the following parameters: PhoneNum, Email, and DingRobotWebhookUrl.
        /// </summary>
        [Input("phoneNum")]
        public Input<string>? PhoneNum { get; set; }

        /// <summary>
        /// Specifies whether the alert contact receives system notifications. Valid values:  true: receives system notifications. false: does not receive system notifications.
        /// </summary>
        [Input("systemNoc")]
        public Input<bool>? SystemNoc { get; set; }

        public AlertContactState()
        {
        }
        public static new AlertContactState Empty => new AlertContactState();
    }
}
