<gh_stars>0// *** 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.AliCloud.PolarDB.Outputs
{

    [OutputType]
    public sealed class GetEndpointsEndpointResult
    {
        /// <summary>
        /// A list of endpoint addresses. Each element contains the following attributes.
        /// </summary>
        public readonly ImmutableArray<Outputs.GetEndpointsEndpointAddressItemResult> AddressItems;
        /// <summary>
        /// Whether the new node is automatically added to the default cluster address.Options are `Enable` and `Disable`.
        /// </summary>
        public readonly string AutoAddNewNodes;
        /// <summary>
        /// endpoint of the cluster.
        /// </summary>
        public readonly string DbEndpointId;
        /// <summary>
        /// The Endpoint configuration. `ConsistLevel`: session consistency level, value:`0`: final consistency,`1`: session consistency;`LoadBalanceStrategy`: load balancing strategy. Based on the automatic scheduling of load, the value is: `load`.
        /// </summary>
        public readonly string EndpointConfig;
        /// <summary>
        /// Cluster address type.`Cluster`: the default address of the Cluster.`Primary`: Primary address.`Custom`: Custom cluster addresses.
        /// </summary>
        public readonly string EndpointType;
        /// <summary>
        /// A list of nodes that connect to the address configuration.
        /// </summary>
        public readonly string Nodes;
        /// <summary>
        /// Read-write mode:`ReadWrite`: readable and writable (automatic read-write separation).`ReadOnly`: ReadOnly.
        /// </summary>
        public readonly string ReadWriteMode;

        [OutputConstructor]
        private GetEndpointsEndpointResult(
            ImmutableArray<Outputs.GetEndpointsEndpointAddressItemResult> addressItems,

            string autoAddNewNodes,

            string dbEndpointId,

            string endpointConfig,

            string endpointType,

            string nodes,

            string readWriteMode)
        {
            AddressItems = addressItems;
            AutoAddNewNodes = autoAddNewNodes;
            DbEndpointId = dbEndpointId;
            EndpointConfig = endpointConfig;
            EndpointType = endpointType;
            Nodes = nodes;
            ReadWriteMode = readWriteMode;
        }
    }
}
