<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.Cynosdb
{
    /// <summary>
    /// Provides a resource to create a cynosdb audit_log_file
    /// 
    /// ## Example Usage
    /// 
    /// ```csharp
    /// using Pulumi;
    /// using Tencentcloud = TencentCloudIAC.PulumiPackage.Tencentcloud;
    /// 
    /// class MyStack : Stack
    /// {
    ///     public MyStack()
    ///     {
    ///         var auditLogFile = new Tencentcloud.Cynosdb.AuditLogFile("auditLogFile", new Tencentcloud.Cynosdb.AuditLogFileArgs
    ///         {
    ///             EndTime = "2022-08-12 10:29:20",
    ///             InstanceId = "xxxxxxx",
    ///             StartTime = "2022-07-12 10:29:20",
    ///         });
    ///     }
    /// 
    /// }
    /// ```
    /// </summary>
    [TencentcloudResourceType("tencentcloud:Cynosdb/auditLogFile:AuditLogFile")]
    public partial class AuditLogFile : Pulumi.CustomResource
    {
        /// <summary>
        /// Audit log file creation time. The format is 2019-03-20 17:09:13.
        /// </summary>
        [Output("createTime")]
        public Output<string> CreateTime { get; private set; } = null!;

        /// <summary>
        /// The download address of the audit logs.
        /// </summary>
        [Output("downloadUrl")]
        public Output<string> DownloadUrl { get; private set; } = null!;

        /// <summary>
        /// End time.
        /// </summary>
        [Output("endTime")]
        public Output<string> EndTime { get; private set; } = null!;

        /// <summary>
        /// Error message.
        /// </summary>
        [Output("errMsg")]
        public Output<string> ErrMsg { get; private set; } = null!;

        /// <summary>
        /// Audit log file name.
        /// </summary>
        [Output("fileName")]
        public Output<string> FileName { get; private set; } = null!;

        /// <summary>
        /// File size, The unit is KB.
        /// </summary>
        [Output("fileSize")]
        public Output<int> FileSize { get; private set; } = null!;

        /// <summary>
        /// Filter condition. Logs can be filtered according to the filter conditions set.
        /// </summary>
        [Output("filter")]
        public Output<Outputs.AuditLogFileFilter?> Filter { get; private set; } = null!;

        /// <summary>
        /// The ID of instance.
        /// </summary>
        [Output("instanceId")]
        public Output<string> InstanceId { get; private set; } = null!;

        /// <summary>
        /// Sort by. Supported values are: `ASC` - ascending, `DESC` - descending.
        /// </summary>
        [Output("order")]
        public Output<string?> Order { get; private set; } = null!;

        /// <summary>
        /// Sort field. supported values are:
        /// `timestamp` - timestamp
        /// `affectRows` - affected rows
        /// `execTime` - execution time.
        /// </summary>
        [Output("orderBy")]
        public Output<string?> OrderBy { get; private set; } = null!;

        /// <summary>
        /// Start time.
        /// </summary>
        [Output("startTime")]
        public Output<string> StartTime { get; private set; } = null!;


        /// <summary>
        /// Create a AuditLogFile 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 AuditLogFile(string name, AuditLogFileArgs args, CustomResourceOptions? options = null)
            : base("tencentcloud:Cynosdb/auditLogFile:AuditLogFile", name, args ?? new AuditLogFileArgs(), MakeResourceOptions(options, ""))
        {
        }

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

    public sealed class AuditLogFileArgs : Pulumi.ResourceArgs
    {
        /// <summary>
        /// End time.
        /// </summary>
        [Input("endTime", required: true)]
        public Input<string> EndTime { get; set; } = null!;

        /// <summary>
        /// Filter condition. Logs can be filtered according to the filter conditions set.
        /// </summary>
        [Input("filter")]
        public Input<Inputs.AuditLogFileFilterArgs>? Filter { get; set; }

        /// <summary>
        /// The ID of instance.
        /// </summary>
        [Input("instanceId", required: true)]
        public Input<string> InstanceId { get; set; } = null!;

        /// <summary>
        /// Sort by. Supported values are: `ASC` - ascending, `DESC` - descending.
        /// </summary>
        [Input("order")]
        public Input<string>? Order { get; set; }

        /// <summary>
        /// Sort field. supported values are:
        /// `timestamp` - timestamp
        /// `affectRows` - affected rows
        /// `execTime` - execution time.
        /// </summary>
        [Input("orderBy")]
        public Input<string>? OrderBy { get; set; }

        /// <summary>
        /// Start time.
        /// </summary>
        [Input("startTime", required: true)]
        public Input<string> StartTime { get; set; } = null!;

        public AuditLogFileArgs()
        {
        }
    }

    public sealed class AuditLogFileState : Pulumi.ResourceArgs
    {
        /// <summary>
        /// Audit log file creation time. The format is 2019-03-20 17:09:13.
        /// </summary>
        [Input("createTime")]
        public Input<string>? CreateTime { get; set; }

        /// <summary>
        /// The download address of the audit logs.
        /// </summary>
        [Input("downloadUrl")]
        public Input<string>? DownloadUrl { get; set; }

        /// <summary>
        /// End time.
        /// </summary>
        [Input("endTime")]
        public Input<string>? EndTime { get; set; }

        /// <summary>
        /// Error message.
        /// </summary>
        [Input("errMsg")]
        public Input<string>? ErrMsg { get; set; }

        /// <summary>
        /// Audit log file name.
        /// </summary>
        [Input("fileName")]
        public Input<string>? FileName { get; set; }

        /// <summary>
        /// File size, The unit is KB.
        /// </summary>
        [Input("fileSize")]
        public Input<int>? FileSize { get; set; }

        /// <summary>
        /// Filter condition. Logs can be filtered according to the filter conditions set.
        /// </summary>
        [Input("filter")]
        public Input<Inputs.AuditLogFileFilterGetArgs>? Filter { get; set; }

        /// <summary>
        /// The ID of instance.
        /// </summary>
        [Input("instanceId")]
        public Input<string>? InstanceId { get; set; }

        /// <summary>
        /// Sort by. Supported values are: `ASC` - ascending, `DESC` - descending.
        /// </summary>
        [Input("order")]
        public Input<string>? Order { get; set; }

        /// <summary>
        /// Sort field. supported values are:
        /// `timestamp` - timestamp
        /// `affectRows` - affected rows
        /// `execTime` - execution time.
        /// </summary>
        [Input("orderBy")]
        public Input<string>? OrderBy { get; set; }

        /// <summary>
        /// Start time.
        /// </summary>
        [Input("startTime")]
        public Input<string>? StartTime { get; set; }

        public AuditLogFileState()
        {
        }
    }
}
