Skip to content

DrdsInstanceProps

Properties for defining a DrdsInstance.

See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-drds-drdsinstance

Initializer

import { DrdsInstanceProps } from '@alicloud/ros-cdk-drds'
const drdsInstanceProps: DrdsInstanceProps = { ... }

Properties

Name Type Description
description string | @alicloud/ros-cdk-core.IResolvable Property description: Description of the DRDS instance, 2-128 characters.
instanceSeries string | @alicloud/ros-cdk-core.IResolvable Property instanceSeries: drds.sn1.4c8g Starter Edition; drds.sn1.8c16g Standard Edition; drds.sn1.16c32g Business Edition; drds.sn1.32c64g Ultimate Edition.
payType string | @alicloud/ros-cdk-core.IResolvable Property payType: For the type of payment, see "Payment Type Parameter Table".
specification string | @alicloud/ros-cdk-core.IResolvable 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 string | @alicloud/ros-cdk-core.IResolvable 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 string | @alicloud/ros-cdk-core.IResolvable 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 number | @alicloud/ros-cdk-core.IResolvable Property duration: The number of cycles ordered.
isAutoRenew boolean | @alicloud/ros-cdk-core.IResolvable 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 string | @alicloud/ros-cdk-core.IResolvable Property mySqlVersion: The MySQL protocol version supported by DRDS.
pricingCycle string | @alicloud/ros-cdk-core.IResolvable Property pricingCycle: The unit of the order period, year: year, month: month.
resourceGroupId string | @alicloud/ros-cdk-core.IResolvable Property resourceGroupId: Resource group id.
tags TagsProperty[] Property tags: Tags to attach to instance.
vpcId string | @alicloud/ros-cdk-core.IResolvable Property vpcId: Virtual private network ID, must be specified when creating a DRDS for VPC network type.
vswitchId string | @alicloud/ros-cdk-core.IResolvable Property vswitchId: Virtual switch ID, must be specified when creating a DRDS for VPC network type.

descriptionRequired

public readonly description: string | IResolvable;
  • Type: string | @alicloud/ros-cdk-core.IResolvable

Property description: Description of the DRDS instance, 2-128 characters.


instanceSeriesRequired

public readonly instanceSeries: string | IResolvable;
  • Type: string | @alicloud/ros-cdk-core.IResolvable

Property instanceSeries: drds.sn1.4c8g Starter Edition; drds.sn1.8c16g Standard Edition; drds.sn1.16c32g Business Edition; drds.sn1.32c64g Ultimate Edition.


payTypeRequired

public readonly payType: string | IResolvable;
  • Type: string | @alicloud/ros-cdk-core.IResolvable

Property payType: For the type of payment, see "Payment Type Parameter Table".


specificationRequired

public readonly specification: string | IResolvable;
  • Type: string | @alicloud/ros-cdk-core.IResolvable

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.


typeRequired

public readonly type: string | IResolvable;
  • Type: string | @alicloud/ros-cdk-core.IResolvable

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.


zoneIdRequired

public readonly zoneId: string | IResolvable;
  • Type: string | @alicloud/ros-cdk-core.IResolvable

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

public readonly duration: number | IResolvable;
  • Type: number | @alicloud/ros-cdk-core.IResolvable

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

public readonly isAutoRenew: boolean | IResolvable;
  • Type: boolean | @alicloud/ros-cdk-core.IResolvable

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.


mySqlVersionOptional

public readonly mySqlVersion: string | IResolvable;
  • Type: string | @alicloud/ros-cdk-core.IResolvable

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.


pricingCycleOptional

public readonly pricingCycle: string | IResolvable;
  • Type: string | @alicloud/ros-cdk-core.IResolvable

Property pricingCycle: The unit of the order period, year: year, month: month.

The parameter takes effect when the payment type is drdsPre.


resourceGroupIdOptional

public readonly resourceGroupId: string | IResolvable;
  • Type: string | @alicloud/ros-cdk-core.IResolvable

Property resourceGroupId: Resource group id.


tagsOptional

public readonly tags: 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

public readonly vpcId: string | IResolvable;
  • Type: string | @alicloud/ros-cdk-core.IResolvable

Property vpcId: Virtual private network ID, must be specified when creating a DRDS for VPC network type.


vswitchIdOptional

public readonly vswitchId: string | IResolvable;
  • Type: string | @alicloud/ros-cdk-core.IResolvable

Property vswitchId: Virtual switch ID, must be specified when creating a DRDS for VPC network type.