// *** 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.Css
{
    /// <summary>
    /// Provides a resource to create a css play_auth_key_config
    /// 
    /// ## Example Usage
    /// 
    /// ```csharp
    /// using Pulumi;
    /// using Tencentcloud = TencentCloudIAC.PulumiPackage.Tencentcloud;
    /// 
    /// class MyStack : Stack
    /// {
    ///     public MyStack()
    ///     {
    ///         var playAuthKeyConfig = new Tencentcloud.Css.PlayAuthKeyConfig("playAuthKeyConfig", new Tencentcloud.Css.PlayAuthKeyConfigArgs
    ///         {
    ///             AuthBackKey = "testbackkey",
    ///             AuthDelta = 3600,
    ///             AuthKey = "testauthkey",
    ///             DomainName = "your_play_domain_name",
    ///             Enable = 1,
    ///         });
    ///     }
    /// 
    /// }
    /// ```
    /// 
    /// ## Import
    /// 
    /// css play_auth_key_config can be imported using the id, e.g.
    /// 
    /// ```sh
    ///  $ pulumi import tencentcloud:Css/playAuthKeyConfig:PlayAuthKeyConfig play_auth_key_config play_auth_key_config_id
    /// ```
    /// </summary>
    [TencentcloudResourceType("tencentcloud:Css/playAuthKeyConfig:PlayAuthKeyConfig")]
    public partial class PlayAuthKeyConfig : Pulumi.CustomResource
    {
        /// <summary>
        /// Alternate key for authentication. No transfer means that the current value is not modified.
        /// </summary>
        [Output("authBackKey")]
        public Output<string?> AuthBackKey { get; private set; } = null!;

        /// <summary>
        /// Valid time, unit: second. No transfer means that the current value is not modified.
        /// </summary>
        [Output("authDelta")]
        public Output<int?> AuthDelta { get; private set; } = null!;

        /// <summary>
        /// Authentication key. No transfer means that the current value is not modified.
        /// </summary>
        [Output("authKey")]
        public Output<string?> AuthKey { get; private set; } = null!;

        /// <summary>
        /// Domain Name.
        /// </summary>
        [Output("domainName")]
        public Output<string> DomainName { get; private set; } = null!;

        /// <summary>
        /// Enable or not, 0: Close, 1: Enable. No transfer means that the current value is not modified.
        /// </summary>
        [Output("enable")]
        public Output<int?> Enable { get; private set; } = null!;


        /// <summary>
        /// Create a PlayAuthKeyConfig 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 PlayAuthKeyConfig(string name, PlayAuthKeyConfigArgs args, CustomResourceOptions? options = null)
            : base("tencentcloud:Css/playAuthKeyConfig:PlayAuthKeyConfig", name, args ?? new PlayAuthKeyConfigArgs(), MakeResourceOptions(options, ""))
        {
        }

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

    public sealed class PlayAuthKeyConfigArgs : Pulumi.ResourceArgs
    {
        /// <summary>
        /// Alternate key for authentication. No transfer means that the current value is not modified.
        /// </summary>
        [Input("authBackKey")]
        public Input<string>? AuthBackKey { get; set; }

        /// <summary>
        /// Valid time, unit: second. No transfer means that the current value is not modified.
        /// </summary>
        [Input("authDelta")]
        public Input<int>? AuthDelta { get; set; }

        /// <summary>
        /// Authentication key. No transfer means that the current value is not modified.
        /// </summary>
        [Input("authKey")]
        public Input<string>? AuthKey { get; set; }

        /// <summary>
        /// Domain Name.
        /// </summary>
        [Input("domainName", required: true)]
        public Input<string> DomainName { get; set; } = null!;

        /// <summary>
        /// Enable or not, 0: Close, 1: Enable. No transfer means that the current value is not modified.
        /// </summary>
        [Input("enable")]
        public Input<int>? Enable { get; set; }

        public PlayAuthKeyConfigArgs()
        {
        }
    }

    public sealed class PlayAuthKeyConfigState : Pulumi.ResourceArgs
    {
        /// <summary>
        /// Alternate key for authentication. No transfer means that the current value is not modified.
        /// </summary>
        [Input("authBackKey")]
        public Input<string>? AuthBackKey { get; set; }

        /// <summary>
        /// Valid time, unit: second. No transfer means that the current value is not modified.
        /// </summary>
        [Input("authDelta")]
        public Input<int>? AuthDelta { get; set; }

        /// <summary>
        /// Authentication key. No transfer means that the current value is not modified.
        /// </summary>
        [Input("authKey")]
        public Input<string>? AuthKey { get; set; }

        /// <summary>
        /// Domain Name.
        /// </summary>
        [Input("domainName")]
        public Input<string>? DomainName { get; set; }

        /// <summary>
        /// Enable or not, 0: Close, 1: Enable. No transfer means that the current value is not modified.
        /// </summary>
        [Input("enable")]
        public Input<int>? Enable { get; set; }

        public PlayAuthKeyConfigState()
        {
        }
    }
}
