// *** 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.ApiGateway
{
    /// <summary>
    /// Provides a resource to create a APIGateway ApiApp
    /// 
    /// ## Example Usage
    /// 
    /// ```csharp
    /// using Pulumi;
    /// using Tencentcloud = TencentCloudIAC.PulumiPackage.Tencentcloud;
    /// 
    /// class MyStack : Stack
    /// {
    ///     public MyStack()
    ///     {
    ///         var myApiApp = new Tencentcloud.ApiGateway.ApiApp("myApiApp", new Tencentcloud.ApiGateway.ApiAppArgs
    ///         {
    ///             ApiAppDesc = "app desc.",
    ///             ApiAppName = "app_test1",
    ///         });
    ///     }
    /// 
    /// }
    /// ```
    /// </summary>
    [TencentcloudResourceType("tencentcloud:ApiGateway/apiApp:ApiApp")]
    public partial class ApiApp : Pulumi.CustomResource
    {
        /// <summary>
        /// App description.
        /// </summary>
        [Output("apiAppDesc")]
        public Output<string> ApiAppDesc { get; private set; } = null!;

        /// <summary>
        /// Api app ID.
        /// </summary>
        [Output("apiAppId")]
        public Output<string> ApiAppId { get; private set; } = null!;

        /// <summary>
        /// Api app key.
        /// </summary>
        [Output("apiAppKey")]
        public Output<string> ApiAppKey { get; private set; } = null!;

        /// <summary>
        /// Api app name.
        /// </summary>
        [Output("apiAppName")]
        public Output<string> ApiAppName { get; private set; } = null!;

        /// <summary>
        /// Api app secret.
        /// </summary>
        [Output("apiAppSecret")]
        public Output<string> ApiAppSecret { get; private set; } = null!;

        /// <summary>
        /// Api app created time.
        /// </summary>
        [Output("createdTime")]
        public Output<string> CreatedTime { get; private set; } = null!;

        /// <summary>
        /// Api app modified time.
        /// </summary>
        [Output("modifiedTime")]
        public Output<string> ModifiedTime { get; private set; } = null!;


        /// <summary>
        /// Create a ApiApp 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 ApiApp(string name, ApiAppArgs args, CustomResourceOptions? options = null)
            : base("tencentcloud:ApiGateway/apiApp:ApiApp", name, args ?? new ApiAppArgs(), MakeResourceOptions(options, ""))
        {
        }

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

    public sealed class ApiAppArgs : Pulumi.ResourceArgs
    {
        /// <summary>
        /// App description.
        /// </summary>
        [Input("apiAppDesc")]
        public Input<string>? ApiAppDesc { get; set; }

        /// <summary>
        /// Api app name.
        /// </summary>
        [Input("apiAppName", required: true)]
        public Input<string> ApiAppName { get; set; } = null!;

        public ApiAppArgs()
        {
        }
    }

    public sealed class ApiAppState : Pulumi.ResourceArgs
    {
        /// <summary>
        /// App description.
        /// </summary>
        [Input("apiAppDesc")]
        public Input<string>? ApiAppDesc { get; set; }

        /// <summary>
        /// Api app ID.
        /// </summary>
        [Input("apiAppId")]
        public Input<string>? ApiAppId { get; set; }

        /// <summary>
        /// Api app key.
        /// </summary>
        [Input("apiAppKey")]
        public Input<string>? ApiAppKey { get; set; }

        /// <summary>
        /// Api app name.
        /// </summary>
        [Input("apiAppName")]
        public Input<string>? ApiAppName { get; set; }

        /// <summary>
        /// Api app secret.
        /// </summary>
        [Input("apiAppSecret")]
        public Input<string>? ApiAppSecret { get; set; }

        /// <summary>
        /// Api app created time.
        /// </summary>
        [Input("createdTime")]
        public Input<string>? CreatedTime { get; set; }

        /// <summary>
        /// Api app modified time.
        /// </summary>
        [Input("modifiedTime")]
        public Input<string>? ModifiedTime { get; set; }

        public ApiAppState()
        {
        }
    }
}
