<filename>sdk/dotnet/Tencentcloud/Kubernetes/BackupStorageLocation.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;
using Pulumi;

namespace TencentCloudIAC.PulumiPackage.Tencentcloud.Kubernetes
{
    /// <summary>
    /// Provide a resource to create tke backup storage location.
    /// 
    /// &gt; **NOTE:** To create this resource, you need to create a cos bucket with prefix "tke-backup" in advance.
    /// 
    /// ## Example Usage
    /// 
    /// ```csharp
    /// using Pulumi;
    /// using Tencentcloud = TencentCloudIAC.PulumiPackage.Tencentcloud;
    /// 
    /// class MyStack : Stack
    /// {
    ///     public MyStack()
    ///     {
    ///         var exampleBackup = new Tencentcloud.Kubernetes.BackupStorageLocation("exampleBackup", new Tencentcloud.Kubernetes.BackupStorageLocationArgs
    ///         {
    ///             Bucket = "tke-backup-example-1",
    ///             StorageRegion = "ap-guangzhou",
    ///         });
    ///         // region of you pre-created COS bucket
    ///     }
    /// 
    /// }
    /// ```
    /// 
    /// ## Import
    /// 
    /// tke backup storage location can be imported, e.g.
    /// 
    /// ```sh
    ///  $ pulumi import tencentcloud:Kubernetes/backupStorageLocation:BackupStorageLocation test xxx
    /// ```
    /// </summary>
    [TencentcloudResourceType("tencentcloud:Kubernetes/backupStorageLocation:BackupStorageLocation")]
    public partial class BackupStorageLocation : Pulumi.CustomResource
    {
        /// <summary>
        /// Name of the bucket.
        /// </summary>
        [Output("bucket")]
        public Output<string> Bucket { get; private set; } = null!;

        /// <summary>
        /// Message of the backup storage location.
        /// </summary>
        [Output("message")]
        public Output<string> Message { get; private set; } = null!;

        /// <summary>
        /// Name of the backup storage location.
        /// </summary>
        [Output("name")]
        public Output<string> Name { get; private set; } = null!;

        /// <summary>
        /// Prefix of the bucket.
        /// </summary>
        [Output("path")]
        public Output<string?> Path { get; private set; } = null!;

        /// <summary>
        /// State of the backup storage location.
        /// </summary>
        [Output("state")]
        public Output<string> State { get; private set; } = null!;

        /// <summary>
        /// Region of the storage.
        /// </summary>
        [Output("storageRegion")]
        public Output<string> StorageRegion { get; private set; } = null!;


        /// <summary>
        /// Create a BackupStorageLocation 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 BackupStorageLocation(string name, BackupStorageLocationArgs args, CustomResourceOptions? options = null)
            : base("tencentcloud:Kubernetes/backupStorageLocation:BackupStorageLocation", name, args ?? new BackupStorageLocationArgs(), MakeResourceOptions(options, ""))
        {
        }

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

    public sealed class BackupStorageLocationArgs : Pulumi.ResourceArgs
    {
        /// <summary>
        /// Name of the bucket.
        /// </summary>
        [Input("bucket", required: true)]
        public Input<string> Bucket { get; set; } = null!;

        /// <summary>
        /// Name of the backup storage location.
        /// </summary>
        [Input("name")]
        public Input<string>? Name { get; set; }

        /// <summary>
        /// Prefix of the bucket.
        /// </summary>
        [Input("path")]
        public Input<string>? Path { get; set; }

        /// <summary>
        /// Region of the storage.
        /// </summary>
        [Input("storageRegion", required: true)]
        public Input<string> StorageRegion { get; set; } = null!;

        public BackupStorageLocationArgs()
        {
        }
    }

    public sealed class BackupStorageLocationState : Pulumi.ResourceArgs
    {
        /// <summary>
        /// Name of the bucket.
        /// </summary>
        [Input("bucket")]
        public Input<string>? Bucket { get; set; }

        /// <summary>
        /// Message of the backup storage location.
        /// </summary>
        [Input("message")]
        public Input<string>? Message { get; set; }

        /// <summary>
        /// Name of the backup storage location.
        /// </summary>
        [Input("name")]
        public Input<string>? Name { get; set; }

        /// <summary>
        /// Prefix of the bucket.
        /// </summary>
        [Input("path")]
        public Input<string>? Path { get; set; }

        /// <summary>
        /// State of the backup storage location.
        /// </summary>
        [Input("state")]
        public Input<string>? State { get; set; }

        /// <summary>
        /// Region of the storage.
        /// </summary>
        [Input("storageRegion")]
        public Input<string>? StorageRegion { get; set; }

        public BackupStorageLocationState()
        {
        }
    }
}
