DrdsInstanceProps
Properties for defining a DrdsInstance
.
See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-drds-drdsinstance
Initializer
import "github.com/alibabacloud-go/ros-cdk/alicloudroscdkdrds"
&alicloudroscdkdrds.DrdsInstanceProps {
Description: interface{},
InstanceSeries: interface{},
PayType: interface{},
Specification: interface{},
Type: interface{},
ZoneId: interface{},
Duration: interface{},
IsAutoRenew: interface{},
MySqlVersion: interface{},
PricingCycle: interface{},
ResourceGroupId: interface{},
Tags: *[]github.com/alibabacloud-go/ros-cdk/alicloudroscdkdrds.RosDrdsInstance.TagsProperty,
VpcId: interface{},
VswitchId: interface{},
}
Properties
Name | Type | Description |
---|---|---|
Description |
interface{} |
Property description: Description of the DRDS instance, 2-128 characters. |
InstanceSeries |
interface{} |
Property instanceSeries: drds.sn1.4c8g Starter Edition; drds.sn1.8c16g Standard Edition; drds.sn1.16c32g Business Edition; drds.sn1.32c64g Ultimate Edition. |
PayType |
interface{} |
Property payType: For the type of payment, see "Payment Type Parameter Table". |
Specification |
interface{} |
Property specification: The example specification, for example, drds.sn1.4c8g.8C16G, consists of the DRDS instance series (drds.sn1.4c8g) plus a specific example specification (8C16G). For the DRDS instance specification value range, see: Distributed Relational Database Service Specifications and Pricing. |
Type |
interface{} |
Property type: Instance type, instance type 0 - shared instance 1 - exclusive instance, in addition, this parameter can also pass PRIVATE and PUBLIC to represent exclusive instance and shared instance respectively. |
ZoneId |
interface{} |
Property zoneId: Availability zone, an available zone belongs to a certain zone, such as Hangzhou Availability Zone A (cn-hangzhou-a) belongs to the region Hangzhou (cn-hangzhou). |
Duration |
interface{} |
Property duration: The number of cycles ordered. |
IsAutoRenew |
interface{} |
Property isAutoRenew: Whether to renew the fee automatically, if it is purchased on a monthly basis, it will automatically renew for one month, and if it is purchased on an annual basis, it will automatically renew for one year. |
MySqlVersion |
interface{} |
Property mySqlVersion: The MySQL protocol version supported by DRDS. |
PricingCycle |
interface{} |
Property pricingCycle: The unit of the order period, year: year, month: month. |
ResourceGroupId |
interface{} |
Property resourceGroupId: Resource group id. |
Tags |
*[]TagsProperty |
Property tags: Tags to attach to instance. |
VpcId |
interface{} |
Property vpcId: Virtual private network ID, must be specified when creating a DRDS for VPC network type. |
VswitchId |
interface{} |
Property vswitchId: Virtual switch ID, must be specified when creating a DRDS for VPC network type. |
Description
Required
Description interface{}
- Type: interface{}
Property description: Description of the DRDS instance, 2-128 characters.
InstanceSeries
Required
InstanceSeries interface{}
- Type: interface{}
Property instanceSeries: drds.sn1.4c8g Starter Edition; drds.sn1.8c16g Standard Edition; drds.sn1.16c32g Business Edition; drds.sn1.32c64g Ultimate Edition.
PayType
Required
PayType interface{}
- Type: interface{}
Property payType: For the type of payment, see "Payment Type Parameter Table".
Specification
Required
Specification interface{}
- Type: interface{}
Property specification: The example specification, for example, drds.sn1.4c8g.8C16G, consists of the DRDS instance series (drds.sn1.4c8g) plus a specific example specification (8C16G). For the DRDS instance specification value range, see: Distributed Relational Database Service Specifications and Pricing.
Type
Required
Type interface{}
- Type: interface{}
Property type: Instance type, instance type 0 - shared instance 1 - exclusive instance, in addition, this parameter can also pass PRIVATE and PUBLIC to represent exclusive instance and shared instance respectively.
ZoneId
Required
ZoneId interface{}
- Type: interface{}
Property zoneId: Availability zone, an available zone belongs to a certain zone, such as Hangzhou Availability Zone A (cn-hangzhou-a) belongs to the region Hangzhou (cn-hangzhou).
Duration
Optional
Duration interface{}
- Type: interface{}
Property duration: The number of cycles ordered.
When PricingCycle=year, the value is 1-3; when PricingCycle=month, the value is 1-9. The parameter takes effect when the payment type is drdsPre.
IsAutoRenew
Optional
IsAutoRenew interface{}
- Type: interface{}
Property isAutoRenew: Whether to renew the fee automatically, if it is purchased on a monthly basis, it will automatically renew for one month, and if it is purchased on an annual basis, it will automatically renew for one year.
The parameter takes effect when the payment type is drdsPre.
MySqlVersion
Optional
MySqlVersion interface{}
- Type: interface{}
Property mySqlVersion: The MySQL protocol version supported by DRDS.
Valid values: 5 and 8. Default value: 5. This parameter is valid only when the primary instance is created. The read-only instance is the same as the primary instance by default.
PricingCycle
Optional
PricingCycle interface{}
- Type: interface{}
Property pricingCycle: The unit of the order period, year: year, month: month.
The parameter takes effect when the payment type is drdsPre.
ResourceGroupId
Optional
ResourceGroupId interface{}
- Type: interface{}
Property resourceGroupId: Resource group id.
Tags
Optional
Tags *[]TagsProperty
- Type: *[]TagsProperty
Property tags: Tags to attach to instance.
Max support 20 tags to add during create instance. Each tag with two properties Key and Value, and Key is required.
VpcId
Optional
VpcId interface{}
- Type: interface{}
Property vpcId: Virtual private network ID, must be specified when creating a DRDS for VPC network type.
VswitchId
Optional
VswitchId interface{}
- Type: interface{}
Property vswitchId: Virtual switch ID, must be specified when creating a DRDS for VPC network type.