@volcengine/pulumi
Version:
A Pulumi package for creating and managing volcengine cloud resources.
145 lines (144 loc) • 6.15 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
/**
* (Deprecated! Recommend use volcengine_rds_mysql_*** replace) Provides a resource to manage rds account
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as volcengine from "@volcengine/pulumi";
*
* const foo = new volcengine.rds.Account("foo", {
* accountName: "test",
* accountPassword: "Aatest123",
* accountType: "Normal",
* instanceId: "mysql-0fdd3bab2e7c",
* });
* ```
*
* ## Import
*
* RDS account can be imported using the id, e.g.
*
* ```sh
* $ pulumi import volcengine:rds/account:Account default mysql-42b38c769c4b:test
* ```
*/
export declare class Account extends pulumi.CustomResource {
/**
* Get an existing Account resource's state with the given name, ID, and optional extra
* properties used to qualify the lookup.
*
* @param name The _unique_ name of the resulting resource.
* @param id The _unique_ provider ID of the resource to lookup.
* @param state Any extra arguments used during the lookup.
* @param opts Optional settings to control the behavior of the CustomResource.
*/
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: AccountState, opts?: pulumi.CustomResourceOptions): Account;
/**
* Returns true if the given object is an instance of Account. This is designed to work even
* when multiple copies of the Pulumi SDK have been loaded into the same process.
*/
static isInstance(obj: any): obj is Account;
/**
* Database account name. The rules are as follows:
* Unique name.
* Start with a letter and end with a letter or number.
* Consists of lowercase letters, numbers, or underscores (_).
* The length is 2~32 characters.
* The [keyword list](https://www.volcengine.com/docs/6313/66162) is disabled for database accounts, and certain reserved words, including root, admin, etc., cannot be used.
*/
readonly accountName: pulumi.Output<string>;
/**
* The password of the database account.
* illustrate
* Cannot start with `!` or `@`.
* The length is 8~32 characters.
* It consists of any three of uppercase letters, lowercase letters, numbers, and special characters.
* The special characters are `!@#$%^*()_+-=`. When importing resources, this attribute will not be imported. If this attribute is set, please use lifecycle and ignoreChanges ignore changes in fields.
*/
readonly accountPassword: pulumi.Output<string>;
/**
* Database account type, value:
* Super: A high-privilege account. Only one database account can be created for an instance.
* Normal: An account with ordinary privileges.
*/
readonly accountType: pulumi.Output<string>;
/**
* The ID of the RDS instance.
*/
readonly instanceId: pulumi.Output<string>;
/**
* Create a Account resource with the given unique name, arguments, and options.
*
* @param name The _unique_ name of the resource.
* @param args The arguments to use to populate this resource's properties.
* @param opts A bag of options that control this resource's behavior.
*/
constructor(name: string, args: AccountArgs, opts?: pulumi.CustomResourceOptions);
}
/**
* Input properties used for looking up and filtering Account resources.
*/
export interface AccountState {
/**
* Database account name. The rules are as follows:
* Unique name.
* Start with a letter and end with a letter or number.
* Consists of lowercase letters, numbers, or underscores (_).
* The length is 2~32 characters.
* The [keyword list](https://www.volcengine.com/docs/6313/66162) is disabled for database accounts, and certain reserved words, including root, admin, etc., cannot be used.
*/
accountName?: pulumi.Input<string>;
/**
* The password of the database account.
* illustrate
* Cannot start with `!` or `@`.
* The length is 8~32 characters.
* It consists of any three of uppercase letters, lowercase letters, numbers, and special characters.
* The special characters are `!@#$%^*()_+-=`. When importing resources, this attribute will not be imported. If this attribute is set, please use lifecycle and ignoreChanges ignore changes in fields.
*/
accountPassword?: pulumi.Input<string>;
/**
* Database account type, value:
* Super: A high-privilege account. Only one database account can be created for an instance.
* Normal: An account with ordinary privileges.
*/
accountType?: pulumi.Input<string>;
/**
* The ID of the RDS instance.
*/
instanceId?: pulumi.Input<string>;
}
/**
* The set of arguments for constructing a Account resource.
*/
export interface AccountArgs {
/**
* Database account name. The rules are as follows:
* Unique name.
* Start with a letter and end with a letter or number.
* Consists of lowercase letters, numbers, or underscores (_).
* The length is 2~32 characters.
* The [keyword list](https://www.volcengine.com/docs/6313/66162) is disabled for database accounts, and certain reserved words, including root, admin, etc., cannot be used.
*/
accountName: pulumi.Input<string>;
/**
* The password of the database account.
* illustrate
* Cannot start with `!` or `@`.
* The length is 8~32 characters.
* It consists of any three of uppercase letters, lowercase letters, numbers, and special characters.
* The special characters are `!@#$%^*()_+-=`. When importing resources, this attribute will not be imported. If this attribute is set, please use lifecycle and ignoreChanges ignore changes in fields.
*/
accountPassword: pulumi.Input<string>;
/**
* Database account type, value:
* Super: A high-privilege account. Only one database account can be created for an instance.
* Normal: An account with ordinary privileges.
*/
accountType: pulumi.Input<string>;
/**
* The ID of the RDS instance.
*/
instanceId: pulumi.Input<string>;
}