ShardingNetworkPrivateAddressProps
Properties for defining a ShardingNetworkPrivateAddress.
See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-mongodb-shardingnetworkprivateaddress
Initializer
import com.aliyun.ros.cdk.mongodb.ShardingNetworkPrivateAddressProps;
ShardingNetworkPrivateAddressProps.builder()
.dbInstanceId(java.lang.String)
.dbInstanceId(IResolvable)
.nodeId(java.lang.String)
.nodeId(IResolvable)
// .accountName(java.lang.String)
// .accountName(IResolvable)
// .accountPassword(java.lang.String)
// .accountPassword(IResolvable)
// .zoneId(java.lang.String)
// .zoneId(IResolvable)
.build();
Properties
| Name | Type | Description |
|---|---|---|
dbInstanceId | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property dbInstanceId: The ID of the Shard cluster instance. |
nodeId | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property nodeId: The ID of the Mongos node, Shard node, or ConfigServer node in the sharded cluster instance. |
accountName | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property accountName: Account name. |
accountPassword | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property accountPassword: Account password. |
zoneId | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property zoneId: The ID of the zone to which the instance belongs. |
dbInstanceIdRequired
public java.lang.Object getDbInstanceId();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property dbInstanceId: The ID of the Shard cluster instance.
nodeIdRequired
public java.lang.Object getNodeId();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property nodeId: The ID of the Mongos node, Shard node, or ConfigServer node in the sharded cluster instance.
You can call the [DescribeDBInstanceAttribute] interface to query the Mongos, Shard, and ConfigServer node ID.
accountNameOptional
public java.lang.Object getAccountName();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property accountName: Account name.
- starts with a lowercase letter, has 4 to 16 digits in length, and consists of lowercase letters, numbers, or underscores.
- Only when you apply for the Shard/ConfigServer address for the first time, you need to set the account name and password. That is, all Shard nodes and ConfigServer nodes will use the account and password set when applying for the address for the first time.
- The permissions of this account are fixed to read-only.
accountPasswordOptional
public java.lang.Object getAccountPassword();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property accountPassword: Account password.
- The password consists of at least three of uppercase letters, lowercase letters, numbers, and special characters. The special character is '! #$%^& *()_+-='
- The password length is 8-32 bits.
zoneIdOptional
public java.lang.Object getZoneId();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property zoneId: The ID of the zone to which the instance belongs.
You can call the [describeddinstanceattribute] operation to query the zone ID of an instance.