// *** 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_service
    /// 
    /// ## Example Usage
    /// 
    /// ```csharp
    /// using Pulumi;
    /// using Tencentcloud = TencentCloudIAC.PulumiPackage.Tencentcloud;
    /// 
    /// class MyStack : Stack
    /// {
    ///     public MyStack()
    ///     {
    ///         var endPointService = new Tencentcloud.Vpc.EndPointService("endPointService", new Tencentcloud.Vpc.EndPointServiceArgs
    ///         {
    ///             AutoAcceptFlag = false,
    ///             EndPointServiceName = "terraform-endpoint-service",
    ///             ServiceInstanceId = "lb-o5f6x7ke",
    ///             ServiceType = "CLB",
    ///             VpcId = "vpc-391sv4w3",
    ///         });
    ///     }
    /// 
    /// }
    /// ```
    /// 
    /// ## Import
    /// 
    /// vpc end_point_service can be imported using the id, e.g.
    /// 
    /// ```sh
    ///  $ pulumi import tencentcloud:Vpc/endPointService:EndPointService end_point_service end_point_service_id
    /// ```
    /// </summary>
    [TencentcloudResourceType("tencentcloud:Vpc/endPointService:EndPointService")]
    public partial class EndPointService : Pulumi.CustomResource
    {
        /// <summary>
        /// Whether to automatically accept.
        /// </summary>
        [Output("autoAcceptFlag")]
        public Output<bool> AutoAcceptFlag { get; private set; } = null!;

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

        /// <summary>
        /// Count of end point.
        /// </summary>
        [Output("endPointCount")]
        public Output<int> EndPointCount { get; private set; } = null!;

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

        /// <summary>
        /// Id of service instance, like lb-xxx.
        /// </summary>
        [Output("serviceInstanceId")]
        public Output<string> ServiceInstanceId { get; private set; } = null!;

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

        /// <summary>
        /// Type of service instance, like `CLB`, `CDB`, `CRS`, default is `CLB`.
        /// </summary>
        [Output("serviceType")]
        public Output<string> ServiceType { get; private set; } = null!;

        /// <summary>
        /// VIP of backend service.
        /// </summary>
        [Output("serviceVip")]
        public Output<string> ServiceVip { get; private set; } = null!;

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


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

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

    public sealed class EndPointServiceArgs : Pulumi.ResourceArgs
    {
        /// <summary>
        /// Whether to automatically accept.
        /// </summary>
        [Input("autoAcceptFlag", required: true)]
        public Input<bool> AutoAcceptFlag { get; set; } = null!;

        /// <summary>
        /// Name of end point service.
        /// </summary>
        [Input("endPointServiceName", required: true)]
        public Input<string> EndPointServiceName { get; set; } = null!;

        /// <summary>
        /// Id of service instance, like lb-xxx.
        /// </summary>
        [Input("serviceInstanceId", required: true)]
        public Input<string> ServiceInstanceId { get; set; } = null!;

        /// <summary>
        /// Type of service instance, like `CLB`, `CDB`, `CRS`, default is `CLB`.
        /// </summary>
        [Input("serviceType")]
        public Input<string>? ServiceType { get; set; }

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

        public EndPointServiceArgs()
        {
        }
    }

    public sealed class EndPointServiceState : Pulumi.ResourceArgs
    {
        /// <summary>
        /// Whether to automatically accept.
        /// </summary>
        [Input("autoAcceptFlag")]
        public Input<bool>? AutoAcceptFlag { get; set; }

        /// <summary>
        /// Create Time.
        /// </summary>
        [Input("createTime")]
        public Input<string>? CreateTime { get; set; }

        /// <summary>
        /// Count of end point.
        /// </summary>
        [Input("endPointCount")]
        public Input<int>? EndPointCount { get; set; }

        /// <summary>
        /// Name of end point service.
        /// </summary>
        [Input("endPointServiceName")]
        public Input<string>? EndPointServiceName { get; set; }

        /// <summary>
        /// Id of service instance, like lb-xxx.
        /// </summary>
        [Input("serviceInstanceId")]
        public Input<string>? ServiceInstanceId { get; set; }

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

        /// <summary>
        /// Type of service instance, like `CLB`, `CDB`, `CRS`, default is `CLB`.
        /// </summary>
        [Input("serviceType")]
        public Input<string>? ServiceType { get; set; }

        /// <summary>
        /// VIP of backend service.
        /// </summary>
        [Input("serviceVip")]
        public Input<string>? ServiceVip { get; set; }

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

        public EndPointServiceState()
        {
        }
    }
}
