Instance
Create a Instance Resource
new Instance(name: string, args: InstanceArgs, opts?: CustomResourceOptions);def Instance(resource_name, opts=None, account_password=None, backup_periods=None, backup_time=None, db_instance_class=None, db_instance_storage=None, engine_version=None, instance_charge_type=None, kms_encrypted_password=None, kms_encryption_context=None, maintain_end_time=None, maintain_start_time=None, name=None, period=None, replication_factor=None, security_group_id=None, security_ip_lists=None, ssl_action=None, storage_engine=None, tags=None, tde_status=None, vswitch_id=None, zone_id=None, __props__=None);func NewInstance(ctx *Context, name string, args InstanceArgs, opts ...ResourceOption) (*Instance, error)public Instance(string name, InstanceArgs args, CustomResourceOptions? opts = null)- name string
- The unique name of the resource.
- args InstanceArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- opts ResourceOptions
- A bag of options that control this resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args InstanceArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args InstanceArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
Instance Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.
Inputs
The Instance resource accepts the following input properties:
- Db
Instance stringClass Instance specification. see Instance specifications.
- Db
Instance intStorage User-defined DB instance storage space.Unit: GB. Value range: - Custom storage space; value range: [10,2000] - 10-GB increments.
- Engine
Version string Database version. Value options can refer to the latest docs CreateDBInstance
EngineVersion.- Account
Password string Password of the root account. It is a string of 6 to 32 characters and is composed of letters, numbers, and underlines.
- Backup
Periods List<string> MongoDB Instance backup period. It is required when
backup_timewas existed. Valid values: [Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday]. Default to [Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday]- Backup
Time string MongoDB instance backup time. It is required when
backup_periodwas existed. In the format of HH:mmZ- HH:mmZ. Time setting interval is one hour. If not set, the system will return a default, like “23:00Z-24:00Z”.- Instance
Charge stringType Valid values are
PrePaid,PostPaid, System default toPostPaid. It can be modified fromPostPaidtoPrePaidafter version 1.63.0.- Kms
Encrypted stringPassword An KMS encrypts password used to a instance. If the
account_passwordis filled in, this field will be ignored.- Kms
Encryption Dictionary<string, object>Context An KMS encryption context used to decrypt
kms_encrypted_passwordbefore creating or updating instance withkms_encrypted_password. See Encryption Context. It is valid whenkms_encrypted_passwordis set.- Maintain
End stringTime The end time of the operation and maintenance time period of the instance, in the format of HH:mmZ (UTC time).
- Maintain
Start stringTime The start time of the operation and maintenance time period of the instance, in the format of HH:mmZ (UTC time).
- Name string
The name of DB instance. It a string of 2 to 256 characters.
- Period int
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. System default to 1.- Replication
Factor int Number of replica set nodes. Valid values: [3, 5, 7]
- Security
Group stringId The Security Group ID of ECS.
- Security
Ip List<string>Lists 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]).
- Ssl
Action string Actions performed on SSL functions, Valid values:
Open: turn on SSL encryption;Close: turn off SSL encryption;Update: update SSL certificate.- Storage
Engine string Storage engine: WiredTiger or RocksDB. System Default value: WiredTiger.
- Dictionary<string, object>
A mapping of tags to assign to the resource.
- Tde
Status string The TDE(Transparent Data Encryption) status.
- Vswitch
Id string The virtual switch ID to launch DB instances in one VPC.
- Zone
Id string The Zone to launch the DB instance. it supports multiple zone. If it is a multi-zone and
vswitch_idis specified, the vswitch must in one of them. The multiple zone ID can be retrieved by settingmultito “true” in the data sourcealicloud..getZones.
- Db
Instance stringClass Instance specification. see Instance specifications.
- Db
Instance intStorage User-defined DB instance storage space.Unit: GB. Value range: - Custom storage space; value range: [10,2000] - 10-GB increments.
- Engine
Version string Database version. Value options can refer to the latest docs CreateDBInstance
EngineVersion.- Account
Password string Password of the root account. It is a string of 6 to 32 characters and is composed of letters, numbers, and underlines.
- Backup
Periods []string MongoDB Instance backup period. It is required when
backup_timewas existed. Valid values: [Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday]. Default to [Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday]- Backup
Time string MongoDB instance backup time. It is required when
backup_periodwas existed. In the format of HH:mmZ- HH:mmZ. Time setting interval is one hour. If not set, the system will return a default, like “23:00Z-24:00Z”.- Instance
Charge stringType Valid values are
PrePaid,PostPaid, System default toPostPaid. It can be modified fromPostPaidtoPrePaidafter version 1.63.0.- Kms
Encrypted stringPassword An KMS encrypts password used to a instance. If the
account_passwordis filled in, this field will be ignored.- Kms
Encryption map[string]interface{}Context An KMS encryption context used to decrypt
kms_encrypted_passwordbefore creating or updating instance withkms_encrypted_password. See Encryption Context. It is valid whenkms_encrypted_passwordis set.- Maintain
End stringTime The end time of the operation and maintenance time period of the instance, in the format of HH:mmZ (UTC time).
- Maintain
Start stringTime The start time of the operation and maintenance time period of the instance, in the format of HH:mmZ (UTC time).
- Name string
The name of DB instance. It a string of 2 to 256 characters.
- Period int
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. System default to 1.- Replication
Factor int Number of replica set nodes. Valid values: [3, 5, 7]
- Security
Group stringId The Security Group ID of ECS.
- Security
Ip []stringLists 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]).
- Ssl
Action string Actions performed on SSL functions, Valid values:
Open: turn on SSL encryption;Close: turn off SSL encryption;Update: update SSL certificate.- Storage
Engine string Storage engine: WiredTiger or RocksDB. System Default value: WiredTiger.
- map[string]interface{}
A mapping of tags to assign to the resource.
- Tde
Status string The TDE(Transparent Data Encryption) status.
- Vswitch
Id string The virtual switch ID to launch DB instances in one VPC.
- Zone
Id string The Zone to launch the DB instance. it supports multiple zone. If it is a multi-zone and
vswitch_idis specified, the vswitch must in one of them. The multiple zone ID can be retrieved by settingmultito “true” in the data sourcealicloud..getZones.
- db
Instance stringClass Instance specification. see Instance specifications.
- db
Instance numberStorage User-defined DB instance storage space.Unit: GB. Value range: - Custom storage space; value range: [10,2000] - 10-GB increments.
- engine
Version string Database version. Value options can refer to the latest docs CreateDBInstance
EngineVersion.- account
Password string Password of the root account. It is a string of 6 to 32 characters and is composed of letters, numbers, and underlines.
- backup
Periods string[] MongoDB Instance backup period. It is required when
backup_timewas existed. Valid values: [Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday]. Default to [Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday]- backup
Time string MongoDB instance backup time. It is required when
backup_periodwas existed. In the format of HH:mmZ- HH:mmZ. Time setting interval is one hour. If not set, the system will return a default, like “23:00Z-24:00Z”.- instance
Charge stringType Valid values are
PrePaid,PostPaid, System default toPostPaid. It can be modified fromPostPaidtoPrePaidafter version 1.63.0.- kms
Encrypted stringPassword An KMS encrypts password used to a instance. If the
account_passwordis filled in, this field will be ignored.- kms
Encryption {[key: string]: any}Context An KMS encryption context used to decrypt
kms_encrypted_passwordbefore creating or updating instance withkms_encrypted_password. See Encryption Context. It is valid whenkms_encrypted_passwordis set.- maintain
End stringTime The end time of the operation and maintenance time period of the instance, in the format of HH:mmZ (UTC time).
- maintain
Start stringTime The start time of the operation and maintenance time period of the instance, in the format of HH:mmZ (UTC time).
- name string
The name of DB instance. It a string of 2 to 256 characters.
- period number
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. System default to 1.- replication
Factor number Number of replica set nodes. Valid values: [3, 5, 7]
- security
Group stringId The Security Group ID of ECS.
- security
Ip string[]Lists 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]).
- ssl
Action string Actions performed on SSL functions, Valid values:
Open: turn on SSL encryption;Close: turn off SSL encryption;Update: update SSL certificate.- storage
Engine string Storage engine: WiredTiger or RocksDB. System Default value: WiredTiger.
- {[key: string]: any}
A mapping of tags to assign to the resource.
- tde
Status string The TDE(Transparent Data Encryption) status.
- vswitch
Id string The virtual switch ID to launch DB instances in one VPC.
- zone
Id string The Zone to launch the DB instance. it supports multiple zone. If it is a multi-zone and
vswitch_idis specified, the vswitch must in one of them. The multiple zone ID can be retrieved by settingmultito “true” in the data sourcealicloud..getZones.
- db_
instance_ strclass Instance specification. see Instance specifications.
- db_
instance_ floatstorage User-defined DB instance storage space.Unit: GB. Value range: - Custom storage space; value range: [10,2000] - 10-GB increments.
- engine_
version str Database version. Value options can refer to the latest docs CreateDBInstance
EngineVersion.- account_
password str Password of the root account. It is a string of 6 to 32 characters and is composed of letters, numbers, and underlines.
- backup_
periods List[str] MongoDB Instance backup period. It is required when
backup_timewas existed. Valid values: [Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday]. Default to [Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday]- backup_
time str MongoDB instance backup time. It is required when
backup_periodwas existed. In the format of HH:mmZ- HH:mmZ. Time setting interval is one hour. If not set, the system will return a default, like “23:00Z-24:00Z”.- instance_
charge_ strtype Valid values are
PrePaid,PostPaid, System default toPostPaid. It can be modified fromPostPaidtoPrePaidafter version 1.63.0.- kms_
encrypted_ strpassword An KMS encrypts password used to a instance. If the
account_passwordis filled in, this field will be ignored.- kms_
encryption_ Dict[str, Any]context An KMS encryption context used to decrypt
kms_encrypted_passwordbefore creating or updating instance withkms_encrypted_password. See Encryption Context. It is valid whenkms_encrypted_passwordis set.- maintain_
end_ strtime The end time of the operation and maintenance time period of the instance, in the format of HH:mmZ (UTC time).
- maintain_
start_ strtime The start time of the operation and maintenance time period of the instance, in the format of HH:mmZ (UTC time).
- name str
The name of DB instance. It a string of 2 to 256 characters.
- period float
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. System default to 1.- replication_
factor float Number of replica set nodes. Valid values: [3, 5, 7]
- security_
group_ strid The Security Group ID of ECS.
- security_
ip_ List[str]lists 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]).
- ssl_
action str Actions performed on SSL functions, Valid values:
Open: turn on SSL encryption;Close: turn off SSL encryption;Update: update SSL certificate.- storage_
engine str Storage engine: WiredTiger or RocksDB. System Default value: WiredTiger.
- Dict[str, Any]
A mapping of tags to assign to the resource.
- tde_
status str The TDE(Transparent Data Encryption) status.
- vswitch_
id str The virtual switch ID to launch DB instances in one VPC.
- zone_
id str The Zone to launch the DB instance. it supports multiple zone. If it is a multi-zone and
vswitch_idis specified, the vswitch must in one of them. The multiple zone ID can be retrieved by settingmultito “true” in the data sourcealicloud..getZones.
Outputs
All input properties are implicitly available as output properties. Additionally, the Instance resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Replica
Set stringName The name of the mongo replica set
- Retention
Period int Instance log backup retention days. Available in 1.42.0+.
- Ssl
Status string Status of the SSL feature.
Open: SSL is turned on;Closed: SSL is turned off.
- Id string
- The provider-assigned unique ID for this managed resource.
- Replica
Set stringName The name of the mongo replica set
- Retention
Period int Instance log backup retention days. Available in 1.42.0+.
- Ssl
Status string Status of the SSL feature.
Open: SSL is turned on;Closed: SSL is turned off.
- id string
- The provider-assigned unique ID for this managed resource.
- replica
Set stringName The name of the mongo replica set
- retention
Period number Instance log backup retention days. Available in 1.42.0+.
- ssl
Status string Status of the SSL feature.
Open: SSL is turned on;Closed: SSL is turned off.
- id str
- The provider-assigned unique ID for this managed resource.
- replica_
set_ strname The name of the mongo replica set
- retention_
period float Instance log backup retention days. Available in 1.42.0+.
- ssl_
status str Status of the SSL feature.
Open: SSL is turned on;Closed: SSL is turned off.
Look up an Existing Instance Resource
Get an existing Instance 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?: InstanceState, opts?: CustomResourceOptions): Instancestatic get(resource_name, id, opts=None, account_password=None, backup_periods=None, backup_time=None, db_instance_class=None, db_instance_storage=None, engine_version=None, instance_charge_type=None, kms_encrypted_password=None, kms_encryption_context=None, maintain_end_time=None, maintain_start_time=None, name=None, period=None, replica_set_name=None, replication_factor=None, retention_period=None, security_group_id=None, security_ip_lists=None, ssl_action=None, ssl_status=None, storage_engine=None, tags=None, tde_status=None, vswitch_id=None, zone_id=None, __props__=None);func GetInstance(ctx *Context, name string, id IDInput, state *InstanceState, opts ...ResourceOption) (*Instance, error)public static Instance Get(string name, Input<string> id, InstanceState? state, CustomResourceOptions? opts = null)- 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.
The following state arguments are supported:
- Account
Password string Password of the root account. It is a string of 6 to 32 characters and is composed of letters, numbers, and underlines.
- Backup
Periods List<string> MongoDB Instance backup period. It is required when
backup_timewas existed. Valid values: [Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday]. Default to [Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday]- Backup
Time string MongoDB instance backup time. It is required when
backup_periodwas existed. In the format of HH:mmZ- HH:mmZ. Time setting interval is one hour. If not set, the system will return a default, like “23:00Z-24:00Z”.- Db
Instance stringClass Instance specification. see Instance specifications.
- Db
Instance intStorage User-defined DB instance storage space.Unit: GB. Value range: - Custom storage space; value range: [10,2000] - 10-GB increments.
- Engine
Version string Database version. Value options can refer to the latest docs CreateDBInstance
EngineVersion.- Instance
Charge stringType Valid values are
PrePaid,PostPaid, System default toPostPaid. It can be modified fromPostPaidtoPrePaidafter version 1.63.0.- Kms
Encrypted stringPassword An KMS encrypts password used to a instance. If the
account_passwordis filled in, this field will be ignored.- Kms
Encryption Dictionary<string, object>Context An KMS encryption context used to decrypt
kms_encrypted_passwordbefore creating or updating instance withkms_encrypted_password. See Encryption Context. It is valid whenkms_encrypted_passwordis set.- Maintain
End stringTime The end time of the operation and maintenance time period of the instance, in the format of HH:mmZ (UTC time).
- Maintain
Start stringTime The start time of the operation and maintenance time period of the instance, in the format of HH:mmZ (UTC time).
- Name string
The name of DB instance. It a string of 2 to 256 characters.
- Period int
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. System default to 1.- Replica
Set stringName The name of the mongo replica set
- Replication
Factor int Number of replica set nodes. Valid values: [3, 5, 7]
- Retention
Period int Instance log backup retention days. Available in 1.42.0+.
- Security
Group stringId The Security Group ID of ECS.
- Security
Ip List<string>Lists 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]).
- Ssl
Action string Actions performed on SSL functions, Valid values:
Open: turn on SSL encryption;Close: turn off SSL encryption;Update: update SSL certificate.- Ssl
Status string Status of the SSL feature.
Open: SSL is turned on;Closed: SSL is turned off.- Storage
Engine string Storage engine: WiredTiger or RocksDB. System Default value: WiredTiger.
- Dictionary<string, object>
A mapping of tags to assign to the resource.
- Tde
Status string The TDE(Transparent Data Encryption) status.
- Vswitch
Id string The virtual switch ID to launch DB instances in one VPC.
- Zone
Id string The Zone to launch the DB instance. it supports multiple zone. If it is a multi-zone and
vswitch_idis specified, the vswitch must in one of them. The multiple zone ID can be retrieved by settingmultito “true” in the data sourcealicloud..getZones.
- Account
Password string Password of the root account. It is a string of 6 to 32 characters and is composed of letters, numbers, and underlines.
- Backup
Periods []string MongoDB Instance backup period. It is required when
backup_timewas existed. Valid values: [Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday]. Default to [Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday]- Backup
Time string MongoDB instance backup time. It is required when
backup_periodwas existed. In the format of HH:mmZ- HH:mmZ. Time setting interval is one hour. If not set, the system will return a default, like “23:00Z-24:00Z”.- Db
Instance stringClass Instance specification. see Instance specifications.
- Db
Instance intStorage User-defined DB instance storage space.Unit: GB. Value range: - Custom storage space; value range: [10,2000] - 10-GB increments.
- Engine
Version string Database version. Value options can refer to the latest docs CreateDBInstance
EngineVersion.- Instance
Charge stringType Valid values are
PrePaid,PostPaid, System default toPostPaid. It can be modified fromPostPaidtoPrePaidafter version 1.63.0.- Kms
Encrypted stringPassword An KMS encrypts password used to a instance. If the
account_passwordis filled in, this field will be ignored.- Kms
Encryption map[string]interface{}Context An KMS encryption context used to decrypt
kms_encrypted_passwordbefore creating or updating instance withkms_encrypted_password. See Encryption Context. It is valid whenkms_encrypted_passwordis set.- Maintain
End stringTime The end time of the operation and maintenance time period of the instance, in the format of HH:mmZ (UTC time).
- Maintain
Start stringTime The start time of the operation and maintenance time period of the instance, in the format of HH:mmZ (UTC time).
- Name string
The name of DB instance. It a string of 2 to 256 characters.
- Period int
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. System default to 1.- Replica
Set stringName The name of the mongo replica set
- Replication
Factor int Number of replica set nodes. Valid values: [3, 5, 7]
- Retention
Period int Instance log backup retention days. Available in 1.42.0+.
- Security
Group stringId The Security Group ID of ECS.
- Security
Ip []stringLists 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]).
- Ssl
Action string Actions performed on SSL functions, Valid values:
Open: turn on SSL encryption;Close: turn off SSL encryption;Update: update SSL certificate.- Ssl
Status string Status of the SSL feature.
Open: SSL is turned on;Closed: SSL is turned off.- Storage
Engine string Storage engine: WiredTiger or RocksDB. System Default value: WiredTiger.
- map[string]interface{}
A mapping of tags to assign to the resource.
- Tde
Status string The TDE(Transparent Data Encryption) status.
- Vswitch
Id string The virtual switch ID to launch DB instances in one VPC.
- Zone
Id string The Zone to launch the DB instance. it supports multiple zone. If it is a multi-zone and
vswitch_idis specified, the vswitch must in one of them. The multiple zone ID can be retrieved by settingmultito “true” in the data sourcealicloud..getZones.
- account
Password string Password of the root account. It is a string of 6 to 32 characters and is composed of letters, numbers, and underlines.
- backup
Periods string[] MongoDB Instance backup period. It is required when
backup_timewas existed. Valid values: [Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday]. Default to [Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday]- backup
Time string MongoDB instance backup time. It is required when
backup_periodwas existed. In the format of HH:mmZ- HH:mmZ. Time setting interval is one hour. If not set, the system will return a default, like “23:00Z-24:00Z”.- db
Instance stringClass Instance specification. see Instance specifications.
- db
Instance numberStorage User-defined DB instance storage space.Unit: GB. Value range: - Custom storage space; value range: [10,2000] - 10-GB increments.
- engine
Version string Database version. Value options can refer to the latest docs CreateDBInstance
EngineVersion.- instance
Charge stringType Valid values are
PrePaid,PostPaid, System default toPostPaid. It can be modified fromPostPaidtoPrePaidafter version 1.63.0.- kms
Encrypted stringPassword An KMS encrypts password used to a instance. If the
account_passwordis filled in, this field will be ignored.- kms
Encryption {[key: string]: any}Context An KMS encryption context used to decrypt
kms_encrypted_passwordbefore creating or updating instance withkms_encrypted_password. See Encryption Context. It is valid whenkms_encrypted_passwordis set.- maintain
End stringTime The end time of the operation and maintenance time period of the instance, in the format of HH:mmZ (UTC time).
- maintain
Start stringTime The start time of the operation and maintenance time period of the instance, in the format of HH:mmZ (UTC time).
- name string
The name of DB instance. It a string of 2 to 256 characters.
- period number
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. System default to 1.- replica
Set stringName The name of the mongo replica set
- replication
Factor number Number of replica set nodes. Valid values: [3, 5, 7]
- retention
Period number Instance log backup retention days. Available in 1.42.0+.
- security
Group stringId The Security Group ID of ECS.
- security
Ip string[]Lists 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]).
- ssl
Action string Actions performed on SSL functions, Valid values:
Open: turn on SSL encryption;Close: turn off SSL encryption;Update: update SSL certificate.- ssl
Status string Status of the SSL feature.
Open: SSL is turned on;Closed: SSL is turned off.- storage
Engine string Storage engine: WiredTiger or RocksDB. System Default value: WiredTiger.
- {[key: string]: any}
A mapping of tags to assign to the resource.
- tde
Status string The TDE(Transparent Data Encryption) status.
- vswitch
Id string The virtual switch ID to launch DB instances in one VPC.
- zone
Id string The Zone to launch the DB instance. it supports multiple zone. If it is a multi-zone and
vswitch_idis specified, the vswitch must in one of them. The multiple zone ID can be retrieved by settingmultito “true” in the data sourcealicloud..getZones.
- account_
password str Password of the root account. It is a string of 6 to 32 characters and is composed of letters, numbers, and underlines.
- backup_
periods List[str] MongoDB Instance backup period. It is required when
backup_timewas existed. Valid values: [Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday]. Default to [Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday]- backup_
time str MongoDB instance backup time. It is required when
backup_periodwas existed. In the format of HH:mmZ- HH:mmZ. Time setting interval is one hour. If not set, the system will return a default, like “23:00Z-24:00Z”.- db_
instance_ strclass Instance specification. see Instance specifications.
- db_
instance_ floatstorage User-defined DB instance storage space.Unit: GB. Value range: - Custom storage space; value range: [10,2000] - 10-GB increments.
- engine_
version str Database version. Value options can refer to the latest docs CreateDBInstance
EngineVersion.- instance_
charge_ strtype Valid values are
PrePaid,PostPaid, System default toPostPaid. It can be modified fromPostPaidtoPrePaidafter version 1.63.0.- kms_
encrypted_ strpassword An KMS encrypts password used to a instance. If the
account_passwordis filled in, this field will be ignored.- kms_
encryption_ Dict[str, Any]context An KMS encryption context used to decrypt
kms_encrypted_passwordbefore creating or updating instance withkms_encrypted_password. See Encryption Context. It is valid whenkms_encrypted_passwordis set.- maintain_
end_ strtime The end time of the operation and maintenance time period of the instance, in the format of HH:mmZ (UTC time).
- maintain_
start_ strtime The start time of the operation and maintenance time period of the instance, in the format of HH:mmZ (UTC time).
- name str
The name of DB instance. It a string of 2 to 256 characters.
- period float
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. System default to 1.- replica_
set_ strname The name of the mongo replica set
- replication_
factor float Number of replica set nodes. Valid values: [3, 5, 7]
- retention_
period float Instance log backup retention days. Available in 1.42.0+.
- security_
group_ strid The Security Group ID of ECS.
- security_
ip_ List[str]lists 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]).
- ssl_
action str Actions performed on SSL functions, Valid values:
Open: turn on SSL encryption;Close: turn off SSL encryption;Update: update SSL certificate.- ssl_
status str Status of the SSL feature.
Open: SSL is turned on;Closed: SSL is turned off.- storage_
engine str Storage engine: WiredTiger or RocksDB. System Default value: WiredTiger.
- Dict[str, Any]
A mapping of tags to assign to the resource.
- tde_
status str The TDE(Transparent Data Encryption) status.
- vswitch_
id str The virtual switch ID to launch DB instances in one VPC.
- zone_
id str The Zone to launch the DB instance. it supports multiple zone. If it is a multi-zone and
vswitch_idis specified, the vswitch must in one of them. The multiple zone ID can be retrieved by settingmultito “true” in the data sourcealicloud..getZones.
Package Details
- Repository
- https://github.com/pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
alicloudTerraform Provider.