alicloud.clickhouseenterprisedbcluster.Account
Explore with Pulumi AI
Provides a Click House Enterprise Db Cluster Account resource.
Clickhouse enterprise instance account.
For information about Click House Enterprise Db Cluster Account and how to use it, see What is Enterprise Db Cluster Account.
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 regionId = config.get("regionId") || "cn-beijing";
const vswIpRangeI = config.get("vswIpRangeI") || "172.16.1.0/24";
const vpcIpRange = config.get("vpcIpRange") || "172.16.0.0/12";
const zoneIdI = config.get("zoneIdI") || "cn-beijing-i";
const defaultktKLuM = new alicloud.vpc.Network("defaultktKLuM", {cidrBlock: vpcIpRange});
const defaultTQWN3k = new alicloud.vpc.Switch("defaultTQWN3k", {
vpcId: defaultktKLuM.id,
zoneId: zoneIdI,
cidrBlock: vswIpRangeI,
});
const defaultWrovOd = new alicloud.clickhouseenterprisedbcluster.ClickHouseEnterpriseDbCluster("defaultWrovOd", {
zoneId: zoneIdI,
vpcId: defaultktKLuM.id,
scaleMin: "8",
scaleMax: "16",
vswitchId: defaultTQWN3k.id,
});
const _default = new alicloud.clickhouseenterprisedbcluster.Account("default", {
account: "abc",
description: "example_desc",
dbInstanceId: defaultWrovOd.id,
accountType: "NormalAccount",
password: "abc123456!",
dmlAuthSetting: {
dmlAuthority: 0,
ddlAuthority: true,
allowDictionaries: ["*"],
allowDatabases: ["*"],
},
});
import pulumi
import pulumi_alicloud as alicloud
config = pulumi.Config()
name = config.get("name")
if name is None:
name = "terraform-example"
region_id = config.get("regionId")
if region_id is None:
region_id = "cn-beijing"
vsw_ip_range_i = config.get("vswIpRangeI")
if vsw_ip_range_i is None:
vsw_ip_range_i = "172.16.1.0/24"
vpc_ip_range = config.get("vpcIpRange")
if vpc_ip_range is None:
vpc_ip_range = "172.16.0.0/12"
zone_id_i = config.get("zoneIdI")
if zone_id_i is None:
zone_id_i = "cn-beijing-i"
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)
default_wrov_od = alicloud.clickhouseenterprisedbcluster.ClickHouseEnterpriseDbCluster("defaultWrovOd",
zone_id=zone_id_i,
vpc_id=defaultkt_k_lu_m.id,
scale_min="8",
scale_max="16",
vswitch_id=default_tqwn3k.id)
default = alicloud.clickhouseenterprisedbcluster.Account("default",
account="abc",
description="example_desc",
db_instance_id=default_wrov_od.id,
account_type="NormalAccount",
password="abc123456!",
dml_auth_setting={
"dml_authority": 0,
"ddl_authority": True,
"allow_dictionaries": ["*"],
"allow_databases": ["*"],
})
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
}
regionId := "cn-beijing"
if param := cfg.Get("regionId"); param != "" {
regionId = param
}
vswIpRangeI := "172.16.1.0/24"
if param := cfg.Get("vswIpRangeI"); param != "" {
vswIpRangeI = param
}
vpcIpRange := "172.16.0.0/12"
if param := cfg.Get("vpcIpRange"); param != "" {
vpcIpRange = param
}
zoneIdI := "cn-beijing-i"
if param := cfg.Get("zoneIdI"); param != "" {
zoneIdI = 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
}
defaultWrovOd, err := clickhouseenterprisedbcluster.NewClickHouseEnterpriseDbCluster(ctx, "defaultWrovOd", &clickhouseenterprisedbcluster.ClickHouseEnterpriseDbClusterArgs{
ZoneId: pulumi.String(zoneIdI),
VpcId: defaultktKLuM.ID(),
ScaleMin: pulumi.String("8"),
ScaleMax: pulumi.String("16"),
VswitchId: defaultTQWN3k.ID(),
})
if err != nil {
return err
}
_, err = clickhouseenterprisedbcluster.NewAccount(ctx, "default", &clickhouseenterprisedbcluster.AccountArgs{
Account: pulumi.String("abc"),
Description: pulumi.String("example_desc"),
DbInstanceId: defaultWrovOd.ID(),
AccountType: pulumi.String("NormalAccount"),
Password: pulumi.String("abc123456!"),
DmlAuthSetting: &clickhouseenterprisedbcluster.AccountDmlAuthSettingArgs{
DmlAuthority: pulumi.Int(0),
DdlAuthority: pulumi.Bool(true),
AllowDictionaries: pulumi.StringArray{
pulumi.String("*"),
},
AllowDatabases: pulumi.StringArray{
pulumi.String("*"),
},
},
})
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 regionId = config.Get("regionId") ?? "cn-beijing";
var vswIpRangeI = config.Get("vswIpRangeI") ?? "172.16.1.0/24";
var vpcIpRange = config.Get("vpcIpRange") ?? "172.16.0.0/12";
var zoneIdI = config.Get("zoneIdI") ?? "cn-beijing-i";
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 defaultWrovOd = new AliCloud.ClickHouseEnterpriseDbCluster.ClickHouseEnterpriseDbCluster("defaultWrovOd", new()
{
ZoneId = zoneIdI,
VpcId = defaultktKLuM.Id,
ScaleMin = "8",
ScaleMax = "16",
VswitchId = defaultTQWN3k.Id,
});
var @default = new AliCloud.ClickHouseEnterpriseDbCluster.Account("default", new()
{
AccountValue = "abc",
Description = "example_desc",
DbInstanceId = defaultWrovOd.Id,
AccountType = "NormalAccount",
Password = "abc123456!",
DmlAuthSetting = new AliCloud.clickHouseEnterpriseDbCluster.Inputs.AccountDmlAuthSettingArgs
{
DmlAuthority = 0,
DdlAuthority = true,
AllowDictionaries = new[]
{
"*",
},
AllowDatabases = new[]
{
"*",
},
},
});
});
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.Account;
import com.pulumi.alicloud.clickhouseenterprisedbcluster.AccountArgs;
import com.pulumi.alicloud.clickhouseenterprisedbcluster.inputs.AccountDmlAuthSettingArgs;
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 regionId = config.get("regionId").orElse("cn-beijing");
final var vswIpRangeI = config.get("vswIpRangeI").orElse("172.16.1.0/24");
final var vpcIpRange = config.get("vpcIpRange").orElse("172.16.0.0/12");
final var zoneIdI = config.get("zoneIdI").orElse("cn-beijing-i");
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 defaultWrovOd = new ClickHouseEnterpriseDbCluster("defaultWrovOd", ClickHouseEnterpriseDbClusterArgs.builder()
.zoneId(zoneIdI)
.vpcId(defaultktKLuM.id())
.scaleMin("8")
.scaleMax("16")
.vswitchId(defaultTQWN3k.id())
.build());
var default_ = new Account("default", AccountArgs.builder()
.account("abc")
.description("example_desc")
.dbInstanceId(defaultWrovOd.id())
.accountType("NormalAccount")
.password("abc123456!")
.dmlAuthSetting(AccountDmlAuthSettingArgs.builder()
.dmlAuthority("0")
.ddlAuthority(true)
.allowDictionaries("*")
.allowDatabases("*")
.build())
.build());
}
}
configuration:
name:
type: string
default: terraform-example
regionId:
type: string
default: cn-beijing
vswIpRangeI:
type: string
default: 172.16.1.0/24
vpcIpRange:
type: string
default: 172.16.0.0/12
zoneIdI:
type: string
default: cn-beijing-i
resources:
defaultktKLuM:
type: alicloud:vpc:Network
properties:
cidrBlock: ${vpcIpRange}
defaultTQWN3k:
type: alicloud:vpc:Switch
properties:
vpcId: ${defaultktKLuM.id}
zoneId: ${zoneIdI}
cidrBlock: ${vswIpRangeI}
defaultWrovOd:
type: alicloud:clickhouseenterprisedbcluster:ClickHouseEnterpriseDbCluster
properties:
zoneId: ${zoneIdI}
vpcId: ${defaultktKLuM.id}
scaleMin: '8'
scaleMax: '16'
vswitchId: ${defaultTQWN3k.id}
default:
type: alicloud:clickhouseenterprisedbcluster:Account
properties:
account: abc
description: example_desc
dbInstanceId: ${defaultWrovOd.id}
accountType: NormalAccount
password: abc123456!
dmlAuthSetting:
dmlAuthority: '0'
ddlAuthority: true
allowDictionaries:
- '*'
allowDatabases:
- '*'
Create Account Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Account(name: string, args: AccountArgs, opts?: CustomResourceOptions);
@overload
def Account(resource_name: str,
args: AccountArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Account(resource_name: str,
opts: Optional[ResourceOptions] = None,
account: Optional[str] = None,
account_type: Optional[str] = None,
db_instance_id: Optional[str] = None,
password: Optional[str] = None,
description: Optional[str] = None,
dml_auth_setting: Optional[AccountDmlAuthSettingArgs] = None)
func NewAccount(ctx *Context, name string, args AccountArgs, opts ...ResourceOption) (*Account, error)
public Account(string name, AccountArgs args, CustomResourceOptions? opts = null)
public Account(String name, AccountArgs args)
public Account(String name, AccountArgs args, CustomResourceOptions options)
type: alicloud:clickhouseenterprisedbcluster:Account
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 AccountArgs
- 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 AccountArgs
- 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 AccountArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args AccountArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args AccountArgs
- 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 exampleaccountResourceResourceFromClickhouseenterprisedbclusteraccount = new AliCloud.ClickHouseEnterpriseDbCluster.Account("exampleaccountResourceResourceFromClickhouseenterprisedbclusteraccount", new()
{
AccountValue = "string",
AccountType = "string",
DbInstanceId = "string",
Password = "string",
Description = "string",
DmlAuthSetting = new AliCloud.clickHouseEnterpriseDbCluster.Inputs.AccountDmlAuthSettingArgs
{
DdlAuthority = false,
DmlAuthority = 0,
AllowDatabases = new[]
{
"string",
},
AllowDictionaries = new[]
{
"string",
},
},
});
example, err := clickhouseenterprisedbcluster.NewAccount(ctx, "exampleaccountResourceResourceFromClickhouseenterprisedbclusteraccount", &clickhouseenterprisedbcluster.AccountArgs{
Account: pulumi.String("string"),
AccountType: pulumi.String("string"),
DbInstanceId: pulumi.String("string"),
Password: pulumi.String("string"),
Description: pulumi.String("string"),
DmlAuthSetting: &clickhouseenterprisedbcluster.AccountDmlAuthSettingArgs{
DdlAuthority: pulumi.Bool(false),
DmlAuthority: pulumi.Int(0),
AllowDatabases: pulumi.StringArray{
pulumi.String("string"),
},
AllowDictionaries: pulumi.StringArray{
pulumi.String("string"),
},
},
})
var exampleaccountResourceResourceFromClickhouseenterprisedbclusteraccount = new com.pulumi.alicloud.clickhouseenterprisedbcluster.Account("exampleaccountResourceResourceFromClickhouseenterprisedbclusteraccount", com.pulumi.alicloud.clickhouseenterprisedbcluster.AccountArgs.builder()
.account("string")
.accountType("string")
.dbInstanceId("string")
.password("string")
.description("string")
.dmlAuthSetting(AccountDmlAuthSettingArgs.builder()
.ddlAuthority(false)
.dmlAuthority(0)
.allowDatabases("string")
.allowDictionaries("string")
.build())
.build());
exampleaccount_resource_resource_from_clickhouseenterprisedbclusteraccount = alicloud.clickhouseenterprisedbcluster.Account("exampleaccountResourceResourceFromClickhouseenterprisedbclusteraccount",
account="string",
account_type="string",
db_instance_id="string",
password="string",
description="string",
dml_auth_setting={
"ddl_authority": False,
"dml_authority": 0,
"allow_databases": ["string"],
"allow_dictionaries": ["string"],
})
const exampleaccountResourceResourceFromClickhouseenterprisedbclusteraccount = new alicloud.clickhouseenterprisedbcluster.Account("exampleaccountResourceResourceFromClickhouseenterprisedbclusteraccount", {
account: "string",
accountType: "string",
dbInstanceId: "string",
password: "string",
description: "string",
dmlAuthSetting: {
ddlAuthority: false,
dmlAuthority: 0,
allowDatabases: ["string"],
allowDictionaries: ["string"],
},
});
type: alicloud:clickhouseenterprisedbcluster:Account
properties:
account: string
accountType: string
dbInstanceId: string
description: string
dmlAuthSetting:
allowDatabases:
- string
allowDictionaries:
- string
ddlAuthority: false
dmlAuthority: 0
password: string
Account 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 Account resource accepts the following input properties:
- Account
Type string - The type of the database account. Valid values:
NormalAccount
: Normal account number.SuperAccount
: The privileged account.
- Account
Value string - The name of the database account.
- Db
Instance stringId - The cluster ID.
- Password string
- Database account password. Set the following rules.
- Consists of at least three of uppercase letters, lowercase letters, numbers, and special characters.
- Oh-! @#$%^& *()_+-= is a special character.
- Length is 8~32 characters.
- Description string
- Note information.
- Dml
Auth Pulumi.Setting Ali Cloud.click House Enterprise Db Cluster. Inputs. Account Dml Auth Setting - Authorization information. See
dml_auth_setting
below.
- Account string
- The name of the database account.
- Account
Type string - The type of the database account. Valid values:
NormalAccount
: Normal account number.SuperAccount
: The privileged account.
- Db
Instance stringId - The cluster ID.
- Password string
- Database account password. Set the following rules.
- Consists of at least three of uppercase letters, lowercase letters, numbers, and special characters.
- Oh-! @#$%^& *()_+-= is a special character.
- Length is 8~32 characters.
- Description string
- Note information.
- Dml
Auth AccountSetting Dml Auth Setting Args - Authorization information. See
dml_auth_setting
below.
- account String
- The name of the database account.
- account
Type String - The type of the database account. Valid values:
NormalAccount
: Normal account number.SuperAccount
: The privileged account.
- db
Instance StringId - The cluster ID.
- password String
- Database account password. Set the following rules.
- Consists of at least three of uppercase letters, lowercase letters, numbers, and special characters.
- Oh-! @#$%^& *()_+-= is a special character.
- Length is 8~32 characters.
- description String
- Note information.
- dml
Auth AccountSetting Dml Auth Setting - Authorization information. See
dml_auth_setting
below.
- account string
- The name of the database account.
- account
Type string - The type of the database account. Valid values:
NormalAccount
: Normal account number.SuperAccount
: The privileged account.
- db
Instance stringId - The cluster ID.
- password string
- Database account password. Set the following rules.
- Consists of at least three of uppercase letters, lowercase letters, numbers, and special characters.
- Oh-! @#$%^& *()_+-= is a special character.
- Length is 8~32 characters.
- description string
- Note information.
- dml
Auth AccountSetting Dml Auth Setting - Authorization information. See
dml_auth_setting
below.
- account str
- The name of the database account.
- account_
type str - The type of the database account. Valid values:
NormalAccount
: Normal account number.SuperAccount
: The privileged account.
- db_
instance_ strid - The cluster ID.
- password str
- Database account password. Set the following rules.
- Consists of at least three of uppercase letters, lowercase letters, numbers, and special characters.
- Oh-! @#$%^& *()_+-= is a special character.
- Length is 8~32 characters.
- description str
- Note information.
- dml_
auth_ Accountsetting Dml Auth Setting Args - Authorization information. See
dml_auth_setting
below.
- account String
- The name of the database account.
- account
Type String - The type of the database account. Valid values:
NormalAccount
: Normal account number.SuperAccount
: The privileged account.
- db
Instance StringId - The cluster ID.
- password String
- Database account password. Set the following rules.
- Consists of at least three of uppercase letters, lowercase letters, numbers, and special characters.
- Oh-! @#$%^& *()_+-= is a special character.
- Length is 8~32 characters.
- description String
- Note information.
- dml
Auth Property MapSetting - Authorization information. See
dml_auth_setting
below.
Outputs
All input properties are implicitly available as output properties. Additionally, the Account resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing Account Resource
Get an existing Account 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?: AccountState, opts?: CustomResourceOptions): Account
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
account: Optional[str] = None,
account_type: Optional[str] = None,
db_instance_id: Optional[str] = None,
description: Optional[str] = None,
dml_auth_setting: Optional[AccountDmlAuthSettingArgs] = None,
password: Optional[str] = None) -> Account
func GetAccount(ctx *Context, name string, id IDInput, state *AccountState, opts ...ResourceOption) (*Account, error)
public static Account Get(string name, Input<string> id, AccountState? state, CustomResourceOptions? opts = null)
public static Account get(String name, Output<String> id, AccountState state, CustomResourceOptions options)
resources: _: type: alicloud:clickhouseenterprisedbcluster:Account 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.
- Account
Type string - The type of the database account. Valid values:
NormalAccount
: Normal account number.SuperAccount
: The privileged account.
- Account
Value string - The name of the database account.
- Db
Instance stringId - The cluster ID.
- Description string
- Note information.
- Dml
Auth Pulumi.Setting Ali Cloud.click House Enterprise Db Cluster. Inputs. Account Dml Auth Setting - Authorization information. See
dml_auth_setting
below. - Password string
- Database account password. Set the following rules.
- Consists of at least three of uppercase letters, lowercase letters, numbers, and special characters.
- Oh-! @#$%^& *()_+-= is a special character.
- Length is 8~32 characters.
- Account string
- The name of the database account.
- Account
Type string - The type of the database account. Valid values:
NormalAccount
: Normal account number.SuperAccount
: The privileged account.
- Db
Instance stringId - The cluster ID.
- Description string
- Note information.
- Dml
Auth AccountSetting Dml Auth Setting Args - Authorization information. See
dml_auth_setting
below. - Password string
- Database account password. Set the following rules.
- Consists of at least three of uppercase letters, lowercase letters, numbers, and special characters.
- Oh-! @#$%^& *()_+-= is a special character.
- Length is 8~32 characters.
- account String
- The name of the database account.
- account
Type String - The type of the database account. Valid values:
NormalAccount
: Normal account number.SuperAccount
: The privileged account.
- db
Instance StringId - The cluster ID.
- description String
- Note information.
- dml
Auth AccountSetting Dml Auth Setting - Authorization information. See
dml_auth_setting
below. - password String
- Database account password. Set the following rules.
- Consists of at least three of uppercase letters, lowercase letters, numbers, and special characters.
- Oh-! @#$%^& *()_+-= is a special character.
- Length is 8~32 characters.
- account string
- The name of the database account.
- account
Type string - The type of the database account. Valid values:
NormalAccount
: Normal account number.SuperAccount
: The privileged account.
- db
Instance stringId - The cluster ID.
- description string
- Note information.
- dml
Auth AccountSetting Dml Auth Setting - Authorization information. See
dml_auth_setting
below. - password string
- Database account password. Set the following rules.
- Consists of at least three of uppercase letters, lowercase letters, numbers, and special characters.
- Oh-! @#$%^& *()_+-= is a special character.
- Length is 8~32 characters.
- account str
- The name of the database account.
- account_
type str - The type of the database account. Valid values:
NormalAccount
: Normal account number.SuperAccount
: The privileged account.
- db_
instance_ strid - The cluster ID.
- description str
- Note information.
- dml_
auth_ Accountsetting Dml Auth Setting Args - Authorization information. See
dml_auth_setting
below. - password str
- Database account password. Set the following rules.
- Consists of at least three of uppercase letters, lowercase letters, numbers, and special characters.
- Oh-! @#$%^& *()_+-= is a special character.
- Length is 8~32 characters.
- account String
- The name of the database account.
- account
Type String - The type of the database account. Valid values:
NormalAccount
: Normal account number.SuperAccount
: The privileged account.
- db
Instance StringId - The cluster ID.
- description String
- Note information.
- dml
Auth Property MapSetting - Authorization information. See
dml_auth_setting
below. - password String
- Database account password. Set the following rules.
- Consists of at least three of uppercase letters, lowercase letters, numbers, and special characters.
- Oh-! @#$%^& *()_+-= is a special character.
- Length is 8~32 characters.
Supporting Types
AccountDmlAuthSetting, AccountDmlAuthSettingArgs
- bool
- Whether to grant the DDL permission to the database account. Value description:
- int
- Whether to grant the DML permission to the database account. The values are as follows:
- Allow
Databases List<string> - The list of databases that require authorization. If there are more than one, separate them with commas (,).
- Allow
Dictionaries List<string> - List of dictionaries that require authorization. If there are more than one, separate them with commas (,).
- bool
- Whether to grant the DDL permission to the database account. Value description:
- int
- Whether to grant the DML permission to the database account. The values are as follows:
- Allow
Databases []string - The list of databases that require authorization. If there are more than one, separate them with commas (,).
- Allow
Dictionaries []string - List of dictionaries that require authorization. If there are more than one, separate them with commas (,).
- Boolean
- Whether to grant the DDL permission to the database account. Value description:
- Integer
- Whether to grant the DML permission to the database account. The values are as follows:
- allow
Databases List<String> - The list of databases that require authorization. If there are more than one, separate them with commas (,).
- allow
Dictionaries List<String> - List of dictionaries that require authorization. If there are more than one, separate them with commas (,).
- boolean
- Whether to grant the DDL permission to the database account. Value description:
- number
- Whether to grant the DML permission to the database account. The values are as follows:
- allow
Databases string[] - The list of databases that require authorization. If there are more than one, separate them with commas (,).
- allow
Dictionaries string[] - List of dictionaries that require authorization. If there are more than one, separate them with commas (,).
- bool
- Whether to grant the DDL permission to the database account. Value description:
- int
- Whether to grant the DML permission to the database account. The values are as follows:
- allow_
databases Sequence[str] - The list of databases that require authorization. If there are more than one, separate them with commas (,).
- allow_
dictionaries Sequence[str] - List of dictionaries that require authorization. If there are more than one, separate them with commas (,).
- Boolean
- Whether to grant the DDL permission to the database account. Value description:
- Number
- Whether to grant the DML permission to the database account. The values are as follows:
- allow
Databases List<String> - The list of databases that require authorization. If there are more than one, separate them with commas (,).
- allow
Dictionaries List<String> - List of dictionaries that require authorization. If there are more than one, separate them with commas (,).
Import
Click House Enterprise Db Cluster Account can be imported using the id, e.g.
$ pulumi import alicloud:clickhouseenterprisedbcluster/account:Account example <db_instance_id>:<account>
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.