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: Specifies the description of the instance. |
InstanceSeries | interface{} | Property instanceSeries: Specifies the instance type of the instance. |
PayType | interface{} | Property payType: Specifies the billing method of the instance. |
Specification | interface{} | Property specification: Specifies the specification code of the instance. |
Type | interface{} | Property type: Specifies the type of the instance. |
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: Specifies whether to enable automatic renewal. |
MySqlVersion | interface{} | Property mySqlVersion: Specifies the MySQL version that is supported by the instance. |
PricingCycle | interface{} | Property pricingCycle: Specifies the unit of the subscription duration of the subscription instance. |
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. |
DescriptionRequired
Description interface{}
- Type: interface{}
Property description: Specifies the description of the instance.
The description must meet the following requirements:
- The description cannot contain the prefix http:// or https://.
- The description must start with a letter or a Chinese character, and can contain uppercase and lowercase letters, Chinese characters, digits, underscores (_), and hyphens (-).
- The description must be 2 to 256 characters in length.
InstanceSeriesRequired
InstanceSeries interface{}
- Type: interface{}
Property instanceSeries: Specifies the instance type of the instance.
Valid values:
- drds.sn2.4c16g: The instance is of the Starter Edition.
- drds.sn2.8c32g: The instance is of the Standard Edition
- drds.sn2.16c64g: The instance is of the Enterprise Edition.
PayTypeRequired
PayType interface{}
- Type: interface{}
Property payType: Specifies the billing method of the instance.
Valid values:
- drdsPre: The instance uses the subscription billing method.
- drdsPost: The instance uses the pay-as-you-go billing method.
- drdsRo: By default, the pay-as-you-go billing method is used when you create read-only instances.
SpecificationRequired
Specification interface{}
- Type: interface{}
Property specification: Specifies the specification code of the instance.
The value consists of the instance type and the specified instance specification. For example, you can set the value to drds.sn2.4c16g.8c32g.
TypeRequired
Type interface{}
- Type: interface{}
Property type: Specifies the type of the instance.
Set the value to PRIVATE. The value PRIVATE specifies that the instance is a dedicated instance.
You can also set the value to 1 to specify that the instance is a dedicated instance.
ZoneIdRequired
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).
DurationOptional
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.
IsAutoRenewOptional
IsAutoRenew interface{}
- Type: interface{}
Property isAutoRenew: Specifies whether to enable automatic renewal.
Valid values:
- true: If the PricingCycle parameter is set to month, the subscription is automatically renewed for one month. If the PricingCycle parameter is set to year, the subscription is automatically renewed for one year.
- false: The auto-renewal feature is disabled for the instance.
This parameter only takes effect when the PayType parameter is set to drdsPre.
MySqlVersionOptional
MySqlVersion interface{}
- Type: interface{}
Property mySqlVersion: Specifies the MySQL version that is supported by the instance.
Valid values:
- 5: The instance is fully compatible with MySQL 5.x. This value is the default value.
- 8: The instance is fully compatible with MySQL 8.0.
This parameter only takes effect when you create a primary instance. By default, the MySQL version of the read-only instance is the same as that of the primary instance.
PricingCycleOptional
PricingCycle interface{}
- Type: interface{}
Property pricingCycle: Specifies the unit of the subscription duration of the subscription instance.
Valid values:
- year: The unit of the subscription duration is year.
- month: The unit of the subscription duration is month.
This parameter is required if you set the PayType parameter to drdsPre.
ResourceGroupIdOptional
ResourceGroupId interface{}
- Type: interface{}
Property resourceGroupId: Resource group id.
TagsOptional
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.
VpcIdOptional
VpcId interface{}
- Type: interface{}
Property vpcId: Virtual private network ID, must be specified when creating a DRDS for VPC network type.
VswitchIdOptional
VswitchId interface{}
- Type: interface{}
Property vswitchId: Virtual switch ID, must be specified when creating a DRDS for VPC network type.