InstanceClassesProps
Properties for defining a InstanceClasses
.
See https://www.alibabacloud.com/help/ros/developer-reference/datasource-mongodb-instanceclasses
Initializer
import com.aliyun.ros.cdk.mongodb.datasource.InstanceClassesProps;
InstanceClassesProps.builder()
// .dbType(java.lang.String)
// .dbType(IResolvable)
// .instanceChargeType(java.lang.String)
// .instanceChargeType(IResolvable)
// .refreshOptions(java.lang.String)
// .refreshOptions(IResolvable)
// .resourceGroupId(java.lang.String)
// .resourceGroupId(IResolvable)
// .zoneId(java.lang.String)
// .zoneId(IResolvable)
.build();
Properties
Name | Type | Description |
---|---|---|
dbType |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property dbType: The database engine type of the instance. |
instanceChargeType |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property instanceChargeType: The billing method of the instance. |
refreshOptions |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property refreshOptions: The refresh strategy for the datasource resource when the stack is updated. |
resourceGroupId |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property resourceGroupId: The ID of the resource group. |
zoneId |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property zoneId: The zone ID of the instance. |
dbType
Optional
public java.lang.Object getDbType();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property dbType: The database engine type of the instance.
normal: replica set instance sharding: sharded cluster instance
instanceChargeType
Optional
public java.lang.Object getInstanceChargeType();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property instanceChargeType: The billing method of the instance.
Default value: PostPaid. Valid values: PrePaid: subscription PostPaid: pay-as-you-go
refreshOptions
Optional
public java.lang.Object getRefreshOptions();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property refreshOptions: The refresh strategy for the datasource resource when the stack is updated.
Valid values:
- Never: Never refresh the datasource resource when the stack is updated.
- Always: Always refresh the datasource resource when the stack is updated. Default is Never.
resourceGroupId
Optional
public java.lang.Object getResourceGroupId();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property resourceGroupId: The ID of the resource group.
zoneId
Optional
public java.lang.Object getZoneId();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property zoneId: The zone ID of the instance.
You can call the DescribeRegions operation to query the most recent zone list.