<reponame>Dwonczykj/gember_deploy// *** 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.Cbs
{
    /// <summary>
    /// Provides a resource to create a cbs disk_backup.
    /// 
    /// &gt; **NOTE:** Backup quota must greater than 1.
    /// 
    /// ## Example Usage
    /// 
    /// ```csharp
    /// using Pulumi;
    /// using Tencentcloud = TencentCloudIAC.PulumiPackage.Tencentcloud;
    /// 
    /// class MyStack : Stack
    /// {
    ///     public MyStack()
    ///     {
    ///         var diskBackup = new Tencentcloud.Cbs.DiskBackup("diskBackup", new Tencentcloud.Cbs.DiskBackupArgs
    ///         {
    ///             DiskBackupName = "xxx",
    ///             DiskId = "disk-xxx",
    ///         });
    ///     }
    /// 
    /// }
    /// ```
    /// 
    /// ## Import
    /// 
    /// cbs disk_backup can be imported using the id, e.g.
    /// 
    /// ```sh
    ///  $ pulumi import tencentcloud:Cbs/diskBackup:DiskBackup disk_backup disk_backup_id
    /// ```
    /// </summary>
    [TencentcloudResourceType("tencentcloud:Cbs/diskBackup:DiskBackup")]
    public partial class DiskBackup : Pulumi.CustomResource
    {
        /// <summary>
        /// Backup point name.
        /// </summary>
        [Output("diskBackupName")]
        public Output<string?> DiskBackupName { get; private set; } = null!;

        /// <summary>
        /// ID of the original cloud disk of the backup point, which can be queried through the DescribeDisks API.
        /// </summary>
        [Output("diskId")]
        public Output<string> DiskId { get; private set; } = null!;


        /// <summary>
        /// Create a DiskBackup 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 DiskBackup(string name, DiskBackupArgs args, CustomResourceOptions? options = null)
            : base("tencentcloud:Cbs/diskBackup:DiskBackup", name, args ?? new DiskBackupArgs(), MakeResourceOptions(options, ""))
        {
        }

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

    public sealed class DiskBackupArgs : Pulumi.ResourceArgs
    {
        /// <summary>
        /// Backup point name.
        /// </summary>
        [Input("diskBackupName")]
        public Input<string>? DiskBackupName { get; set; }

        /// <summary>
        /// ID of the original cloud disk of the backup point, which can be queried through the DescribeDisks API.
        /// </summary>
        [Input("diskId", required: true)]
        public Input<string> DiskId { get; set; } = null!;

        public DiskBackupArgs()
        {
        }
    }

    public sealed class DiskBackupState : Pulumi.ResourceArgs
    {
        /// <summary>
        /// Backup point name.
        /// </summary>
        [Input("diskBackupName")]
        public Input<string>? DiskBackupName { get; set; }

        /// <summary>
        /// ID of the original cloud disk of the backup point, which can be queried through the DescribeDisks API.
        /// </summary>
        [Input("diskId")]
        public Input<string>? DiskId { get; set; }

        public DiskBackupState()
        {
        }
    }
}
