<reponame>Kagashino/pulumi-tctest<filename>sdk/dotnet/Clb/LogTopic.cs<gh_stars>0// *** 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;

namespace Pulumi.Tctest.Clb
{
    [TctestResourceType("tctest:Clb/logTopic:LogTopic")]
    public partial class LogTopic : Pulumi.CustomResource
    {
        /// <summary>
        /// Log topic creation time.
        /// </summary>
        [Output("createTime")]
        public Output<string> CreateTime { get; private set; } = null!;

        /// <summary>
        /// Log topic of CLB instance.
        /// </summary>
        [Output("logSetId")]
        public Output<string> LogSetId { get; private set; } = null!;

        /// <summary>
        /// The status of log topic.
        /// </summary>
        [Output("status")]
        public Output<bool> Status { get; private set; } = null!;

        /// <summary>
        /// Log topic of CLB instance.
        /// </summary>
        [Output("topicName")]
        public Output<string> TopicName { get; private set; } = null!;


        /// <summary>
        /// Create a LogTopic 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 LogTopic(string name, LogTopicArgs args, CustomResourceOptions? options = null)
            : base("tctest:Clb/logTopic:LogTopic", name, args ?? new LogTopicArgs(), MakeResourceOptions(options, ""))
        {
        }

        private LogTopic(string name, Input<string> id, LogTopicState? state = null, CustomResourceOptions? options = null)
            : base("tctest:Clb/logTopic:LogTopic", name, state, MakeResourceOptions(options, id))
        {
        }

        private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions? options, Input<string>? id)
        {
            var defaultOptions = new CustomResourceOptions
            {
                Version = Utilities.Version,
            };
            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 LogTopic 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 LogTopic Get(string name, Input<string> id, LogTopicState? state = null, CustomResourceOptions? options = null)
        {
            return new LogTopic(name, id, state, options);
        }
    }

    public sealed class LogTopicArgs : Pulumi.ResourceArgs
    {
        /// <summary>
        /// Log topic of CLB instance.
        /// </summary>
        [Input("logSetId", required: true)]
        public Input<string> LogSetId { get; set; } = null!;

        /// <summary>
        /// Log topic of CLB instance.
        /// </summary>
        [Input("topicName", required: true)]
        public Input<string> TopicName { get; set; } = null!;

        public LogTopicArgs()
        {
        }
    }

    public sealed class LogTopicState : Pulumi.ResourceArgs
    {
        /// <summary>
        /// Log topic creation time.
        /// </summary>
        [Input("createTime")]
        public Input<string>? CreateTime { get; set; }

        /// <summary>
        /// Log topic of CLB instance.
        /// </summary>
        [Input("logSetId")]
        public Input<string>? LogSetId { get; set; }

        /// <summary>
        /// The status of log topic.
        /// </summary>
        [Input("status")]
        public Input<bool>? Status { get; set; }

        /// <summary>
        /// Log topic of CLB instance.
        /// </summary>
        [Input("topicName")]
        public Input<string>? TopicName { get; set; }

        public LogTopicState()
        {
        }
    }
}
