DBClusterLakeVersionArgs

data class DBClusterLakeVersionArgs(val backupSetId: Output<String>? = null, val computeResource: Output<String>? = null, val dbClusterDescription: Output<String>? = null, val dbClusterVersion: Output<String>? = null, val enableDefaultResourceGroup: Output<Boolean>? = null, val paymentType: Output<String>? = null, val resourceGroupId: Output<String>? = null, val restoreToTime: Output<String>? = null, val restoreType: Output<String>? = null, val securityIps: Output<String>? = null, val sourceDbClusterId: Output<String>? = null, val storageResource: Output<String>? = null, val vpcId: Output<String>? = null, val vswitchId: Output<String>? = null, val zoneId: Output<String>? = null) : ConvertibleToJava<DBClusterLakeVersionArgs>

Provides a AnalyticDB for MySQL (ADB) DB Cluster Lake Version resource. For information about AnalyticDB for MySQL (ADB) DB Cluster Lake Version and how to use it, see What is DB Cluster Lake Version.

NOTE: Available since v1.190.0.

Example Usage

Basic Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.adb.AdbFunctions;
import com.pulumi.alicloud.adb.inputs.GetZonesArgs;
import com.pulumi.alicloud.vpc.VpcFunctions;
import com.pulumi.alicloud.vpc.inputs.GetNetworksArgs;
import com.pulumi.alicloud.vpc.inputs.GetSwitchesArgs;
import com.pulumi.alicloud.adb.DBClusterLakeVersion;
import com.pulumi.alicloud.adb.DBClusterLakeVersionArgs;
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 defaultZones = AdbFunctions.getZones();
final var defaultNetworks = VpcFunctions.getNetworks(GetNetworksArgs.builder()
.nameRegex("^default-NODELETING$")
.build());
final var defaultSwitches = VpcFunctions.getSwitches(GetSwitchesArgs.builder()
.vpcId(defaultNetworks.applyValue(getNetworksResult -> getNetworksResult.ids()[0]))
.zoneId(defaultZones.applyValue(getZonesResult -> getZonesResult.ids()[0]))
.build());
var defaultDBClusterLakeVersion = new DBClusterLakeVersion("defaultDBClusterLakeVersion", DBClusterLakeVersionArgs.builder()
.dbClusterVersion("5.0")
.vpcId(defaultNetworks.applyValue(getNetworksResult -> getNetworksResult.ids()[0]))
.vswitchId(defaultSwitches.applyValue(getSwitchesResult -> getSwitchesResult.ids()[0]))
.zoneId(defaultZones.applyValue(getZonesResult -> getZonesResult.ids()[0]))
.computeResource("16ACU")
.storageResource("0ACU")
.paymentType("PayAsYouGo")
.enableDefaultResourceGroup(false)
.build());
}
}

Import

AnalyticDB for MySQL (ADB) DB Cluster Lake Version can be imported using the id, e.g.

$ pulumi import alicloud:adb/dBClusterLakeVersion:DBClusterLakeVersion example <id>

Constructors

Link copied to clipboard
fun DBClusterLakeVersionArgs(backupSetId: Output<String>? = null, computeResource: Output<String>? = null, dbClusterDescription: Output<String>? = null, dbClusterVersion: Output<String>? = null, enableDefaultResourceGroup: Output<Boolean>? = null, paymentType: Output<String>? = null, resourceGroupId: Output<String>? = null, restoreToTime: Output<String>? = null, restoreType: Output<String>? = null, securityIps: Output<String>? = null, sourceDbClusterId: Output<String>? = null, storageResource: Output<String>? = null, vpcId: Output<String>? = null, vswitchId: Output<String>? = null, zoneId: Output<String>? = null)

Functions

Link copied to clipboard
open override fun toJava(): DBClusterLakeVersionArgs

Properties

Link copied to clipboard
val backupSetId: Output<String>? = null

The ID of the backup set that you want to use to restore data.

Link copied to clipboard
val computeResource: Output<String>? = null

The computing resources of the cluster.

Link copied to clipboard
val dbClusterDescription: Output<String>? = null

The description of the cluster.

Link copied to clipboard
val dbClusterVersion: Output<String>? = null

The version of the cluster. Valid values: 5.0.

Link copied to clipboard
val enableDefaultResourceGroup: Output<Boolean>? = null

Whether to enable default allocation of resources to user_default resource groups.

Link copied to clipboard
val paymentType: Output<String>? = null

The payment type of the resource. Valid values: PayAsYouGo.

Link copied to clipboard
val resourceGroupId: Output<String>? = null

The ID of the resource group.

Link copied to clipboard
val restoreToTime: Output<String>? = null

The point in time to which you want to restore data from the backup set.

Link copied to clipboard
val restoreType: Output<String>? = null

The method that you want to use to restore data. Valid values:

Link copied to clipboard
val securityIps: Output<String>? = null

The IP addresses in an IP address whitelist of a cluster. Separate multiple IP addresses with commas (,). You can add a maximum of 500 different IP addresses to a whitelist. The entries in the IP address whitelist must be in one of the following formats:

Link copied to clipboard
val sourceDbClusterId: Output<String>? = null

The ID of the source AnalyticDB for MySQL Data Warehouse Edition cluster.

Link copied to clipboard
val storageResource: Output<String>? = null

The storage resources of the cluster.

Link copied to clipboard
val vpcId: Output<String>? = null

The vpc ID of the resource.

Link copied to clipboard
val vswitchId: Output<String>? = null

The ID of the vSwitch.

Link copied to clipboard
val zoneId: Output<String>? = null

The zone ID of the resource.