InstanceClassesProps
Properties for defining a InstanceClasses
.
See https://www.alibabacloud.com/help/ros/developer-reference/datasource-mongodb-instanceclasses
Initializer
import { datasource } from '@alicloud/ros-cdk-mongodb'
const instanceClassesProps: datasource.InstanceClassesProps = { ... }
Properties
Name | Type | Description |
---|---|---|
dbType |
string | @alicloud/ros-cdk-core.IResolvable |
Property dbType: The database engine type of the instance. |
instanceChargeType |
string | @alicloud/ros-cdk-core.IResolvable |
Property instanceChargeType: The billing method of the instance. |
refreshOptions |
string | @alicloud/ros-cdk-core.IResolvable |
Property refreshOptions: The refresh strategy for the datasource resource when the stack is updated. |
resourceGroupId |
string | @alicloud/ros-cdk-core.IResolvable |
Property resourceGroupId: The ID of the resource group. |
zoneId |
string | @alicloud/ros-cdk-core.IResolvable |
Property zoneId: The zone ID of the instance. |
dbType
Optional
public readonly dbType: string | IResolvable;
- Type: string | @alicloud/ros-cdk-core.IResolvable
Property dbType: The database engine type of the instance.
normal: replica set instance sharding: sharded cluster instance
instanceChargeType
Optional
public readonly instanceChargeType: string | IResolvable;
- Type: string | @alicloud/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 readonly refreshOptions: string | IResolvable;
- Type: string | @alicloud/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 readonly resourceGroupId: string | IResolvable;
- Type: string | @alicloud/ros-cdk-core.IResolvable
Property resourceGroupId: The ID of the resource group.
zoneId
Optional
public readonly zoneId: string | IResolvable;
- Type: string | @alicloud/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.