<filename>sdk/dotnet/GetMscSubContactVerificationMessage.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;

namespace Pulumi.AliCloud
{
    public static class GetMscSubContactVerificationMessage
    {
        /// <summary>
        /// &gt; **NOTE:** Available in v1.156.0+.
        /// 
        /// {{% examples %}}
        /// ## Example Usage
        /// {{% example %}}
        /// 
        /// Basic Usage
        /// 
        /// ```csharp
        /// using System.Collections.Generic;
        /// using Pulumi;
        /// using AliCloud = Pulumi.AliCloud;
        /// 
        /// return await Deployment.RunAsync(() =&gt; 
        /// {
        ///     var defaultMscSubContract = new AliCloud.MscSubContract("defaultMscSubContract", new()
        ///     {
        ///         ContactName = "example_value",
        ///         Position = "CEO",
        ///         Email = "upchh@example.com",
        ///         Mobile = "153xxxxx906",
        ///     });
        /// 
        ///     var defaultMscSubContactVerificationMessage = AliCloud.GetMscSubContactVerificationMessage.Invoke(new()
        ///     {
        ///         ContactId = defaultMscSubContract.Id,
        ///         Type = 1,
        ///     });
        /// 
        /// });
        /// ```
        /// {{% /example %}}
        /// {{% /examples %}}
        /// </summary>
        public static Task<GetMscSubContactVerificationMessageResult> InvokeAsync(GetMscSubContactVerificationMessageArgs args, InvokeOptions? options = null)
            => Pulumi.Deployment.Instance.InvokeAsync<GetMscSubContactVerificationMessageResult>("alicloud:index/getMscSubContactVerificationMessage:getMscSubContactVerificationMessage", args ?? new GetMscSubContactVerificationMessageArgs(), options.WithDefaults());

        /// <summary>
        /// &gt; **NOTE:** Available in v1.156.0+.
        /// 
        /// {{% examples %}}
        /// ## Example Usage
        /// {{% example %}}
        /// 
        /// Basic Usage
        /// 
        /// ```csharp
        /// using System.Collections.Generic;
        /// using Pulumi;
        /// using AliCloud = Pulumi.AliCloud;
        /// 
        /// return await Deployment.RunAsync(() =&gt; 
        /// {
        ///     var defaultMscSubContract = new AliCloud.MscSubContract("defaultMscSubContract", new()
        ///     {
        ///         ContactName = "example_value",
        ///         Position = "CEO",
        ///         Email = "upchh@example.com",
        ///         Mobile = "153xxxxx906",
        ///     });
        /// 
        ///     var defaultMscSubContactVerificationMessage = AliCloud.GetMscSubContactVerificationMessage.Invoke(new()
        ///     {
        ///         ContactId = defaultMscSubContract.Id,
        ///         Type = 1,
        ///     });
        /// 
        /// });
        /// ```
        /// {{% /example %}}
        /// {{% /examples %}}
        /// </summary>
        public static Output<GetMscSubContactVerificationMessageResult> Invoke(GetMscSubContactVerificationMessageInvokeArgs args, InvokeOptions? options = null)
            => Pulumi.Deployment.Instance.Invoke<GetMscSubContactVerificationMessageResult>("alicloud:index/getMscSubContactVerificationMessage:getMscSubContactVerificationMessage", args ?? new GetMscSubContactVerificationMessageInvokeArgs(), options.WithDefaults());
    }


    public sealed class GetMscSubContactVerificationMessageArgs : global::Pulumi.InvokeArgs
    {
        /// <summary>
        /// The ID of the Contact.
        /// </summary>
        [Input("contactId", required: true)]
        public string ContactId { get; set; } = null!;

        /// <summary>
        /// How a user receives verification messages. Valid values : `1`, `2`.
        /// * `1`: Send a verification message through the user's mobile.
        /// * `2`: Send a verification message through the user's mail.
        /// </summary>
        [Input("type", required: true)]
        public int Type { get; set; }

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

    public sealed class GetMscSubContactVerificationMessageInvokeArgs : global::Pulumi.InvokeArgs
    {
        /// <summary>
        /// The ID of the Contact.
        /// </summary>
        [Input("contactId", required: true)]
        public Input<string> ContactId { get; set; } = null!;

        /// <summary>
        /// How a user receives verification messages. Valid values : `1`, `2`.
        /// * `1`: Send a verification message through the user's mobile.
        /// * `2`: Send a verification message through the user's mail.
        /// </summary>
        [Input("type", required: true)]
        public Input<int> Type { get; set; } = null!;

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


    [OutputType]
    public sealed class GetMscSubContactVerificationMessageResult
    {
        public readonly string ContactId;
        /// <summary>
        /// The provider-assigned unique ID for this managed resource.
        /// </summary>
        public readonly string Id;
        /// <summary>
        /// The sending status of the message. Valid values : `Success`, `Failed`.
        /// </summary>
        public readonly string Status;
        public readonly int Type;

        [OutputConstructor]
        private GetMscSubContactVerificationMessageResult(
            string contactId,

            string id,

            string status,

            int type)
        {
            ContactId = contactId;
            Id = id;
            Status = status;
            Type = type;
        }
    }
}
