Class Account
Provides a PolarDB account resource and used to manage databases.
NOTE: Available in v1.67.0+.
Inherited Members
Namespace: Pulumi.AliCloud.PolarDB
Assembly: Pulumi.AliCloud.dll
Syntax
public class Account : CustomResource
Constructors
View SourceAccount(String, AccountArgs, CustomResourceOptions)
Create a Account resource with the given unique name, arguments, and options.
Declaration
public Account(string name, AccountArgs args, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resource |
| AccountArgs | args | The arguments used to populate this resource's properties |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Properties
View SourceAccountDescription
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.
Declaration
public Output<string> AccountDescription { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
AccountName
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.
Declaration
public Output<string> AccountName { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
AccountPassword
Operation password. It may consist of letters, digits, or underlines, with a length of 6 to 32 characters.
Declaration
public Output<string> AccountPassword { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
AccountType
Account type, Valid values are Normal, Super, Default to Normal.
Declaration
public Output<string> AccountType { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
DbClusterId
The Id of cluster in which account belongs.
Declaration
public Output<string> DbClusterId { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
KmsEncryptedPassword
An KMS encrypts password used to a db account. If the account_password is filled in, this field will be ignored.
Declaration
public Output<string> KmsEncryptedPassword { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
KmsEncryptionContext
An KMS encryption context used to decrypt kms_encrypted_password before creating or updating a db account with kms_encrypted_password. See Encryption Context. It is valid when kms_encrypted_password is set.
Declaration
public Output<ImmutableDictionary<string, object>> KmsEncryptionContext { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Collections.Immutable.ImmutableDictionary<System.String, System.Object>> |
Methods
View SourceGet(String, Input<String>, AccountState, CustomResourceOptions)
Get an existing Account resource's state with the given name, ID, and optional extra properties used to qualify the lookup.
Declaration
public static Account Get(string name, Input<string> id, AccountState state = null, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resulting resource. |
| Input<System.String> | id | The unique provider ID of the resource to lookup. |
| AccountState | state | Any extra arguments used during the lookup. |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Returns
| Type | Description |
|---|---|
| Account |