// *** 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.Dns
{
    /// <summary>
    /// Create an Alidns Instance resource.
    /// 
    /// &gt; **NOTE:** Available in v1.95.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.Dns.AlidnsInstance("example", new()
    ///     {
    ///         DnsSecurity = "no",
    ///         DomainNumbers = "2",
    ///         Period = 1,
    ///         RenewPeriod = 1,
    ///         RenewalStatus = "ManualRenewal",
    ///         VersionCode = "version_personal",
    ///     });
    /// 
    /// });
    /// ```
    /// 
    /// ## Import
    /// 
    /// DNS instance be imported using the id, e.g.
    /// 
    /// ```sh
    ///  $ pulumi import alicloud:dns/alidnsInstance:AlidnsInstance example dns-cn-v0h1ldjhfff
    /// ```
    /// </summary>
    [AliCloudResourceType("alicloud:dns/alidnsInstance:AlidnsInstance")]
    public partial class AlidnsInstance : global::Pulumi.CustomResource
    {
        /// <summary>
        /// Alidns security level. Valid values: `no`, `basic`, `advanced`.
        /// </summary>
        [Output("dnsSecurity")]
        public Output<string> DnsSecurity { get; private set; } = null!;

        /// <summary>
        /// Number of domain names bound.
        /// </summary>
        [Output("domainNumbers")]
        public Output<string> DomainNumbers { get; private set; } = null!;

        /// <summary>
        /// The billing method of the Alidns instance. Valid values: `Subscription`. Default to `Subscription`.
        /// </summary>
        [Output("paymentType")]
        public Output<string?> PaymentType { get; private set; } = null!;

        /// <summary>
        /// Creating a pre-paid instance, it must be set, the unit is month, please enter an integer multiple of 12 for annually paid products.
        /// </summary>
        [Output("period")]
        public Output<int?> Period { get; private set; } = null!;

        /// <summary>
        /// Automatic renewal period, the unit is month. When setting RenewalStatus to AutoRenewal, it must be set.
        /// </summary>
        [Output("renewPeriod")]
        public Output<int?> RenewPeriod { get; private set; } = null!;

        /// <summary>
        /// Automatic renewal status. Valid values: `AutoRenewal`, `ManualRenewal`, default to `ManualRenewal`.
        /// </summary>
        [Output("renewalStatus")]
        public Output<string> RenewalStatus { get; private set; } = null!;

        /// <summary>
        /// Paid package version. Valid values: `version_personal`, `version_enterprise_basic`, `version_enterprise_advanced`.
        /// </summary>
        [Output("versionCode")]
        public Output<string> VersionCode { get; private set; } = null!;

        /// <summary>
        /// Paid package version name.
        /// </summary>
        [Output("versionName")]
        public Output<string> VersionName { get; private set; } = null!;


        /// <summary>
        /// Create a AlidnsInstance 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 AlidnsInstance(string name, AlidnsInstanceArgs args, CustomResourceOptions? options = null)
            : base("alicloud:dns/alidnsInstance:AlidnsInstance", name, args ?? new AlidnsInstanceArgs(), MakeResourceOptions(options, ""))
        {
        }

        private AlidnsInstance(string name, Input<string> id, AlidnsInstanceState? state = null, CustomResourceOptions? options = null)
            : base("alicloud:dns/alidnsInstance:AlidnsInstance", 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 AlidnsInstance 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 AlidnsInstance Get(string name, Input<string> id, AlidnsInstanceState? state = null, CustomResourceOptions? options = null)
        {
            return new AlidnsInstance(name, id, state, options);
        }
    }

    public sealed class AlidnsInstanceArgs : global::Pulumi.ResourceArgs
    {
        /// <summary>
        /// Alidns security level. Valid values: `no`, `basic`, `advanced`.
        /// </summary>
        [Input("dnsSecurity", required: true)]
        public Input<string> DnsSecurity { get; set; } = null!;

        /// <summary>
        /// Number of domain names bound.
        /// </summary>
        [Input("domainNumbers", required: true)]
        public Input<string> DomainNumbers { get; set; } = null!;

        /// <summary>
        /// The billing method of the Alidns instance. Valid values: `Subscription`. Default to `Subscription`.
        /// </summary>
        [Input("paymentType")]
        public Input<string>? PaymentType { get; set; }

        /// <summary>
        /// Creating a pre-paid instance, it must be set, the unit is month, please enter an integer multiple of 12 for annually paid products.
        /// </summary>
        [Input("period")]
        public Input<int>? Period { get; set; }

        /// <summary>
        /// Automatic renewal period, the unit is month. When setting RenewalStatus to AutoRenewal, it must be set.
        /// </summary>
        [Input("renewPeriod")]
        public Input<int>? RenewPeriod { get; set; }

        /// <summary>
        /// Automatic renewal status. Valid values: `AutoRenewal`, `ManualRenewal`, default to `ManualRenewal`.
        /// </summary>
        [Input("renewalStatus")]
        public Input<string>? RenewalStatus { get; set; }

        /// <summary>
        /// Paid package version. Valid values: `version_personal`, `version_enterprise_basic`, `version_enterprise_advanced`.
        /// </summary>
        [Input("versionCode", required: true)]
        public Input<string> VersionCode { get; set; } = null!;

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

    public sealed class AlidnsInstanceState : global::Pulumi.ResourceArgs
    {
        /// <summary>
        /// Alidns security level. Valid values: `no`, `basic`, `advanced`.
        /// </summary>
        [Input("dnsSecurity")]
        public Input<string>? DnsSecurity { get; set; }

        /// <summary>
        /// Number of domain names bound.
        /// </summary>
        [Input("domainNumbers")]
        public Input<string>? DomainNumbers { get; set; }

        /// <summary>
        /// The billing method of the Alidns instance. Valid values: `Subscription`. Default to `Subscription`.
        /// </summary>
        [Input("paymentType")]
        public Input<string>? PaymentType { get; set; }

        /// <summary>
        /// Creating a pre-paid instance, it must be set, the unit is month, please enter an integer multiple of 12 for annually paid products.
        /// </summary>
        [Input("period")]
        public Input<int>? Period { get; set; }

        /// <summary>
        /// Automatic renewal period, the unit is month. When setting RenewalStatus to AutoRenewal, it must be set.
        /// </summary>
        [Input("renewPeriod")]
        public Input<int>? RenewPeriod { get; set; }

        /// <summary>
        /// Automatic renewal status. Valid values: `AutoRenewal`, `ManualRenewal`, default to `ManualRenewal`.
        /// </summary>
        [Input("renewalStatus")]
        public Input<string>? RenewalStatus { get; set; }

        /// <summary>
        /// Paid package version. Valid values: `version_personal`, `version_enterprise_basic`, `version_enterprise_advanced`.
        /// </summary>
        [Input("versionCode")]
        public Input<string>? VersionCode { get; set; }

        /// <summary>
        /// Paid package version name.
        /// </summary>
        [Input("versionName")]
        public Input<string>? VersionName { get; set; }

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