// *** 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.Dc
{
    [TctestResourceType("tctest:Dc/gatewayInstance:GatewayInstance")]
    public partial class GatewayInstance : Pulumi.CustomResource
    {
        /// <summary>
        /// Type of CCN route. Valid value: `BGP` and `STATIC`. The property is available when the DCG type is CCN gateway and BGP
        /// enabled.
        /// </summary>
        [Output("cnnRouteType")]
        public Output<string> CnnRouteType { get; private set; } = null!;

        /// <summary>
        /// Creation time of resource.
        /// </summary>
        [Output("createTime")]
        public Output<string> CreateTime { get; private set; } = null!;

        /// <summary>
        /// Indicates whether the BGP is enabled.
        /// </summary>
        [Output("enableBgp")]
        public Output<bool> EnableBgp { get; private set; } = null!;

        /// <summary>
        /// Type of the gateway. Valid value: `NORMAL` and `NAT`. Default is `NORMAL`. NOTES: CCN only supports `NORMAL` and a VPC
        /// can create two DCGs, the one is NAT type and the other is non-NAT type.
        /// </summary>
        [Output("gatewayType")]
        public Output<string?> GatewayType { get; private set; } = null!;

        /// <summary>
        /// Name of the DCG.
        /// </summary>
        [Output("name")]
        public Output<string> Name { get; private set; } = null!;

        /// <summary>
        /// If the `network_type` value is `VPC`, the available value is VPC ID. But when the `network_type` value is `CCN`, the
        /// available value is CCN instance ID.
        /// </summary>
        [Output("networkInstanceId")]
        public Output<string> NetworkInstanceId { get; private set; } = null!;

        /// <summary>
        /// Type of associated network. Valid value: `VPC` and `CCN`.
        /// </summary>
        [Output("networkType")]
        public Output<string> NetworkType { get; private set; } = null!;


        /// <summary>
        /// Create a GatewayInstance 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 GatewayInstance(string name, GatewayInstanceArgs args, CustomResourceOptions? options = null)
            : base("tctest:Dc/gatewayInstance:GatewayInstance", name, args ?? new GatewayInstanceArgs(), MakeResourceOptions(options, ""))
        {
        }

        private GatewayInstance(string name, Input<string> id, GatewayInstanceState? state = null, CustomResourceOptions? options = null)
            : base("tctest:Dc/gatewayInstance:GatewayInstance", 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 GatewayInstance 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 GatewayInstance Get(string name, Input<string> id, GatewayInstanceState? state = null, CustomResourceOptions? options = null)
        {
            return new GatewayInstance(name, id, state, options);
        }
    }

    public sealed class GatewayInstanceArgs : Pulumi.ResourceArgs
    {
        /// <summary>
        /// Type of the gateway. Valid value: `NORMAL` and `NAT`. Default is `NORMAL`. NOTES: CCN only supports `NORMAL` and a VPC
        /// can create two DCGs, the one is NAT type and the other is non-NAT type.
        /// </summary>
        [Input("gatewayType")]
        public Input<string>? GatewayType { get; set; }

        /// <summary>
        /// Name of the DCG.
        /// </summary>
        [Input("name")]
        public Input<string>? Name { get; set; }

        /// <summary>
        /// If the `network_type` value is `VPC`, the available value is VPC ID. But when the `network_type` value is `CCN`, the
        /// available value is CCN instance ID.
        /// </summary>
        [Input("networkInstanceId", required: true)]
        public Input<string> NetworkInstanceId { get; set; } = null!;

        /// <summary>
        /// Type of associated network. Valid value: `VPC` and `CCN`.
        /// </summary>
        [Input("networkType", required: true)]
        public Input<string> NetworkType { get; set; } = null!;

        public GatewayInstanceArgs()
        {
        }
    }

    public sealed class GatewayInstanceState : Pulumi.ResourceArgs
    {
        /// <summary>
        /// Type of CCN route. Valid value: `BGP` and `STATIC`. The property is available when the DCG type is CCN gateway and BGP
        /// enabled.
        /// </summary>
        [Input("cnnRouteType")]
        public Input<string>? CnnRouteType { get; set; }

        /// <summary>
        /// Creation time of resource.
        /// </summary>
        [Input("createTime")]
        public Input<string>? CreateTime { get; set; }

        /// <summary>
        /// Indicates whether the BGP is enabled.
        /// </summary>
        [Input("enableBgp")]
        public Input<bool>? EnableBgp { get; set; }

        /// <summary>
        /// Type of the gateway. Valid value: `NORMAL` and `NAT`. Default is `NORMAL`. NOTES: CCN only supports `NORMAL` and a VPC
        /// can create two DCGs, the one is NAT type and the other is non-NAT type.
        /// </summary>
        [Input("gatewayType")]
        public Input<string>? GatewayType { get; set; }

        /// <summary>
        /// Name of the DCG.
        /// </summary>
        [Input("name")]
        public Input<string>? Name { get; set; }

        /// <summary>
        /// If the `network_type` value is `VPC`, the available value is VPC ID. But when the `network_type` value is `CCN`, the
        /// available value is CCN instance ID.
        /// </summary>
        [Input("networkInstanceId")]
        public Input<string>? NetworkInstanceId { get; set; }

        /// <summary>
        /// Type of associated network. Valid value: `VPC` and `CCN`.
        /// </summary>
        [Input("networkType")]
        public Input<string>? NetworkType { get; set; }

        public GatewayInstanceState()
        {
        }
    }
}
