DBClusterLakeVersion

class DBClusterLakeVersion : KotlinCustomResource

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]).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>

Properties

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

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

Link copied to clipboard
val commodityCode: Output<String>

The name of the service.

Link copied to clipboard
val computeResource: Output<String>

The computing resources of the cluster.

Link copied to clipboard

The endpoint of the cluster.

Link copied to clipboard
val createTime: Output<String>

The createTime of the cluster.

Link copied to clipboard

The description of the cluster.

Link copied to clipboard

The version of the cluster. Valid values: 5.0.

Link copied to clipboard
val diskEncryption: Output<Boolean>?

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

Link copied to clipboard

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

Link copied to clipboard
val enableSsl: Output<Boolean>?

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

Link copied to clipboard
val engine: Output<String>

The engine of the database.

Link copied to clipboard
val engineVersion: Output<String>

The engine version of the database.

Link copied to clipboard
val expired: Output<Boolean>

Indicates whether the cluster has expired.

Link copied to clipboard
val expireTime: Output<String>

The time when the cluster expires.

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

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 lockMode: Output<String>

The lock mode of the cluster.

Link copied to clipboard
val lockReason: Output<String>

The reason why the cluster is locked.

Link copied to clipboard
val paymentType: Output<String>

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>?

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

Link copied to clipboard
val port: Output<String>

The port that is used to access the cluster.

Link copied to clipboard
val productForm: Output<String>

The product form of the cluster. Valid values:

Link copied to clipboard
val productVersion: Output<String>

The edition of the cluster. Valid values:

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val reservedNodeCount: Output<Int>

The number of reserved resource nodes.

Link copied to clipboard

The specifications of reserved resource nodes.

Link copied to clipboard
val resourceGroupId: Output<String>

The ID of the resource group.

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

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

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

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

Link copied to clipboard
val securityIps: Output<String>

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

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

Link copied to clipboard
val status: Output<String>

The status of the resource.

Link copied to clipboard
val storageResource: Output<String>

The storage resources of the cluster.

Link copied to clipboard
val urn: Output<String>
Link copied to clipboard
val vpcId: Output<String>

The vpc ID of the resource.

Link copied to clipboard
val vswitchId: Output<String>

The ID of the vSwitch.

Link copied to clipboard
val zoneId: Output<String>

The zone ID of the resource.