// *** 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.Cfs
{
    /// <summary>
    /// Provides a resource to create a cfs user_quota
    /// 
    /// ## Example Usage
    /// 
    /// ```csharp
    /// using Pulumi;
    /// using Tencentcloud = TencentCloudIAC.PulumiPackage.Tencentcloud;
    /// 
    /// class MyStack : Stack
    /// {
    ///     public MyStack()
    ///     {
    ///         var userQuota = new Tencentcloud.Cfs.UserQuota("userQuota", new Tencentcloud.Cfs.UserQuotaArgs
    ///         {
    ///             CapacityHardLimit = 10,
    ///             FileHardLimit = 10000,
    ///             FileSystemId = "cfs-4636029bc",
    ///             UserId = "2159973417",
    ///             UserType = "Uid",
    ///         });
    ///     }
    /// 
    /// }
    /// ```
    /// 
    /// ## Import
    /// 
    /// cfs user_quota can be imported using the id, e.g.
    /// 
    /// ```sh
    ///  $ pulumi import tencentcloud:Cfs/userQuota:UserQuota user_quota user_quota_id
    /// ```
    /// </summary>
    [TencentcloudResourceType("tencentcloud:Cfs/userQuota:UserQuota")]
    public partial class UserQuota : Pulumi.CustomResource
    {
        /// <summary>
        /// Capacity Limit(GB).
        /// </summary>
        [Output("capacityHardLimit")]
        public Output<int?> CapacityHardLimit { get; private set; } = null!;

        /// <summary>
        /// File limit.
        /// </summary>
        [Output("fileHardLimit")]
        public Output<int?> FileHardLimit { get; private set; } = null!;

        /// <summary>
        /// File system ID.
        /// </summary>
        [Output("fileSystemId")]
        public Output<string> FileSystemId { get; private set; } = null!;

        /// <summary>
        /// Info of UID/GID.
        /// </summary>
        [Output("userId")]
        public Output<string> UserId { get; private set; } = null!;

        /// <summary>
        /// Quota type. Valid value: `Uid`, `Gid`.
        /// </summary>
        [Output("userType")]
        public Output<string> UserType { get; private set; } = null!;


        /// <summary>
        /// Create a UserQuota 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 UserQuota(string name, UserQuotaArgs args, CustomResourceOptions? options = null)
            : base("tencentcloud:Cfs/userQuota:UserQuota", name, args ?? new UserQuotaArgs(), MakeResourceOptions(options, ""))
        {
        }

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

    public sealed class UserQuotaArgs : Pulumi.ResourceArgs
    {
        /// <summary>
        /// Capacity Limit(GB).
        /// </summary>
        [Input("capacityHardLimit")]
        public Input<int>? CapacityHardLimit { get; set; }

        /// <summary>
        /// File limit.
        /// </summary>
        [Input("fileHardLimit")]
        public Input<int>? FileHardLimit { get; set; }

        /// <summary>
        /// File system ID.
        /// </summary>
        [Input("fileSystemId", required: true)]
        public Input<string> FileSystemId { get; set; } = null!;

        /// <summary>
        /// Info of UID/GID.
        /// </summary>
        [Input("userId", required: true)]
        public Input<string> UserId { get; set; } = null!;

        /// <summary>
        /// Quota type. Valid value: `Uid`, `Gid`.
        /// </summary>
        [Input("userType", required: true)]
        public Input<string> UserType { get; set; } = null!;

        public UserQuotaArgs()
        {
        }
    }

    public sealed class UserQuotaState : Pulumi.ResourceArgs
    {
        /// <summary>
        /// Capacity Limit(GB).
        /// </summary>
        [Input("capacityHardLimit")]
        public Input<int>? CapacityHardLimit { get; set; }

        /// <summary>
        /// File limit.
        /// </summary>
        [Input("fileHardLimit")]
        public Input<int>? FileHardLimit { get; set; }

        /// <summary>
        /// File system ID.
        /// </summary>
        [Input("fileSystemId")]
        public Input<string>? FileSystemId { get; set; }

        /// <summary>
        /// Info of UID/GID.
        /// </summary>
        [Input("userId")]
        public Input<string>? UserId { get; set; }

        /// <summary>
        /// Quota type. Valid value: `Uid`, `Gid`.
        /// </summary>
        [Input("userType")]
        public Input<string>? UserType { get; set; }

        public UserQuotaState()
        {
        }
    }
}
