<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.Route
{
    public static class Table
    {
        public static Task<TableResult> InvokeAsync(TableArgs args, InvokeOptions? options = null)
            => Pulumi.Deployment.Instance.InvokeAsync<TableResult>("tctest:Route/table:Table", args ?? new TableArgs(), options.WithDefaults());

        public static Output<TableResult> Invoke(TableInvokeArgs args, InvokeOptions? options = null)
            => Pulumi.Deployment.Instance.Invoke<TableResult>("tctest:Route/table:Table", args ?? new TableInvokeArgs(), options.WithDefaults());
    }


    public sealed class TableArgs : Pulumi.InvokeArgs
    {
        [Input("name")]
        public string? Name { get; set; }

        [Input("routeTableId", required: true)]
        public string RouteTableId { get; set; } = null!;

        public TableArgs()
        {
        }
    }

    public sealed class TableInvokeArgs : Pulumi.InvokeArgs
    {
        [Input("name")]
        public Input<string>? Name { get; set; }

        [Input("routeTableId", required: true)]
        public Input<string> RouteTableId { get; set; } = null!;

        public TableInvokeArgs()
        {
        }
    }


    [OutputType]
    public sealed class TableResult
    {
        public readonly string CreateTime;
        /// <summary>
        /// The provider-assigned unique ID for this managed resource.
        /// </summary>
        public readonly string Id;
        public readonly string? Name;
        public readonly string RouteTableId;
        public readonly ImmutableArray<Outputs.TableRouteResult> Routes;
        public readonly int SubnetNum;
        public readonly string VpcId;

        [OutputConstructor]
        private TableResult(
            string createTime,

            string id,

            string? name,

            string routeTableId,

            ImmutableArray<Outputs.TableRouteResult> routes,

            int subnetNum,

            string vpcId)
        {
            CreateTime = createTime;
            Id = id;
            Name = name;
            RouteTableId = routeTableId;
            Routes = routes;
            SubnetNum = subnetNum;
            VpcId = vpcId;
        }
    }
}
