Class ReadWriteSplittingConnectionState
Inherited Members
Namespace: Pulumi.AliCloud.Rds
Assembly: Pulumi.AliCloud.dll
Syntax
public sealed class ReadWriteSplittingConnectionState : ResourceArgs
Constructors
View SourceReadWriteSplittingConnectionState()
Declaration
public ReadWriteSplittingConnectionState()
Properties
View SourceConnectionPrefix
Prefix of an Internet connection string. It must be checked for uniqueness. It may consist of lowercase letters, numbers, and underlines, and must start with a letter and have no more than 30 characters. Default to <instance_id> + 'rw'.
Declaration
public Input<string> ConnectionPrefix { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.String> |
ConnectionString
Connection instance string.
Declaration
public Input<string> ConnectionString { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.String> |
DistributionType
Read weight distribution mode. Values are as follows: Standard indicates automatic weight distribution based on types, Custom indicates custom weight distribution.
Declaration
public Input<string> DistributionType { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.String> |
InstanceId
The Id of instance that can run database.
Declaration
public Input<string> InstanceId { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.String> |
MaxDelayTime
Delay threshold, in seconds. The value range is 0 to 7200. Default to 30. Read requests are not routed to the read-only instances with a delay greater than the threshold.
Declaration
public Input<int> MaxDelayTime { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.Int32> |
Port
Intranet connection port. Valid value: [3001-3999]. Default to 3306.
Declaration
public Input<int> Port { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.Int32> |
Weight
Read weight distribution. Read weights increase at a step of 100 up to 10,000. Enter weights in the following format: {"Instanceid":"Weight","Instanceid":"Weight"}. This parameter must be set when distribution_type is set to Custom.
Declaration
public InputMap<object> Weight { get; set; }
Property Value
| Type | Description |
|---|---|
| InputMap<System.Object> |