// *** 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.Vpc
{
    /// <summary>
    /// Provides a resource to create a vpc end_point
    /// 
    /// ## Example Usage
    /// 
    /// ```csharp
    /// using Pulumi;
    /// using Tencentcloud = TencentCloudIAC.PulumiPackage.Tencentcloud;
    /// 
    /// class MyStack : Stack
    /// {
    ///     public MyStack()
    ///     {
    ///         var endPoint = new Tencentcloud.Vpc.EndPoint("endPoint", new Tencentcloud.Vpc.EndPointArgs
    ///         {
    ///             EndPointName = "terraform-test",
    ///             EndPointServiceId = "vpcsvc-69y13tdb",
    ///             EndPointVip = "10.0.2.1",
    ///             SubnetId = "subnet-ljyn7h30",
    ///             VpcId = "vpc-391sv4w3",
    ///         });
    ///     }
    /// 
    /// }
    /// ```
    /// 
    /// ## Import
    /// 
    /// vpc end_point can be imported using the id, e.g.
    /// 
    /// ```sh
    ///  $ pulumi import tencentcloud:Vpc/endPoint:EndPoint end_point end_point_id
    /// ```
    /// </summary>
    [TencentcloudResourceType("tencentcloud:Vpc/endPoint:EndPoint")]
    public partial class EndPoint : Pulumi.CustomResource
    {
        /// <summary>
        /// Create Time.
        /// </summary>
        [Output("createTime")]
        public Output<string> CreateTime { get; private set; } = null!;

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

        /// <summary>
        /// APPID.
        /// </summary>
        [Output("endPointOwner")]
        public Output<string> EndPointOwner { get; private set; } = null!;

        /// <summary>
        /// ID of endpoint service.
        /// </summary>
        [Output("endPointServiceId")]
        public Output<string> EndPointServiceId { get; private set; } = null!;

        /// <summary>
        /// VIP of endpoint ip.
        /// </summary>
        [Output("endPointVip")]
        public Output<string?> EndPointVip { get; private set; } = null!;

        /// <summary>
        /// state of end point.
        /// </summary>
        [Output("state")]
        public Output<string> State { get; private set; } = null!;

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

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


        /// <summary>
        /// Create a EndPoint 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 EndPoint(string name, EndPointArgs args, CustomResourceOptions? options = null)
            : base("tencentcloud:Vpc/endPoint:EndPoint", name, args ?? new EndPointArgs(), MakeResourceOptions(options, ""))
        {
        }

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

    public sealed class EndPointArgs : Pulumi.ResourceArgs
    {
        /// <summary>
        /// Name of endpoint.
        /// </summary>
        [Input("endPointName", required: true)]
        public Input<string> EndPointName { get; set; } = null!;

        /// <summary>
        /// ID of endpoint service.
        /// </summary>
        [Input("endPointServiceId", required: true)]
        public Input<string> EndPointServiceId { get; set; } = null!;

        /// <summary>
        /// VIP of endpoint ip.
        /// </summary>
        [Input("endPointVip")]
        public Input<string>? EndPointVip { get; set; }

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

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

        public EndPointArgs()
        {
        }
    }

    public sealed class EndPointState : Pulumi.ResourceArgs
    {
        /// <summary>
        /// Create Time.
        /// </summary>
        [Input("createTime")]
        public Input<string>? CreateTime { get; set; }

        /// <summary>
        /// Name of endpoint.
        /// </summary>
        [Input("endPointName")]
        public Input<string>? EndPointName { get; set; }

        /// <summary>
        /// APPID.
        /// </summary>
        [Input("endPointOwner")]
        public Input<string>? EndPointOwner { get; set; }

        /// <summary>
        /// ID of endpoint service.
        /// </summary>
        [Input("endPointServiceId")]
        public Input<string>? EndPointServiceId { get; set; }

        /// <summary>
        /// VIP of endpoint ip.
        /// </summary>
        [Input("endPointVip")]
        public Input<string>? EndPointVip { get; set; }

        /// <summary>
        /// state of end point.
        /// </summary>
        [Input("state")]
        public Input<string>? State { get; set; }

        /// <summary>
        /// ID of subnet instance.
        /// </summary>
        [Input("subnetId")]
        public Input<string>? SubnetId { get; set; }

        /// <summary>
        /// ID of vpc instance.
        /// </summary>
        [Input("vpcId")]
        public Input<string>? VpcId { get; set; }

        public EndPointState()
        {
        }
    }
}
