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 diskEncryption: Output<Boolean>? = null, val enableDefaultResourceGroup: Output<Boolean>? = null, val enableSsl: Output<Boolean>? = null, val kmsId: Output<String>? = null, val paymentType: Output<String>? = null, val period: Output<Int>? = null, val productForm: Output<String>? = null, val productVersion: Output<String>? = null, val reservedNodeCount: Output<Int>? = null, val reservedNodeSize: 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

import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
const _default = alicloud.adb.getZones({});
const defaultGetNetworks = alicloud.vpc.getNetworks({
nameRegex: "^default-NODELETING$",
});
const defaultGetSwitches = Promise.all([defaultGetNetworks, _default])&#46;then(([defaultGetNetworks, _default]) => alicloud.vpc.getSwitches({
vpcId: defaultGetNetworks.ids?.[0],
zoneId: _default.ids?.[0],
}));
const defaultDBClusterLakeVersion = new alicloud.adb.DBClusterLakeVersion("default", {
dbClusterVersion: "5.0",
vpcId: defaultGetNetworks.then(defaultGetNetworks => defaultGetNetworks.ids?.[0]),
vswitchId: defaultGetSwitches.then(defaultGetSwitches => defaultGetSwitches.ids?.[0]),
zoneId: _default.then(_default => _default.ids?.[0]),
computeResource: "16ACU",
storageResource: "0ACU",
paymentType: "PayAsYouGo",
enableDefaultResourceGroup: false,
});
import pulumi
import pulumi_alicloud as alicloud
default = alicloud.adb.get_zones()
default_get_networks = alicloud.vpc.get_networks(name_regex="^default-NODELETING$")
default_get_switches = alicloud.vpc.get_switches(vpc_id=default_get_networks.ids[0],
zone_id=default.ids[0])
default_db_cluster_lake_version = alicloud.adb.DBClusterLakeVersion("default",
db_cluster_version="5.0",
vpc_id=default_get_networks.ids[0],
vswitch_id=default_get_switches.ids[0],
zone_id=default.ids[0],
compute_resource="16ACU",
storage_resource="0ACU",
payment_type="PayAsYouGo",
enable_default_resource_group=False)
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AliCloud = Pulumi.AliCloud;
return await Deployment.RunAsync(() =>
{
var @default = AliCloud.Adb.GetZones.Invoke();
var defaultGetNetworks = AliCloud.Vpc.GetNetworks.Invoke(new()
{
NameRegex = "^default-NODELETING$",
});
var defaultGetSwitches = AliCloud.Vpc.GetSwitches.Invoke(new()
{
VpcId = defaultGetNetworks.Apply(getNetworksResult => getNetworksResult.Ids[0]),
ZoneId = @default.Apply(getZonesResult => getZonesResult.Ids[0]),
});
var defaultDBClusterLakeVersion = new AliCloud.Adb.DBClusterLakeVersion("default", new()
{
DbClusterVersion = "5.0",
VpcId = defaultGetNetworks.Apply(getNetworksResult => getNetworksResult.Ids[0]),
VswitchId = defaultGetSwitches.Apply(getSwitchesResult => getSwitchesResult.Ids[0]),
ZoneId = @default.Apply(@default => @default.Apply(getZonesResult => getZonesResult.Ids[0])),
ComputeResource = "16ACU",
StorageResource = "0ACU",
PaymentType = "PayAsYouGo",
EnableDefaultResourceGroup = false,
});
});
package main
import (
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/adb"
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/vpc"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_default, err := adb.GetZones(ctx, &adb.GetZonesArgs{}, nil)
if err != nil {
return err
}
defaultGetNetworks, err := vpc.GetNetworks(ctx, &vpc.GetNetworksArgs{
NameRegex: pulumi.StringRef("^default-NODELETING$"),
}, nil)
if err != nil {
return err
}
defaultGetSwitches, err := vpc.GetSwitches(ctx, &vpc.GetSwitchesArgs{
VpcId: pulumi.StringRef(defaultGetNetworks.Ids[0]),
ZoneId: pulumi.StringRef(_default.Ids[0]),
}, nil)
if err != nil {
return err
}
_, err = adb.NewDBClusterLakeVersion(ctx, "default", &adb.DBClusterLakeVersionArgs{
DbClusterVersion: pulumi.String("5.0"),
VpcId: pulumi.String(defaultGetNetworks.Ids[0]),
VswitchId: pulumi.String(defaultGetSwitches.Ids[0]),
ZoneId: pulumi.String(_default.Ids[0]),
ComputeResource: pulumi.String("16ACU"),
StorageResource: pulumi.String("0ACU"),
PaymentType: pulumi.String("PayAsYouGo"),
EnableDefaultResourceGroup: pulumi.Bool(false),
})
if err != nil {
return err
}
return nil
})
}
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 default = AdbFunctions.getZones();
final var defaultGetNetworks = VpcFunctions.getNetworks(GetNetworksArgs.builder()
.nameRegex("^default-NODELETING$")
.build());
final var defaultGetSwitches = VpcFunctions.getSwitches(GetSwitchesArgs.builder()
.vpcId(defaultGetNetworks.applyValue(getNetworksResult -> getNetworksResult.ids()[0]))
.zoneId(default_.ids()[0])
.build());
var defaultDBClusterLakeVersion = new DBClusterLakeVersion("defaultDBClusterLakeVersion", DBClusterLakeVersionArgs.builder()
.dbClusterVersion("5.0")
.vpcId(defaultGetNetworks.applyValue(getNetworksResult -> getNetworksResult.ids()[0]))
.vswitchId(defaultGetSwitches.applyValue(getSwitchesResult -> getSwitchesResult.ids()[0]))
.zoneId(default_.ids()[0])
.computeResource("16ACU")
.storageResource("0ACU")
.paymentType("PayAsYouGo")
.enableDefaultResourceGroup(false)
.build());
}
}
resources:
defaultDBClusterLakeVersion:
type: alicloud:adb:DBClusterLakeVersion
name: default
properties:
dbClusterVersion: '5.0'
vpcId: ${defaultGetNetworks.ids[0]}
vswitchId: ${defaultGetSwitches.ids[0]}
zoneId: ${default.ids[0]}
computeResource: 16ACU
storageResource: 0ACU
paymentType: PayAsYouGo
enableDefaultResourceGroup: false
variables:
default:
fn::invoke:
function: alicloud:adb:getZones
arguments: {}
defaultGetNetworks:
fn::invoke:
function: alicloud:vpc:getNetworks
arguments:
nameRegex: ^default-NODELETING$
defaultGetSwitches:
fn::invoke:
function: alicloud:vpc:getSwitches
arguments:
vpcId: ${defaultGetNetworks.ids[0]}
zoneId: ${default.ids[0]}

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
constructor(backupSetId: Output<String>? = null, computeResource: Output<String>? = null, dbClusterDescription: Output<String>? = null, dbClusterVersion: Output<String>? = null, diskEncryption: Output<Boolean>? = null, enableDefaultResourceGroup: Output<Boolean>? = null, enableSsl: Output<Boolean>? = null, kmsId: Output<String>? = null, paymentType: Output<String>? = null, period: Output<Int>? = null, productForm: Output<String>? = null, productVersion: Output<String>? = null, reservedNodeCount: Output<Int>? = null, reservedNodeSize: 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)

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 diskEncryption: Output<Boolean>? = null

Specifies whether to enable disk encryption. Valid values: true, false.

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 enableSsl: Output<Boolean>? = null

Specifies whether to enable SSL encryption. Valid values: true, false.

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

The ID of the key that is used to encrypt disk data. kms_id is valid only when disk_encryption is set to true.

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

The payment type of the resource. Valid values: PayAsYouGo, Subscription. NOTE: From version 1.245.0, payment_type can be set to Subscription.

Link copied to clipboard
val period: Output<Int>? = null

The subscription period of the subscription cluster. Valid values: 1 to 9, 12, 24, 36.

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

The product form of the cluster. Valid values:

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

The edition of the cluster. Valid values:

Link copied to clipboard
val reservedNodeCount: Output<Int>? = null

The number of reserved resource nodes.

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

The specifications of reserved resource nodes.

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.

Functions

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