Class Instance
Distributed Relational Database Service (DRDS) is a lightweight (stateless), flexible, stable, and efficient middleware product independently developed by Alibaba Group to resolve scalability issues with single-host relational databases. With its compatibility with MySQL protocols and syntaxes, DRDS enables database/table sharding, smooth scaling, configuration upgrade/downgrade, transparent read/write splitting, and distributed transactions, providing O&M capabilities for distributed databases throughout their entire lifecycle.
For information about DRDS and how to use it, see What is DRDS.
NOTE: At present, DRDS instance only can be supported in the regions: cn-shenzhen, cn-beijing, cn-hangzhou, cn-hongkong, cn-qingdao.
NOTE: Currently, this resource only support
Domestic Site Account.
Example Usage
using Pulumi;
using AliCloud = Pulumi.AliCloud;
class MyStack : Stack
{
public MyStack()
{
var @default = new AliCloud.Drds.Instance("default", new AliCloud.Drds.InstanceArgs
{
Description = "drds instance",
InstanceChargeType = "PostPaid",
InstanceSeries = "drds.sn1.4c8g",
Specification = "drds.sn1.4c8g.8C16G",
VswitchId = "vsw-bp1jlu3swk8rq2yoi40ey",
ZoneId = "cn-hangzhou-e",
});
}
}
Inherited Members
Namespace: Pulumi.AliCloud.Drds
Assembly: Pulumi.AliCloud.dll
Syntax
public class Instance : CustomResource
Constructors
View SourceInstance(String, InstanceArgs, CustomResourceOptions)
Create a Instance resource with the given unique name, arguments, and options.
Declaration
public Instance(string name, InstanceArgs args, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resource |
| InstanceArgs | args | The arguments used to populate this resource's properties |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Properties
View SourceDescription
Description of the DRDS instance, This description can have a string of 2 to 256 characters.
Declaration
public Output<string> Description { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
InstanceChargeType
Valid values are PrePaid, PostPaid, Default to PostPaid.
Declaration
public Output<string> InstanceChargeType { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
InstanceSeries
User-defined DRDS instance node spec. Value range:
drds.sn1.4c8gfor DRDS instance Starter version;drds.sn1.8c16gfor DRDS instance Standard edition;drds.sn1.16c32gfor DRDS instance Enterprise Edition;drds.sn1.32c64gfor DRDS instance Extreme Edition;
Declaration
public Output<string> InstanceSeries { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Specification
User-defined DRDS instance specification. Value range:
drds.sn1.4c8gfor DRDS instance Starter version;- value range :
drds.sn1.4c8g.8c16g,drds.sn1.4c8g.16c32g,drds.sn1.4c8g.32c64g,drds.sn1.4c8g.64c128g drds.sn1.8c16gfor DRDS instance Standard edition;- value range :
drds.sn1.8c16g.16c32g,drds.sn1.8c16g.32c64g,drds.sn1.8c16g.64c128g drds.sn1.16c32gfor DRDS instance Enterprise Edition;- value range :
drds.sn1.16c32g.32c64g,drds.sn1.16c32g.64c128g drds.sn1.32c64gfor DRDS instance Extreme Edition;- value range :
drds.sn1.32c64g.128c256g
Declaration
public Output<string> Specification { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
VswitchId
The VSwitch ID to launch in.
Declaration
public Output<string> VswitchId { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
ZoneId
The Zone to launch the DRDS instance.
Declaration
public Output<string> ZoneId { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Methods
View SourceGet(String, Input<String>, InstanceState, CustomResourceOptions)
Get an existing Instance resource's state with the given name, ID, and optional extra properties used to qualify the lookup.
Declaration
public static Instance Get(string name, Input<string> id, InstanceState state = null, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resulting resource. |
| Input<System.String> | id | The unique provider ID of the resource to lookup. |
| InstanceState | state | Any extra arguments used during the lookup. |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Returns
| Type | Description |
|---|---|
| Instance |