alicloud.adb.Account
Explore with Pulumi AI
Provides a ADB account resource and used to manage databases.
NOTE: Available since v1.71.0.
Example Usage
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") ?? "tf_example";
var defaultZones = AliCloud.Adb.GetZones.Invoke();
var defaultResourceGroups = AliCloud.ResourceManager.GetResourceGroups.Invoke(new()
{
Status = "OK",
});
var defaultNetwork = new AliCloud.Vpc.Network("defaultNetwork", new()
{
VpcName = name,
CidrBlock = "10.4.0.0/16",
});
var defaultSwitch = new AliCloud.Vpc.Switch("defaultSwitch", new()
{
VpcId = defaultNetwork.Id,
CidrBlock = "10.4.0.0/24",
ZoneId = defaultZones.Apply(getZonesResult => getZonesResult.Zones[0]?.Id),
VswitchName = name,
});
var defaultDBCluster = new AliCloud.Adb.DBCluster("defaultDBCluster", new()
{
DbClusterCategory = "Cluster",
DbNodeClass = "C8",
DbNodeCount = 4,
DbNodeStorage = 400,
Mode = "reserver",
DbClusterVersion = "3.0",
PaymentType = "PayAsYouGo",
VswitchId = defaultSwitch.Id,
Description = name,
MaintainTime = "23:00Z-00:00Z",
ResourceGroupId = defaultResourceGroups.Apply(getResourceGroupsResult => getResourceGroupsResult.Ids[0]),
SecurityIps = new[]
{
"10.168.1.12",
"10.168.1.11",
},
Tags =
{
{ "Created", "TF" },
{ "For", "example" },
},
});
var defaultAccount = new AliCloud.Adb.Account("defaultAccount", new()
{
DbClusterId = defaultDBCluster.Id,
AccountName = name,
AccountPassword = "tf_example123",
AccountDescription = name,
});
});
package main
import (
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/adb"
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/resourcemanager"
"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 := "tf_example"
if param := cfg.Get("name"); param != "" {
name = param
}
defaultZones, err := adb.GetZones(ctx, nil, nil)
if err != nil {
return err
}
defaultResourceGroups, err := resourcemanager.GetResourceGroups(ctx, &resourcemanager.GetResourceGroupsArgs{
Status: pulumi.StringRef("OK"),
}, nil)
if err != nil {
return err
}
defaultNetwork, err := vpc.NewNetwork(ctx, "defaultNetwork", &vpc.NetworkArgs{
VpcName: pulumi.String(name),
CidrBlock: pulumi.String("10.4.0.0/16"),
})
if err != nil {
return err
}
defaultSwitch, err := vpc.NewSwitch(ctx, "defaultSwitch", &vpc.SwitchArgs{
VpcId: defaultNetwork.ID(),
CidrBlock: pulumi.String("10.4.0.0/24"),
ZoneId: *pulumi.String(defaultZones.Zones[0].Id),
VswitchName: pulumi.String(name),
})
if err != nil {
return err
}
defaultDBCluster, err := adb.NewDBCluster(ctx, "defaultDBCluster", &adb.DBClusterArgs{
DbClusterCategory: pulumi.String("Cluster"),
DbNodeClass: pulumi.String("C8"),
DbNodeCount: pulumi.Int(4),
DbNodeStorage: pulumi.Int(400),
Mode: pulumi.String("reserver"),
DbClusterVersion: pulumi.String("3.0"),
PaymentType: pulumi.String("PayAsYouGo"),
VswitchId: defaultSwitch.ID(),
Description: pulumi.String(name),
MaintainTime: pulumi.String("23:00Z-00:00Z"),
ResourceGroupId: *pulumi.String(defaultResourceGroups.Ids[0]),
SecurityIps: pulumi.StringArray{
pulumi.String("10.168.1.12"),
pulumi.String("10.168.1.11"),
},
Tags: pulumi.AnyMap{
"Created": pulumi.Any("TF"),
"For": pulumi.Any("example"),
},
})
if err != nil {
return err
}
_, err = adb.NewAccount(ctx, "defaultAccount", &adb.AccountArgs{
DbClusterId: defaultDBCluster.ID(),
AccountName: pulumi.String(name),
AccountPassword: pulumi.String("tf_example123"),
AccountDescription: pulumi.String(name),
})
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.resourcemanager.ResourcemanagerFunctions;
import com.pulumi.alicloud.resourcemanager.inputs.GetResourceGroupsArgs;
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.adb.DBCluster;
import com.pulumi.alicloud.adb.DBClusterArgs;
import com.pulumi.alicloud.adb.Account;
import com.pulumi.alicloud.adb.AccountArgs;
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("tf_example");
final var defaultZones = AdbFunctions.getZones();
final var defaultResourceGroups = ResourcemanagerFunctions.getResourceGroups(GetResourceGroupsArgs.builder()
.status("OK")
.build());
var defaultNetwork = new Network("defaultNetwork", NetworkArgs.builder()
.vpcName(name)
.cidrBlock("10.4.0.0/16")
.build());
var defaultSwitch = new Switch("defaultSwitch", SwitchArgs.builder()
.vpcId(defaultNetwork.id())
.cidrBlock("10.4.0.0/24")
.zoneId(defaultZones.applyValue(getZonesResult -> getZonesResult.zones()[0].id()))
.vswitchName(name)
.build());
var defaultDBCluster = new DBCluster("defaultDBCluster", DBClusterArgs.builder()
.dbClusterCategory("Cluster")
.dbNodeClass("C8")
.dbNodeCount("4")
.dbNodeStorage("400")
.mode("reserver")
.dbClusterVersion("3.0")
.paymentType("PayAsYouGo")
.vswitchId(defaultSwitch.id())
.description(name)
.maintainTime("23:00Z-00:00Z")
.resourceGroupId(defaultResourceGroups.applyValue(getResourceGroupsResult -> getResourceGroupsResult.ids()[0]))
.securityIps(
"10.168.1.12",
"10.168.1.11")
.tags(Map.ofEntries(
Map.entry("Created", "TF"),
Map.entry("For", "example")
))
.build());
var defaultAccount = new Account("defaultAccount", AccountArgs.builder()
.dbClusterId(defaultDBCluster.id())
.accountName(name)
.accountPassword("tf_example123")
.accountDescription(name)
.build());
}
}
import pulumi
import pulumi_alicloud as alicloud
config = pulumi.Config()
name = config.get("name")
if name is None:
name = "tf_example"
default_zones = alicloud.adb.get_zones()
default_resource_groups = alicloud.resourcemanager.get_resource_groups(status="OK")
default_network = alicloud.vpc.Network("defaultNetwork",
vpc_name=name,
cidr_block="10.4.0.0/16")
default_switch = alicloud.vpc.Switch("defaultSwitch",
vpc_id=default_network.id,
cidr_block="10.4.0.0/24",
zone_id=default_zones.zones[0].id,
vswitch_name=name)
default_db_cluster = alicloud.adb.DBCluster("defaultDBCluster",
db_cluster_category="Cluster",
db_node_class="C8",
db_node_count=4,
db_node_storage=400,
mode="reserver",
db_cluster_version="3.0",
payment_type="PayAsYouGo",
vswitch_id=default_switch.id,
description=name,
maintain_time="23:00Z-00:00Z",
resource_group_id=default_resource_groups.ids[0],
security_ips=[
"10.168.1.12",
"10.168.1.11",
],
tags={
"Created": "TF",
"For": "example",
})
default_account = alicloud.adb.Account("defaultAccount",
db_cluster_id=default_db_cluster.id,
account_name=name,
account_password="tf_example123",
account_description=name)
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
const config = new pulumi.Config();
const name = config.get("name") || "tf_example";
const defaultZones = alicloud.adb.getZones({});
const defaultResourceGroups = alicloud.resourcemanager.getResourceGroups({
status: "OK",
});
const defaultNetwork = new alicloud.vpc.Network("defaultNetwork", {
vpcName: name,
cidrBlock: "10.4.0.0/16",
});
const defaultSwitch = new alicloud.vpc.Switch("defaultSwitch", {
vpcId: defaultNetwork.id,
cidrBlock: "10.4.0.0/24",
zoneId: defaultZones.then(defaultZones => defaultZones.zones?.[0]?.id),
vswitchName: name,
});
const defaultDBCluster = new alicloud.adb.DBCluster("defaultDBCluster", {
dbClusterCategory: "Cluster",
dbNodeClass: "C8",
dbNodeCount: 4,
dbNodeStorage: 400,
mode: "reserver",
dbClusterVersion: "3.0",
paymentType: "PayAsYouGo",
vswitchId: defaultSwitch.id,
description: name,
maintainTime: "23:00Z-00:00Z",
resourceGroupId: defaultResourceGroups.then(defaultResourceGroups => defaultResourceGroups.ids?.[0]),
securityIps: [
"10.168.1.12",
"10.168.1.11",
],
tags: {
Created: "TF",
For: "example",
},
});
const defaultAccount = new alicloud.adb.Account("defaultAccount", {
dbClusterId: defaultDBCluster.id,
accountName: name,
accountPassword: "tf_example123",
accountDescription: name,
});
configuration:
name:
type: string
default: tf_example
resources:
defaultNetwork:
type: alicloud:vpc:Network
properties:
vpcName: ${name}
cidrBlock: 10.4.0.0/16
defaultSwitch:
type: alicloud:vpc:Switch
properties:
vpcId: ${defaultNetwork.id}
cidrBlock: 10.4.0.0/24
zoneId: ${defaultZones.zones[0].id}
vswitchName: ${name}
defaultDBCluster:
type: alicloud:adb:DBCluster
properties:
dbClusterCategory: Cluster
dbNodeClass: C8
dbNodeCount: '4'
dbNodeStorage: '400'
mode: reserver
dbClusterVersion: '3.0'
paymentType: PayAsYouGo
vswitchId: ${defaultSwitch.id}
description: ${name}
maintainTime: 23:00Z-00:00Z
resourceGroupId: ${defaultResourceGroups.ids[0]}
securityIps:
- 10.168.1.12
- 10.168.1.11
tags:
Created: TF
For: example
defaultAccount:
type: alicloud:adb:Account
properties:
dbClusterId: ${defaultDBCluster.id}
accountName: ${name}
accountPassword: tf_example123
accountDescription: ${name}
variables:
defaultZones:
fn::invoke:
Function: alicloud:adb:getZones
Arguments: {}
defaultResourceGroups:
fn::invoke:
Function: alicloud:resourcemanager:getResourceGroups
Arguments:
status: OK
Create Account Resource
new Account(name: string, args: AccountArgs, opts?: CustomResourceOptions);
@overload
def Account(resource_name: str,
opts: Optional[ResourceOptions] = None,
account_description: Optional[str] = None,
account_name: Optional[str] = None,
account_password: Optional[str] = None,
db_cluster_id: Optional[str] = None,
kms_encrypted_password: Optional[str] = None,
kms_encryption_context: Optional[Mapping[str, Any]] = None)
@overload
def Account(resource_name: str,
args: AccountArgs,
opts: Optional[ResourceOptions] = 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:adb:Account
properties: # The arguments to resource properties.
options: # 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.
- 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.
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
The Account resource accepts the following input properties:
- Account
Name string Operation account requiring a uniqueness check. It may consist of lower case letters, numbers, and underlines, and must start with a letter and have no more than 16 characters.
- Db
Cluster stringId The Id of cluster in which account belongs.
- Account
Description string Account description. It cannot begin with https://. It must start with a Chinese character or English letter. It can include Chinese and English characters, underlines (_), hyphens (-), and numbers. The length may be 2-256 characters.
- Account
Password string Operation password. It may consist of letters, digits, or underlines, with a length of 6 to 32 characters. You have to specify one of
account_password
andkms_encrypted_password
fields.- Kms
Encrypted stringPassword An KMS encrypts password used to a db account. If the
account_password
is filled in, this field will be ignored.- Kms
Encryption Dictionary<string, object>Context An KMS encryption context used to decrypt
kms_encrypted_password
before creating or updating a db account withkms_encrypted_password
. See Encryption Context. It is valid whenkms_encrypted_password
is set.
- Account
Name string Operation account requiring a uniqueness check. It may consist of lower case letters, numbers, and underlines, and must start with a letter and have no more than 16 characters.
- Db
Cluster stringId The Id of cluster in which account belongs.
- Account
Description string Account description. It cannot begin with https://. It must start with a Chinese character or English letter. It can include Chinese and English characters, underlines (_), hyphens (-), and numbers. The length may be 2-256 characters.
- Account
Password string Operation password. It may consist of letters, digits, or underlines, with a length of 6 to 32 characters. You have to specify one of
account_password
andkms_encrypted_password
fields.- Kms
Encrypted stringPassword An KMS encrypts password used to a db account. If the
account_password
is filled in, this field will be ignored.- Kms
Encryption map[string]interface{}Context An KMS encryption context used to decrypt
kms_encrypted_password
before creating or updating a db account withkms_encrypted_password
. See Encryption Context. It is valid whenkms_encrypted_password
is set.
- account
Name String Operation account requiring a uniqueness check. It may consist of lower case letters, numbers, and underlines, and must start with a letter and have no more than 16 characters.
- db
Cluster StringId The Id of cluster in which account belongs.
- account
Description String Account description. It cannot begin with https://. It must start with a Chinese character or English letter. It can include Chinese and English characters, underlines (_), hyphens (-), and numbers. The length may be 2-256 characters.
- account
Password String Operation password. It may consist of letters, digits, or underlines, with a length of 6 to 32 characters. You have to specify one of
account_password
andkms_encrypted_password
fields.- kms
Encrypted StringPassword An KMS encrypts password used to a db account. If the
account_password
is filled in, this field will be ignored.- kms
Encryption Map<String,Object>Context An KMS encryption context used to decrypt
kms_encrypted_password
before creating or updating a db account withkms_encrypted_password
. See Encryption Context. It is valid whenkms_encrypted_password
is set.
- account
Name string Operation account requiring a uniqueness check. It may consist of lower case letters, numbers, and underlines, and must start with a letter and have no more than 16 characters.
- db
Cluster stringId The Id of cluster in which account belongs.
- account
Description string Account description. It cannot begin with https://. It must start with a Chinese character or English letter. It can include Chinese and English characters, underlines (_), hyphens (-), and numbers. The length may be 2-256 characters.
- account
Password string Operation password. It may consist of letters, digits, or underlines, with a length of 6 to 32 characters. You have to specify one of
account_password
andkms_encrypted_password
fields.- kms
Encrypted stringPassword An KMS encrypts password used to a db account. If the
account_password
is filled in, this field will be ignored.- kms
Encryption {[key: string]: any}Context An KMS encryption context used to decrypt
kms_encrypted_password
before creating or updating a db account withkms_encrypted_password
. See Encryption Context. It is valid whenkms_encrypted_password
is set.
- account_
name str Operation account requiring a uniqueness check. It may consist of lower case letters, numbers, and underlines, and must start with a letter and have no more than 16 characters.
- db_
cluster_ strid The Id of cluster in which account belongs.
- account_
description str Account description. It cannot begin with https://. It must start with a Chinese character or English letter. It can include Chinese and English characters, underlines (_), hyphens (-), and numbers. The length may be 2-256 characters.
- account_
password str Operation password. It may consist of letters, digits, or underlines, with a length of 6 to 32 characters. You have to specify one of
account_password
andkms_encrypted_password
fields.- kms_
encrypted_ strpassword An KMS encrypts password used to a db account. If the
account_password
is filled in, this field will be ignored.- kms_
encryption_ Mapping[str, Any]context An KMS encryption context used to decrypt
kms_encrypted_password
before creating or updating a db account withkms_encrypted_password
. See Encryption Context. It is valid whenkms_encrypted_password
is set.
- account
Name String Operation account requiring a uniqueness check. It may consist of lower case letters, numbers, and underlines, and must start with a letter and have no more than 16 characters.
- db
Cluster StringId The Id of cluster in which account belongs.
- account
Description String Account description. It cannot begin with https://. It must start with a Chinese character or English letter. It can include Chinese and English characters, underlines (_), hyphens (-), and numbers. The length may be 2-256 characters.
- account
Password String Operation password. It may consist of letters, digits, or underlines, with a length of 6 to 32 characters. You have to specify one of
account_password
andkms_encrypted_password
fields.- kms
Encrypted StringPassword An KMS encrypts password used to a db account. If the
account_password
is filled in, this field will be ignored.- kms
Encryption Map<Any>Context An KMS encryption context used to decrypt
kms_encrypted_password
before creating or updating a db account withkms_encrypted_password
. See Encryption Context. It is valid whenkms_encrypted_password
is set.
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_description: Optional[str] = None,
account_name: Optional[str] = None,
account_password: Optional[str] = None,
db_cluster_id: Optional[str] = None,
kms_encrypted_password: Optional[str] = None,
kms_encryption_context: Optional[Mapping[str, Any]] = 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)
Resource lookup is not supported in YAML
- 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
Description string Account description. It cannot begin with https://. It must start with a Chinese character or English letter. It can include Chinese and English characters, underlines (_), hyphens (-), and numbers. The length may be 2-256 characters.
- Account
Name string Operation account requiring a uniqueness check. It may consist of lower case letters, numbers, and underlines, and must start with a letter and have no more than 16 characters.
- Account
Password string Operation password. It may consist of letters, digits, or underlines, with a length of 6 to 32 characters. You have to specify one of
account_password
andkms_encrypted_password
fields.- Db
Cluster stringId The Id of cluster in which account belongs.
- Kms
Encrypted stringPassword An KMS encrypts password used to a db account. If the
account_password
is filled in, this field will be ignored.- Kms
Encryption Dictionary<string, object>Context An KMS encryption context used to decrypt
kms_encrypted_password
before creating or updating a db account withkms_encrypted_password
. See Encryption Context. It is valid whenkms_encrypted_password
is set.
- Account
Description string Account description. It cannot begin with https://. It must start with a Chinese character or English letter. It can include Chinese and English characters, underlines (_), hyphens (-), and numbers. The length may be 2-256 characters.
- Account
Name string Operation account requiring a uniqueness check. It may consist of lower case letters, numbers, and underlines, and must start with a letter and have no more than 16 characters.
- Account
Password string Operation password. It may consist of letters, digits, or underlines, with a length of 6 to 32 characters. You have to specify one of
account_password
andkms_encrypted_password
fields.- Db
Cluster stringId The Id of cluster in which account belongs.
- Kms
Encrypted stringPassword An KMS encrypts password used to a db account. If the
account_password
is filled in, this field will be ignored.- Kms
Encryption map[string]interface{}Context An KMS encryption context used to decrypt
kms_encrypted_password
before creating or updating a db account withkms_encrypted_password
. See Encryption Context. It is valid whenkms_encrypted_password
is set.
- account
Description String Account description. It cannot begin with https://. It must start with a Chinese character or English letter. It can include Chinese and English characters, underlines (_), hyphens (-), and numbers. The length may be 2-256 characters.
- account
Name String Operation account requiring a uniqueness check. It may consist of lower case letters, numbers, and underlines, and must start with a letter and have no more than 16 characters.
- account
Password String Operation password. It may consist of letters, digits, or underlines, with a length of 6 to 32 characters. You have to specify one of
account_password
andkms_encrypted_password
fields.- db
Cluster StringId The Id of cluster in which account belongs.
- kms
Encrypted StringPassword An KMS encrypts password used to a db account. If the
account_password
is filled in, this field will be ignored.- kms
Encryption Map<String,Object>Context An KMS encryption context used to decrypt
kms_encrypted_password
before creating or updating a db account withkms_encrypted_password
. See Encryption Context. It is valid whenkms_encrypted_password
is set.
- account
Description string Account description. It cannot begin with https://. It must start with a Chinese character or English letter. It can include Chinese and English characters, underlines (_), hyphens (-), and numbers. The length may be 2-256 characters.
- account
Name string Operation account requiring a uniqueness check. It may consist of lower case letters, numbers, and underlines, and must start with a letter and have no more than 16 characters.
- account
Password string Operation password. It may consist of letters, digits, or underlines, with a length of 6 to 32 characters. You have to specify one of
account_password
andkms_encrypted_password
fields.- db
Cluster stringId The Id of cluster in which account belongs.
- kms
Encrypted stringPassword An KMS encrypts password used to a db account. If the
account_password
is filled in, this field will be ignored.- kms
Encryption {[key: string]: any}Context An KMS encryption context used to decrypt
kms_encrypted_password
before creating or updating a db account withkms_encrypted_password
. See Encryption Context. It is valid whenkms_encrypted_password
is set.
- account_
description str Account description. It cannot begin with https://. It must start with a Chinese character or English letter. It can include Chinese and English characters, underlines (_), hyphens (-), and numbers. The length may be 2-256 characters.
- account_
name str Operation account requiring a uniqueness check. It may consist of lower case letters, numbers, and underlines, and must start with a letter and have no more than 16 characters.
- account_
password str Operation password. It may consist of letters, digits, or underlines, with a length of 6 to 32 characters. You have to specify one of
account_password
andkms_encrypted_password
fields.- db_
cluster_ strid The Id of cluster in which account belongs.
- kms_
encrypted_ strpassword An KMS encrypts password used to a db account. If the
account_password
is filled in, this field will be ignored.- kms_
encryption_ Mapping[str, Any]context An KMS encryption context used to decrypt
kms_encrypted_password
before creating or updating a db account withkms_encrypted_password
. See Encryption Context. It is valid whenkms_encrypted_password
is set.
- account
Description String Account description. It cannot begin with https://. It must start with a Chinese character or English letter. It can include Chinese and English characters, underlines (_), hyphens (-), and numbers. The length may be 2-256 characters.
- account
Name String Operation account requiring a uniqueness check. It may consist of lower case letters, numbers, and underlines, and must start with a letter and have no more than 16 characters.
- account
Password String Operation password. It may consist of letters, digits, or underlines, with a length of 6 to 32 characters. You have to specify one of
account_password
andkms_encrypted_password
fields.- db
Cluster StringId The Id of cluster in which account belongs.
- kms
Encrypted StringPassword An KMS encrypts password used to a db account. If the
account_password
is filled in, this field will be ignored.- kms
Encryption Map<Any>Context An KMS encryption context used to decrypt
kms_encrypted_password
before creating or updating a db account withkms_encrypted_password
. See Encryption Context. It is valid whenkms_encrypted_password
is set.
Import
ADB account can be imported using the id, e.g.
$ pulumi import alicloud:adb/account:Account example am-12345:tf_account
Package Details
- Repository
- Alibaba Cloud pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
alicloud
Terraform Provider.