alicloud.clickhouseenterprisedbcluster.ClickHouseEnterpriseDbCluster
Explore with Pulumi AI
Provides a Click House Enterprise D B Cluster resource.
Enterprise Edition Cluster Resources.
For information about Click House Enterprise D B Cluster and how to use it, see What is Enterprise D B Cluster.
NOTE: Available since v1.247.0.
Example Usage
Basic Usage
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 vswIpRangeI = config.get("vswIpRangeI") || "172.16.1.0/24";
const regionId = config.get("regionId") || "cn-beijing";
const vpcIpRange = config.get("vpcIpRange") || "172.16.0.0/12";
const vswIpRangeK = config.get("vswIpRangeK") || "172.16.3.0/24";
const vswIpRangeL = config.get("vswIpRangeL") || "172.16.2.0/24";
const zoneIdI = config.get("zoneIdI") || "cn-beijing-i";
const zoneIdL = config.get("zoneIdL") || "cn-beijing-l";
const zoneIdK = config.get("zoneIdK") || "cn-beijing-k";
const defaultktKLuM = new alicloud.vpc.Network("defaultktKLuM", {cidrBlock: vpcIpRange});
const defaultTQWN3k = new alicloud.vpc.Switch("defaultTQWN3k", {
vpcId: defaultktKLuM.id,
zoneId: zoneIdI,
cidrBlock: vswIpRangeI,
});
const defaultylyLu8 = new alicloud.vpc.Switch("defaultylyLu8", {
vpcId: defaultktKLuM.id,
zoneId: zoneIdL,
cidrBlock: vswIpRangeL,
});
const defaultRNbPh8 = new alicloud.vpc.Switch("defaultRNbPh8", {
vpcId: defaultktKLuM.id,
zoneId: zoneIdK,
cidrBlock: vswIpRangeK,
});
const _default = new alicloud.clickhouseenterprisedbcluster.ClickHouseEnterpriseDbCluster("default", {
zoneId: zoneIdI,
vpcId: defaultktKLuM.id,
scaleMin: "8",
scaleMax: "16",
vswitchId: defaultTQWN3k.id,
multiZones: [
{
vswitchIds: [defaultTQWN3k.id],
zoneId: zoneIdI,
},
{
vswitchIds: [defaultylyLu8.id],
zoneId: zoneIdL,
},
{
vswitchIds: [defaultRNbPh8.id],
zoneId: zoneIdK,
},
],
});
import pulumi
import pulumi_alicloud as alicloud
config = pulumi.Config()
name = config.get("name")
if name is None:
name = "terraform-example"
vsw_ip_range_i = config.get("vswIpRangeI")
if vsw_ip_range_i is None:
vsw_ip_range_i = "172.16.1.0/24"
region_id = config.get("regionId")
if region_id is None:
region_id = "cn-beijing"
vpc_ip_range = config.get("vpcIpRange")
if vpc_ip_range is None:
vpc_ip_range = "172.16.0.0/12"
vsw_ip_range_k = config.get("vswIpRangeK")
if vsw_ip_range_k is None:
vsw_ip_range_k = "172.16.3.0/24"
vsw_ip_range_l = config.get("vswIpRangeL")
if vsw_ip_range_l is None:
vsw_ip_range_l = "172.16.2.0/24"
zone_id_i = config.get("zoneIdI")
if zone_id_i is None:
zone_id_i = "cn-beijing-i"
zone_id_l = config.get("zoneIdL")
if zone_id_l is None:
zone_id_l = "cn-beijing-l"
zone_id_k = config.get("zoneIdK")
if zone_id_k is None:
zone_id_k = "cn-beijing-k"
defaultkt_k_lu_m = alicloud.vpc.Network("defaultktKLuM", cidr_block=vpc_ip_range)
default_tqwn3k = alicloud.vpc.Switch("defaultTQWN3k",
vpc_id=defaultkt_k_lu_m.id,
zone_id=zone_id_i,
cidr_block=vsw_ip_range_i)
defaultyly_lu8 = alicloud.vpc.Switch("defaultylyLu8",
vpc_id=defaultkt_k_lu_m.id,
zone_id=zone_id_l,
cidr_block=vsw_ip_range_l)
default_r_nb_ph8 = alicloud.vpc.Switch("defaultRNbPh8",
vpc_id=defaultkt_k_lu_m.id,
zone_id=zone_id_k,
cidr_block=vsw_ip_range_k)
default = alicloud.clickhouseenterprisedbcluster.ClickHouseEnterpriseDbCluster("default",
zone_id=zone_id_i,
vpc_id=defaultkt_k_lu_m.id,
scale_min="8",
scale_max="16",
vswitch_id=default_tqwn3k.id,
multi_zones=[
{
"vswitch_ids": [default_tqwn3k.id],
"zone_id": zone_id_i,
},
{
"vswitch_ids": [defaultyly_lu8.id],
"zone_id": zone_id_l,
},
{
"vswitch_ids": [default_r_nb_ph8.id],
"zone_id": zone_id_k,
},
])
package main
import (
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/clickhouseenterprisedbcluster"
"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
}
vswIpRangeI := "172.16.1.0/24"
if param := cfg.Get("vswIpRangeI"); param != "" {
vswIpRangeI = param
}
regionId := "cn-beijing"
if param := cfg.Get("regionId"); param != "" {
regionId = param
}
vpcIpRange := "172.16.0.0/12"
if param := cfg.Get("vpcIpRange"); param != "" {
vpcIpRange = param
}
vswIpRangeK := "172.16.3.0/24"
if param := cfg.Get("vswIpRangeK"); param != "" {
vswIpRangeK = param
}
vswIpRangeL := "172.16.2.0/24"
if param := cfg.Get("vswIpRangeL"); param != "" {
vswIpRangeL = param
}
zoneIdI := "cn-beijing-i"
if param := cfg.Get("zoneIdI"); param != "" {
zoneIdI = param
}
zoneIdL := "cn-beijing-l"
if param := cfg.Get("zoneIdL"); param != "" {
zoneIdL = param
}
zoneIdK := "cn-beijing-k"
if param := cfg.Get("zoneIdK"); param != "" {
zoneIdK = param
}
defaultktKLuM, err := vpc.NewNetwork(ctx, "defaultktKLuM", &vpc.NetworkArgs{
CidrBlock: pulumi.String(vpcIpRange),
})
if err != nil {
return err
}
defaultTQWN3k, err := vpc.NewSwitch(ctx, "defaultTQWN3k", &vpc.SwitchArgs{
VpcId: defaultktKLuM.ID(),
ZoneId: pulumi.String(zoneIdI),
CidrBlock: pulumi.String(vswIpRangeI),
})
if err != nil {
return err
}
defaultylyLu8, err := vpc.NewSwitch(ctx, "defaultylyLu8", &vpc.SwitchArgs{
VpcId: defaultktKLuM.ID(),
ZoneId: pulumi.String(zoneIdL),
CidrBlock: pulumi.String(vswIpRangeL),
})
if err != nil {
return err
}
defaultRNbPh8, err := vpc.NewSwitch(ctx, "defaultRNbPh8", &vpc.SwitchArgs{
VpcId: defaultktKLuM.ID(),
ZoneId: pulumi.String(zoneIdK),
CidrBlock: pulumi.String(vswIpRangeK),
})
if err != nil {
return err
}
_, err = clickhouseenterprisedbcluster.NewClickHouseEnterpriseDbCluster(ctx, "default", &clickhouseenterprisedbcluster.ClickHouseEnterpriseDbClusterArgs{
ZoneId: pulumi.String(zoneIdI),
VpcId: defaultktKLuM.ID(),
ScaleMin: pulumi.String("8"),
ScaleMax: pulumi.String("16"),
VswitchId: defaultTQWN3k.ID(),
MultiZones: clickhouseenterprisedbcluster.ClickHouseEnterpriseDbClusterMultiZoneArray{
&clickhouseenterprisedbcluster.ClickHouseEnterpriseDbClusterMultiZoneArgs{
VswitchIds: pulumi.StringArray{
defaultTQWN3k.ID(),
},
ZoneId: pulumi.String(zoneIdI),
},
&clickhouseenterprisedbcluster.ClickHouseEnterpriseDbClusterMultiZoneArgs{
VswitchIds: pulumi.StringArray{
defaultylyLu8.ID(),
},
ZoneId: pulumi.String(zoneIdL),
},
&clickhouseenterprisedbcluster.ClickHouseEnterpriseDbClusterMultiZoneArgs{
VswitchIds: pulumi.StringArray{
defaultRNbPh8.ID(),
},
ZoneId: pulumi.String(zoneIdK),
},
},
})
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 vswIpRangeI = config.Get("vswIpRangeI") ?? "172.16.1.0/24";
var regionId = config.Get("regionId") ?? "cn-beijing";
var vpcIpRange = config.Get("vpcIpRange") ?? "172.16.0.0/12";
var vswIpRangeK = config.Get("vswIpRangeK") ?? "172.16.3.0/24";
var vswIpRangeL = config.Get("vswIpRangeL") ?? "172.16.2.0/24";
var zoneIdI = config.Get("zoneIdI") ?? "cn-beijing-i";
var zoneIdL = config.Get("zoneIdL") ?? "cn-beijing-l";
var zoneIdK = config.Get("zoneIdK") ?? "cn-beijing-k";
var defaultktKLuM = new AliCloud.Vpc.Network("defaultktKLuM", new()
{
CidrBlock = vpcIpRange,
});
var defaultTQWN3k = new AliCloud.Vpc.Switch("defaultTQWN3k", new()
{
VpcId = defaultktKLuM.Id,
ZoneId = zoneIdI,
CidrBlock = vswIpRangeI,
});
var defaultylyLu8 = new AliCloud.Vpc.Switch("defaultylyLu8", new()
{
VpcId = defaultktKLuM.Id,
ZoneId = zoneIdL,
CidrBlock = vswIpRangeL,
});
var defaultRNbPh8 = new AliCloud.Vpc.Switch("defaultRNbPh8", new()
{
VpcId = defaultktKLuM.Id,
ZoneId = zoneIdK,
CidrBlock = vswIpRangeK,
});
var @default = new AliCloud.ClickHouseEnterpriseDbCluster.ClickHouseEnterpriseDbCluster("default", new()
{
ZoneId = zoneIdI,
VpcId = defaultktKLuM.Id,
ScaleMin = "8",
ScaleMax = "16",
VswitchId = defaultTQWN3k.Id,
MultiZones = new[]
{
new AliCloud.clickHouseEnterpriseDbCluster.Inputs.ClickHouseEnterpriseDbClusterMultiZoneArgs
{
VswitchIds = new[]
{
defaultTQWN3k.Id,
},
ZoneId = zoneIdI,
},
new AliCloud.clickHouseEnterpriseDbCluster.Inputs.ClickHouseEnterpriseDbClusterMultiZoneArgs
{
VswitchIds = new[]
{
defaultylyLu8.Id,
},
ZoneId = zoneIdL,
},
new AliCloud.clickHouseEnterpriseDbCluster.Inputs.ClickHouseEnterpriseDbClusterMultiZoneArgs
{
VswitchIds = new[]
{
defaultRNbPh8.Id,
},
ZoneId = zoneIdK,
},
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
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.clickhouseenterprisedbcluster.ClickHouseEnterpriseDbCluster;
import com.pulumi.alicloud.clickhouseenterprisedbcluster.ClickHouseEnterpriseDbClusterArgs;
import com.pulumi.alicloud.clickhouseenterprisedbcluster.inputs.ClickHouseEnterpriseDbClusterMultiZoneArgs;
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 vswIpRangeI = config.get("vswIpRangeI").orElse("172.16.1.0/24");
final var regionId = config.get("regionId").orElse("cn-beijing");
final var vpcIpRange = config.get("vpcIpRange").orElse("172.16.0.0/12");
final var vswIpRangeK = config.get("vswIpRangeK").orElse("172.16.3.0/24");
final var vswIpRangeL = config.get("vswIpRangeL").orElse("172.16.2.0/24");
final var zoneIdI = config.get("zoneIdI").orElse("cn-beijing-i");
final var zoneIdL = config.get("zoneIdL").orElse("cn-beijing-l");
final var zoneIdK = config.get("zoneIdK").orElse("cn-beijing-k");
var defaultktKLuM = new Network("defaultktKLuM", NetworkArgs.builder()
.cidrBlock(vpcIpRange)
.build());
var defaultTQWN3k = new Switch("defaultTQWN3k", SwitchArgs.builder()
.vpcId(defaultktKLuM.id())
.zoneId(zoneIdI)
.cidrBlock(vswIpRangeI)
.build());
var defaultylyLu8 = new Switch("defaultylyLu8", SwitchArgs.builder()
.vpcId(defaultktKLuM.id())
.zoneId(zoneIdL)
.cidrBlock(vswIpRangeL)
.build());
var defaultRNbPh8 = new Switch("defaultRNbPh8", SwitchArgs.builder()
.vpcId(defaultktKLuM.id())
.zoneId(zoneIdK)
.cidrBlock(vswIpRangeK)
.build());
var default_ = new ClickHouseEnterpriseDbCluster("default", ClickHouseEnterpriseDbClusterArgs.builder()
.zoneId(zoneIdI)
.vpcId(defaultktKLuM.id())
.scaleMin("8")
.scaleMax("16")
.vswitchId(defaultTQWN3k.id())
.multiZones(
ClickHouseEnterpriseDbClusterMultiZoneArgs.builder()
.vswitchIds(defaultTQWN3k.id())
.zoneId(zoneIdI)
.build(),
ClickHouseEnterpriseDbClusterMultiZoneArgs.builder()
.vswitchIds(defaultylyLu8.id())
.zoneId(zoneIdL)
.build(),
ClickHouseEnterpriseDbClusterMultiZoneArgs.builder()
.vswitchIds(defaultRNbPh8.id())
.zoneId(zoneIdK)
.build())
.build());
}
}
configuration:
name:
type: string
default: terraform-example
vswIpRangeI:
type: string
default: 172.16.1.0/24
regionId:
type: string
default: cn-beijing
vpcIpRange:
type: string
default: 172.16.0.0/12
vswIpRangeK:
type: string
default: 172.16.3.0/24
vswIpRangeL:
type: string
default: 172.16.2.0/24
zoneIdI:
type: string
default: cn-beijing-i
zoneIdL:
type: string
default: cn-beijing-l
zoneIdK:
type: string
default: cn-beijing-k
resources:
defaultktKLuM:
type: alicloud:vpc:Network
properties:
cidrBlock: ${vpcIpRange}
defaultTQWN3k:
type: alicloud:vpc:Switch
properties:
vpcId: ${defaultktKLuM.id}
zoneId: ${zoneIdI}
cidrBlock: ${vswIpRangeI}
defaultylyLu8:
type: alicloud:vpc:Switch
properties:
vpcId: ${defaultktKLuM.id}
zoneId: ${zoneIdL}
cidrBlock: ${vswIpRangeL}
defaultRNbPh8:
type: alicloud:vpc:Switch
properties:
vpcId: ${defaultktKLuM.id}
zoneId: ${zoneIdK}
cidrBlock: ${vswIpRangeK}
default:
type: alicloud:clickhouseenterprisedbcluster:ClickHouseEnterpriseDbCluster
properties:
zoneId: ${zoneIdI}
vpcId: ${defaultktKLuM.id}
scaleMin: '8'
scaleMax: '16'
vswitchId: ${defaultTQWN3k.id}
multiZones:
- vswitchIds:
- ${defaultTQWN3k.id}
zoneId: ${zoneIdI}
- vswitchIds:
- ${defaultylyLu8.id}
zoneId: ${zoneIdL}
- vswitchIds:
- ${defaultRNbPh8.id}
zoneId: ${zoneIdK}
Create ClickHouseEnterpriseDbCluster Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ClickHouseEnterpriseDbCluster(name: string, args?: ClickHouseEnterpriseDbClusterArgs, opts?: CustomResourceOptions);
@overload
def ClickHouseEnterpriseDbCluster(resource_name: str,
args: Optional[ClickHouseEnterpriseDbClusterArgs] = None,
opts: Optional[ResourceOptions] = None)
@overload
def ClickHouseEnterpriseDbCluster(resource_name: str,
opts: Optional[ResourceOptions] = None,
multi_zones: Optional[Sequence[ClickHouseEnterpriseDbClusterMultiZoneArgs]] = None,
scale_max: Optional[str] = None,
scale_min: Optional[str] = None,
vpc_id: Optional[str] = None,
vswitch_id: Optional[str] = None,
zone_id: Optional[str] = None)
func NewClickHouseEnterpriseDbCluster(ctx *Context, name string, args *ClickHouseEnterpriseDbClusterArgs, opts ...ResourceOption) (*ClickHouseEnterpriseDbCluster, error)
public ClickHouseEnterpriseDbCluster(string name, ClickHouseEnterpriseDbClusterArgs? args = null, CustomResourceOptions? opts = null)
public ClickHouseEnterpriseDbCluster(String name, ClickHouseEnterpriseDbClusterArgs args)
public ClickHouseEnterpriseDbCluster(String name, ClickHouseEnterpriseDbClusterArgs args, CustomResourceOptions options)
type: alicloud:clickhouseenterprisedbcluster:ClickHouseEnterpriseDbCluster
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 ClickHouseEnterpriseDbClusterArgs
- 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 ClickHouseEnterpriseDbClusterArgs
- 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 ClickHouseEnterpriseDbClusterArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ClickHouseEnterpriseDbClusterArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ClickHouseEnterpriseDbClusterArgs
- 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 clickHouseEnterpriseDbClusterResource = new AliCloud.ClickHouseEnterpriseDbCluster.ClickHouseEnterpriseDbCluster("clickHouseEnterpriseDbClusterResource", new()
{
MultiZones = new[]
{
new AliCloud.clickHouseEnterpriseDbCluster.Inputs.ClickHouseEnterpriseDbClusterMultiZoneArgs
{
VswitchIds = new[]
{
"string",
},
ZoneId = "string",
},
},
ScaleMax = "string",
ScaleMin = "string",
VpcId = "string",
VswitchId = "string",
ZoneId = "string",
});
example, err := clickhouseenterprisedbcluster.NewClickHouseEnterpriseDbCluster(ctx, "clickHouseEnterpriseDbClusterResource", &clickhouseenterprisedbcluster.ClickHouseEnterpriseDbClusterArgs{
MultiZones: clickhouseenterprisedbcluster.ClickHouseEnterpriseDbClusterMultiZoneArray{
&clickhouseenterprisedbcluster.ClickHouseEnterpriseDbClusterMultiZoneArgs{
VswitchIds: pulumi.StringArray{
pulumi.String("string"),
},
ZoneId: pulumi.String("string"),
},
},
ScaleMax: pulumi.String("string"),
ScaleMin: pulumi.String("string"),
VpcId: pulumi.String("string"),
VswitchId: pulumi.String("string"),
ZoneId: pulumi.String("string"),
})
var clickHouseEnterpriseDbClusterResource = new ClickHouseEnterpriseDbCluster("clickHouseEnterpriseDbClusterResource", ClickHouseEnterpriseDbClusterArgs.builder()
.multiZones(ClickHouseEnterpriseDbClusterMultiZoneArgs.builder()
.vswitchIds("string")
.zoneId("string")
.build())
.scaleMax("string")
.scaleMin("string")
.vpcId("string")
.vswitchId("string")
.zoneId("string")
.build());
click_house_enterprise_db_cluster_resource = alicloud.clickhouseenterprisedbcluster.ClickHouseEnterpriseDbCluster("clickHouseEnterpriseDbClusterResource",
multi_zones=[{
"vswitch_ids": ["string"],
"zone_id": "string",
}],
scale_max="string",
scale_min="string",
vpc_id="string",
vswitch_id="string",
zone_id="string")
const clickHouseEnterpriseDbClusterResource = new alicloud.clickhouseenterprisedbcluster.ClickHouseEnterpriseDbCluster("clickHouseEnterpriseDbClusterResource", {
multiZones: [{
vswitchIds: ["string"],
zoneId: "string",
}],
scaleMax: "string",
scaleMin: "string",
vpcId: "string",
vswitchId: "string",
zoneId: "string",
});
type: alicloud:clickhouseenterprisedbcluster:ClickHouseEnterpriseDbCluster
properties:
multiZones:
- vswitchIds:
- string
zoneId: string
scaleMax: string
scaleMin: string
vpcId: string
vswitchId: string
zoneId: string
ClickHouseEnterpriseDbCluster 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 ClickHouseEnterpriseDbCluster resource accepts the following input properties:
- Multi
Zones List<Pulumi.Ali Cloud.click House Enterprise Db Cluster. Inputs. Click House Enterprise Db Cluster Multi Zone> - The list of multi-zone information. See
multi_zones
below. - Scale
Max string - The maximum value of serverless auto scaling.
- Scale
Min string - The minimum value of serverless auto scaling.
- Vpc
Id string - The VPC ID.
- Vswitch
Id string - The vSwitch ID.
- Zone
Id string - The zone ID.
- Multi
Zones []ClickHouse Enterprise Db Cluster Multi Zone Args - The list of multi-zone information. See
multi_zones
below. - Scale
Max string - The maximum value of serverless auto scaling.
- Scale
Min string - The minimum value of serverless auto scaling.
- Vpc
Id string - The VPC ID.
- Vswitch
Id string - The vSwitch ID.
- Zone
Id string - The zone ID.
- multi
Zones List<ClickHouse Enterprise Db Cluster Multi Zone> - The list of multi-zone information. See
multi_zones
below. - scale
Max String - The maximum value of serverless auto scaling.
- scale
Min String - The minimum value of serverless auto scaling.
- vpc
Id String - The VPC ID.
- vswitch
Id String - The vSwitch ID.
- zone
Id String - The zone ID.
- multi
Zones ClickHouse Enterprise Db Cluster Multi Zone[] - The list of multi-zone information. See
multi_zones
below. - scale
Max string - The maximum value of serverless auto scaling.
- scale
Min string - The minimum value of serverless auto scaling.
- vpc
Id string - The VPC ID.
- vswitch
Id string - The vSwitch ID.
- zone
Id string - The zone ID.
- multi_
zones Sequence[ClickHouse Enterprise Db Cluster Multi Zone Args] - The list of multi-zone information. See
multi_zones
below. - scale_
max str - The maximum value of serverless auto scaling.
- scale_
min str - The minimum value of serverless auto scaling.
- vpc_
id str - The VPC ID.
- vswitch_
id str - The vSwitch ID.
- zone_
id str - The zone ID.
- multi
Zones List<Property Map> - The list of multi-zone information. See
multi_zones
below. - scale
Max String - The maximum value of serverless auto scaling.
- scale
Min String - The minimum value of serverless auto scaling.
- vpc
Id String - The VPC ID.
- vswitch
Id String - The vSwitch ID.
- zone
Id String - The zone ID.
Outputs
All input properties are implicitly available as output properties. Additionally, the ClickHouseEnterpriseDbCluster resource produces the following output properties:
- Create
Time string - The creation time of the resource
- Id string
- The provider-assigned unique ID for this managed resource.
- Region
Id string - The region ID of the resource
- Status string
- The status of the resource
- Create
Time string - The creation time of the resource
- Id string
- The provider-assigned unique ID for this managed resource.
- Region
Id string - The region ID of the resource
- Status string
- The status of the resource
- create
Time String - The creation time of the resource
- id String
- The provider-assigned unique ID for this managed resource.
- region
Id String - The region ID of the resource
- status String
- The status of the resource
- create
Time string - The creation time of the resource
- id string
- The provider-assigned unique ID for this managed resource.
- region
Id string - The region ID of the resource
- status string
- The status of the resource
- create_
time str - The creation time of the resource
- id str
- The provider-assigned unique ID for this managed resource.
- region_
id str - The region ID of the resource
- status str
- The status of the resource
- create
Time String - The creation time of the resource
- id String
- The provider-assigned unique ID for this managed resource.
- region
Id String - The region ID of the resource
- status String
- The status of the resource
Look up Existing ClickHouseEnterpriseDbCluster Resource
Get an existing ClickHouseEnterpriseDbCluster 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?: ClickHouseEnterpriseDbClusterState, opts?: CustomResourceOptions): ClickHouseEnterpriseDbCluster
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
create_time: Optional[str] = None,
multi_zones: Optional[Sequence[ClickHouseEnterpriseDbClusterMultiZoneArgs]] = None,
region_id: Optional[str] = None,
scale_max: Optional[str] = None,
scale_min: Optional[str] = None,
status: Optional[str] = None,
vpc_id: Optional[str] = None,
vswitch_id: Optional[str] = None,
zone_id: Optional[str] = None) -> ClickHouseEnterpriseDbCluster
func GetClickHouseEnterpriseDbCluster(ctx *Context, name string, id IDInput, state *ClickHouseEnterpriseDbClusterState, opts ...ResourceOption) (*ClickHouseEnterpriseDbCluster, error)
public static ClickHouseEnterpriseDbCluster Get(string name, Input<string> id, ClickHouseEnterpriseDbClusterState? state, CustomResourceOptions? opts = null)
public static ClickHouseEnterpriseDbCluster get(String name, Output<String> id, ClickHouseEnterpriseDbClusterState state, CustomResourceOptions options)
resources: _: type: alicloud:clickhouseenterprisedbcluster:ClickHouseEnterpriseDbCluster 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.
- Create
Time string - The creation time of the resource
- Multi
Zones List<Pulumi.Ali Cloud.click House Enterprise Db Cluster. Inputs. Click House Enterprise Db Cluster Multi Zone> - The list of multi-zone information. See
multi_zones
below. - Region
Id string - The region ID of the resource
- Scale
Max string - The maximum value of serverless auto scaling.
- Scale
Min string - The minimum value of serverless auto scaling.
- Status string
- The status of the resource
- Vpc
Id string - The VPC ID.
- Vswitch
Id string - The vSwitch ID.
- Zone
Id string - The zone ID.
- Create
Time string - The creation time of the resource
- Multi
Zones []ClickHouse Enterprise Db Cluster Multi Zone Args - The list of multi-zone information. See
multi_zones
below. - Region
Id string - The region ID of the resource
- Scale
Max string - The maximum value of serverless auto scaling.
- Scale
Min string - The minimum value of serverless auto scaling.
- Status string
- The status of the resource
- Vpc
Id string - The VPC ID.
- Vswitch
Id string - The vSwitch ID.
- Zone
Id string - The zone ID.
- create
Time String - The creation time of the resource
- multi
Zones List<ClickHouse Enterprise Db Cluster Multi Zone> - The list of multi-zone information. See
multi_zones
below. - region
Id String - The region ID of the resource
- scale
Max String - The maximum value of serverless auto scaling.
- scale
Min String - The minimum value of serverless auto scaling.
- status String
- The status of the resource
- vpc
Id String - The VPC ID.
- vswitch
Id String - The vSwitch ID.
- zone
Id String - The zone ID.
- create
Time string - The creation time of the resource
- multi
Zones ClickHouse Enterprise Db Cluster Multi Zone[] - The list of multi-zone information. See
multi_zones
below. - region
Id string - The region ID of the resource
- scale
Max string - The maximum value of serverless auto scaling.
- scale
Min string - The minimum value of serverless auto scaling.
- status string
- The status of the resource
- vpc
Id string - The VPC ID.
- vswitch
Id string - The vSwitch ID.
- zone
Id string - The zone ID.
- create_
time str - The creation time of the resource
- multi_
zones Sequence[ClickHouse Enterprise Db Cluster Multi Zone Args] - The list of multi-zone information. See
multi_zones
below. - region_
id str - The region ID of the resource
- scale_
max str - The maximum value of serverless auto scaling.
- scale_
min str - The minimum value of serverless auto scaling.
- status str
- The status of the resource
- vpc_
id str - The VPC ID.
- vswitch_
id str - The vSwitch ID.
- zone_
id str - The zone ID.
- create
Time String - The creation time of the resource
- multi
Zones List<Property Map> - The list of multi-zone information. See
multi_zones
below. - region
Id String - The region ID of the resource
- scale
Max String - The maximum value of serverless auto scaling.
- scale
Min String - The minimum value of serverless auto scaling.
- status String
- The status of the resource
- vpc
Id String - The VPC ID.
- vswitch
Id String - The vSwitch ID.
- zone
Id String - The zone ID.
Supporting Types
ClickHouseEnterpriseDbClusterMultiZone, ClickHouseEnterpriseDbClusterMultiZoneArgs
- Vswitch
Ids List<string> - The vSwtichID list.
- Zone
Id string - The zone ID.
- Vswitch
Ids []string - The vSwtichID list.
- Zone
Id string - The zone ID.
- vswitch
Ids List<String> - The vSwtichID list.
- zone
Id String - The zone ID.
- vswitch
Ids string[] - The vSwtichID list.
- zone
Id string - The zone ID.
- vswitch_
ids Sequence[str] - The vSwtichID list.
- zone_
id str - The zone ID.
- vswitch
Ids List<String> - The vSwtichID list.
- zone
Id String - The zone ID.
Import
Click House Enterprise D B Cluster can be imported using the id, e.g.
$ pulumi import alicloud:clickhouseenterprisedbcluster/clickHouseEnterpriseDbCluster:ClickHouseEnterpriseDbCluster example <id>
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
alicloud
Terraform Provider.