Class InstanceState
Inherited Members
Namespace: Pulumi.AliCloud.Rds
Assembly: Pulumi.AliCloud.dll
Syntax
public sealed class InstanceState : ResourceArgs
Constructors
View SourceInstanceState()
Declaration
public InstanceState()
Properties
View SourceAutoRenew
Whether to renewal a DB instance automatically or not. It is valid when instance_charge_type is PrePaid. Default to false.
Declaration
public Input<bool> AutoRenew { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.Boolean> |
AutoRenewPeriod
Auto-renewal period of an instance, in the unit of the month. It is valid when instance_charge_type is PrePaid. Valid value:[1~12], Default to 1.
Declaration
public Input<int> AutoRenewPeriod { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.Int32> |
AutoUpgradeMinorVersion
The upgrade method to use. Valid values:
- Auto: Instances are automatically upgraded to a higher minor version.
- Manual: Instances are forcibly upgraded to a higher minor version when the current version is unpublished.
Declaration
public Input<string> AutoUpgradeMinorVersion { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.String> |
ConnectionString
RDS database connection string.
Declaration
public Input<string> ConnectionString { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.String> |
DbInstanceStorageType
The storage type of the instance. Valid values:
- local_ssd: specifies to use local SSDs. This value is recommended.
- cloud_ssd: specifies to use standard SSDs.
- cloud_essd: specifies to use enhanced SSDs (ESSDs).
- cloud_essd2: specifies to use enhanced SSDs (ESSDs).
- cloud_essd3: specifies to use enhanced SSDs (ESSDs).
Declaration
public Input<string> DbInstanceStorageType { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.String> |
Engine
Database type. Value options: MySQL, SQLServer, PostgreSQL, and PPAS.
Declaration
public Input<string> Engine { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.String> |
EngineVersion
Database version. Value options can refer to the latest docs CreateDBInstance EngineVersion.
Declaration
public Input<string> EngineVersion { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.String> |
ForceRestart
Set it to true to make some parameter efficient when modifying them. Default to false.
Declaration
public Input<bool> ForceRestart { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.Boolean> |
InstanceChargeType
Valid values are Prepaid, Postpaid, Default to Postpaid. Currently, the resource only supports PostPaid to PrePaid.
Declaration
public Input<string> InstanceChargeType { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.String> |
InstanceName
The name of DB instance. It a string of 2 to 256 characters.
Declaration
public Input<string> InstanceName { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.String> |
InstanceStorage
User-defined DB instance storage space. Value range:
- [5, 2000] for MySQL/PostgreSQL/PPAS HA dual node edition;
- [20,1000] for MySQL 5.7 basic single node edition;
- [10, 2000] for SQL Server 2008R2;
- [20,2000] for SQL Server 2012 basic single node edition
Increase progressively at a rate of 5 GB. For details, see Instance type table.
Note: There is extra 5 GB storage for SQL Server Instance and it is not in specified
instance_storage.
Declaration
public Input<int> InstanceStorage { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.Int32> |
InstanceType
DB Instance type. For details, see Instance type table.
Declaration
public Input<string> InstanceType { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.String> |
MaintainTime
Maintainable time period format of the instance: HH:MMZ-HH:MMZ (UTC time)
Declaration
public Input<string> MaintainTime { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.String> |
MonitoringPeriod
The monitoring frequency in seconds. Valid values are 5, 60, 300. Defaults to 300.
Declaration
public Input<int> MonitoringPeriod { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.Int32> |
Parameters
Set of parameters needs to be set after DB instance was launched. Available parameters can refer to the latest docs View database parameter templates .
Declaration
public InputList<InstanceParameterGetArgs> Parameters { get; set; }
Property Value
| Type | Description |
|---|---|
| InputList<InstanceParameterGetArgs> |
Period
The duration that you will buy DB instance (in month). It is valid when instance_charge_type is PrePaid. Valid values: [1~9], 12, 24, 36. Default to 1.
Declaration
public Input<int> Period { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.Int32> |
Port
RDS database connection port.
Declaration
public Input<string> Port { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.String> |
SecurityGroupId
It has been deprecated from 1.69.0 and use security_group_ids instead.
Declaration
public Input<string> SecurityGroupId { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.String> |
SecurityGroupIds
, Available in 1.69.0+) The list IDs to join ECS Security Group. At most supports three security groups.
Declaration
public InputList<string> SecurityGroupIds { get; set; }
Property Value
| Type | Description |
|---|---|
| InputList<System.String> |
SecurityIpMode
Valid values are normal, safety, Default to normal. support safety switch to high security access mode
Declaration
public Input<string> SecurityIpMode { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.String> |
SecurityIps
List of IP addresses allowed to access all databases of an instance. 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]).
Declaration
public InputList<string> SecurityIps { get; set; }
Property Value
| Type | Description |
|---|---|
| InputList<System.String> |
SqlCollectorConfigValue
The sql collector keep time of the instance. Valid values are 30, 180, 365, 1095, 1825, Default to 30.
Declaration
public Input<int> SqlCollectorConfigValue { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.Int32> |
SqlCollectorStatus
The sql collector status of the instance. Valid values are Enabled, Disabled, Default to Disabled.
Declaration
public Input<string> SqlCollectorStatus { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.String> |
Tags
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.
Declaration
public InputMap<object> Tags { get; set; }
Property Value
| Type | Description |
|---|---|
| InputMap<System.Object> |
VswitchId
The virtual switch ID to launch DB instances in one VPC.
Declaration
public Input<string> VswitchId { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.String> |
ZoneId
The Zone to launch the DB instance. From version 1.8.1, it supports multiple zone.
If it is a multi-zone and vswitch_id is specified, the vswitch must in the one of them.
The multiple zone ID can be retrieved by setting multi to "true" in the data source alicloud..getZones.
Declaration
public Input<string> ZoneId { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.String> |