1. Packages
  2. Volcengine
  3. API Docs
  4. rds
  5. Account
Volcengine v0.0.26 published on Friday, Sep 13, 2024 by Volcengine

volcengine.rds.Account

Explore with Pulumi AI

volcengine logo
Volcengine v0.0.26 published on Friday, Sep 13, 2024 by Volcengine

    (Deprecated! Recommend use volcengine_rds_mysql_*** replace) Provides a resource to manage rds account

    Example Usage

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Volcengine = Pulumi.Volcengine;
    
    return await Deployment.RunAsync(() => 
    {
        var foo = new Volcengine.Rds.Account("foo", new()
        {
            AccountName = "test",
            AccountPassword = "Aatest123",
            AccountType = "Normal",
            InstanceId = "mysql-0fdd3bab2e7c",
        });
    
    });
    
    package main
    
    import (
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/volcengine/pulumi-volcengine/sdk/go/volcengine/rds"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := rds.NewAccount(ctx, "foo", &rds.AccountArgs{
    			AccountName:     pulumi.String("test"),
    			AccountPassword: pulumi.String("Aatest123"),
    			AccountType:     pulumi.String("Normal"),
    			InstanceId:      pulumi.String("mysql-0fdd3bab2e7c"),
    		})
    		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.volcengine.rds.Account;
    import com.pulumi.volcengine.rds.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) {
            var foo = new Account("foo", AccountArgs.builder()        
                .accountName("test")
                .accountPassword("Aatest123")
                .accountType("Normal")
                .instanceId("mysql-0fdd3bab2e7c")
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_volcengine as volcengine
    
    foo = volcengine.rds.Account("foo",
        account_name="test",
        account_password="Aatest123",
        account_type="Normal",
        instance_id="mysql-0fdd3bab2e7c")
    
    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",
    });
    
    resources:
      foo:
        type: volcengine:rds:Account
        properties:
          accountName: test
          accountPassword: Aatest123
          accountType: Normal
          instanceId: mysql-0fdd3bab2e7c
    

    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_name: Optional[str] = None,
                account_password: Optional[str] = None,
                account_type: Optional[str] = None,
                instance_id: Optional[str] = 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: volcengine:rds: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 volcengineAccountResource = new Volcengine.Rds.Account("volcengineAccountResource", new()
    {
        AccountName = "string",
        AccountPassword = "string",
        AccountType = "string",
        InstanceId = "string",
    });
    
    example, err := rds.NewAccount(ctx, "volcengineAccountResource", &rds.AccountArgs{
    	AccountName:     pulumi.String("string"),
    	AccountPassword: pulumi.String("string"),
    	AccountType:     pulumi.String("string"),
    	InstanceId:      pulumi.String("string"),
    })
    
    var volcengineAccountResource = new Account("volcengineAccountResource", AccountArgs.builder()
        .accountName("string")
        .accountPassword("string")
        .accountType("string")
        .instanceId("string")
        .build());
    
    volcengine_account_resource = volcengine.rds.Account("volcengineAccountResource",
        account_name="string",
        account_password="string",
        account_type="string",
        instance_id="string")
    
    const volcengineAccountResource = new volcengine.rds.Account("volcengineAccountResource", {
        accountName: "string",
        accountPassword: "string",
        accountType: "string",
        instanceId: "string",
    });
    
    type: volcengine:rds:Account
    properties:
        accountName: string
        accountPassword: string
        accountType: string
        instanceId: 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

    The Account resource accepts the following input properties:

    AccountName string
    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 is disabled for database accounts, and certain reserved words, including root, admin, etc., cannot be used.
    AccountPassword 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 ignore_changes ignore changes in fields.
    AccountType 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.
    InstanceId string
    The ID of the RDS instance.
    AccountName string
    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 is disabled for database accounts, and certain reserved words, including root, admin, etc., cannot be used.
    AccountPassword 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 ignore_changes ignore changes in fields.
    AccountType 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.
    InstanceId string
    The ID of the RDS instance.
    accountName String
    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 is disabled for database accounts, and certain reserved words, including root, admin, etc., cannot be used.
    accountPassword 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 ignore_changes ignore changes in fields.
    accountType 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.
    instanceId String
    The ID of the RDS instance.
    accountName string
    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 is disabled for database accounts, and certain reserved words, including root, admin, etc., cannot be used.
    accountPassword 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 ignore_changes ignore changes in fields.
    accountType 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.
    instanceId string
    The ID of the RDS instance.
    account_name str
    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 is disabled for database accounts, and certain reserved words, including root, admin, etc., cannot be used.
    account_password str
    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 ignore_changes ignore changes in fields.
    account_type str
    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.
    instance_id str
    The ID of the RDS instance.
    accountName String
    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 is disabled for database accounts, and certain reserved words, including root, admin, etc., cannot be used.
    accountPassword 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 ignore_changes ignore changes in fields.
    accountType 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.
    instanceId String
    The ID of the RDS instance.

    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_name: Optional[str] = None,
            account_password: Optional[str] = None,
            account_type: Optional[str] = None,
            instance_id: 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)
    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.
    The following state arguments are supported:
    AccountName string
    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 is disabled for database accounts, and certain reserved words, including root, admin, etc., cannot be used.
    AccountPassword 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 ignore_changes ignore changes in fields.
    AccountType 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.
    InstanceId string
    The ID of the RDS instance.
    AccountName string
    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 is disabled for database accounts, and certain reserved words, including root, admin, etc., cannot be used.
    AccountPassword 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 ignore_changes ignore changes in fields.
    AccountType 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.
    InstanceId string
    The ID of the RDS instance.
    accountName String
    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 is disabled for database accounts, and certain reserved words, including root, admin, etc., cannot be used.
    accountPassword 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 ignore_changes ignore changes in fields.
    accountType 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.
    instanceId String
    The ID of the RDS instance.
    accountName string
    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 is disabled for database accounts, and certain reserved words, including root, admin, etc., cannot be used.
    accountPassword 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 ignore_changes ignore changes in fields.
    accountType 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.
    instanceId string
    The ID of the RDS instance.
    account_name str
    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 is disabled for database accounts, and certain reserved words, including root, admin, etc., cannot be used.
    account_password str
    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 ignore_changes ignore changes in fields.
    account_type str
    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.
    instance_id str
    The ID of the RDS instance.
    accountName String
    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 is disabled for database accounts, and certain reserved words, including root, admin, etc., cannot be used.
    accountPassword 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 ignore_changes ignore changes in fields.
    accountType 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.
    instanceId String
    The ID of the RDS instance.

    Import

    RDS account can be imported using the id, e.g.

     $ pulumi import volcengine:rds/account:Account default mysql-42b38c769c4b:test
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    volcengine volcengine/pulumi-volcengine
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the volcengine Terraform Provider.
    volcengine logo
    Volcengine v0.0.26 published on Friday, Sep 13, 2024 by Volcengine