Skip to content

ShardingNetworkPublicAddressProps

Properties for defining a ShardingNetworkPublicAddress.

See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-mongodb-shardingnetworkpublicaddress

Initializer

import com.aliyun.ros.cdk.mongodb.ShardingNetworkPublicAddressProps;
ShardingNetworkPublicAddressProps.builder()
    .dbInstanceId(java.lang.String)
    .dbInstanceId(IResolvable)
//  .nodeId(java.lang.String)
//  .nodeId(IResolvable)
    .build();

Properties

Name Type Description
dbInstanceId java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property dbInstanceId: The ID of the instance.
nodeId java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property nodeId: The Mongos node ID, Shard node ID, or ConfigServer node ID in the sharded cluster instance.

dbInstanceIdRequired

public java.lang.Object getDbInstanceId();
  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Property dbInstanceId: The ID of the instance.

you must also configure the NodeId parameter when configuring a shard cluster instance ID.


nodeIdOptional

public java.lang.Object getNodeId();
  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Property nodeId: The Mongos node ID, Shard node ID, or ConfigServer node ID in the sharded cluster instance.

You can call the DescribeDBInstanceAttribute operation to query the node ID of the Mongos node, Shard node, or ConfigServer node.

This parameter is required when DBInstanceId is configured as a sharded cluster instance ID.