// *** 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.Clb.Outputs
{

    [OutputType]
    public sealed class AttachmentTarget
    {
        /// <summary>
        /// Eni IP address of the backend server, conflict with `instance_id` but must specify one of them.
        /// </summary>
        public readonly string? EniIp;
        /// <summary>
        /// CVM Instance Id of the backend server, conflict with `eni_ip` but must specify one of them.
        /// </summary>
        public readonly string? InstanceId;
        /// <summary>
        /// Port of the backend server. Valid value ranges: (0~65535).
        /// </summary>
        public readonly int Port;
        /// <summary>
        /// Forwarding weight of the backend service. Valid value ranges: (0~100). defaults to `10`.
        /// </summary>
        public readonly int? Weight;

        [OutputConstructor]
        private AttachmentTarget(
            string? eniIp,

            string? instanceId,

            int port,

            int? weight)
        {
            EniIp = eniIp;
            InstanceId = instanceId;
            Port = port;
            Weight = weight;
        }
    }
}
