// *** 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.Dayu
{
    /// <summary>
    /// Use this resource to create dayu eip rule
    /// 
    /// ## Example Usage
    /// 
    /// ```csharp
    /// using Pulumi;
    /// using Tencentcloud = TencentCloudIAC.PulumiPackage.Tencentcloud;
    /// 
    /// class MyStack : Stack
    /// {
    ///     public MyStack()
    ///     {
    ///         var test = new Tencentcloud.Dayu.Eip("test", new Tencentcloud.Dayu.EipArgs
    ///         {
    ///             BindResourceId = "ins-4m0jvxic",
    ///             BindResourceRegion = "hk",
    ///             BindResourceType = "cvm",
    ///             Eip = "192.168.127.12",
    ///             ResourceId = "bgpip-000004xg",
    ///         });
    ///     }
    /// 
    /// }
    /// ```
    /// </summary>
    [TencentcloudResourceType("tencentcloud:Dayu/eip:Eip")]
    public partial class Eip : Pulumi.CustomResource
    {
        /// <summary>
        /// Resource id to bind.
        /// </summary>
        [Output("bindResourceId")]
        public Output<string> BindResourceId { get; private set; } = null!;

        /// <summary>
        /// Resource region to bind.
        /// </summary>
        [Output("bindResourceRegion")]
        public Output<string> BindResourceRegion { get; private set; } = null!;

        /// <summary>
        /// Resource type to bind, value range [`clb`, `cvm`].
        /// </summary>
        [Output("bindResourceType")]
        public Output<string> BindResourceType { get; private set; } = null!;

        /// <summary>
        /// Created time of the resource instance.
        /// </summary>
        [Output("createdTime")]
        public Output<string> CreatedTime { get; private set; } = null!;

        /// <summary>
        /// Eip of the resource.
        /// </summary>
        [Output("eip")]
        public Output<string> DayuEip { get; private set; } = null!;

        /// <summary>
        /// Eip address status of the resource instance.
        /// </summary>
        [Output("eipAddressStatus")]
        public Output<string> EipAddressStatus { get; private set; } = null!;

        /// <summary>
        /// Eip bound rsc eni of the resource instance.
        /// </summary>
        [Output("eipBoundRscEni")]
        public Output<string> EipBoundRscEni { get; private set; } = null!;

        /// <summary>
        /// Eip bound rsc ins of the resource instance.
        /// </summary>
        [Output("eipBoundRscIns")]
        public Output<string> EipBoundRscIns { get; private set; } = null!;

        /// <summary>
        /// Eip bound rsc vip of the resource instance.
        /// </summary>
        [Output("eipBoundRscVip")]
        public Output<string> EipBoundRscVip { get; private set; } = null!;

        /// <summary>
        /// Expired time of the resource instance.
        /// </summary>
        [Output("expiredTime")]
        public Output<string> ExpiredTime { get; private set; } = null!;

        /// <summary>
        /// Modify time of the resource instance.
        /// </summary>
        [Output("modifyTime")]
        public Output<string> ModifyTime { get; private set; } = null!;

        /// <summary>
        /// Protection status of the resource instance.
        /// </summary>
        [Output("protectionStatus")]
        public Output<string> ProtectionStatus { get; private set; } = null!;

        /// <summary>
        /// ID of the resource.
        /// </summary>
        [Output("resourceId")]
        public Output<string> ResourceId { get; private set; } = null!;

        /// <summary>
        /// Region of the resource instance.
        /// </summary>
        [Output("resourceRegion")]
        public Output<string> ResourceRegion { get; private set; } = null!;


        /// <summary>
        /// Create a Eip 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 Eip(string name, EipArgs args, CustomResourceOptions? options = null)
            : base("tencentcloud:Dayu/eip:Eip", name, args ?? new EipArgs(), MakeResourceOptions(options, ""))
        {
        }

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

    public sealed class EipArgs : Pulumi.ResourceArgs
    {
        /// <summary>
        /// Resource id to bind.
        /// </summary>
        [Input("bindResourceId", required: true)]
        public Input<string> BindResourceId { get; set; } = null!;

        /// <summary>
        /// Resource region to bind.
        /// </summary>
        [Input("bindResourceRegion", required: true)]
        public Input<string> BindResourceRegion { get; set; } = null!;

        /// <summary>
        /// Resource type to bind, value range [`clb`, `cvm`].
        /// </summary>
        [Input("bindResourceType", required: true)]
        public Input<string> BindResourceType { get; set; } = null!;

        /// <summary>
        /// Eip of the resource.
        /// </summary>
        [Input("eip", required: true)]
        public Input<string> DayuEip { get; set; } = null!;

        /// <summary>
        /// ID of the resource.
        /// </summary>
        [Input("resourceId", required: true)]
        public Input<string> ResourceId { get; set; } = null!;

        public EipArgs()
        {
        }
    }

    public sealed class EipState : Pulumi.ResourceArgs
    {
        /// <summary>
        /// Resource id to bind.
        /// </summary>
        [Input("bindResourceId")]
        public Input<string>? BindResourceId { get; set; }

        /// <summary>
        /// Resource region to bind.
        /// </summary>
        [Input("bindResourceRegion")]
        public Input<string>? BindResourceRegion { get; set; }

        /// <summary>
        /// Resource type to bind, value range [`clb`, `cvm`].
        /// </summary>
        [Input("bindResourceType")]
        public Input<string>? BindResourceType { get; set; }

        /// <summary>
        /// Created time of the resource instance.
        /// </summary>
        [Input("createdTime")]
        public Input<string>? CreatedTime { get; set; }

        /// <summary>
        /// Eip of the resource.
        /// </summary>
        [Input("eip")]
        public Input<string>? DayuEip { get; set; }

        /// <summary>
        /// Eip address status of the resource instance.
        /// </summary>
        [Input("eipAddressStatus")]
        public Input<string>? EipAddressStatus { get; set; }

        /// <summary>
        /// Eip bound rsc eni of the resource instance.
        /// </summary>
        [Input("eipBoundRscEni")]
        public Input<string>? EipBoundRscEni { get; set; }

        /// <summary>
        /// Eip bound rsc ins of the resource instance.
        /// </summary>
        [Input("eipBoundRscIns")]
        public Input<string>? EipBoundRscIns { get; set; }

        /// <summary>
        /// Eip bound rsc vip of the resource instance.
        /// </summary>
        [Input("eipBoundRscVip")]
        public Input<string>? EipBoundRscVip { get; set; }

        /// <summary>
        /// Expired time of the resource instance.
        /// </summary>
        [Input("expiredTime")]
        public Input<string>? ExpiredTime { get; set; }

        /// <summary>
        /// Modify time of the resource instance.
        /// </summary>
        [Input("modifyTime")]
        public Input<string>? ModifyTime { get; set; }

        /// <summary>
        /// Protection status of the resource instance.
        /// </summary>
        [Input("protectionStatus")]
        public Input<string>? ProtectionStatus { get; set; }

        /// <summary>
        /// ID of the resource.
        /// </summary>
        [Input("resourceId")]
        public Input<string>? ResourceId { get; set; }

        /// <summary>
        /// Region of the resource instance.
        /// </summary>
        [Input("resourceRegion")]
        public Input<string>? ResourceRegion { get; set; }

        public EipState()
        {
        }
    }
}
