DBInstanceProps
Properties for defining a DBInstance.
See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-polardbx-dbinstance
Initializer
import "github.com/alibabacloud-go/ros-cdk/alicloudroscdkpolardbx"
&alicloudroscdkpolardbx.DBInstanceProps {
DbNodeClass: interface{},
DbNodeCount: interface{},
EngineVersion: interface{},
PrimaryZone: interface{},
TopologyType: interface{},
VpcId: interface{},
VSwitchId: interface{},
AutoRenew: interface{},
DbInstanceDescription: interface{},
PayType: interface{},
Period: interface{},
ResourceGroupId: interface{},
SecondaryZone: interface{},
SecurityIpConfig: interface{},
TertiaryZone: interface{},
UsedTime: interface{},
}
Properties
| Name | Type | Description |
|---|---|---|
DbNodeClass | interface{} | Property dbNodeClass: Node specifications: - polarx.x4.medium.2e: 2 vCPUs, 8 GB - polarx.x4.large.2e: 4 vCPUs, 16 GB - polarx.x8.large.2e: 4 vCPUs, 32 GB - polarx.x4.xlarge.2e: 8 vCPUs, 32 GB - polarx.x8.xlarge.2e: 8 vCPUs, 64 GB - polarx.x4.2xlarge.2e: 16 vCPUs, 64 GB - polarx.x8.2xlarge.2e: 16 vCPUs, 128 GB - polarx.x4.4xlarge.2e: 32 vCPUs, 128 GB - polarx.x8.4xlarge.2e: 32 vCPUs, 256 GB - polarx.st.8xlarge.2e: 60 vCPUs, 470 GB - polarx.st.12xlarge.2e: 90 vCPUs, 720 GB. |
DbNodeCount | interface{} | Property dbNodeCount: Number of instance nodes. |
EngineVersion | interface{} | Property engineVersion: MySQL engine version, either 5.7 or 8.0. |
PrimaryZone | interface{} | Property primaryZone: The primary zone. |
TopologyType | interface{} | Property topologyType: The topology type of the instance. |
VpcId | interface{} | Property vpcId: The ID of the VPC to which the instance belongs. |
VSwitchId | interface{} | Property vSwitchId: The ID of the vSwitch. |
AutoRenew | interface{} | Property autoRenew: Specifies whether to enable auto-renewal for the instance. |
DbInstanceDescription | interface{} | Property dbInstanceDescription: The description of the instance. |
PayType | interface{} | Property payType: The billing method of the instance. |
Period | interface{} | Property period: The unit of the billing cycle for the instance. |
ResourceGroupId | interface{} | Property resourceGroupId: Can be empty. |
SecondaryZone | interface{} | Property secondaryZone: The secondary zone. |
SecurityIpConfig | interface{} | Property securityIpConfig: Instance whitelist configuration. |
TertiaryZone | interface{} | Property tertiaryZone: The tertiary zone. |
UsedTime | interface{} | Property usedTime: The subscription period of the instance. |
DbNodeClassRequired
DbNodeClass interface{}
- Type: interface{}
Property dbNodeClass: Node specifications: - polarx.x4.medium.2e: 2 vCPUs, 8 GB - polarx.x4.large.2e: 4 vCPUs, 16 GB - polarx.x8.large.2e: 4 vCPUs, 32 GB - polarx.x4.xlarge.2e: 8 vCPUs, 32 GB - polarx.x8.xlarge.2e: 8 vCPUs, 64 GB - polarx.x4.2xlarge.2e: 16 vCPUs, 64 GB - polarx.x8.2xlarge.2e: 16 vCPUs, 128 GB - polarx.x4.4xlarge.2e: 32 vCPUs, 128 GB - polarx.x8.4xlarge.2e: 32 vCPUs, 256 GB - polarx.st.8xlarge.2e: 60 vCPUs, 470 GB - polarx.st.12xlarge.2e: 90 vCPUs, 720 GB.
DbNodeCountRequired
DbNodeCount interface{}
- Type: interface{}
Property dbNodeCount: Number of instance nodes.
Minimum value is 2.
EngineVersionRequired
EngineVersion interface{}
- Type: interface{}
Property engineVersion: MySQL engine version, either 5.7 or 8.0.
PrimaryZoneRequired
PrimaryZone interface{}
- Type: interface{}
Property primaryZone: The primary zone.
TopologyTypeRequired
TopologyType interface{}
- Type: interface{}
Property topologyType: The topology type of the instance.
Valid values: 3azones: The instance is deployed in three zones. 1azone: The instance is deployed in only one zone.
VpcIdRequired
VpcId interface{}
- Type: interface{}
Property vpcId: The ID of the VPC to which the instance belongs.
VSwitchIdRequired
VSwitchId interface{}
- Type: interface{}
Property vSwitchId: The ID of the vSwitch.
AutoRenewOptional
AutoRenew interface{}
- Type: interface{}
Property autoRenew: Specifies whether to enable auto-renewal for the instance.
Default value: true. true: Enable auto-renewal. false: Disable auto-renewal.
DbInstanceDescriptionOptional
DbInstanceDescription interface{}
- Type: interface{}
Property dbInstanceDescription: The description of the instance.
PayTypeOptional
PayType interface{}
- Type: interface{}
Property payType: The billing method of the instance.
Default: POSTPAY.Valid values: PREPAY: subscription POSTPAY: pay-as-you-go
PeriodOptional
Period interface{}
- Type: interface{}
Property period: The unit of the billing cycle for the instance.
The valid values vary based on the billing method. If you use the subscription billing method, set the value to Year or Month. If you use the pay-as-you-go billing method, the value is automatically set to Hour.
ResourceGroupIdOptional
ResourceGroupId interface{}
- Type: interface{}
Property resourceGroupId: Can be empty.
Resource group ID. Not supported for now.
SecondaryZoneOptional
SecondaryZone interface{}
- Type: interface{}
Property secondaryZone: The secondary zone.
SecurityIpConfigOptional
SecurityIpConfig interface{}
- Type: interface{}
Property securityIpConfig: Instance whitelist configuration.
TertiaryZoneOptional
TertiaryZone interface{}
- Type: interface{}
Property tertiaryZone: The tertiary zone.
UsedTimeOptional
UsedTime interface{}
- Type: interface{}
Property usedTime: The subscription period of the instance.
Unit: month or year. Note When period is set to year, the supported values of this parameter are 1, 2 and 3.