alicloud.mongodb.Instance
Explore with Pulumi AI
Provides a MongoDB instance resource supports replica set instances only. the MongoDB provides stable, reliable, and automatic scalable database services. It offers a full range of database solutions, such as disaster recovery, backup, recovery, monitoring, and alarms. You can see detail product introduction here
NOTE: Available since v1.37.0.
NOTE: The following regions don’t support create Classic network MongoDB instance. [
cn-zhangjiakou,cn-huhehaote,ap-southeast-3,ap-southeast-5,me-east-1,ap-northeast-1,eu-west-1]
NOTE: Create MongoDB instance or change instance type and storage would cost 5~10 minutes. Please make full preparation
Example Usage
Create a Mongodb instance
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
const config = new pulumi.Config();
const name = config.get("name") || "terraform-example";
const _default = alicloud.mongodb.getZones({});
const index = _default.then(_default => _default.zones).length.then(length => length - 1);
const zoneId = _default.then(_default => _default.zones[index].id);
const defaultNetwork = new alicloud.vpc.Network("default", {
    vpcName: name,
    cidrBlock: "172.17.3.0/24",
});
const defaultSwitch = new alicloud.vpc.Switch("default", {
    vswitchName: name,
    cidrBlock: "172.17.3.0/24",
    vpcId: defaultNetwork.id,
    zoneId: zoneId,
});
const defaultInstance = new alicloud.mongodb.Instance("default", {
    engineVersion: "4.2",
    dbInstanceClass: "dds.mongo.mid",
    dbInstanceStorage: 10,
    vswitchId: defaultSwitch.id,
    securityIpLists: [
        "10.168.1.12",
        "100.69.7.112",
    ],
    name: name,
    tags: {
        Created: "TF",
        For: "example",
    },
});
import pulumi
import pulumi_alicloud as alicloud
config = pulumi.Config()
name = config.get("name")
if name is None:
    name = "terraform-example"
default = alicloud.mongodb.get_zones()
index = len(default.zones) - 1
zone_id = default.zones[index].id
default_network = alicloud.vpc.Network("default",
    vpc_name=name,
    cidr_block="172.17.3.0/24")
default_switch = alicloud.vpc.Switch("default",
    vswitch_name=name,
    cidr_block="172.17.3.0/24",
    vpc_id=default_network.id,
    zone_id=zone_id)
default_instance = alicloud.mongodb.Instance("default",
    engine_version="4.2",
    db_instance_class="dds.mongo.mid",
    db_instance_storage=10,
    vswitch_id=default_switch.id,
    security_ip_lists=[
        "10.168.1.12",
        "100.69.7.112",
    ],
    name=name,
    tags={
        "Created": "TF",
        "For": "example",
    })
package main
import (
	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/mongodb"
	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/vpc"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		cfg := config.New(ctx, "")
		name := "terraform-example"
		if param := cfg.Get("name"); param != "" {
			name = param
		}
		_default, err := mongodb.GetZones(ctx, &mongodb.GetZonesArgs{}, nil)
		if err != nil {
			return err
		}
		index := pulumi.Float64(len(_default.Zones)) - 1
		zoneId := _default.Zones[index].Id
		defaultNetwork, err := vpc.NewNetwork(ctx, "default", &vpc.NetworkArgs{
			VpcName:   pulumi.String(name),
			CidrBlock: pulumi.String("172.17.3.0/24"),
		})
		if err != nil {
			return err
		}
		defaultSwitch, err := vpc.NewSwitch(ctx, "default", &vpc.SwitchArgs{
			VswitchName: pulumi.String(name),
			CidrBlock:   pulumi.String("172.17.3.0/24"),
			VpcId:       defaultNetwork.ID(),
			ZoneId:      pulumi.String(zoneId),
		})
		if err != nil {
			return err
		}
		_, err = mongodb.NewInstance(ctx, "default", &mongodb.InstanceArgs{
			EngineVersion:     pulumi.String("4.2"),
			DbInstanceClass:   pulumi.String("dds.mongo.mid"),
			DbInstanceStorage: pulumi.Int(10),
			VswitchId:         defaultSwitch.ID(),
			SecurityIpLists: pulumi.StringArray{
				pulumi.String("10.168.1.12"),
				pulumi.String("100.69.7.112"),
			},
			Name: pulumi.String(name),
			Tags: pulumi.StringMap{
				"Created": pulumi.String("TF"),
				"For":     pulumi.String("example"),
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AliCloud = Pulumi.AliCloud;
return await Deployment.RunAsync(() => 
{
    var config = new Config();
    var name = config.Get("name") ?? "terraform-example";
    var @default = AliCloud.MongoDB.GetZones.Invoke();
    var index = @default.Apply(@default => @default.Apply(getZonesResult => getZonesResult.Zones)).Length.Apply(length => length - 1);
    var zoneId = @default.Apply(@default => @default.Apply(getZonesResult => getZonesResult.Zones)[index].Id);
    var defaultNetwork = new AliCloud.Vpc.Network("default", new()
    {
        VpcName = name,
        CidrBlock = "172.17.3.0/24",
    });
    var defaultSwitch = new AliCloud.Vpc.Switch("default", new()
    {
        VswitchName = name,
        CidrBlock = "172.17.3.0/24",
        VpcId = defaultNetwork.Id,
        ZoneId = zoneId,
    });
    var defaultInstance = new AliCloud.MongoDB.Instance("default", new()
    {
        EngineVersion = "4.2",
        DbInstanceClass = "dds.mongo.mid",
        DbInstanceStorage = 10,
        VswitchId = defaultSwitch.Id,
        SecurityIpLists = new[]
        {
            "10.168.1.12",
            "100.69.7.112",
        },
        Name = name,
        Tags = 
        {
            { "Created", "TF" },
            { "For", "example" },
        },
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.mongodb.MongodbFunctions;
import com.pulumi.alicloud.mongodb.inputs.GetZonesArgs;
import com.pulumi.alicloud.vpc.Network;
import com.pulumi.alicloud.vpc.NetworkArgs;
import com.pulumi.alicloud.vpc.Switch;
import com.pulumi.alicloud.vpc.SwitchArgs;
import com.pulumi.alicloud.mongodb.Instance;
import com.pulumi.alicloud.mongodb.InstanceArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }
    public static void stack(Context ctx) {
        final var config = ctx.config();
        final var name = config.get("name").orElse("terraform-example");
        final var default = MongodbFunctions.getZones();
        final var index = default_.zones().length() - 1;
        final var zoneId = default_.zones()[index].id();
        var defaultNetwork = new Network("defaultNetwork", NetworkArgs.builder()
            .vpcName(name)
            .cidrBlock("172.17.3.0/24")
            .build());
        var defaultSwitch = new Switch("defaultSwitch", SwitchArgs.builder()
            .vswitchName(name)
            .cidrBlock("172.17.3.0/24")
            .vpcId(defaultNetwork.id())
            .zoneId(zoneId)
            .build());
        var defaultInstance = new Instance("defaultInstance", InstanceArgs.builder()
            .engineVersion("4.2")
            .dbInstanceClass("dds.mongo.mid")
            .dbInstanceStorage(10)
            .vswitchId(defaultSwitch.id())
            .securityIpLists(            
                "10.168.1.12",
                "100.69.7.112")
            .name(name)
            .tags(Map.ofEntries(
                Map.entry("Created", "TF"),
                Map.entry("For", "example")
            ))
            .build());
    }
}
Coming soon!
Module Support
You can use to the existing mongodb module to create a MongoDB instance resource one-click.
Create Instance Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Instance(name: string, args: InstanceArgs, opts?: CustomResourceOptions);@overload
def Instance(resource_name: str,
             args: InstanceArgs,
             opts: Optional[ResourceOptions] = None)
@overload
def Instance(resource_name: str,
             opts: Optional[ResourceOptions] = None,
             db_instance_class: Optional[str] = None,
             engine_version: Optional[str] = None,
             db_instance_storage: Optional[int] = None,
             maintain_start_time: Optional[str] = None,
             effective_time: Optional[str] = None,
             order_type: Optional[str] = None,
             backup_time: Optional[str] = None,
             cloud_disk_encryption_key: Optional[str] = None,
             backup_periods: Optional[Sequence[str]] = None,
             backup_interval: Optional[str] = None,
             network_type: Optional[str] = None,
             enable_backup_log: Optional[int] = None,
             encrypted: Optional[bool] = None,
             encryption_key: Optional[str] = None,
             encryptor_name: Optional[str] = None,
             name: Optional[str] = None,
             hidden_zone_id: Optional[str] = None,
             instance_charge_type: Optional[str] = None,
             kms_encrypted_password: Optional[str] = None,
             kms_encryption_context: Optional[Mapping[str, str]] = None,
             log_backup_retention_period: Optional[int] = None,
             maintain_end_time: Optional[str] = None,
             account_password: Optional[str] = None,
             auto_renew: Optional[bool] = None,
             backup_retention_period: Optional[int] = None,
             backup_retention_policy_on_cluster_deletion: Optional[int] = None,
             parameters: Optional[Sequence[InstanceParameterArgs]] = None,
             period: Optional[int] = None,
             provisioned_iops: Optional[int] = None,
             readonly_replicas: Optional[int] = None,
             replication_factor: Optional[int] = None,
             resource_group_id: Optional[str] = None,
             role_arn: Optional[str] = None,
             secondary_zone_id: Optional[str] = None,
             security_group_id: Optional[str] = None,
             security_ip_lists: Optional[Sequence[str]] = None,
             snapshot_backup_type: Optional[str] = None,
             ssl_action: Optional[str] = None,
             storage_engine: Optional[str] = None,
             storage_type: Optional[str] = None,
             tags: Optional[Mapping[str, str]] = None,
             tde_status: Optional[str] = None,
             vpc_id: Optional[str] = None,
             vswitch_id: Optional[str] = None,
             zone_id: Optional[str] = None)func NewInstance(ctx *Context, name string, args InstanceArgs, opts ...ResourceOption) (*Instance, error)public Instance(string name, InstanceArgs args, CustomResourceOptions? opts = null)
public Instance(String name, InstanceArgs args)
public Instance(String name, InstanceArgs args, CustomResourceOptions options)
type: alicloud:mongodb:Instance
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 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.
- args InstanceArgs
- 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 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.
- name String
- The unique name of the resource.
- args InstanceArgs
- 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 exampleinstanceResourceResourceFromMongodbinstance = new AliCloud.MongoDB.Instance("exampleinstanceResourceResourceFromMongodbinstance", new()
{
    DbInstanceClass = "string",
    EngineVersion = "string",
    DbInstanceStorage = 0,
    MaintainStartTime = "string",
    EffectiveTime = "string",
    OrderType = "string",
    BackupTime = "string",
    CloudDiskEncryptionKey = "string",
    BackupPeriods = new[]
    {
        "string",
    },
    BackupInterval = "string",
    NetworkType = "string",
    EnableBackupLog = 0,
    Encrypted = false,
    EncryptionKey = "string",
    EncryptorName = "string",
    Name = "string",
    HiddenZoneId = "string",
    InstanceChargeType = "string",
    KmsEncryptedPassword = "string",
    KmsEncryptionContext = 
    {
        { "string", "string" },
    },
    LogBackupRetentionPeriod = 0,
    MaintainEndTime = "string",
    AccountPassword = "string",
    AutoRenew = false,
    BackupRetentionPeriod = 0,
    BackupRetentionPolicyOnClusterDeletion = 0,
    Parameters = new[]
    {
        new AliCloud.MongoDB.Inputs.InstanceParameterArgs
        {
            Name = "string",
            Value = "string",
        },
    },
    Period = 0,
    ProvisionedIops = 0,
    ReadonlyReplicas = 0,
    ReplicationFactor = 0,
    ResourceGroupId = "string",
    RoleArn = "string",
    SecondaryZoneId = "string",
    SecurityGroupId = "string",
    SecurityIpLists = new[]
    {
        "string",
    },
    SnapshotBackupType = "string",
    SslAction = "string",
    StorageEngine = "string",
    StorageType = "string",
    Tags = 
    {
        { "string", "string" },
    },
    TdeStatus = "string",
    VpcId = "string",
    VswitchId = "string",
    ZoneId = "string",
});
example, err := mongodb.NewInstance(ctx, "exampleinstanceResourceResourceFromMongodbinstance", &mongodb.InstanceArgs{
	DbInstanceClass:        pulumi.String("string"),
	EngineVersion:          pulumi.String("string"),
	DbInstanceStorage:      pulumi.Int(0),
	MaintainStartTime:      pulumi.String("string"),
	EffectiveTime:          pulumi.String("string"),
	OrderType:              pulumi.String("string"),
	BackupTime:             pulumi.String("string"),
	CloudDiskEncryptionKey: pulumi.String("string"),
	BackupPeriods: pulumi.StringArray{
		pulumi.String("string"),
	},
	BackupInterval:       pulumi.String("string"),
	NetworkType:          pulumi.String("string"),
	EnableBackupLog:      pulumi.Int(0),
	Encrypted:            pulumi.Bool(false),
	EncryptionKey:        pulumi.String("string"),
	EncryptorName:        pulumi.String("string"),
	Name:                 pulumi.String("string"),
	HiddenZoneId:         pulumi.String("string"),
	InstanceChargeType:   pulumi.String("string"),
	KmsEncryptedPassword: pulumi.String("string"),
	KmsEncryptionContext: pulumi.StringMap{
		"string": pulumi.String("string"),
	},
	LogBackupRetentionPeriod:               pulumi.Int(0),
	MaintainEndTime:                        pulumi.String("string"),
	AccountPassword:                        pulumi.String("string"),
	AutoRenew:                              pulumi.Bool(false),
	BackupRetentionPeriod:                  pulumi.Int(0),
	BackupRetentionPolicyOnClusterDeletion: pulumi.Int(0),
	Parameters: mongodb.InstanceParameterArray{
		&mongodb.InstanceParameterArgs{
			Name:  pulumi.String("string"),
			Value: pulumi.String("string"),
		},
	},
	Period:            pulumi.Int(0),
	ProvisionedIops:   pulumi.Int(0),
	ReadonlyReplicas:  pulumi.Int(0),
	ReplicationFactor: pulumi.Int(0),
	ResourceGroupId:   pulumi.String("string"),
	RoleArn:           pulumi.String("string"),
	SecondaryZoneId:   pulumi.String("string"),
	SecurityGroupId:   pulumi.String("string"),
	SecurityIpLists: pulumi.StringArray{
		pulumi.String("string"),
	},
	SnapshotBackupType: pulumi.String("string"),
	SslAction:          pulumi.String("string"),
	StorageEngine:      pulumi.String("string"),
	StorageType:        pulumi.String("string"),
	Tags: pulumi.StringMap{
		"string": pulumi.String("string"),
	},
	TdeStatus: pulumi.String("string"),
	VpcId:     pulumi.String("string"),
	VswitchId: pulumi.String("string"),
	ZoneId:    pulumi.String("string"),
})
var exampleinstanceResourceResourceFromMongodbinstance = new Instance("exampleinstanceResourceResourceFromMongodbinstance", InstanceArgs.builder()
    .dbInstanceClass("string")
    .engineVersion("string")
    .dbInstanceStorage(0)
    .maintainStartTime("string")
    .effectiveTime("string")
    .orderType("string")
    .backupTime("string")
    .cloudDiskEncryptionKey("string")
    .backupPeriods("string")
    .backupInterval("string")
    .networkType("string")
    .enableBackupLog(0)
    .encrypted(false)
    .encryptionKey("string")
    .encryptorName("string")
    .name("string")
    .hiddenZoneId("string")
    .instanceChargeType("string")
    .kmsEncryptedPassword("string")
    .kmsEncryptionContext(Map.of("string", "string"))
    .logBackupRetentionPeriod(0)
    .maintainEndTime("string")
    .accountPassword("string")
    .autoRenew(false)
    .backupRetentionPeriod(0)
    .backupRetentionPolicyOnClusterDeletion(0)
    .parameters(InstanceParameterArgs.builder()
        .name("string")
        .value("string")
        .build())
    .period(0)
    .provisionedIops(0)
    .readonlyReplicas(0)
    .replicationFactor(0)
    .resourceGroupId("string")
    .roleArn("string")
    .secondaryZoneId("string")
    .securityGroupId("string")
    .securityIpLists("string")
    .snapshotBackupType("string")
    .sslAction("string")
    .storageEngine("string")
    .storageType("string")
    .tags(Map.of("string", "string"))
    .tdeStatus("string")
    .vpcId("string")
    .vswitchId("string")
    .zoneId("string")
    .build());
exampleinstance_resource_resource_from_mongodbinstance = alicloud.mongodb.Instance("exampleinstanceResourceResourceFromMongodbinstance",
    db_instance_class="string",
    engine_version="string",
    db_instance_storage=0,
    maintain_start_time="string",
    effective_time="string",
    order_type="string",
    backup_time="string",
    cloud_disk_encryption_key="string",
    backup_periods=["string"],
    backup_interval="string",
    network_type="string",
    enable_backup_log=0,
    encrypted=False,
    encryption_key="string",
    encryptor_name="string",
    name="string",
    hidden_zone_id="string",
    instance_charge_type="string",
    kms_encrypted_password="string",
    kms_encryption_context={
        "string": "string",
    },
    log_backup_retention_period=0,
    maintain_end_time="string",
    account_password="string",
    auto_renew=False,
    backup_retention_period=0,
    backup_retention_policy_on_cluster_deletion=0,
    parameters=[{
        "name": "string",
        "value": "string",
    }],
    period=0,
    provisioned_iops=0,
    readonly_replicas=0,
    replication_factor=0,
    resource_group_id="string",
    role_arn="string",
    secondary_zone_id="string",
    security_group_id="string",
    security_ip_lists=["string"],
    snapshot_backup_type="string",
    ssl_action="string",
    storage_engine="string",
    storage_type="string",
    tags={
        "string": "string",
    },
    tde_status="string",
    vpc_id="string",
    vswitch_id="string",
    zone_id="string")
const exampleinstanceResourceResourceFromMongodbinstance = new alicloud.mongodb.Instance("exampleinstanceResourceResourceFromMongodbinstance", {
    dbInstanceClass: "string",
    engineVersion: "string",
    dbInstanceStorage: 0,
    maintainStartTime: "string",
    effectiveTime: "string",
    orderType: "string",
    backupTime: "string",
    cloudDiskEncryptionKey: "string",
    backupPeriods: ["string"],
    backupInterval: "string",
    networkType: "string",
    enableBackupLog: 0,
    encrypted: false,
    encryptionKey: "string",
    encryptorName: "string",
    name: "string",
    hiddenZoneId: "string",
    instanceChargeType: "string",
    kmsEncryptedPassword: "string",
    kmsEncryptionContext: {
        string: "string",
    },
    logBackupRetentionPeriod: 0,
    maintainEndTime: "string",
    accountPassword: "string",
    autoRenew: false,
    backupRetentionPeriod: 0,
    backupRetentionPolicyOnClusterDeletion: 0,
    parameters: [{
        name: "string",
        value: "string",
    }],
    period: 0,
    provisionedIops: 0,
    readonlyReplicas: 0,
    replicationFactor: 0,
    resourceGroupId: "string",
    roleArn: "string",
    secondaryZoneId: "string",
    securityGroupId: "string",
    securityIpLists: ["string"],
    snapshotBackupType: "string",
    sslAction: "string",
    storageEngine: "string",
    storageType: "string",
    tags: {
        string: "string",
    },
    tdeStatus: "string",
    vpcId: "string",
    vswitchId: "string",
    zoneId: "string",
});
type: alicloud:mongodb:Instance
properties:
    accountPassword: string
    autoRenew: false
    backupInterval: string
    backupPeriods:
        - string
    backupRetentionPeriod: 0
    backupRetentionPolicyOnClusterDeletion: 0
    backupTime: string
    cloudDiskEncryptionKey: string
    dbInstanceClass: string
    dbInstanceStorage: 0
    effectiveTime: string
    enableBackupLog: 0
    encrypted: false
    encryptionKey: string
    encryptorName: string
    engineVersion: string
    hiddenZoneId: string
    instanceChargeType: string
    kmsEncryptedPassword: string
    kmsEncryptionContext:
        string: string
    logBackupRetentionPeriod: 0
    maintainEndTime: string
    maintainStartTime: string
    name: string
    networkType: string
    orderType: string
    parameters:
        - name: string
          value: string
    period: 0
    provisionedIops: 0
    readonlyReplicas: 0
    replicationFactor: 0
    resourceGroupId: string
    roleArn: string
    secondaryZoneId: string
    securityGroupId: string
    securityIpLists:
        - string
    snapshotBackupType: string
    sslAction: string
    storageEngine: string
    storageType: string
    tags:
        string: string
    tdeStatus: string
    vpcId: string
    vswitchId: string
    zoneId: string
Instance 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 Instance resource accepts the following input properties:
- DbInstance stringClass 
- Instance specification. see Instance specifications.
- DbInstance intStorage 
- User-defined DB instance storage space.Unit: GB. Value range:- Custom storage space.
- 10-GB increments.
 
- EngineVersion string
- Database version. Value options can refer to the latest docs CreateDBInstance EngineVersion. NOTE: From version 1.225.0,engine_versioncan be modified.
- AccountPassword string
- Password of the root account. It is a string of 6 to 32 characters and is composed of letters, numbers, and underlines.
- AutoRenew bool
- Auto renew for prepaid. Default value: - false. Valid values:- true,- false.- NOTE: The start time to the end time must be 1 hour. For example, the MaintainStartTime is 01:00Z, then the MaintainEndTime must be 02:00Z. 
- BackupInterval string
- The frequency at which high-frequency backups are created. Valid values: -1,15,30,60,120,180,240,360,480,720.
- BackupPeriods 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].
- BackupRetention intPeriod 
- The retention period of full backups.
- BackupRetention intPolicy On Cluster Deletion 
- The backup retention policy configured for the instance. Valid values:
- BackupTime 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".
- CloudDisk stringEncryption Key 
- The ID of the encryption key.
- EffectiveTime string
- The time when the changed configurations take effect. Valid values: Immediately,MaintainTime.
- EnableBackup intLog 
- Specifies whether to enable the log backup feature. Valid values:
- Encrypted bool
- Whether to enable cloud disk encryption. Default value: false. Valid values:true,false.
- EncryptionKey string
- The ID of the custom key.
- EncryptorName string
- The encryption method. NOTE: encryptor_nameis valid only whentde_statusis set toenabled.
- string
- Configure the zone where the hidden node is located to deploy multiple zones. NOTE: This parameter value cannot be the same as zone_idandsecondary_zone_idparameter values.
- InstanceCharge stringType 
- The billing method of the instance. Default value: PostPaid. Valid values:PrePaid,PostPaid. NOTE: It can be modified fromPostPaidtoPrePaidafter version 1.63.0.
- KmsEncrypted stringPassword 
- An KMS encrypts password used to a instance. If the account_passwordis filled in, this field will be ignored.
- KmsEncryption Dictionary<string, string>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.
- LogBackup intRetention Period 
- The number of days for which log backups are retained. Valid values: 7to730. NOTE:log_backup_retention_periodis valid only whenenable_backup_logis set to1.
- MaintainEnd stringTime 
- The end time of the operation and maintenance time period of the instance, in the format of HH:mmZ (UTC time).
- MaintainStart 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 must be 2 to 256 characters in length.
- NetworkType string
- The network type of the instance. Valid values:Classic,VPC.
- OrderType string
- The type of configuration changes performed. Default value: DOWNGRADE. Valid values:- UPGRADE: The specifications are upgraded.
- DOWNGRADE: The specifications are downgraded. NOTE:- order_typeis only applicable to instances when- instance_charge_typeis- PrePaid.
 
- Parameters
List<Pulumi.Ali Cloud. Mongo DB. Inputs. Instance Parameter> 
- Set of parameters needs to be set after mongodb instance was launched. See parametersbelow.
- Period int
- The duration that you will buy DB instance (in month). It is valid when instance_charge_typeisPrePaid. Default value:1. Valid values: [1~9], 12, 24, 36.
- ProvisionedIops int
- The provisioned IOPS. Valid values: 0to50000.
- ReadonlyReplicas int
- The number of read-only nodes in the replica set instance. Default value: 0. Valid values: 0 to 5.
- ReplicationFactor int
- Number of replica set nodes. Valid values: 1,3,5,7.
- ResourceGroup stringId 
- The ID of the Resource Group.
- RoleArn string
- The Alibaba Cloud Resource Name (ARN) of the specified Resource Access Management (RAM) role.
- SecondaryZone stringId 
- Configure the available area where the slave node (Secondary node) is located to realize multi-available area deployment. NOTE: This parameter value cannot be the same as zone_idandhidden_zone_idparameter values.
- SecurityGroup stringId 
- The Security Group ID of ECS.
- SecurityIp 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]).
- SnapshotBackup stringType 
- The snapshot backup type. Default value: Standard. Valid values:- Standard: standard backup.
- Flash: single-digit second backup.
 
- SslAction string
- Actions performed on SSL functions. Valid values:- Open: turn on SSL encryption.
- Close: turn off SSL encryption.
- Update: update SSL certificate.
 
- StorageEngine string
- The storage engine of the instance. Default value: WiredTiger. Valid values:WiredTiger,RocksDB.
- StorageType string
- The storage type of the instance. Valid values: cloud_essd1,cloud_essd2,cloud_essd3,cloud_auto,local_ssd. NOTE: From version 1.229.0,storage_typecan be modified. However,storage_typecan only be modified tocloud_auto.
- Dictionary<string, string>
- A mapping of tags to assign to the resource.
- TdeStatus string
- The TDE(Transparent Data Encryption) status. Valid values: enabled.
- VpcId string
- The ID of the VPC. > NOTE: vpc_idis valid only whennetwork_typeis set toVPC.
- VswitchId string
- The virtual switch ID to launch DB instances in one VPC.
- ZoneId 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.
- DbInstance stringClass 
- Instance specification. see Instance specifications.
- DbInstance intStorage 
- User-defined DB instance storage space.Unit: GB. Value range:- Custom storage space.
- 10-GB increments.
 
- EngineVersion string
- Database version. Value options can refer to the latest docs CreateDBInstance EngineVersion. NOTE: From version 1.225.0,engine_versioncan be modified.
- AccountPassword string
- Password of the root account. It is a string of 6 to 32 characters and is composed of letters, numbers, and underlines.
- AutoRenew bool
- Auto renew for prepaid. Default value: - false. Valid values:- true,- false.- NOTE: The start time to the end time must be 1 hour. For example, the MaintainStartTime is 01:00Z, then the MaintainEndTime must be 02:00Z. 
- BackupInterval string
- The frequency at which high-frequency backups are created. Valid values: -1,15,30,60,120,180,240,360,480,720.
- BackupPeriods []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].
- BackupRetention intPeriod 
- The retention period of full backups.
- BackupRetention intPolicy On Cluster Deletion 
- The backup retention policy configured for the instance. Valid values:
- BackupTime 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".
- CloudDisk stringEncryption Key 
- The ID of the encryption key.
- EffectiveTime string
- The time when the changed configurations take effect. Valid values: Immediately,MaintainTime.
- EnableBackup intLog 
- Specifies whether to enable the log backup feature. Valid values:
- Encrypted bool
- Whether to enable cloud disk encryption. Default value: false. Valid values:true,false.
- EncryptionKey string
- The ID of the custom key.
- EncryptorName string
- The encryption method. NOTE: encryptor_nameis valid only whentde_statusis set toenabled.
- string
- Configure the zone where the hidden node is located to deploy multiple zones. NOTE: This parameter value cannot be the same as zone_idandsecondary_zone_idparameter values.
- InstanceCharge stringType 
- The billing method of the instance. Default value: PostPaid. Valid values:PrePaid,PostPaid. NOTE: It can be modified fromPostPaidtoPrePaidafter version 1.63.0.
- KmsEncrypted stringPassword 
- An KMS encrypts password used to a instance. If the account_passwordis filled in, this field will be ignored.
- KmsEncryption map[string]stringContext 
- 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.
- LogBackup intRetention Period 
- The number of days for which log backups are retained. Valid values: 7to730. NOTE:log_backup_retention_periodis valid only whenenable_backup_logis set to1.
- MaintainEnd stringTime 
- The end time of the operation and maintenance time period of the instance, in the format of HH:mmZ (UTC time).
- MaintainStart 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 must be 2 to 256 characters in length.
- NetworkType string
- The network type of the instance. Valid values:Classic,VPC.
- OrderType string
- The type of configuration changes performed. Default value: DOWNGRADE. Valid values:- UPGRADE: The specifications are upgraded.
- DOWNGRADE: The specifications are downgraded. NOTE:- order_typeis only applicable to instances when- instance_charge_typeis- PrePaid.
 
- Parameters
[]InstanceParameter Args 
- Set of parameters needs to be set after mongodb instance was launched. See parametersbelow.
- Period int
- The duration that you will buy DB instance (in month). It is valid when instance_charge_typeisPrePaid. Default value:1. Valid values: [1~9], 12, 24, 36.
- ProvisionedIops int
- The provisioned IOPS. Valid values: 0to50000.
- ReadonlyReplicas int
- The number of read-only nodes in the replica set instance. Default value: 0. Valid values: 0 to 5.
- ReplicationFactor int
- Number of replica set nodes. Valid values: 1,3,5,7.
- ResourceGroup stringId 
- The ID of the Resource Group.
- RoleArn string
- The Alibaba Cloud Resource Name (ARN) of the specified Resource Access Management (RAM) role.
- SecondaryZone stringId 
- Configure the available area where the slave node (Secondary node) is located to realize multi-available area deployment. NOTE: This parameter value cannot be the same as zone_idandhidden_zone_idparameter values.
- SecurityGroup stringId 
- The Security Group ID of ECS.
- SecurityIp []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]).
- SnapshotBackup stringType 
- The snapshot backup type. Default value: Standard. Valid values:- Standard: standard backup.
- Flash: single-digit second backup.
 
- SslAction string
- Actions performed on SSL functions. Valid values:- Open: turn on SSL encryption.
- Close: turn off SSL encryption.
- Update: update SSL certificate.
 
- StorageEngine string
- The storage engine of the instance. Default value: WiredTiger. Valid values:WiredTiger,RocksDB.
- StorageType string
- The storage type of the instance. Valid values: cloud_essd1,cloud_essd2,cloud_essd3,cloud_auto,local_ssd. NOTE: From version 1.229.0,storage_typecan be modified. However,storage_typecan only be modified tocloud_auto.
- map[string]string
- A mapping of tags to assign to the resource.
- TdeStatus string
- The TDE(Transparent Data Encryption) status. Valid values: enabled.
- VpcId string
- The ID of the VPC. > NOTE: vpc_idis valid only whennetwork_typeis set toVPC.
- VswitchId string
- The virtual switch ID to launch DB instances in one VPC.
- ZoneId 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.
- dbInstance StringClass 
- Instance specification. see Instance specifications.
- dbInstance IntegerStorage 
- User-defined DB instance storage space.Unit: GB. Value range:- Custom storage space.
- 10-GB increments.
 
- engineVersion String
- Database version. Value options can refer to the latest docs CreateDBInstance EngineVersion. NOTE: From version 1.225.0,engine_versioncan be modified.
- accountPassword String
- Password of the root account. It is a string of 6 to 32 characters and is composed of letters, numbers, and underlines.
- autoRenew Boolean
- Auto renew for prepaid. Default value: - false. Valid values:- true,- false.- NOTE: The start time to the end time must be 1 hour. For example, the MaintainStartTime is 01:00Z, then the MaintainEndTime must be 02:00Z. 
- backupInterval String
- The frequency at which high-frequency backups are created. Valid values: -1,15,30,60,120,180,240,360,480,720.
- backupPeriods 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].
- backupRetention IntegerPeriod 
- The retention period of full backups.
- backupRetention IntegerPolicy On Cluster Deletion 
- The backup retention policy configured for the instance. Valid values:
- backupTime 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".
- cloudDisk StringEncryption Key 
- The ID of the encryption key.
- effectiveTime String
- The time when the changed configurations take effect. Valid values: Immediately,MaintainTime.
- enableBackup IntegerLog 
- Specifies whether to enable the log backup feature. Valid values:
- encrypted Boolean
- Whether to enable cloud disk encryption. Default value: false. Valid values:true,false.
- encryptionKey String
- The ID of the custom key.
- encryptorName String
- The encryption method. NOTE: encryptor_nameis valid only whentde_statusis set toenabled.
- String
- Configure the zone where the hidden node is located to deploy multiple zones. NOTE: This parameter value cannot be the same as zone_idandsecondary_zone_idparameter values.
- instanceCharge StringType 
- The billing method of the instance. Default value: PostPaid. Valid values:PrePaid,PostPaid. NOTE: It can be modified fromPostPaidtoPrePaidafter version 1.63.0.
- kmsEncrypted StringPassword 
- An KMS encrypts password used to a instance. If the account_passwordis filled in, this field will be ignored.
- kmsEncryption Map<String,String>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.
- logBackup IntegerRetention Period 
- The number of days for which log backups are retained. Valid values: 7to730. NOTE:log_backup_retention_periodis valid only whenenable_backup_logis set to1.
- maintainEnd StringTime 
- The end time of the operation and maintenance time period of the instance, in the format of HH:mmZ (UTC time).
- maintainStart 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 must be 2 to 256 characters in length.
- networkType String
- The network type of the instance. Valid values:Classic,VPC.
- orderType String
- The type of configuration changes performed. Default value: DOWNGRADE. Valid values:- UPGRADE: The specifications are upgraded.
- DOWNGRADE: The specifications are downgraded. NOTE:- order_typeis only applicable to instances when- instance_charge_typeis- PrePaid.
 
- parameters
List<InstanceParameter> 
- Set of parameters needs to be set after mongodb instance was launched. See parametersbelow.
- period Integer
- The duration that you will buy DB instance (in month). It is valid when instance_charge_typeisPrePaid. Default value:1. Valid values: [1~9], 12, 24, 36.
- provisionedIops Integer
- The provisioned IOPS. Valid values: 0to50000.
- readonlyReplicas Integer
- The number of read-only nodes in the replica set instance. Default value: 0. Valid values: 0 to 5.
- replicationFactor Integer
- Number of replica set nodes. Valid values: 1,3,5,7.
- resourceGroup StringId 
- The ID of the Resource Group.
- roleArn String
- The Alibaba Cloud Resource Name (ARN) of the specified Resource Access Management (RAM) role.
- secondaryZone StringId 
- Configure the available area where the slave node (Secondary node) is located to realize multi-available area deployment. NOTE: This parameter value cannot be the same as zone_idandhidden_zone_idparameter values.
- securityGroup StringId 
- The Security Group ID of ECS.
- securityIp 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]).
- snapshotBackup StringType 
- The snapshot backup type. Default value: Standard. Valid values:- Standard: standard backup.
- Flash: single-digit second backup.
 
- sslAction String
- Actions performed on SSL functions. Valid values:- Open: turn on SSL encryption.
- Close: turn off SSL encryption.
- Update: update SSL certificate.
 
- storageEngine String
- The storage engine of the instance. Default value: WiredTiger. Valid values:WiredTiger,RocksDB.
- storageType String
- The storage type of the instance. Valid values: cloud_essd1,cloud_essd2,cloud_essd3,cloud_auto,local_ssd. NOTE: From version 1.229.0,storage_typecan be modified. However,storage_typecan only be modified tocloud_auto.
- Map<String,String>
- A mapping of tags to assign to the resource.
- tdeStatus String
- The TDE(Transparent Data Encryption) status. Valid values: enabled.
- vpcId String
- The ID of the VPC. > NOTE: vpc_idis valid only whennetwork_typeis set toVPC.
- vswitchId String
- The virtual switch ID to launch DB instances in one VPC.
- zoneId 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.
- dbInstance stringClass 
- Instance specification. see Instance specifications.
- dbInstance numberStorage 
- User-defined DB instance storage space.Unit: GB. Value range:- Custom storage space.
- 10-GB increments.
 
- engineVersion string
- Database version. Value options can refer to the latest docs CreateDBInstance EngineVersion. NOTE: From version 1.225.0,engine_versioncan be modified.
- accountPassword string
- Password of the root account. It is a string of 6 to 32 characters and is composed of letters, numbers, and underlines.
- autoRenew boolean
- Auto renew for prepaid. Default value: - false. Valid values:- true,- false.- NOTE: The start time to the end time must be 1 hour. For example, the MaintainStartTime is 01:00Z, then the MaintainEndTime must be 02:00Z. 
- backupInterval string
- The frequency at which high-frequency backups are created. Valid values: -1,15,30,60,120,180,240,360,480,720.
- backupPeriods 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].
- backupRetention numberPeriod 
- The retention period of full backups.
- backupRetention numberPolicy On Cluster Deletion 
- The backup retention policy configured for the instance. Valid values:
- backupTime 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".
- cloudDisk stringEncryption Key 
- The ID of the encryption key.
- effectiveTime string
- The time when the changed configurations take effect. Valid values: Immediately,MaintainTime.
- enableBackup numberLog 
- Specifies whether to enable the log backup feature. Valid values:
- encrypted boolean
- Whether to enable cloud disk encryption. Default value: false. Valid values:true,false.
- encryptionKey string
- The ID of the custom key.
- encryptorName string
- The encryption method. NOTE: encryptor_nameis valid only whentde_statusis set toenabled.
- string
- Configure the zone where the hidden node is located to deploy multiple zones. NOTE: This parameter value cannot be the same as zone_idandsecondary_zone_idparameter values.
- instanceCharge stringType 
- The billing method of the instance. Default value: PostPaid. Valid values:PrePaid,PostPaid. NOTE: It can be modified fromPostPaidtoPrePaidafter version 1.63.0.
- kmsEncrypted stringPassword 
- An KMS encrypts password used to a instance. If the account_passwordis filled in, this field will be ignored.
- kmsEncryption {[key: string]: string}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.
- logBackup numberRetention Period 
- The number of days for which log backups are retained. Valid values: 7to730. NOTE:log_backup_retention_periodis valid only whenenable_backup_logis set to1.
- maintainEnd stringTime 
- The end time of the operation and maintenance time period of the instance, in the format of HH:mmZ (UTC time).
- maintainStart 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 must be 2 to 256 characters in length.
- networkType string
- The network type of the instance. Valid values:Classic,VPC.
- orderType string
- The type of configuration changes performed. Default value: DOWNGRADE. Valid values:- UPGRADE: The specifications are upgraded.
- DOWNGRADE: The specifications are downgraded. NOTE:- order_typeis only applicable to instances when- instance_charge_typeis- PrePaid.
 
- parameters
InstanceParameter[] 
- Set of parameters needs to be set after mongodb instance was launched. See parametersbelow.
- period number
- The duration that you will buy DB instance (in month). It is valid when instance_charge_typeisPrePaid. Default value:1. Valid values: [1~9], 12, 24, 36.
- provisionedIops number
- The provisioned IOPS. Valid values: 0to50000.
- readonlyReplicas number
- The number of read-only nodes in the replica set instance. Default value: 0. Valid values: 0 to 5.
- replicationFactor number
- Number of replica set nodes. Valid values: 1,3,5,7.
- resourceGroup stringId 
- The ID of the Resource Group.
- roleArn string
- The Alibaba Cloud Resource Name (ARN) of the specified Resource Access Management (RAM) role.
- secondaryZone stringId 
- Configure the available area where the slave node (Secondary node) is located to realize multi-available area deployment. NOTE: This parameter value cannot be the same as zone_idandhidden_zone_idparameter values.
- securityGroup stringId 
- The Security Group ID of ECS.
- securityIp 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]).
- snapshotBackup stringType 
- The snapshot backup type. Default value: Standard. Valid values:- Standard: standard backup.
- Flash: single-digit second backup.
 
- sslAction string
- Actions performed on SSL functions. Valid values:- Open: turn on SSL encryption.
- Close: turn off SSL encryption.
- Update: update SSL certificate.
 
- storageEngine string
- The storage engine of the instance. Default value: WiredTiger. Valid values:WiredTiger,RocksDB.
- storageType string
- The storage type of the instance. Valid values: cloud_essd1,cloud_essd2,cloud_essd3,cloud_auto,local_ssd. NOTE: From version 1.229.0,storage_typecan be modified. However,storage_typecan only be modified tocloud_auto.
- {[key: string]: string}
- A mapping of tags to assign to the resource.
- tdeStatus string
- The TDE(Transparent Data Encryption) status. Valid values: enabled.
- vpcId string
- The ID of the VPC. > NOTE: vpc_idis valid only whennetwork_typeis set toVPC.
- vswitchId string
- The virtual switch ID to launch DB instances in one VPC.
- zoneId 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_ intstorage 
- User-defined DB instance storage space.Unit: GB. Value range:- Custom storage space.
- 10-GB increments.
 
- engine_version str
- Database version. Value options can refer to the latest docs CreateDBInstance EngineVersion. NOTE: From version 1.225.0,engine_versioncan be modified.
- 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.
- auto_renew bool
- Auto renew for prepaid. Default value: - false. Valid values:- true,- false.- NOTE: The start time to the end time must be 1 hour. For example, the MaintainStartTime is 01:00Z, then the MaintainEndTime must be 02:00Z. 
- backup_interval str
- The frequency at which high-frequency backups are created. Valid values: -1,15,30,60,120,180,240,360,480,720.
- backup_periods Sequence[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_retention_ intperiod 
- The retention period of full backups.
- backup_retention_ intpolicy_ on_ cluster_ deletion 
- The backup retention policy configured for the instance. Valid values:
- 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".
- cloud_disk_ strencryption_ key 
- The ID of the encryption key.
- effective_time str
- The time when the changed configurations take effect. Valid values: Immediately,MaintainTime.
- enable_backup_ intlog 
- Specifies whether to enable the log backup feature. Valid values:
- encrypted bool
- Whether to enable cloud disk encryption. Default value: false. Valid values:true,false.
- encryption_key str
- The ID of the custom key.
- encryptor_name str
- The encryption method. NOTE: encryptor_nameis valid only whentde_statusis set toenabled.
- str
- Configure the zone where the hidden node is located to deploy multiple zones. NOTE: This parameter value cannot be the same as zone_idandsecondary_zone_idparameter values.
- instance_charge_ strtype 
- The billing method of the instance. Default value: PostPaid. Valid values:PrePaid,PostPaid. NOTE: 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_ Mapping[str, str]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.
- log_backup_ intretention_ period 
- The number of days for which log backups are retained. Valid values: 7to730. NOTE:log_backup_retention_periodis valid only whenenable_backup_logis set to1.
- 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 must be 2 to 256 characters in length.
- network_type str
- The network type of the instance. Valid values:Classic,VPC.
- order_type str
- The type of configuration changes performed. Default value: DOWNGRADE. Valid values:- UPGRADE: The specifications are upgraded.
- DOWNGRADE: The specifications are downgraded. NOTE:- order_typeis only applicable to instances when- instance_charge_typeis- PrePaid.
 
- parameters
Sequence[InstanceParameter Args] 
- Set of parameters needs to be set after mongodb instance was launched. See parametersbelow.
- period int
- The duration that you will buy DB instance (in month). It is valid when instance_charge_typeisPrePaid. Default value:1. Valid values: [1~9], 12, 24, 36.
- provisioned_iops int
- The provisioned IOPS. Valid values: 0to50000.
- readonly_replicas int
- The number of read-only nodes in the replica set instance. Default value: 0. Valid values: 0 to 5.
- replication_factor int
- Number of replica set nodes. Valid values: 1,3,5,7.
- resource_group_ strid 
- The ID of the Resource Group.
- role_arn str
- The Alibaba Cloud Resource Name (ARN) of the specified Resource Access Management (RAM) role.
- secondary_zone_ strid 
- Configure the available area where the slave node (Secondary node) is located to realize multi-available area deployment. NOTE: This parameter value cannot be the same as zone_idandhidden_zone_idparameter values.
- security_group_ strid 
- The Security Group ID of ECS.
- security_ip_ Sequence[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]).
- snapshot_backup_ strtype 
- The snapshot backup type. Default value: Standard. Valid values:- Standard: standard backup.
- Flash: single-digit second backup.
 
- 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
- The storage engine of the instance. Default value: WiredTiger. Valid values:WiredTiger,RocksDB.
- storage_type str
- The storage type of the instance. Valid values: cloud_essd1,cloud_essd2,cloud_essd3,cloud_auto,local_ssd. NOTE: From version 1.229.0,storage_typecan be modified. However,storage_typecan only be modified tocloud_auto.
- Mapping[str, str]
- A mapping of tags to assign to the resource.
- tde_status str
- The TDE(Transparent Data Encryption) status. Valid values: enabled.
- vpc_id str
- The ID of the VPC. > NOTE: vpc_idis valid only whennetwork_typeis set toVPC.
- 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.
- dbInstance StringClass 
- Instance specification. see Instance specifications.
- dbInstance NumberStorage 
- User-defined DB instance storage space.Unit: GB. Value range:- Custom storage space.
- 10-GB increments.
 
- engineVersion String
- Database version. Value options can refer to the latest docs CreateDBInstance EngineVersion. NOTE: From version 1.225.0,engine_versioncan be modified.
- accountPassword String
- Password of the root account. It is a string of 6 to 32 characters and is composed of letters, numbers, and underlines.
- autoRenew Boolean
- Auto renew for prepaid. Default value: - false. Valid values:- true,- false.- NOTE: The start time to the end time must be 1 hour. For example, the MaintainStartTime is 01:00Z, then the MaintainEndTime must be 02:00Z. 
- backupInterval String
- The frequency at which high-frequency backups are created. Valid values: -1,15,30,60,120,180,240,360,480,720.
- backupPeriods 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].
- backupRetention NumberPeriod 
- The retention period of full backups.
- backupRetention NumberPolicy On Cluster Deletion 
- The backup retention policy configured for the instance. Valid values:
- backupTime 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".
- cloudDisk StringEncryption Key 
- The ID of the encryption key.
- effectiveTime String
- The time when the changed configurations take effect. Valid values: Immediately,MaintainTime.
- enableBackup NumberLog 
- Specifies whether to enable the log backup feature. Valid values:
- encrypted Boolean
- Whether to enable cloud disk encryption. Default value: false. Valid values:true,false.
- encryptionKey String
- The ID of the custom key.
- encryptorName String
- The encryption method. NOTE: encryptor_nameis valid only whentde_statusis set toenabled.
- String
- Configure the zone where the hidden node is located to deploy multiple zones. NOTE: This parameter value cannot be the same as zone_idandsecondary_zone_idparameter values.
- instanceCharge StringType 
- The billing method of the instance. Default value: PostPaid. Valid values:PrePaid,PostPaid. NOTE: It can be modified fromPostPaidtoPrePaidafter version 1.63.0.
- kmsEncrypted StringPassword 
- An KMS encrypts password used to a instance. If the account_passwordis filled in, this field will be ignored.
- kmsEncryption Map<String>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.
- logBackup NumberRetention Period 
- The number of days for which log backups are retained. Valid values: 7to730. NOTE:log_backup_retention_periodis valid only whenenable_backup_logis set to1.
- maintainEnd StringTime 
- The end time of the operation and maintenance time period of the instance, in the format of HH:mmZ (UTC time).
- maintainStart 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 must be 2 to 256 characters in length.
- networkType String
- The network type of the instance. Valid values:Classic,VPC.
- orderType String
- The type of configuration changes performed. Default value: DOWNGRADE. Valid values:- UPGRADE: The specifications are upgraded.
- DOWNGRADE: The specifications are downgraded. NOTE:- order_typeis only applicable to instances when- instance_charge_typeis- PrePaid.
 
- parameters List<Property Map>
- Set of parameters needs to be set after mongodb instance was launched. See parametersbelow.
- period Number
- The duration that you will buy DB instance (in month). It is valid when instance_charge_typeisPrePaid. Default value:1. Valid values: [1~9], 12, 24, 36.
- provisionedIops Number
- The provisioned IOPS. Valid values: 0to50000.
- readonlyReplicas Number
- The number of read-only nodes in the replica set instance. Default value: 0. Valid values: 0 to 5.
- replicationFactor Number
- Number of replica set nodes. Valid values: 1,3,5,7.
- resourceGroup StringId 
- The ID of the Resource Group.
- roleArn String
- The Alibaba Cloud Resource Name (ARN) of the specified Resource Access Management (RAM) role.
- secondaryZone StringId 
- Configure the available area where the slave node (Secondary node) is located to realize multi-available area deployment. NOTE: This parameter value cannot be the same as zone_idandhidden_zone_idparameter values.
- securityGroup StringId 
- The Security Group ID of ECS.
- securityIp 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]).
- snapshotBackup StringType 
- The snapshot backup type. Default value: Standard. Valid values:- Standard: standard backup.
- Flash: single-digit second backup.
 
- sslAction String
- Actions performed on SSL functions. Valid values:- Open: turn on SSL encryption.
- Close: turn off SSL encryption.
- Update: update SSL certificate.
 
- storageEngine String
- The storage engine of the instance. Default value: WiredTiger. Valid values:WiredTiger,RocksDB.
- storageType String
- The storage type of the instance. Valid values: cloud_essd1,cloud_essd2,cloud_essd3,cloud_auto,local_ssd. NOTE: From version 1.229.0,storage_typecan be modified. However,storage_typecan only be modified tocloud_auto.
- Map<String>
- A mapping of tags to assign to the resource.
- tdeStatus String
- The TDE(Transparent Data Encryption) status. Valid values: enabled.
- vpcId String
- The ID of the VPC. > NOTE: vpc_idis valid only whennetwork_typeis set toVPC.
- vswitchId String
- The virtual switch ID to launch DB instances in one VPC.
- zoneId 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.
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.
- ReplicaSet stringName 
- The name of the mongo replica set.
- ReplicaSets List<Pulumi.Ali Cloud. Mongo DB. Outputs. Instance Replica Set> 
- Replica set instance information.
- RetentionPeriod int
- Instance data backup retention days. Available since v1.42.0.
- SslStatus string
- Status of the SSL feature.
- Id string
- The provider-assigned unique ID for this managed resource.
- ReplicaSet stringName 
- The name of the mongo replica set.
- ReplicaSets []InstanceReplica Set 
- Replica set instance information.
- RetentionPeriod int
- Instance data backup retention days. Available since v1.42.0.
- SslStatus string
- Status of the SSL feature.
- id String
- The provider-assigned unique ID for this managed resource.
- replicaSet StringName 
- The name of the mongo replica set.
- replicaSets List<InstanceReplica Set> 
- Replica set instance information.
- retentionPeriod Integer
- Instance data backup retention days. Available since v1.42.0.
- sslStatus String
- Status of the SSL feature.
- id string
- The provider-assigned unique ID for this managed resource.
- replicaSet stringName 
- The name of the mongo replica set.
- replicaSets InstanceReplica Set[] 
- Replica set instance information.
- retentionPeriod number
- Instance data backup retention days. Available since v1.42.0.
- sslStatus string
- Status of the SSL feature.
- id str
- The provider-assigned unique ID for this managed resource.
- replica_set_ strname 
- The name of the mongo replica set.
- replica_sets Sequence[InstanceReplica Set] 
- Replica set instance information.
- retention_period int
- Instance data backup retention days. Available since v1.42.0.
- ssl_status str
- Status of the SSL feature.
- id String
- The provider-assigned unique ID for this managed resource.
- replicaSet StringName 
- The name of the mongo replica set.
- replicaSets List<Property Map>
- Replica set instance information.
- retentionPeriod Number
- Instance data backup retention days. Available since v1.42.0.
- sslStatus String
- Status of the SSL feature.
Look up 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): Instance@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        account_password: Optional[str] = None,
        auto_renew: Optional[bool] = None,
        backup_interval: Optional[str] = None,
        backup_periods: Optional[Sequence[str]] = None,
        backup_retention_period: Optional[int] = None,
        backup_retention_policy_on_cluster_deletion: Optional[int] = None,
        backup_time: Optional[str] = None,
        cloud_disk_encryption_key: Optional[str] = None,
        db_instance_class: Optional[str] = None,
        db_instance_storage: Optional[int] = None,
        effective_time: Optional[str] = None,
        enable_backup_log: Optional[int] = None,
        encrypted: Optional[bool] = None,
        encryption_key: Optional[str] = None,
        encryptor_name: Optional[str] = None,
        engine_version: Optional[str] = None,
        hidden_zone_id: Optional[str] = None,
        instance_charge_type: Optional[str] = None,
        kms_encrypted_password: Optional[str] = None,
        kms_encryption_context: Optional[Mapping[str, str]] = None,
        log_backup_retention_period: Optional[int] = None,
        maintain_end_time: Optional[str] = None,
        maintain_start_time: Optional[str] = None,
        name: Optional[str] = None,
        network_type: Optional[str] = None,
        order_type: Optional[str] = None,
        parameters: Optional[Sequence[InstanceParameterArgs]] = None,
        period: Optional[int] = None,
        provisioned_iops: Optional[int] = None,
        readonly_replicas: Optional[int] = None,
        replica_set_name: Optional[str] = None,
        replica_sets: Optional[Sequence[InstanceReplicaSetArgs]] = None,
        replication_factor: Optional[int] = None,
        resource_group_id: Optional[str] = None,
        retention_period: Optional[int] = None,
        role_arn: Optional[str] = None,
        secondary_zone_id: Optional[str] = None,
        security_group_id: Optional[str] = None,
        security_ip_lists: Optional[Sequence[str]] = None,
        snapshot_backup_type: Optional[str] = None,
        ssl_action: Optional[str] = None,
        ssl_status: Optional[str] = None,
        storage_engine: Optional[str] = None,
        storage_type: Optional[str] = None,
        tags: Optional[Mapping[str, str]] = None,
        tde_status: Optional[str] = None,
        vpc_id: Optional[str] = None,
        vswitch_id: Optional[str] = None,
        zone_id: Optional[str] = None) -> Instancefunc 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)public static Instance get(String name, Output<String> id, InstanceState state, CustomResourceOptions options)resources:  _:    type: alicloud:mongodb:Instance    get:      id: ${id}- 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.
- AccountPassword string
- Password of the root account. It is a string of 6 to 32 characters and is composed of letters, numbers, and underlines.
- AutoRenew bool
- Auto renew for prepaid. Default value: - false. Valid values:- true,- false.- NOTE: The start time to the end time must be 1 hour. For example, the MaintainStartTime is 01:00Z, then the MaintainEndTime must be 02:00Z. 
- BackupInterval string
- The frequency at which high-frequency backups are created. Valid values: -1,15,30,60,120,180,240,360,480,720.
- BackupPeriods 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].
- BackupRetention intPeriod 
- The retention period of full backups.
- BackupRetention intPolicy On Cluster Deletion 
- The backup retention policy configured for the instance. Valid values:
- BackupTime 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".
- CloudDisk stringEncryption Key 
- The ID of the encryption key.
- DbInstance stringClass 
- Instance specification. see Instance specifications.
- DbInstance intStorage 
- User-defined DB instance storage space.Unit: GB. Value range:- Custom storage space.
- 10-GB increments.
 
- EffectiveTime string
- The time when the changed configurations take effect. Valid values: Immediately,MaintainTime.
- EnableBackup intLog 
- Specifies whether to enable the log backup feature. Valid values:
- Encrypted bool
- Whether to enable cloud disk encryption. Default value: false. Valid values:true,false.
- EncryptionKey string
- The ID of the custom key.
- EncryptorName string
- The encryption method. NOTE: encryptor_nameis valid only whentde_statusis set toenabled.
- EngineVersion string
- Database version. Value options can refer to the latest docs CreateDBInstance EngineVersion. NOTE: From version 1.225.0,engine_versioncan be modified.
- string
- Configure the zone where the hidden node is located to deploy multiple zones. NOTE: This parameter value cannot be the same as zone_idandsecondary_zone_idparameter values.
- InstanceCharge stringType 
- The billing method of the instance. Default value: PostPaid. Valid values:PrePaid,PostPaid. NOTE: It can be modified fromPostPaidtoPrePaidafter version 1.63.0.
- KmsEncrypted stringPassword 
- An KMS encrypts password used to a instance. If the account_passwordis filled in, this field will be ignored.
- KmsEncryption Dictionary<string, string>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.
- LogBackup intRetention Period 
- The number of days for which log backups are retained. Valid values: 7to730. NOTE:log_backup_retention_periodis valid only whenenable_backup_logis set to1.
- MaintainEnd stringTime 
- The end time of the operation and maintenance time period of the instance, in the format of HH:mmZ (UTC time).
- MaintainStart 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 must be 2 to 256 characters in length.
- NetworkType string
- The network type of the instance. Valid values:Classic,VPC.
- OrderType string
- The type of configuration changes performed. Default value: DOWNGRADE. Valid values:- UPGRADE: The specifications are upgraded.
- DOWNGRADE: The specifications are downgraded. NOTE:- order_typeis only applicable to instances when- instance_charge_typeis- PrePaid.
 
- Parameters
List<Pulumi.Ali Cloud. Mongo DB. Inputs. Instance Parameter> 
- Set of parameters needs to be set after mongodb instance was launched. See parametersbelow.
- Period int
- The duration that you will buy DB instance (in month). It is valid when instance_charge_typeisPrePaid. Default value:1. Valid values: [1~9], 12, 24, 36.
- ProvisionedIops int
- The provisioned IOPS. Valid values: 0to50000.
- ReadonlyReplicas int
- The number of read-only nodes in the replica set instance. Default value: 0. Valid values: 0 to 5.
- ReplicaSet stringName 
- The name of the mongo replica set.
- ReplicaSets List<Pulumi.Ali Cloud. Mongo DB. Inputs. Instance Replica Set> 
- Replica set instance information.
- ReplicationFactor int
- Number of replica set nodes. Valid values: 1,3,5,7.
- ResourceGroup stringId 
- The ID of the Resource Group.
- RetentionPeriod int
- Instance data backup retention days. Available since v1.42.0.
- RoleArn string
- The Alibaba Cloud Resource Name (ARN) of the specified Resource Access Management (RAM) role.
- SecondaryZone stringId 
- Configure the available area where the slave node (Secondary node) is located to realize multi-available area deployment. NOTE: This parameter value cannot be the same as zone_idandhidden_zone_idparameter values.
- SecurityGroup stringId 
- The Security Group ID of ECS.
- SecurityIp 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]).
- SnapshotBackup stringType 
- The snapshot backup type. Default value: Standard. Valid values:- Standard: standard backup.
- Flash: single-digit second backup.
 
- SslAction string
- Actions performed on SSL functions. Valid values:- Open: turn on SSL encryption.
- Close: turn off SSL encryption.
- Update: update SSL certificate.
 
- SslStatus string
- Status of the SSL feature.
- StorageEngine string
- The storage engine of the instance. Default value: WiredTiger. Valid values:WiredTiger,RocksDB.
- StorageType string
- The storage type of the instance. Valid values: cloud_essd1,cloud_essd2,cloud_essd3,cloud_auto,local_ssd. NOTE: From version 1.229.0,storage_typecan be modified. However,storage_typecan only be modified tocloud_auto.
- Dictionary<string, string>
- A mapping of tags to assign to the resource.
- TdeStatus string
- The TDE(Transparent Data Encryption) status. Valid values: enabled.
- VpcId string
- The ID of the VPC. > NOTE: vpc_idis valid only whennetwork_typeis set toVPC.
- VswitchId string
- The virtual switch ID to launch DB instances in one VPC.
- ZoneId 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.
- AccountPassword string
- Password of the root account. It is a string of 6 to 32 characters and is composed of letters, numbers, and underlines.
- AutoRenew bool
- Auto renew for prepaid. Default value: - false. Valid values:- true,- false.- NOTE: The start time to the end time must be 1 hour. For example, the MaintainStartTime is 01:00Z, then the MaintainEndTime must be 02:00Z. 
- BackupInterval string
- The frequency at which high-frequency backups are created. Valid values: -1,15,30,60,120,180,240,360,480,720.
- BackupPeriods []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].
- BackupRetention intPeriod 
- The retention period of full backups.
- BackupRetention intPolicy On Cluster Deletion 
- The backup retention policy configured for the instance. Valid values:
- BackupTime 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".
- CloudDisk stringEncryption Key 
- The ID of the encryption key.
- DbInstance stringClass 
- Instance specification. see Instance specifications.
- DbInstance intStorage 
- User-defined DB instance storage space.Unit: GB. Value range:- Custom storage space.
- 10-GB increments.
 
- EffectiveTime string
- The time when the changed configurations take effect. Valid values: Immediately,MaintainTime.
- EnableBackup intLog 
- Specifies whether to enable the log backup feature. Valid values:
- Encrypted bool
- Whether to enable cloud disk encryption. Default value: false. Valid values:true,false.
- EncryptionKey string
- The ID of the custom key.
- EncryptorName string
- The encryption method. NOTE: encryptor_nameis valid only whentde_statusis set toenabled.
- EngineVersion string
- Database version. Value options can refer to the latest docs CreateDBInstance EngineVersion. NOTE: From version 1.225.0,engine_versioncan be modified.
- string
- Configure the zone where the hidden node is located to deploy multiple zones. NOTE: This parameter value cannot be the same as zone_idandsecondary_zone_idparameter values.
- InstanceCharge stringType 
- The billing method of the instance. Default value: PostPaid. Valid values:PrePaid,PostPaid. NOTE: It can be modified fromPostPaidtoPrePaidafter version 1.63.0.
- KmsEncrypted stringPassword 
- An KMS encrypts password used to a instance. If the account_passwordis filled in, this field will be ignored.
- KmsEncryption map[string]stringContext 
- 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.
- LogBackup intRetention Period 
- The number of days for which log backups are retained. Valid values: 7to730. NOTE:log_backup_retention_periodis valid only whenenable_backup_logis set to1.
- MaintainEnd stringTime 
- The end time of the operation and maintenance time period of the instance, in the format of HH:mmZ (UTC time).
- MaintainStart 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 must be 2 to 256 characters in length.
- NetworkType string
- The network type of the instance. Valid values:Classic,VPC.
- OrderType string
- The type of configuration changes performed. Default value: DOWNGRADE. Valid values:- UPGRADE: The specifications are upgraded.
- DOWNGRADE: The specifications are downgraded. NOTE:- order_typeis only applicable to instances when- instance_charge_typeis- PrePaid.
 
- Parameters
[]InstanceParameter Args 
- Set of parameters needs to be set after mongodb instance was launched. See parametersbelow.
- Period int
- The duration that you will buy DB instance (in month). It is valid when instance_charge_typeisPrePaid. Default value:1. Valid values: [1~9], 12, 24, 36.
- ProvisionedIops int
- The provisioned IOPS. Valid values: 0to50000.
- ReadonlyReplicas int
- The number of read-only nodes in the replica set instance. Default value: 0. Valid values: 0 to 5.
- ReplicaSet stringName 
- The name of the mongo replica set.
- ReplicaSets []InstanceReplica Set Args 
- Replica set instance information.
- ReplicationFactor int
- Number of replica set nodes. Valid values: 1,3,5,7.
- ResourceGroup stringId 
- The ID of the Resource Group.
- RetentionPeriod int
- Instance data backup retention days. Available since v1.42.0.
- RoleArn string
- The Alibaba Cloud Resource Name (ARN) of the specified Resource Access Management (RAM) role.
- SecondaryZone stringId 
- Configure the available area where the slave node (Secondary node) is located to realize multi-available area deployment. NOTE: This parameter value cannot be the same as zone_idandhidden_zone_idparameter values.
- SecurityGroup stringId 
- The Security Group ID of ECS.
- SecurityIp []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]).
- SnapshotBackup stringType 
- The snapshot backup type. Default value: Standard. Valid values:- Standard: standard backup.
- Flash: single-digit second backup.
 
- SslAction string
- Actions performed on SSL functions. Valid values:- Open: turn on SSL encryption.
- Close: turn off SSL encryption.
- Update: update SSL certificate.
 
- SslStatus string
- Status of the SSL feature.
- StorageEngine string
- The storage engine of the instance. Default value: WiredTiger. Valid values:WiredTiger,RocksDB.
- StorageType string
- The storage type of the instance. Valid values: cloud_essd1,cloud_essd2,cloud_essd3,cloud_auto,local_ssd. NOTE: From version 1.229.0,storage_typecan be modified. However,storage_typecan only be modified tocloud_auto.
- map[string]string
- A mapping of tags to assign to the resource.
- TdeStatus string
- The TDE(Transparent Data Encryption) status. Valid values: enabled.
- VpcId string
- The ID of the VPC. > NOTE: vpc_idis valid only whennetwork_typeis set toVPC.
- VswitchId string
- The virtual switch ID to launch DB instances in one VPC.
- ZoneId 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.
- accountPassword String
- Password of the root account. It is a string of 6 to 32 characters and is composed of letters, numbers, and underlines.
- autoRenew Boolean
- Auto renew for prepaid. Default value: - false. Valid values:- true,- false.- NOTE: The start time to the end time must be 1 hour. For example, the MaintainStartTime is 01:00Z, then the MaintainEndTime must be 02:00Z. 
- backupInterval String
- The frequency at which high-frequency backups are created. Valid values: -1,15,30,60,120,180,240,360,480,720.
- backupPeriods 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].
- backupRetention IntegerPeriod 
- The retention period of full backups.
- backupRetention IntegerPolicy On Cluster Deletion 
- The backup retention policy configured for the instance. Valid values:
- backupTime 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".
- cloudDisk StringEncryption Key 
- The ID of the encryption key.
- dbInstance StringClass 
- Instance specification. see Instance specifications.
- dbInstance IntegerStorage 
- User-defined DB instance storage space.Unit: GB. Value range:- Custom storage space.
- 10-GB increments.
 
- effectiveTime String
- The time when the changed configurations take effect. Valid values: Immediately,MaintainTime.
- enableBackup IntegerLog 
- Specifies whether to enable the log backup feature. Valid values:
- encrypted Boolean
- Whether to enable cloud disk encryption. Default value: false. Valid values:true,false.
- encryptionKey String
- The ID of the custom key.
- encryptorName String
- The encryption method. NOTE: encryptor_nameis valid only whentde_statusis set toenabled.
- engineVersion String
- Database version. Value options can refer to the latest docs CreateDBInstance EngineVersion. NOTE: From version 1.225.0,engine_versioncan be modified.
- String
- Configure the zone where the hidden node is located to deploy multiple zones. NOTE: This parameter value cannot be the same as zone_idandsecondary_zone_idparameter values.
- instanceCharge StringType 
- The billing method of the instance. Default value: PostPaid. Valid values:PrePaid,PostPaid. NOTE: It can be modified fromPostPaidtoPrePaidafter version 1.63.0.
- kmsEncrypted StringPassword 
- An KMS encrypts password used to a instance. If the account_passwordis filled in, this field will be ignored.
- kmsEncryption Map<String,String>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.
- logBackup IntegerRetention Period 
- The number of days for which log backups are retained. Valid values: 7to730. NOTE:log_backup_retention_periodis valid only whenenable_backup_logis set to1.
- maintainEnd StringTime 
- The end time of the operation and maintenance time period of the instance, in the format of HH:mmZ (UTC time).
- maintainStart 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 must be 2 to 256 characters in length.
- networkType String
- The network type of the instance. Valid values:Classic,VPC.
- orderType String
- The type of configuration changes performed. Default value: DOWNGRADE. Valid values:- UPGRADE: The specifications are upgraded.
- DOWNGRADE: The specifications are downgraded. NOTE:- order_typeis only applicable to instances when- instance_charge_typeis- PrePaid.
 
- parameters
List<InstanceParameter> 
- Set of parameters needs to be set after mongodb instance was launched. See parametersbelow.
- period Integer
- The duration that you will buy DB instance (in month). It is valid when instance_charge_typeisPrePaid. Default value:1. Valid values: [1~9], 12, 24, 36.
- provisionedIops Integer
- The provisioned IOPS. Valid values: 0to50000.
- readonlyReplicas Integer
- The number of read-only nodes in the replica set instance. Default value: 0. Valid values: 0 to 5.
- replicaSet StringName 
- The name of the mongo replica set.
- replicaSets List<InstanceReplica Set> 
- Replica set instance information.
- replicationFactor Integer
- Number of replica set nodes. Valid values: 1,3,5,7.
- resourceGroup StringId 
- The ID of the Resource Group.
- retentionPeriod Integer
- Instance data backup retention days. Available since v1.42.0.
- roleArn String
- The Alibaba Cloud Resource Name (ARN) of the specified Resource Access Management (RAM) role.
- secondaryZone StringId 
- Configure the available area where the slave node (Secondary node) is located to realize multi-available area deployment. NOTE: This parameter value cannot be the same as zone_idandhidden_zone_idparameter values.
- securityGroup StringId 
- The Security Group ID of ECS.
- securityIp 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]).
- snapshotBackup StringType 
- The snapshot backup type. Default value: Standard. Valid values:- Standard: standard backup.
- Flash: single-digit second backup.
 
- sslAction String
- Actions performed on SSL functions. Valid values:- Open: turn on SSL encryption.
- Close: turn off SSL encryption.
- Update: update SSL certificate.
 
- sslStatus String
- Status of the SSL feature.
- storageEngine String
- The storage engine of the instance. Default value: WiredTiger. Valid values:WiredTiger,RocksDB.
- storageType String
- The storage type of the instance. Valid values: cloud_essd1,cloud_essd2,cloud_essd3,cloud_auto,local_ssd. NOTE: From version 1.229.0,storage_typecan be modified. However,storage_typecan only be modified tocloud_auto.
- Map<String,String>
- A mapping of tags to assign to the resource.
- tdeStatus String
- The TDE(Transparent Data Encryption) status. Valid values: enabled.
- vpcId String
- The ID of the VPC. > NOTE: vpc_idis valid only whennetwork_typeis set toVPC.
- vswitchId String
- The virtual switch ID to launch DB instances in one VPC.
- zoneId 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.
- accountPassword string
- Password of the root account. It is a string of 6 to 32 characters and is composed of letters, numbers, and underlines.
- autoRenew boolean
- Auto renew for prepaid. Default value: - false. Valid values:- true,- false.- NOTE: The start time to the end time must be 1 hour. For example, the MaintainStartTime is 01:00Z, then the MaintainEndTime must be 02:00Z. 
- backupInterval string
- The frequency at which high-frequency backups are created. Valid values: -1,15,30,60,120,180,240,360,480,720.
- backupPeriods 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].
- backupRetention numberPeriod 
- The retention period of full backups.
- backupRetention numberPolicy On Cluster Deletion 
- The backup retention policy configured for the instance. Valid values:
- backupTime 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".
- cloudDisk stringEncryption Key 
- The ID of the encryption key.
- dbInstance stringClass 
- Instance specification. see Instance specifications.
- dbInstance numberStorage 
- User-defined DB instance storage space.Unit: GB. Value range:- Custom storage space.
- 10-GB increments.
 
- effectiveTime string
- The time when the changed configurations take effect. Valid values: Immediately,MaintainTime.
- enableBackup numberLog 
- Specifies whether to enable the log backup feature. Valid values:
- encrypted boolean
- Whether to enable cloud disk encryption. Default value: false. Valid values:true,false.
- encryptionKey string
- The ID of the custom key.
- encryptorName string
- The encryption method. NOTE: encryptor_nameis valid only whentde_statusis set toenabled.
- engineVersion string
- Database version. Value options can refer to the latest docs CreateDBInstance EngineVersion. NOTE: From version 1.225.0,engine_versioncan be modified.
- string
- Configure the zone where the hidden node is located to deploy multiple zones. NOTE: This parameter value cannot be the same as zone_idandsecondary_zone_idparameter values.
- instanceCharge stringType 
- The billing method of the instance. Default value: PostPaid. Valid values:PrePaid,PostPaid. NOTE: It can be modified fromPostPaidtoPrePaidafter version 1.63.0.
- kmsEncrypted stringPassword 
- An KMS encrypts password used to a instance. If the account_passwordis filled in, this field will be ignored.
- kmsEncryption {[key: string]: string}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.
- logBackup numberRetention Period 
- The number of days for which log backups are retained. Valid values: 7to730. NOTE:log_backup_retention_periodis valid only whenenable_backup_logis set to1.
- maintainEnd stringTime 
- The end time of the operation and maintenance time period of the instance, in the format of HH:mmZ (UTC time).
- maintainStart 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 must be 2 to 256 characters in length.
- networkType string
- The network type of the instance. Valid values:Classic,VPC.
- orderType string
- The type of configuration changes performed. Default value: DOWNGRADE. Valid values:- UPGRADE: The specifications are upgraded.
- DOWNGRADE: The specifications are downgraded. NOTE:- order_typeis only applicable to instances when- instance_charge_typeis- PrePaid.
 
- parameters
InstanceParameter[] 
- Set of parameters needs to be set after mongodb instance was launched. See parametersbelow.
- period number
- The duration that you will buy DB instance (in month). It is valid when instance_charge_typeisPrePaid. Default value:1. Valid values: [1~9], 12, 24, 36.
- provisionedIops number
- The provisioned IOPS. Valid values: 0to50000.
- readonlyReplicas number
- The number of read-only nodes in the replica set instance. Default value: 0. Valid values: 0 to 5.
- replicaSet stringName 
- The name of the mongo replica set.
- replicaSets InstanceReplica Set[] 
- Replica set instance information.
- replicationFactor number
- Number of replica set nodes. Valid values: 1,3,5,7.
- resourceGroup stringId 
- The ID of the Resource Group.
- retentionPeriod number
- Instance data backup retention days. Available since v1.42.0.
- roleArn string
- The Alibaba Cloud Resource Name (ARN) of the specified Resource Access Management (RAM) role.
- secondaryZone stringId 
- Configure the available area where the slave node (Secondary node) is located to realize multi-available area deployment. NOTE: This parameter value cannot be the same as zone_idandhidden_zone_idparameter values.
- securityGroup stringId 
- The Security Group ID of ECS.
- securityIp 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]).
- snapshotBackup stringType 
- The snapshot backup type. Default value: Standard. Valid values:- Standard: standard backup.
- Flash: single-digit second backup.
 
- sslAction string
- Actions performed on SSL functions. Valid values:- Open: turn on SSL encryption.
- Close: turn off SSL encryption.
- Update: update SSL certificate.
 
- sslStatus string
- Status of the SSL feature.
- storageEngine string
- The storage engine of the instance. Default value: WiredTiger. Valid values:WiredTiger,RocksDB.
- storageType string
- The storage type of the instance. Valid values: cloud_essd1,cloud_essd2,cloud_essd3,cloud_auto,local_ssd. NOTE: From version 1.229.0,storage_typecan be modified. However,storage_typecan only be modified tocloud_auto.
- {[key: string]: string}
- A mapping of tags to assign to the resource.
- tdeStatus string
- The TDE(Transparent Data Encryption) status. Valid values: enabled.
- vpcId string
- The ID of the VPC. > NOTE: vpc_idis valid only whennetwork_typeis set toVPC.
- vswitchId string
- The virtual switch ID to launch DB instances in one VPC.
- zoneId 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.
- auto_renew bool
- Auto renew for prepaid. Default value: - false. Valid values:- true,- false.- NOTE: The start time to the end time must be 1 hour. For example, the MaintainStartTime is 01:00Z, then the MaintainEndTime must be 02:00Z. 
- backup_interval str
- The frequency at which high-frequency backups are created. Valid values: -1,15,30,60,120,180,240,360,480,720.
- backup_periods Sequence[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_retention_ intperiod 
- The retention period of full backups.
- backup_retention_ intpolicy_ on_ cluster_ deletion 
- The backup retention policy configured for the instance. Valid values:
- 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".
- cloud_disk_ strencryption_ key 
- The ID of the encryption key.
- db_instance_ strclass 
- Instance specification. see Instance specifications.
- db_instance_ intstorage 
- User-defined DB instance storage space.Unit: GB. Value range:- Custom storage space.
- 10-GB increments.
 
- effective_time str
- The time when the changed configurations take effect. Valid values: Immediately,MaintainTime.
- enable_backup_ intlog 
- Specifies whether to enable the log backup feature. Valid values:
- encrypted bool
- Whether to enable cloud disk encryption. Default value: false. Valid values:true,false.
- encryption_key str
- The ID of the custom key.
- encryptor_name str
- The encryption method. NOTE: encryptor_nameis valid only whentde_statusis set toenabled.
- engine_version str
- Database version. Value options can refer to the latest docs CreateDBInstance EngineVersion. NOTE: From version 1.225.0,engine_versioncan be modified.
- str
- Configure the zone where the hidden node is located to deploy multiple zones. NOTE: This parameter value cannot be the same as zone_idandsecondary_zone_idparameter values.
- instance_charge_ strtype 
- The billing method of the instance. Default value: PostPaid. Valid values:PrePaid,PostPaid. NOTE: 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_ Mapping[str, str]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.
- log_backup_ intretention_ period 
- The number of days for which log backups are retained. Valid values: 7to730. NOTE:log_backup_retention_periodis valid only whenenable_backup_logis set to1.
- 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 must be 2 to 256 characters in length.
- network_type str
- The network type of the instance. Valid values:Classic,VPC.
- order_type str
- The type of configuration changes performed. Default value: DOWNGRADE. Valid values:- UPGRADE: The specifications are upgraded.
- DOWNGRADE: The specifications are downgraded. NOTE:- order_typeis only applicable to instances when- instance_charge_typeis- PrePaid.
 
- parameters
Sequence[InstanceParameter Args] 
- Set of parameters needs to be set after mongodb instance was launched. See parametersbelow.
- period int
- The duration that you will buy DB instance (in month). It is valid when instance_charge_typeisPrePaid. Default value:1. Valid values: [1~9], 12, 24, 36.
- provisioned_iops int
- The provisioned IOPS. Valid values: 0to50000.
- readonly_replicas int
- The number of read-only nodes in the replica set instance. Default value: 0. Valid values: 0 to 5.
- replica_set_ strname 
- The name of the mongo replica set.
- replica_sets Sequence[InstanceReplica Set Args] 
- Replica set instance information.
- replication_factor int
- Number of replica set nodes. Valid values: 1,3,5,7.
- resource_group_ strid 
- The ID of the Resource Group.
- retention_period int
- Instance data backup retention days. Available since v1.42.0.
- role_arn str
- The Alibaba Cloud Resource Name (ARN) of the specified Resource Access Management (RAM) role.
- secondary_zone_ strid 
- Configure the available area where the slave node (Secondary node) is located to realize multi-available area deployment. NOTE: This parameter value cannot be the same as zone_idandhidden_zone_idparameter values.
- security_group_ strid 
- The Security Group ID of ECS.
- security_ip_ Sequence[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]).
- snapshot_backup_ strtype 
- The snapshot backup type. Default value: Standard. Valid values:- Standard: standard backup.
- Flash: single-digit second backup.
 
- 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.
- storage_engine str
- The storage engine of the instance. Default value: WiredTiger. Valid values:WiredTiger,RocksDB.
- storage_type str
- The storage type of the instance. Valid values: cloud_essd1,cloud_essd2,cloud_essd3,cloud_auto,local_ssd. NOTE: From version 1.229.0,storage_typecan be modified. However,storage_typecan only be modified tocloud_auto.
- Mapping[str, str]
- A mapping of tags to assign to the resource.
- tde_status str
- The TDE(Transparent Data Encryption) status. Valid values: enabled.
- vpc_id str
- The ID of the VPC. > NOTE: vpc_idis valid only whennetwork_typeis set toVPC.
- 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.
- accountPassword String
- Password of the root account. It is a string of 6 to 32 characters and is composed of letters, numbers, and underlines.
- autoRenew Boolean
- Auto renew for prepaid. Default value: - false. Valid values:- true,- false.- NOTE: The start time to the end time must be 1 hour. For example, the MaintainStartTime is 01:00Z, then the MaintainEndTime must be 02:00Z. 
- backupInterval String
- The frequency at which high-frequency backups are created. Valid values: -1,15,30,60,120,180,240,360,480,720.
- backupPeriods 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].
- backupRetention NumberPeriod 
- The retention period of full backups.
- backupRetention NumberPolicy On Cluster Deletion 
- The backup retention policy configured for the instance. Valid values:
- backupTime 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".
- cloudDisk StringEncryption Key 
- The ID of the encryption key.
- dbInstance StringClass 
- Instance specification. see Instance specifications.
- dbInstance NumberStorage 
- User-defined DB instance storage space.Unit: GB. Value range:- Custom storage space.
- 10-GB increments.
 
- effectiveTime String
- The time when the changed configurations take effect. Valid values: Immediately,MaintainTime.
- enableBackup NumberLog 
- Specifies whether to enable the log backup feature. Valid values:
- encrypted Boolean
- Whether to enable cloud disk encryption. Default value: false. Valid values:true,false.
- encryptionKey String
- The ID of the custom key.
- encryptorName String
- The encryption method. NOTE: encryptor_nameis valid only whentde_statusis set toenabled.
- engineVersion String
- Database version. Value options can refer to the latest docs CreateDBInstance EngineVersion. NOTE: From version 1.225.0,engine_versioncan be modified.
- String
- Configure the zone where the hidden node is located to deploy multiple zones. NOTE: This parameter value cannot be the same as zone_idandsecondary_zone_idparameter values.
- instanceCharge StringType 
- The billing method of the instance. Default value: PostPaid. Valid values:PrePaid,PostPaid. NOTE: It can be modified fromPostPaidtoPrePaidafter version 1.63.0.
- kmsEncrypted StringPassword 
- An KMS encrypts password used to a instance. If the account_passwordis filled in, this field will be ignored.
- kmsEncryption Map<String>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.
- logBackup NumberRetention Period 
- The number of days for which log backups are retained. Valid values: 7to730. NOTE:log_backup_retention_periodis valid only whenenable_backup_logis set to1.
- maintainEnd StringTime 
- The end time of the operation and maintenance time period of the instance, in the format of HH:mmZ (UTC time).
- maintainStart 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 must be 2 to 256 characters in length.
- networkType String
- The network type of the instance. Valid values:Classic,VPC.
- orderType String
- The type of configuration changes performed. Default value: DOWNGRADE. Valid values:- UPGRADE: The specifications are upgraded.
- DOWNGRADE: The specifications are downgraded. NOTE:- order_typeis only applicable to instances when- instance_charge_typeis- PrePaid.
 
- parameters List<Property Map>
- Set of parameters needs to be set after mongodb instance was launched. See parametersbelow.
- period Number
- The duration that you will buy DB instance (in month). It is valid when instance_charge_typeisPrePaid. Default value:1. Valid values: [1~9], 12, 24, 36.
- provisionedIops Number
- The provisioned IOPS. Valid values: 0to50000.
- readonlyReplicas Number
- The number of read-only nodes in the replica set instance. Default value: 0. Valid values: 0 to 5.
- replicaSet StringName 
- The name of the mongo replica set.
- replicaSets List<Property Map>
- Replica set instance information.
- replicationFactor Number
- Number of replica set nodes. Valid values: 1,3,5,7.
- resourceGroup StringId 
- The ID of the Resource Group.
- retentionPeriod Number
- Instance data backup retention days. Available since v1.42.0.
- roleArn String
- The Alibaba Cloud Resource Name (ARN) of the specified Resource Access Management (RAM) role.
- secondaryZone StringId 
- Configure the available area where the slave node (Secondary node) is located to realize multi-available area deployment. NOTE: This parameter value cannot be the same as zone_idandhidden_zone_idparameter values.
- securityGroup StringId 
- The Security Group ID of ECS.
- securityIp 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]).
- snapshotBackup StringType 
- The snapshot backup type. Default value: Standard. Valid values:- Standard: standard backup.
- Flash: single-digit second backup.
 
- sslAction String
- Actions performed on SSL functions. Valid values:- Open: turn on SSL encryption.
- Close: turn off SSL encryption.
- Update: update SSL certificate.
 
- sslStatus String
- Status of the SSL feature.
- storageEngine String
- The storage engine of the instance. Default value: WiredTiger. Valid values:WiredTiger,RocksDB.
- storageType String
- The storage type of the instance. Valid values: cloud_essd1,cloud_essd2,cloud_essd3,cloud_auto,local_ssd. NOTE: From version 1.229.0,storage_typecan be modified. However,storage_typecan only be modified tocloud_auto.
- Map<String>
- A mapping of tags to assign to the resource.
- tdeStatus String
- The TDE(Transparent Data Encryption) status. Valid values: enabled.
- vpcId String
- The ID of the VPC. > NOTE: vpc_idis valid only whennetwork_typeis set toVPC.
- vswitchId String
- The virtual switch ID to launch DB instances in one VPC.
- zoneId 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.
Supporting Types
InstanceParameter, InstanceParameterArgs    
InstanceReplicaSet, InstanceReplicaSetArgs      
- ConnectionDomain string
- The connection address of the node.
- ConnectionPort string
- The connection port of the node.
- NetworkType string
- The network type of the instance. Valid values:Classic,VPC.
- ReplicaSet stringRole 
- The role of the node.
- VpcCloud stringInstance Id 
- VPC instance ID.
- VpcId string
- The ID of the VPC. > NOTE: vpc_idis valid only whennetwork_typeis set toVPC.
- VswitchId string
- The virtual switch ID to launch DB instances in one VPC.
- ConnectionDomain string
- The connection address of the node.
- ConnectionPort string
- The connection port of the node.
- NetworkType string
- The network type of the instance. Valid values:Classic,VPC.
- ReplicaSet stringRole 
- The role of the node.
- VpcCloud stringInstance Id 
- VPC instance ID.
- VpcId string
- The ID of the VPC. > NOTE: vpc_idis valid only whennetwork_typeis set toVPC.
- VswitchId string
- The virtual switch ID to launch DB instances in one VPC.
- connectionDomain String
- The connection address of the node.
- connectionPort String
- The connection port of the node.
- networkType String
- The network type of the instance. Valid values:Classic,VPC.
- replicaSet StringRole 
- The role of the node.
- vpcCloud StringInstance Id 
- VPC instance ID.
- vpcId String
- The ID of the VPC. > NOTE: vpc_idis valid only whennetwork_typeis set toVPC.
- vswitchId String
- The virtual switch ID to launch DB instances in one VPC.
- connectionDomain string
- The connection address of the node.
- connectionPort string
- The connection port of the node.
- networkType string
- The network type of the instance. Valid values:Classic,VPC.
- replicaSet stringRole 
- The role of the node.
- vpcCloud stringInstance Id 
- VPC instance ID.
- vpcId string
- The ID of the VPC. > NOTE: vpc_idis valid only whennetwork_typeis set toVPC.
- vswitchId string
- The virtual switch ID to launch DB instances in one VPC.
- connection_domain str
- The connection address of the node.
- connection_port str
- The connection port of the node.
- network_type str
- The network type of the instance. Valid values:Classic,VPC.
- replica_set_ strrole 
- The role of the node.
- vpc_cloud_ strinstance_ id 
- VPC instance ID.
- vpc_id str
- The ID of the VPC. > NOTE: vpc_idis valid only whennetwork_typeis set toVPC.
- vswitch_id str
- The virtual switch ID to launch DB instances in one VPC.
- connectionDomain String
- The connection address of the node.
- connectionPort String
- The connection port of the node.
- networkType String
- The network type of the instance. Valid values:Classic,VPC.
- replicaSet StringRole 
- The role of the node.
- vpcCloud StringInstance Id 
- VPC instance ID.
- vpcId String
- The ID of the VPC. > NOTE: vpc_idis valid only whennetwork_typeis set toVPC.
- vswitchId String
- The virtual switch ID to launch DB instances in one VPC.
Import
MongoDB instance can be imported using the id, e.g.
$ pulumi import alicloud:mongodb/instance:Instance example dds-bp1291daeda44194
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Alibaba Cloud pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the alicloudTerraform Provider.