alicloud.adb.DBCluster
Explore with Pulumi AI
Import
AnalyticDB for MySQL (ADB) DBCluster can be imported using the id, e.g.
$ pulumi import alicloud:adb/dBCluster:DBCluster example <id>
Create DBCluster Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new DBCluster(name: string, args: DBClusterArgs, opts?: CustomResourceOptions);
@overload
def DBCluster(resource_name: str,
args: DBClusterArgs,
opts: Optional[ResourceOptions] = None)
@overload
def DBCluster(resource_name: str,
opts: Optional[ResourceOptions] = None,
db_cluster_category: Optional[str] = None,
mode: Optional[str] = None,
kms_id: Optional[str] = None,
db_cluster_version: Optional[str] = None,
maintain_time: Optional[str] = None,
compute_resource: Optional[str] = None,
db_node_count: Optional[int] = None,
db_node_storage: Optional[int] = None,
description: Optional[str] = None,
disk_encryption: Optional[bool] = None,
disk_performance_level: Optional[str] = None,
elastic_io_resource: Optional[int] = None,
elastic_io_resource_size: Optional[str] = None,
enable_ssl: Optional[bool] = None,
zone_id: Optional[str] = None,
db_cluster_class: Optional[str] = None,
db_node_class: Optional[str] = None,
modify_type: Optional[str] = None,
pay_type: Optional[str] = None,
payment_type: Optional[str] = None,
period: Optional[int] = None,
renewal_status: Optional[str] = None,
resource_group_id: Optional[str] = None,
security_ips: Optional[Sequence[str]] = None,
tags: Optional[Mapping[str, str]] = None,
vpc_id: Optional[str] = None,
vswitch_id: Optional[str] = None,
auto_renew_period: Optional[int] = None)
func NewDBCluster(ctx *Context, name string, args DBClusterArgs, opts ...ResourceOption) (*DBCluster, error)
public DBCluster(string name, DBClusterArgs args, CustomResourceOptions? opts = null)
public DBCluster(String name, DBClusterArgs args)
public DBCluster(String name, DBClusterArgs args, CustomResourceOptions options)
type: alicloud:adb:DBCluster
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args DBClusterArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args DBClusterArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args DBClusterArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args DBClusterArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args DBClusterArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var dbclusterResource = new AliCloud.Adb.DBCluster("dbclusterResource", new()
{
DbClusterCategory = "string",
Mode = "string",
KmsId = "string",
DbClusterVersion = "string",
MaintainTime = "string",
ComputeResource = "string",
DbNodeCount = 0,
DbNodeStorage = 0,
Description = "string",
DiskEncryption = false,
DiskPerformanceLevel = "string",
ElasticIoResource = 0,
ElasticIoResourceSize = "string",
EnableSsl = false,
ZoneId = "string",
DbNodeClass = "string",
ModifyType = "string",
PaymentType = "string",
Period = 0,
RenewalStatus = "string",
ResourceGroupId = "string",
SecurityIps = new[]
{
"string",
},
Tags =
{
{ "string", "string" },
},
VpcId = "string",
VswitchId = "string",
AutoRenewPeriod = 0,
});
example, err := adb.NewDBCluster(ctx, "dbclusterResource", &adb.DBClusterArgs{
DbClusterCategory: pulumi.String("string"),
Mode: pulumi.String("string"),
KmsId: pulumi.String("string"),
DbClusterVersion: pulumi.String("string"),
MaintainTime: pulumi.String("string"),
ComputeResource: pulumi.String("string"),
DbNodeCount: pulumi.Int(0),
DbNodeStorage: pulumi.Int(0),
Description: pulumi.String("string"),
DiskEncryption: pulumi.Bool(false),
DiskPerformanceLevel: pulumi.String("string"),
ElasticIoResource: pulumi.Int(0),
ElasticIoResourceSize: pulumi.String("string"),
EnableSsl: pulumi.Bool(false),
ZoneId: pulumi.String("string"),
DbNodeClass: pulumi.String("string"),
ModifyType: pulumi.String("string"),
PaymentType: pulumi.String("string"),
Period: pulumi.Int(0),
RenewalStatus: pulumi.String("string"),
ResourceGroupId: pulumi.String("string"),
SecurityIps: pulumi.StringArray{
pulumi.String("string"),
},
Tags: pulumi.StringMap{
"string": pulumi.String("string"),
},
VpcId: pulumi.String("string"),
VswitchId: pulumi.String("string"),
AutoRenewPeriod: pulumi.Int(0),
})
var dbclusterResource = new DBCluster("dbclusterResource", DBClusterArgs.builder()
.dbClusterCategory("string")
.mode("string")
.kmsId("string")
.dbClusterVersion("string")
.maintainTime("string")
.computeResource("string")
.dbNodeCount(0)
.dbNodeStorage(0)
.description("string")
.diskEncryption(false)
.diskPerformanceLevel("string")
.elasticIoResource(0)
.elasticIoResourceSize("string")
.enableSsl(false)
.zoneId("string")
.dbNodeClass("string")
.modifyType("string")
.paymentType("string")
.period(0)
.renewalStatus("string")
.resourceGroupId("string")
.securityIps("string")
.tags(Map.of("string", "string"))
.vpcId("string")
.vswitchId("string")
.autoRenewPeriod(0)
.build());
dbcluster_resource = alicloud.adb.DBCluster("dbclusterResource",
db_cluster_category="string",
mode="string",
kms_id="string",
db_cluster_version="string",
maintain_time="string",
compute_resource="string",
db_node_count=0,
db_node_storage=0,
description="string",
disk_encryption=False,
disk_performance_level="string",
elastic_io_resource=0,
elastic_io_resource_size="string",
enable_ssl=False,
zone_id="string",
db_node_class="string",
modify_type="string",
payment_type="string",
period=0,
renewal_status="string",
resource_group_id="string",
security_ips=["string"],
tags={
"string": "string",
},
vpc_id="string",
vswitch_id="string",
auto_renew_period=0)
const dbclusterResource = new alicloud.adb.DBCluster("dbclusterResource", {
dbClusterCategory: "string",
mode: "string",
kmsId: "string",
dbClusterVersion: "string",
maintainTime: "string",
computeResource: "string",
dbNodeCount: 0,
dbNodeStorage: 0,
description: "string",
diskEncryption: false,
diskPerformanceLevel: "string",
elasticIoResource: 0,
elasticIoResourceSize: "string",
enableSsl: false,
zoneId: "string",
dbNodeClass: "string",
modifyType: "string",
paymentType: "string",
period: 0,
renewalStatus: "string",
resourceGroupId: "string",
securityIps: ["string"],
tags: {
string: "string",
},
vpcId: "string",
vswitchId: "string",
autoRenewPeriod: 0,
});
type: alicloud:adb:DBCluster
properties:
autoRenewPeriod: 0
computeResource: string
dbClusterCategory: string
dbClusterVersion: string
dbNodeClass: string
dbNodeCount: 0
dbNodeStorage: 0
description: string
diskEncryption: false
diskPerformanceLevel: string
elasticIoResource: 0
elasticIoResourceSize: string
enableSsl: false
kmsId: string
maintainTime: string
mode: string
modifyType: string
paymentType: string
period: 0
renewalStatus: string
resourceGroupId: string
securityIps:
- string
tags:
string: string
vpcId: string
vswitchId: string
zoneId: string
DBCluster Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The DBCluster resource accepts the following input properties:
- Db
Cluster stringCategory - The db cluster category. Valid values:
Basic
,Cluster
,MixedStorage
. - Mode string
- The mode of the cluster. Valid values:
reserver
,flexible
. - Auto
Renew intPeriod - Auto-renewal period of an cluster, in the unit of the month. It is valid when
payment_type
isSubscription
. Valid values:1
,2
,3
,6
,12
,24
,36
. Default Value:1
. - Compute
Resource string - The specifications of computing resources in elastic mode. The increase of resources can speed up queries. AnalyticDB for MySQL automatically scales computing resources. For more information, see ComputeResource
- Db
Cluster stringClass - It duplicates with attribute db_node_class and is deprecated from 1.121.2.
- Db
Cluster stringVersion - The db cluster version. Valid values:
3.0
. Default Value:3.0
. - Db
Node stringClass - The db node class. For more information, see DBClusterClass
- Db
Node intCount - The db node count.
- Db
Node intStorage - The db node storage.
- Description string
- The description of DBCluster.
- Disk
Encryption bool - Specifies whether to enable disk encryption. Default Value:
false
. Valid values:true
,false
. - Disk
Performance stringLevel - The ESSD performance level. Default Value:
PL1
. Valid values:PL1
,PL2
,PL3
. - Elastic
Io intResource - The elastic io resource.
- Elastic
Io stringResource Size - The specifications of a single elastic resource node. Default Value:
8Core64GB
. Valid values:8Core64GB
: If you setelastic_io_resource_size
to8Core64GB
, the specifications of an EIU are 24 cores and 192 GB memory.12Core96GB
: If you setelastic_io_resource_size
to12Core96GB
, the specifications of an EIU are 36 cores and 288 GB memory.
- Enable
Ssl bool - Specifies whether to enable SSL encryption. Default Value:
false
. Valid values:true
,false
. - Kms
Id string - The Key Management Service (KMS) ID that is used for disk encryption.
kms_id
is valid only whendisk_encryption
is set totrue
. - Maintain
Time string - The maintenance window of the cluster. Format: hh:mmZ-hh:mmZ.
- Modify
Type string - The modify type.
- Pay
Type string - Field
pay_type
has been deprecated. New fieldpayment_type
instead. - Payment
Type string - The payment type of the resource. Valid values:
PayAsYouGo
andSubscription
. Default Value:PayAsYouGo
. Note: Thepayment_type
supports updating from v1.166.0+. - Period int
The duration that you will buy DB cluster (in month). It is valid when
payment_type
isSubscription
. Valid values: [1~9], 12, 24, 36.NOTE: The attribute
period
is only used to create Subscription instance or modify the PayAsYouGo instance to Subscription. Once effect, it will not be modified that means runningpulumi up
will not affect the resource.- Renewal
Status string - Valid values are
AutoRenewal
,Normal
,NotRenewal
, Default toNotRenewal
. - Resource
Group stringId - The ID of the resource group.
- Security
Ips List<string> - List of IP addresses allowed to access all databases of an cluster. The list contains up to 1,000 IP addresses, separated by commas. Supported formats include 0.0.0.0/0, 10.23.12.24 (IP), and 10.23.12.24/24 (Classless Inter-Domain Routing (CIDR) mode. /24 represents the length of the prefix in an IP address. The range of the prefix length is [1,32]).
- Dictionary<string, string>
A mapping of tags to assign to the resource.
- Key: It can be up to 64 characters in length. It cannot begin with "aliyun", "acs:", "http://", or "https://". It cannot be a null string.
- Value: It can be up to 128 characters in length. It cannot begin with "aliyun", "acs:", "http://", or "https://". It can be a null string.
NOTE: Because of data backup and migration, change DB cluster type and storage would cost 15~30 minutes. Please make full preparation before changing them.
- Vpc
Id string - The vpc ID of the resource.
- Vswitch
Id string - The vswitch id.
- Zone
Id string - The zone ID of the resource.
- Db
Cluster stringCategory - The db cluster category. Valid values:
Basic
,Cluster
,MixedStorage
. - Mode string
- The mode of the cluster. Valid values:
reserver
,flexible
. - Auto
Renew intPeriod - Auto-renewal period of an cluster, in the unit of the month. It is valid when
payment_type
isSubscription
. Valid values:1
,2
,3
,6
,12
,24
,36
. Default Value:1
. - Compute
Resource string - The specifications of computing resources in elastic mode. The increase of resources can speed up queries. AnalyticDB for MySQL automatically scales computing resources. For more information, see ComputeResource
- Db
Cluster stringClass - It duplicates with attribute db_node_class and is deprecated from 1.121.2.
- Db
Cluster stringVersion - The db cluster version. Valid values:
3.0
. Default Value:3.0
. - Db
Node stringClass - The db node class. For more information, see DBClusterClass
- Db
Node intCount - The db node count.
- Db
Node intStorage - The db node storage.
- Description string
- The description of DBCluster.
- Disk
Encryption bool - Specifies whether to enable disk encryption. Default Value:
false
. Valid values:true
,false
. - Disk
Performance stringLevel - The ESSD performance level. Default Value:
PL1
. Valid values:PL1
,PL2
,PL3
. - Elastic
Io intResource - The elastic io resource.
- Elastic
Io stringResource Size - The specifications of a single elastic resource node. Default Value:
8Core64GB
. Valid values:8Core64GB
: If you setelastic_io_resource_size
to8Core64GB
, the specifications of an EIU are 24 cores and 192 GB memory.12Core96GB
: If you setelastic_io_resource_size
to12Core96GB
, the specifications of an EIU are 36 cores and 288 GB memory.
- Enable
Ssl bool - Specifies whether to enable SSL encryption. Default Value:
false
. Valid values:true
,false
. - Kms
Id string - The Key Management Service (KMS) ID that is used for disk encryption.
kms_id
is valid only whendisk_encryption
is set totrue
. - Maintain
Time string - The maintenance window of the cluster. Format: hh:mmZ-hh:mmZ.
- Modify
Type string - The modify type.
- Pay
Type string - Field
pay_type
has been deprecated. New fieldpayment_type
instead. - Payment
Type string - The payment type of the resource. Valid values:
PayAsYouGo
andSubscription
. Default Value:PayAsYouGo
. Note: Thepayment_type
supports updating from v1.166.0+. - Period int
The duration that you will buy DB cluster (in month). It is valid when
payment_type
isSubscription
. Valid values: [1~9], 12, 24, 36.NOTE: The attribute
period
is only used to create Subscription instance or modify the PayAsYouGo instance to Subscription. Once effect, it will not be modified that means runningpulumi up
will not affect the resource.- Renewal
Status string - Valid values are
AutoRenewal
,Normal
,NotRenewal
, Default toNotRenewal
. - Resource
Group stringId - The ID of the resource group.
- Security
Ips []string - List of IP addresses allowed to access all databases of an cluster. The list contains up to 1,000 IP addresses, separated by commas. Supported formats include 0.0.0.0/0, 10.23.12.24 (IP), and 10.23.12.24/24 (Classless Inter-Domain Routing (CIDR) mode. /24 represents the length of the prefix in an IP address. The range of the prefix length is [1,32]).
- map[string]string
A mapping of tags to assign to the resource.
- Key: It can be up to 64 characters in length. It cannot begin with "aliyun", "acs:", "http://", or "https://". It cannot be a null string.
- Value: It can be up to 128 characters in length. It cannot begin with "aliyun", "acs:", "http://", or "https://". It can be a null string.
NOTE: Because of data backup and migration, change DB cluster type and storage would cost 15~30 minutes. Please make full preparation before changing them.
- Vpc
Id string - The vpc ID of the resource.
- Vswitch
Id string - The vswitch id.
- Zone
Id string - The zone ID of the resource.
- db
Cluster StringCategory - The db cluster category. Valid values:
Basic
,Cluster
,MixedStorage
. - mode String
- The mode of the cluster. Valid values:
reserver
,flexible
. - auto
Renew IntegerPeriod - Auto-renewal period of an cluster, in the unit of the month. It is valid when
payment_type
isSubscription
. Valid values:1
,2
,3
,6
,12
,24
,36
. Default Value:1
. - compute
Resource String - The specifications of computing resources in elastic mode. The increase of resources can speed up queries. AnalyticDB for MySQL automatically scales computing resources. For more information, see ComputeResource
- db
Cluster StringClass - It duplicates with attribute db_node_class and is deprecated from 1.121.2.
- db
Cluster StringVersion - The db cluster version. Valid values:
3.0
. Default Value:3.0
. - db
Node StringClass - The db node class. For more information, see DBClusterClass
- db
Node IntegerCount - The db node count.
- db
Node IntegerStorage - The db node storage.
- description String
- The description of DBCluster.
- disk
Encryption Boolean - Specifies whether to enable disk encryption. Default Value:
false
. Valid values:true
,false
. - disk
Performance StringLevel - The ESSD performance level. Default Value:
PL1
. Valid values:PL1
,PL2
,PL3
. - elastic
Io IntegerResource - The elastic io resource.
- elastic
Io StringResource Size - The specifications of a single elastic resource node. Default Value:
8Core64GB
. Valid values:8Core64GB
: If you setelastic_io_resource_size
to8Core64GB
, the specifications of an EIU are 24 cores and 192 GB memory.12Core96GB
: If you setelastic_io_resource_size
to12Core96GB
, the specifications of an EIU are 36 cores and 288 GB memory.
- enable
Ssl Boolean - Specifies whether to enable SSL encryption. Default Value:
false
. Valid values:true
,false
. - kms
Id String - The Key Management Service (KMS) ID that is used for disk encryption.
kms_id
is valid only whendisk_encryption
is set totrue
. - maintain
Time String - The maintenance window of the cluster. Format: hh:mmZ-hh:mmZ.
- modify
Type String - The modify type.
- pay
Type String - Field
pay_type
has been deprecated. New fieldpayment_type
instead. - payment
Type String - The payment type of the resource. Valid values:
PayAsYouGo
andSubscription
. Default Value:PayAsYouGo
. Note: Thepayment_type
supports updating from v1.166.0+. - period Integer
The duration that you will buy DB cluster (in month). It is valid when
payment_type
isSubscription
. Valid values: [1~9], 12, 24, 36.NOTE: The attribute
period
is only used to create Subscription instance or modify the PayAsYouGo instance to Subscription. Once effect, it will not be modified that means runningpulumi up
will not affect the resource.- renewal
Status String - Valid values are
AutoRenewal
,Normal
,NotRenewal
, Default toNotRenewal
. - resource
Group StringId - The ID of the resource group.
- security
Ips List<String> - List of IP addresses allowed to access all databases of an cluster. The list contains up to 1,000 IP addresses, separated by commas. Supported formats include 0.0.0.0/0, 10.23.12.24 (IP), and 10.23.12.24/24 (Classless Inter-Domain Routing (CIDR) mode. /24 represents the length of the prefix in an IP address. The range of the prefix length is [1,32]).
- Map<String,String>
A mapping of tags to assign to the resource.
- Key: It can be up to 64 characters in length. It cannot begin with "aliyun", "acs:", "http://", or "https://". It cannot be a null string.
- Value: It can be up to 128 characters in length. It cannot begin with "aliyun", "acs:", "http://", or "https://". It can be a null string.
NOTE: Because of data backup and migration, change DB cluster type and storage would cost 15~30 minutes. Please make full preparation before changing them.
- vpc
Id String - The vpc ID of the resource.
- vswitch
Id String - The vswitch id.
- zone
Id String - The zone ID of the resource.
- db
Cluster stringCategory - The db cluster category. Valid values:
Basic
,Cluster
,MixedStorage
. - mode string
- The mode of the cluster. Valid values:
reserver
,flexible
. - auto
Renew numberPeriod - Auto-renewal period of an cluster, in the unit of the month. It is valid when
payment_type
isSubscription
. Valid values:1
,2
,3
,6
,12
,24
,36
. Default Value:1
. - compute
Resource string - The specifications of computing resources in elastic mode. The increase of resources can speed up queries. AnalyticDB for MySQL automatically scales computing resources. For more information, see ComputeResource
- db
Cluster stringClass - It duplicates with attribute db_node_class and is deprecated from 1.121.2.
- db
Cluster stringVersion - The db cluster version. Valid values:
3.0
. Default Value:3.0
. - db
Node stringClass - The db node class. For more information, see DBClusterClass
- db
Node numberCount - The db node count.
- db
Node numberStorage - The db node storage.
- description string
- The description of DBCluster.
- disk
Encryption boolean - Specifies whether to enable disk encryption. Default Value:
false
. Valid values:true
,false
. - disk
Performance stringLevel - The ESSD performance level. Default Value:
PL1
. Valid values:PL1
,PL2
,PL3
. - elastic
Io numberResource - The elastic io resource.
- elastic
Io stringResource Size - The specifications of a single elastic resource node. Default Value:
8Core64GB
. Valid values:8Core64GB
: If you setelastic_io_resource_size
to8Core64GB
, the specifications of an EIU are 24 cores and 192 GB memory.12Core96GB
: If you setelastic_io_resource_size
to12Core96GB
, the specifications of an EIU are 36 cores and 288 GB memory.
- enable
Ssl boolean - Specifies whether to enable SSL encryption. Default Value:
false
. Valid values:true
,false
. - kms
Id string - The Key Management Service (KMS) ID that is used for disk encryption.
kms_id
is valid only whendisk_encryption
is set totrue
. - maintain
Time string - The maintenance window of the cluster. Format: hh:mmZ-hh:mmZ.
- modify
Type string - The modify type.
- pay
Type string - Field
pay_type
has been deprecated. New fieldpayment_type
instead. - payment
Type string - The payment type of the resource. Valid values:
PayAsYouGo
andSubscription
. Default Value:PayAsYouGo
. Note: Thepayment_type
supports updating from v1.166.0+. - period number
The duration that you will buy DB cluster (in month). It is valid when
payment_type
isSubscription
. Valid values: [1~9], 12, 24, 36.NOTE: The attribute
period
is only used to create Subscription instance or modify the PayAsYouGo instance to Subscription. Once effect, it will not be modified that means runningpulumi up
will not affect the resource.- renewal
Status string - Valid values are
AutoRenewal
,Normal
,NotRenewal
, Default toNotRenewal
. - resource
Group stringId - The ID of the resource group.
- security
Ips string[] - List of IP addresses allowed to access all databases of an cluster. The list contains up to 1,000 IP addresses, separated by commas. Supported formats include 0.0.0.0/0, 10.23.12.24 (IP), and 10.23.12.24/24 (Classless Inter-Domain Routing (CIDR) mode. /24 represents the length of the prefix in an IP address. The range of the prefix length is [1,32]).
- {[key: string]: string}
A mapping of tags to assign to the resource.
- Key: It can be up to 64 characters in length. It cannot begin with "aliyun", "acs:", "http://", or "https://". It cannot be a null string.
- Value: It can be up to 128 characters in length. It cannot begin with "aliyun", "acs:", "http://", or "https://". It can be a null string.
NOTE: Because of data backup and migration, change DB cluster type and storage would cost 15~30 minutes. Please make full preparation before changing them.
- vpc
Id string - The vpc ID of the resource.
- vswitch
Id string - The vswitch id.
- zone
Id string - The zone ID of the resource.
- db_
cluster_ strcategory - The db cluster category. Valid values:
Basic
,Cluster
,MixedStorage
. - mode str
- The mode of the cluster. Valid values:
reserver
,flexible
. - auto_
renew_ intperiod - Auto-renewal period of an cluster, in the unit of the month. It is valid when
payment_type
isSubscription
. Valid values:1
,2
,3
,6
,12
,24
,36
. Default Value:1
. - compute_
resource str - The specifications of computing resources in elastic mode. The increase of resources can speed up queries. AnalyticDB for MySQL automatically scales computing resources. For more information, see ComputeResource
- db_
cluster_ strclass - It duplicates with attribute db_node_class and is deprecated from 1.121.2.
- db_
cluster_ strversion - The db cluster version. Valid values:
3.0
. Default Value:3.0
. - db_
node_ strclass - The db node class. For more information, see DBClusterClass
- db_
node_ intcount - The db node count.
- db_
node_ intstorage - The db node storage.
- description str
- The description of DBCluster.
- disk_
encryption bool - Specifies whether to enable disk encryption. Default Value:
false
. Valid values:true
,false
. - disk_
performance_ strlevel - The ESSD performance level. Default Value:
PL1
. Valid values:PL1
,PL2
,PL3
. - elastic_
io_ intresource - The elastic io resource.
- elastic_
io_ strresource_ size - The specifications of a single elastic resource node. Default Value:
8Core64GB
. Valid values:8Core64GB
: If you setelastic_io_resource_size
to8Core64GB
, the specifications of an EIU are 24 cores and 192 GB memory.12Core96GB
: If you setelastic_io_resource_size
to12Core96GB
, the specifications of an EIU are 36 cores and 288 GB memory.
- enable_
ssl bool - Specifies whether to enable SSL encryption. Default Value:
false
. Valid values:true
,false
. - kms_
id str - The Key Management Service (KMS) ID that is used for disk encryption.
kms_id
is valid only whendisk_encryption
is set totrue
. - maintain_
time str - The maintenance window of the cluster. Format: hh:mmZ-hh:mmZ.
- modify_
type str - The modify type.
- pay_
type str - Field
pay_type
has been deprecated. New fieldpayment_type
instead. - payment_
type str - The payment type of the resource. Valid values:
PayAsYouGo
andSubscription
. Default Value:PayAsYouGo
. Note: Thepayment_type
supports updating from v1.166.0+. - period int
The duration that you will buy DB cluster (in month). It is valid when
payment_type
isSubscription
. Valid values: [1~9], 12, 24, 36.NOTE: The attribute
period
is only used to create Subscription instance or modify the PayAsYouGo instance to Subscription. Once effect, it will not be modified that means runningpulumi up
will not affect the resource.- renewal_
status str - Valid values are
AutoRenewal
,Normal
,NotRenewal
, Default toNotRenewal
. - resource_
group_ strid - The ID of the resource group.
- security_
ips Sequence[str] - List of IP addresses allowed to access all databases of an cluster. The list contains up to 1,000 IP addresses, separated by commas. Supported formats include 0.0.0.0/0, 10.23.12.24 (IP), and 10.23.12.24/24 (Classless Inter-Domain Routing (CIDR) mode. /24 represents the length of the prefix in an IP address. The range of the prefix length is [1,32]).
- Mapping[str, str]
A mapping of tags to assign to the resource.
- Key: It can be up to 64 characters in length. It cannot begin with "aliyun", "acs:", "http://", or "https://". It cannot be a null string.
- Value: It can be up to 128 characters in length. It cannot begin with "aliyun", "acs:", "http://", or "https://". It can be a null string.
NOTE: Because of data backup and migration, change DB cluster type and storage would cost 15~30 minutes. Please make full preparation before changing them.
- vpc_
id str - The vpc ID of the resource.
- vswitch_
id str - The vswitch id.
- zone_
id str - The zone ID of the resource.
- db
Cluster StringCategory - The db cluster category. Valid values:
Basic
,Cluster
,MixedStorage
. - mode String
- The mode of the cluster. Valid values:
reserver
,flexible
. - auto
Renew NumberPeriod - Auto-renewal period of an cluster, in the unit of the month. It is valid when
payment_type
isSubscription
. Valid values:1
,2
,3
,6
,12
,24
,36
. Default Value:1
. - compute
Resource String - The specifications of computing resources in elastic mode. The increase of resources can speed up queries. AnalyticDB for MySQL automatically scales computing resources. For more information, see ComputeResource
- db
Cluster StringClass - It duplicates with attribute db_node_class and is deprecated from 1.121.2.
- db
Cluster StringVersion - The db cluster version. Valid values:
3.0
. Default Value:3.0
. - db
Node StringClass - The db node class. For more information, see DBClusterClass
- db
Node NumberCount - The db node count.
- db
Node NumberStorage - The db node storage.
- description String
- The description of DBCluster.
- disk
Encryption Boolean - Specifies whether to enable disk encryption. Default Value:
false
. Valid values:true
,false
. - disk
Performance StringLevel - The ESSD performance level. Default Value:
PL1
. Valid values:PL1
,PL2
,PL3
. - elastic
Io NumberResource - The elastic io resource.
- elastic
Io StringResource Size - The specifications of a single elastic resource node. Default Value:
8Core64GB
. Valid values:8Core64GB
: If you setelastic_io_resource_size
to8Core64GB
, the specifications of an EIU are 24 cores and 192 GB memory.12Core96GB
: If you setelastic_io_resource_size
to12Core96GB
, the specifications of an EIU are 36 cores and 288 GB memory.
- enable
Ssl Boolean - Specifies whether to enable SSL encryption. Default Value:
false
. Valid values:true
,false
. - kms
Id String - The Key Management Service (KMS) ID that is used for disk encryption.
kms_id
is valid only whendisk_encryption
is set totrue
. - maintain
Time String - The maintenance window of the cluster. Format: hh:mmZ-hh:mmZ.
- modify
Type String - The modify type.
- pay
Type String - Field
pay_type
has been deprecated. New fieldpayment_type
instead. - payment
Type String - The payment type of the resource. Valid values:
PayAsYouGo
andSubscription
. Default Value:PayAsYouGo
. Note: Thepayment_type
supports updating from v1.166.0+. - period Number
The duration that you will buy DB cluster (in month). It is valid when
payment_type
isSubscription
. Valid values: [1~9], 12, 24, 36.NOTE: The attribute
period
is only used to create Subscription instance or modify the PayAsYouGo instance to Subscription. Once effect, it will not be modified that means runningpulumi up
will not affect the resource.- renewal
Status String - Valid values are
AutoRenewal
,Normal
,NotRenewal
, Default toNotRenewal
. - resource
Group StringId - The ID of the resource group.
- security
Ips List<String> - List of IP addresses allowed to access all databases of an cluster. The list contains up to 1,000 IP addresses, separated by commas. Supported formats include 0.0.0.0/0, 10.23.12.24 (IP), and 10.23.12.24/24 (Classless Inter-Domain Routing (CIDR) mode. /24 represents the length of the prefix in an IP address. The range of the prefix length is [1,32]).
- Map<String>
A mapping of tags to assign to the resource.
- Key: It can be up to 64 characters in length. It cannot begin with "aliyun", "acs:", "http://", or "https://". It cannot be a null string.
- Value: It can be up to 128 characters in length. It cannot begin with "aliyun", "acs:", "http://", or "https://". It can be a null string.
NOTE: Because of data backup and migration, change DB cluster type and storage would cost 15~30 minutes. Please make full preparation before changing them.
- vpc
Id String - The vpc ID of the resource.
- vswitch
Id String - The vswitch id.
- zone
Id String - The zone ID of the resource.
Outputs
All input properties are implicitly available as output properties. Additionally, the DBCluster resource produces the following output properties:
- Connection
String string - The connection string of the cluster.
- Id string
- The provider-assigned unique ID for this managed resource.
- Port string
- (Available since v1.196.0) The connection port of the ADB cluster.
- Status string
- The status of the resource.
- Connection
String string - The connection string of the cluster.
- Id string
- The provider-assigned unique ID for this managed resource.
- Port string
- (Available since v1.196.0) The connection port of the ADB cluster.
- Status string
- The status of the resource.
- connection
String String - The connection string of the cluster.
- id String
- The provider-assigned unique ID for this managed resource.
- port String
- (Available since v1.196.0) The connection port of the ADB cluster.
- status String
- The status of the resource.
- connection
String string - The connection string of the cluster.
- id string
- The provider-assigned unique ID for this managed resource.
- port string
- (Available since v1.196.0) The connection port of the ADB cluster.
- status string
- The status of the resource.
- connection_
string str - The connection string of the cluster.
- id str
- The provider-assigned unique ID for this managed resource.
- port str
- (Available since v1.196.0) The connection port of the ADB cluster.
- status str
- The status of the resource.
- connection
String String - The connection string of the cluster.
- id String
- The provider-assigned unique ID for this managed resource.
- port String
- (Available since v1.196.0) The connection port of the ADB cluster.
- status String
- The status of the resource.
Look up Existing DBCluster Resource
Get an existing DBCluster resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: DBClusterState, opts?: CustomResourceOptions): DBCluster
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
auto_renew_period: Optional[int] = None,
compute_resource: Optional[str] = None,
connection_string: Optional[str] = None,
db_cluster_category: Optional[str] = None,
db_cluster_class: Optional[str] = None,
db_cluster_version: Optional[str] = None,
db_node_class: Optional[str] = None,
db_node_count: Optional[int] = None,
db_node_storage: Optional[int] = None,
description: Optional[str] = None,
disk_encryption: Optional[bool] = None,
disk_performance_level: Optional[str] = None,
elastic_io_resource: Optional[int] = None,
elastic_io_resource_size: Optional[str] = None,
enable_ssl: Optional[bool] = None,
kms_id: Optional[str] = None,
maintain_time: Optional[str] = None,
mode: Optional[str] = None,
modify_type: Optional[str] = None,
pay_type: Optional[str] = None,
payment_type: Optional[str] = None,
period: Optional[int] = None,
port: Optional[str] = None,
renewal_status: Optional[str] = None,
resource_group_id: Optional[str] = None,
security_ips: Optional[Sequence[str]] = None,
status: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None,
vpc_id: Optional[str] = None,
vswitch_id: Optional[str] = None,
zone_id: Optional[str] = None) -> DBCluster
func GetDBCluster(ctx *Context, name string, id IDInput, state *DBClusterState, opts ...ResourceOption) (*DBCluster, error)
public static DBCluster Get(string name, Input<string> id, DBClusterState? state, CustomResourceOptions? opts = null)
public static DBCluster get(String name, Output<String> id, DBClusterState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Auto
Renew intPeriod - Auto-renewal period of an cluster, in the unit of the month. It is valid when
payment_type
isSubscription
. Valid values:1
,2
,3
,6
,12
,24
,36
. Default Value:1
. - Compute
Resource string - The specifications of computing resources in elastic mode. The increase of resources can speed up queries. AnalyticDB for MySQL automatically scales computing resources. For more information, see ComputeResource
- Connection
String string - The connection string of the cluster.
- Db
Cluster stringCategory - The db cluster category. Valid values:
Basic
,Cluster
,MixedStorage
. - Db
Cluster stringClass - It duplicates with attribute db_node_class and is deprecated from 1.121.2.
- Db
Cluster stringVersion - The db cluster version. Valid values:
3.0
. Default Value:3.0
. - Db
Node stringClass - The db node class. For more information, see DBClusterClass
- Db
Node intCount - The db node count.
- Db
Node intStorage - The db node storage.
- Description string
- The description of DBCluster.
- Disk
Encryption bool - Specifies whether to enable disk encryption. Default Value:
false
. Valid values:true
,false
. - Disk
Performance stringLevel - The ESSD performance level. Default Value:
PL1
. Valid values:PL1
,PL2
,PL3
. - Elastic
Io intResource - The elastic io resource.
- Elastic
Io stringResource Size - The specifications of a single elastic resource node. Default Value:
8Core64GB
. Valid values:8Core64GB
: If you setelastic_io_resource_size
to8Core64GB
, the specifications of an EIU are 24 cores and 192 GB memory.12Core96GB
: If you setelastic_io_resource_size
to12Core96GB
, the specifications of an EIU are 36 cores and 288 GB memory.
- Enable
Ssl bool - Specifies whether to enable SSL encryption. Default Value:
false
. Valid values:true
,false
. - Kms
Id string - The Key Management Service (KMS) ID that is used for disk encryption.
kms_id
is valid only whendisk_encryption
is set totrue
. - Maintain
Time string - The maintenance window of the cluster. Format: hh:mmZ-hh:mmZ.
- Mode string
- The mode of the cluster. Valid values:
reserver
,flexible
. - Modify
Type string - The modify type.
- Pay
Type string - Field
pay_type
has been deprecated. New fieldpayment_type
instead. - Payment
Type string - The payment type of the resource. Valid values:
PayAsYouGo
andSubscription
. Default Value:PayAsYouGo
. Note: Thepayment_type
supports updating from v1.166.0+. - Period int
The duration that you will buy DB cluster (in month). It is valid when
payment_type
isSubscription
. Valid values: [1~9], 12, 24, 36.NOTE: The attribute
period
is only used to create Subscription instance or modify the PayAsYouGo instance to Subscription. Once effect, it will not be modified that means runningpulumi up
will not affect the resource.- Port string
- (Available since v1.196.0) The connection port of the ADB cluster.
- Renewal
Status string - Valid values are
AutoRenewal
,Normal
,NotRenewal
, Default toNotRenewal
. - Resource
Group stringId - The ID of the resource group.
- Security
Ips List<string> - List of IP addresses allowed to access all databases of an cluster. The list contains up to 1,000 IP addresses, separated by commas. Supported formats include 0.0.0.0/0, 10.23.12.24 (IP), and 10.23.12.24/24 (Classless Inter-Domain Routing (CIDR) mode. /24 represents the length of the prefix in an IP address. The range of the prefix length is [1,32]).
- Status string
- The status of the resource.
- Dictionary<string, string>
A mapping of tags to assign to the resource.
- Key: It can be up to 64 characters in length. It cannot begin with "aliyun", "acs:", "http://", or "https://". It cannot be a null string.
- Value: It can be up to 128 characters in length. It cannot begin with "aliyun", "acs:", "http://", or "https://". It can be a null string.
NOTE: Because of data backup and migration, change DB cluster type and storage would cost 15~30 minutes. Please make full preparation before changing them.
- Vpc
Id string - The vpc ID of the resource.
- Vswitch
Id string - The vswitch id.
- Zone
Id string - The zone ID of the resource.
- Auto
Renew intPeriod - Auto-renewal period of an cluster, in the unit of the month. It is valid when
payment_type
isSubscription
. Valid values:1
,2
,3
,6
,12
,24
,36
. Default Value:1
. - Compute
Resource string - The specifications of computing resources in elastic mode. The increase of resources can speed up queries. AnalyticDB for MySQL automatically scales computing resources. For more information, see ComputeResource
- Connection
String string - The connection string of the cluster.
- Db
Cluster stringCategory - The db cluster category. Valid values:
Basic
,Cluster
,MixedStorage
. - Db
Cluster stringClass - It duplicates with attribute db_node_class and is deprecated from 1.121.2.
- Db
Cluster stringVersion - The db cluster version. Valid values:
3.0
. Default Value:3.0
. - Db
Node stringClass - The db node class. For more information, see DBClusterClass
- Db
Node intCount - The db node count.
- Db
Node intStorage - The db node storage.
- Description string
- The description of DBCluster.
- Disk
Encryption bool - Specifies whether to enable disk encryption. Default Value:
false
. Valid values:true
,false
. - Disk
Performance stringLevel - The ESSD performance level. Default Value:
PL1
. Valid values:PL1
,PL2
,PL3
. - Elastic
Io intResource - The elastic io resource.
- Elastic
Io stringResource Size - The specifications of a single elastic resource node. Default Value:
8Core64GB
. Valid values:8Core64GB
: If you setelastic_io_resource_size
to8Core64GB
, the specifications of an EIU are 24 cores and 192 GB memory.12Core96GB
: If you setelastic_io_resource_size
to12Core96GB
, the specifications of an EIU are 36 cores and 288 GB memory.
- Enable
Ssl bool - Specifies whether to enable SSL encryption. Default Value:
false
. Valid values:true
,false
. - Kms
Id string - The Key Management Service (KMS) ID that is used for disk encryption.
kms_id
is valid only whendisk_encryption
is set totrue
. - Maintain
Time string - The maintenance window of the cluster. Format: hh:mmZ-hh:mmZ.
- Mode string
- The mode of the cluster. Valid values:
reserver
,flexible
. - Modify
Type string - The modify type.
- Pay
Type string - Field
pay_type
has been deprecated. New fieldpayment_type
instead. - Payment
Type string - The payment type of the resource. Valid values:
PayAsYouGo
andSubscription
. Default Value:PayAsYouGo
. Note: Thepayment_type
supports updating from v1.166.0+. - Period int
The duration that you will buy DB cluster (in month). It is valid when
payment_type
isSubscription
. Valid values: [1~9], 12, 24, 36.NOTE: The attribute
period
is only used to create Subscription instance or modify the PayAsYouGo instance to Subscription. Once effect, it will not be modified that means runningpulumi up
will not affect the resource.- Port string
- (Available since v1.196.0) The connection port of the ADB cluster.
- Renewal
Status string - Valid values are
AutoRenewal
,Normal
,NotRenewal
, Default toNotRenewal
. - Resource
Group stringId - The ID of the resource group.
- Security
Ips []string - List of IP addresses allowed to access all databases of an cluster. The list contains up to 1,000 IP addresses, separated by commas. Supported formats include 0.0.0.0/0, 10.23.12.24 (IP), and 10.23.12.24/24 (Classless Inter-Domain Routing (CIDR) mode. /24 represents the length of the prefix in an IP address. The range of the prefix length is [1,32]).
- Status string
- The status of the resource.
- map[string]string
A mapping of tags to assign to the resource.
- Key: It can be up to 64 characters in length. It cannot begin with "aliyun", "acs:", "http://", or "https://". It cannot be a null string.
- Value: It can be up to 128 characters in length. It cannot begin with "aliyun", "acs:", "http://", or "https://". It can be a null string.
NOTE: Because of data backup and migration, change DB cluster type and storage would cost 15~30 minutes. Please make full preparation before changing them.
- Vpc
Id string - The vpc ID of the resource.
- Vswitch
Id string - The vswitch id.
- Zone
Id string - The zone ID of the resource.
- auto
Renew IntegerPeriod - Auto-renewal period of an cluster, in the unit of the month. It is valid when
payment_type
isSubscription
. Valid values:1
,2
,3
,6
,12
,24
,36
. Default Value:1
. - compute
Resource String - The specifications of computing resources in elastic mode. The increase of resources can speed up queries. AnalyticDB for MySQL automatically scales computing resources. For more information, see ComputeResource
- connection
String String - The connection string of the cluster.
- db
Cluster StringCategory - The db cluster category. Valid values:
Basic
,Cluster
,MixedStorage
. - db
Cluster StringClass - It duplicates with attribute db_node_class and is deprecated from 1.121.2.
- db
Cluster StringVersion - The db cluster version. Valid values:
3.0
. Default Value:3.0
. - db
Node StringClass - The db node class. For more information, see DBClusterClass
- db
Node IntegerCount - The db node count.
- db
Node IntegerStorage - The db node storage.
- description String
- The description of DBCluster.
- disk
Encryption Boolean - Specifies whether to enable disk encryption. Default Value:
false
. Valid values:true
,false
. - disk
Performance StringLevel - The ESSD performance level. Default Value:
PL1
. Valid values:PL1
,PL2
,PL3
. - elastic
Io IntegerResource - The elastic io resource.
- elastic
Io StringResource Size - The specifications of a single elastic resource node. Default Value:
8Core64GB
. Valid values:8Core64GB
: If you setelastic_io_resource_size
to8Core64GB
, the specifications of an EIU are 24 cores and 192 GB memory.12Core96GB
: If you setelastic_io_resource_size
to12Core96GB
, the specifications of an EIU are 36 cores and 288 GB memory.
- enable
Ssl Boolean - Specifies whether to enable SSL encryption. Default Value:
false
. Valid values:true
,false
. - kms
Id String - The Key Management Service (KMS) ID that is used for disk encryption.
kms_id
is valid only whendisk_encryption
is set totrue
. - maintain
Time String - The maintenance window of the cluster. Format: hh:mmZ-hh:mmZ.
- mode String
- The mode of the cluster. Valid values:
reserver
,flexible
. - modify
Type String - The modify type.
- pay
Type String - Field
pay_type
has been deprecated. New fieldpayment_type
instead. - payment
Type String - The payment type of the resource. Valid values:
PayAsYouGo
andSubscription
. Default Value:PayAsYouGo
. Note: Thepayment_type
supports updating from v1.166.0+. - period Integer
The duration that you will buy DB cluster (in month). It is valid when
payment_type
isSubscription
. Valid values: [1~9], 12, 24, 36.NOTE: The attribute
period
is only used to create Subscription instance or modify the PayAsYouGo instance to Subscription. Once effect, it will not be modified that means runningpulumi up
will not affect the resource.- port String
- (Available since v1.196.0) The connection port of the ADB cluster.
- renewal
Status String - Valid values are
AutoRenewal
,Normal
,NotRenewal
, Default toNotRenewal
. - resource
Group StringId - The ID of the resource group.
- security
Ips List<String> - List of IP addresses allowed to access all databases of an cluster. The list contains up to 1,000 IP addresses, separated by commas. Supported formats include 0.0.0.0/0, 10.23.12.24 (IP), and 10.23.12.24/24 (Classless Inter-Domain Routing (CIDR) mode. /24 represents the length of the prefix in an IP address. The range of the prefix length is [1,32]).
- status String
- The status of the resource.
- Map<String,String>
A mapping of tags to assign to the resource.
- Key: It can be up to 64 characters in length. It cannot begin with "aliyun", "acs:", "http://", or "https://". It cannot be a null string.
- Value: It can be up to 128 characters in length. It cannot begin with "aliyun", "acs:", "http://", or "https://". It can be a null string.
NOTE: Because of data backup and migration, change DB cluster type and storage would cost 15~30 minutes. Please make full preparation before changing them.
- vpc
Id String - The vpc ID of the resource.
- vswitch
Id String - The vswitch id.
- zone
Id String - The zone ID of the resource.
- auto
Renew numberPeriod - Auto-renewal period of an cluster, in the unit of the month. It is valid when
payment_type
isSubscription
. Valid values:1
,2
,3
,6
,12
,24
,36
. Default Value:1
. - compute
Resource string - The specifications of computing resources in elastic mode. The increase of resources can speed up queries. AnalyticDB for MySQL automatically scales computing resources. For more information, see ComputeResource
- connection
String string - The connection string of the cluster.
- db
Cluster stringCategory - The db cluster category. Valid values:
Basic
,Cluster
,MixedStorage
. - db
Cluster stringClass - It duplicates with attribute db_node_class and is deprecated from 1.121.2.
- db
Cluster stringVersion - The db cluster version. Valid values:
3.0
. Default Value:3.0
. - db
Node stringClass - The db node class. For more information, see DBClusterClass
- db
Node numberCount - The db node count.
- db
Node numberStorage - The db node storage.
- description string
- The description of DBCluster.
- disk
Encryption boolean - Specifies whether to enable disk encryption. Default Value:
false
. Valid values:true
,false
. - disk
Performance stringLevel - The ESSD performance level. Default Value:
PL1
. Valid values:PL1
,PL2
,PL3
. - elastic
Io numberResource - The elastic io resource.
- elastic
Io stringResource Size - The specifications of a single elastic resource node. Default Value:
8Core64GB
. Valid values:8Core64GB
: If you setelastic_io_resource_size
to8Core64GB
, the specifications of an EIU are 24 cores and 192 GB memory.12Core96GB
: If you setelastic_io_resource_size
to12Core96GB
, the specifications of an EIU are 36 cores and 288 GB memory.
- enable
Ssl boolean - Specifies whether to enable SSL encryption. Default Value:
false
. Valid values:true
,false
. - kms
Id string - The Key Management Service (KMS) ID that is used for disk encryption.
kms_id
is valid only whendisk_encryption
is set totrue
. - maintain
Time string - The maintenance window of the cluster. Format: hh:mmZ-hh:mmZ.
- mode string
- The mode of the cluster. Valid values:
reserver
,flexible
. - modify
Type string - The modify type.
- pay
Type string - Field
pay_type
has been deprecated. New fieldpayment_type
instead. - payment
Type string - The payment type of the resource. Valid values:
PayAsYouGo
andSubscription
. Default Value:PayAsYouGo
. Note: Thepayment_type
supports updating from v1.166.0+. - period number
The duration that you will buy DB cluster (in month). It is valid when
payment_type
isSubscription
. Valid values: [1~9], 12, 24, 36.NOTE: The attribute
period
is only used to create Subscription instance or modify the PayAsYouGo instance to Subscription. Once effect, it will not be modified that means runningpulumi up
will not affect the resource.- port string
- (Available since v1.196.0) The connection port of the ADB cluster.
- renewal
Status string - Valid values are
AutoRenewal
,Normal
,NotRenewal
, Default toNotRenewal
. - resource
Group stringId - The ID of the resource group.
- security
Ips string[] - List of IP addresses allowed to access all databases of an cluster. The list contains up to 1,000 IP addresses, separated by commas. Supported formats include 0.0.0.0/0, 10.23.12.24 (IP), and 10.23.12.24/24 (Classless Inter-Domain Routing (CIDR) mode. /24 represents the length of the prefix in an IP address. The range of the prefix length is [1,32]).
- status string
- The status of the resource.
- {[key: string]: string}
A mapping of tags to assign to the resource.
- Key: It can be up to 64 characters in length. It cannot begin with "aliyun", "acs:", "http://", or "https://". It cannot be a null string.
- Value: It can be up to 128 characters in length. It cannot begin with "aliyun", "acs:", "http://", or "https://". It can be a null string.
NOTE: Because of data backup and migration, change DB cluster type and storage would cost 15~30 minutes. Please make full preparation before changing them.
- vpc
Id string - The vpc ID of the resource.
- vswitch
Id string - The vswitch id.
- zone
Id string - The zone ID of the resource.
- auto_
renew_ intperiod - Auto-renewal period of an cluster, in the unit of the month. It is valid when
payment_type
isSubscription
. Valid values:1
,2
,3
,6
,12
,24
,36
. Default Value:1
. - compute_
resource str - The specifications of computing resources in elastic mode. The increase of resources can speed up queries. AnalyticDB for MySQL automatically scales computing resources. For more information, see ComputeResource
- connection_
string str - The connection string of the cluster.
- db_
cluster_ strcategory - The db cluster category. Valid values:
Basic
,Cluster
,MixedStorage
. - db_
cluster_ strclass - It duplicates with attribute db_node_class and is deprecated from 1.121.2.
- db_
cluster_ strversion - The db cluster version. Valid values:
3.0
. Default Value:3.0
. - db_
node_ strclass - The db node class. For more information, see DBClusterClass
- db_
node_ intcount - The db node count.
- db_
node_ intstorage - The db node storage.
- description str
- The description of DBCluster.
- disk_
encryption bool - Specifies whether to enable disk encryption. Default Value:
false
. Valid values:true
,false
. - disk_
performance_ strlevel - The ESSD performance level. Default Value:
PL1
. Valid values:PL1
,PL2
,PL3
. - elastic_
io_ intresource - The elastic io resource.
- elastic_
io_ strresource_ size - The specifications of a single elastic resource node. Default Value:
8Core64GB
. Valid values:8Core64GB
: If you setelastic_io_resource_size
to8Core64GB
, the specifications of an EIU are 24 cores and 192 GB memory.12Core96GB
: If you setelastic_io_resource_size
to12Core96GB
, the specifications of an EIU are 36 cores and 288 GB memory.
- enable_
ssl bool - Specifies whether to enable SSL encryption. Default Value:
false
. Valid values:true
,false
. - kms_
id str - The Key Management Service (KMS) ID that is used for disk encryption.
kms_id
is valid only whendisk_encryption
is set totrue
. - maintain_
time str - The maintenance window of the cluster. Format: hh:mmZ-hh:mmZ.
- mode str
- The mode of the cluster. Valid values:
reserver
,flexible
. - modify_
type str - The modify type.
- pay_
type str - Field
pay_type
has been deprecated. New fieldpayment_type
instead. - payment_
type str - The payment type of the resource. Valid values:
PayAsYouGo
andSubscription
. Default Value:PayAsYouGo
. Note: Thepayment_type
supports updating from v1.166.0+. - period int
The duration that you will buy DB cluster (in month). It is valid when
payment_type
isSubscription
. Valid values: [1~9], 12, 24, 36.NOTE: The attribute
period
is only used to create Subscription instance or modify the PayAsYouGo instance to Subscription. Once effect, it will not be modified that means runningpulumi up
will not affect the resource.- port str
- (Available since v1.196.0) The connection port of the ADB cluster.
- renewal_
status str - Valid values are
AutoRenewal
,Normal
,NotRenewal
, Default toNotRenewal
. - resource_
group_ strid - The ID of the resource group.
- security_
ips Sequence[str] - List of IP addresses allowed to access all databases of an cluster. The list contains up to 1,000 IP addresses, separated by commas. Supported formats include 0.0.0.0/0, 10.23.12.24 (IP), and 10.23.12.24/24 (Classless Inter-Domain Routing (CIDR) mode. /24 represents the length of the prefix in an IP address. The range of the prefix length is [1,32]).
- status str
- The status of the resource.
- Mapping[str, str]
A mapping of tags to assign to the resource.
- Key: It can be up to 64 characters in length. It cannot begin with "aliyun", "acs:", "http://", or "https://". It cannot be a null string.
- Value: It can be up to 128 characters in length. It cannot begin with "aliyun", "acs:", "http://", or "https://". It can be a null string.
NOTE: Because of data backup and migration, change DB cluster type and storage would cost 15~30 minutes. Please make full preparation before changing them.
- vpc_
id str - The vpc ID of the resource.
- vswitch_
id str - The vswitch id.
- zone_
id str - The zone ID of the resource.
- auto
Renew NumberPeriod - Auto-renewal period of an cluster, in the unit of the month. It is valid when
payment_type
isSubscription
. Valid values:1
,2
,3
,6
,12
,24
,36
. Default Value:1
. - compute
Resource String - The specifications of computing resources in elastic mode. The increase of resources can speed up queries. AnalyticDB for MySQL automatically scales computing resources. For more information, see ComputeResource
- connection
String String - The connection string of the cluster.
- db
Cluster StringCategory - The db cluster category. Valid values:
Basic
,Cluster
,MixedStorage
. - db
Cluster StringClass - It duplicates with attribute db_node_class and is deprecated from 1.121.2.
- db
Cluster StringVersion - The db cluster version. Valid values:
3.0
. Default Value:3.0
. - db
Node StringClass - The db node class. For more information, see DBClusterClass
- db
Node NumberCount - The db node count.
- db
Node NumberStorage - The db node storage.
- description String
- The description of DBCluster.
- disk
Encryption Boolean - Specifies whether to enable disk encryption. Default Value:
false
. Valid values:true
,false
. - disk
Performance StringLevel - The ESSD performance level. Default Value:
PL1
. Valid values:PL1
,PL2
,PL3
. - elastic
Io NumberResource - The elastic io resource.
- elastic
Io StringResource Size - The specifications of a single elastic resource node. Default Value:
8Core64GB
. Valid values:8Core64GB
: If you setelastic_io_resource_size
to8Core64GB
, the specifications of an EIU are 24 cores and 192 GB memory.12Core96GB
: If you setelastic_io_resource_size
to12Core96GB
, the specifications of an EIU are 36 cores and 288 GB memory.
- enable
Ssl Boolean - Specifies whether to enable SSL encryption. Default Value:
false
. Valid values:true
,false
. - kms
Id String - The Key Management Service (KMS) ID that is used for disk encryption.
kms_id
is valid only whendisk_encryption
is set totrue
. - maintain
Time String - The maintenance window of the cluster. Format: hh:mmZ-hh:mmZ.
- mode String
- The mode of the cluster. Valid values:
reserver
,flexible
. - modify
Type String - The modify type.
- pay
Type String - Field
pay_type
has been deprecated. New fieldpayment_type
instead. - payment
Type String - The payment type of the resource. Valid values:
PayAsYouGo
andSubscription
. Default Value:PayAsYouGo
. Note: Thepayment_type
supports updating from v1.166.0+. - period Number
The duration that you will buy DB cluster (in month). It is valid when
payment_type
isSubscription
. Valid values: [1~9], 12, 24, 36.NOTE: The attribute
period
is only used to create Subscription instance or modify the PayAsYouGo instance to Subscription. Once effect, it will not be modified that means runningpulumi up
will not affect the resource.- port String
- (Available since v1.196.0) The connection port of the ADB cluster.
- renewal
Status String - Valid values are
AutoRenewal
,Normal
,NotRenewal
, Default toNotRenewal
. - resource
Group StringId - The ID of the resource group.
- security
Ips List<String> - List of IP addresses allowed to access all databases of an cluster. The list contains up to 1,000 IP addresses, separated by commas. Supported formats include 0.0.0.0/0, 10.23.12.24 (IP), and 10.23.12.24/24 (Classless Inter-Domain Routing (CIDR) mode. /24 represents the length of the prefix in an IP address. The range of the prefix length is [1,32]).
- status String
- The status of the resource.
- Map<String>
A mapping of tags to assign to the resource.
- Key: It can be up to 64 characters in length. It cannot begin with "aliyun", "acs:", "http://", or "https://". It cannot be a null string.
- Value: It can be up to 128 characters in length. It cannot begin with "aliyun", "acs:", "http://", or "https://". It can be a null string.
NOTE: Because of data backup and migration, change DB cluster type and storage would cost 15~30 minutes. Please make full preparation before changing them.
- vpc
Id String - The vpc ID of the resource.
- vswitch
Id String - The vswitch id.
- zone
Id String - The zone ID of the resource.
Package Details
- Repository
- Alibaba Cloud pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
alicloud
Terraform Provider.