alicloud.gpdb.Account
Provides a GPDB Account resource.
For information about GPDB Account and how to use it, see What is Account.
NOTE: Available in v1.142.0+.
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_instance_id: Optional[str] = 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:gpdb: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 The name of the account. The account name must be unique and meet the following requirements:
- Starts with a letter.
- Contains only lowercase letters, digits, or underscores (_).
- Be up to 16 characters in length.
- Contains no reserved keywords.
- Account
Password string The password of the account. The password must be 8 to 32 characters in length and contain at least three of the following character types: uppercase letters, lowercase letters, digits, and special characters. Special characters include
! @ # $ % ^ & * ( ) _ + - =
.- Db
Instance stringId The ID of the instance.
- Account
Description string The description of the account.
- Starts with a letter.
- Does not start with
http://
orhttps://
. - Contains letters, underscores (_), hyphens (-), or digits.
- Be 2 to 256 characters in length.
- Account
Name string The name of the account. The account name must be unique and meet the following requirements:
- Starts with a letter.
- Contains only lowercase letters, digits, or underscores (_).
- Be up to 16 characters in length.
- Contains no reserved keywords.
- Account
Password string The password of the account. The password must be 8 to 32 characters in length and contain at least three of the following character types: uppercase letters, lowercase letters, digits, and special characters. Special characters include
! @ # $ % ^ & * ( ) _ + - =
.- Db
Instance stringId The ID of the instance.
- Account
Description string The description of the account.
- Starts with a letter.
- Does not start with
http://
orhttps://
. - Contains letters, underscores (_), hyphens (-), or digits.
- Be 2 to 256 characters in length.
- account
Name String The name of the account. The account name must be unique and meet the following requirements:
- Starts with a letter.
- Contains only lowercase letters, digits, or underscores (_).
- Be up to 16 characters in length.
- Contains no reserved keywords.
- account
Password String The password of the account. The password must be 8 to 32 characters in length and contain at least three of the following character types: uppercase letters, lowercase letters, digits, and special characters. Special characters include
! @ # $ % ^ & * ( ) _ + - =
.- db
Instance StringId The ID of the instance.
- account
Description String The description of the account.
- Starts with a letter.
- Does not start with
http://
orhttps://
. - Contains letters, underscores (_), hyphens (-), or digits.
- Be 2 to 256 characters in length.
- account
Name string The name of the account. The account name must be unique and meet the following requirements:
- Starts with a letter.
- Contains only lowercase letters, digits, or underscores (_).
- Be up to 16 characters in length.
- Contains no reserved keywords.
- account
Password string The password of the account. The password must be 8 to 32 characters in length and contain at least three of the following character types: uppercase letters, lowercase letters, digits, and special characters. Special characters include
! @ # $ % ^ & * ( ) _ + - =
.- db
Instance stringId The ID of the instance.
- account
Description string The description of the account.
- Starts with a letter.
- Does not start with
http://
orhttps://
. - Contains letters, underscores (_), hyphens (-), or digits.
- Be 2 to 256 characters in length.
- account_
name str The name of the account. The account name must be unique and meet the following requirements:
- Starts with a letter.
- Contains only lowercase letters, digits, or underscores (_).
- Be up to 16 characters in length.
- Contains no reserved keywords.
- account_
password str The password of the account. The password must be 8 to 32 characters in length and contain at least three of the following character types: uppercase letters, lowercase letters, digits, and special characters. Special characters include
! @ # $ % ^ & * ( ) _ + - =
.- db_
instance_ strid The ID of the instance.
- account_
description str The description of the account.
- Starts with a letter.
- Does not start with
http://
orhttps://
. - Contains letters, underscores (_), hyphens (-), or digits.
- Be 2 to 256 characters in length.
- account
Name String The name of the account. The account name must be unique and meet the following requirements:
- Starts with a letter.
- Contains only lowercase letters, digits, or underscores (_).
- Be up to 16 characters in length.
- Contains no reserved keywords.
- account
Password String The password of the account. The password must be 8 to 32 characters in length and contain at least three of the following character types: uppercase letters, lowercase letters, digits, and special characters. Special characters include
! @ # $ % ^ & * ( ) _ + - =
.- db
Instance StringId The ID of the instance.
- account
Description String The description of the account.
- Starts with a letter.
- Does not start with
http://
orhttps://
. - Contains letters, underscores (_), hyphens (-), or digits.
- Be 2 to 256 characters in length.
Outputs
All input properties are implicitly available as output properties. Additionally, the Account resource produces the following output properties:
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_instance_id: Optional[str] = None,
status: 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.
- Account
Description string The description of the account.
- Starts with a letter.
- Does not start with
http://
orhttps://
. - Contains letters, underscores (_), hyphens (-), or digits.
- Be 2 to 256 characters in length.
- Account
Name string The name of the account. The account name must be unique and meet the following requirements:
- Starts with a letter.
- Contains only lowercase letters, digits, or underscores (_).
- Be up to 16 characters in length.
- Contains no reserved keywords.
- Account
Password string The password of the account. The password must be 8 to 32 characters in length and contain at least three of the following character types: uppercase letters, lowercase letters, digits, and special characters. Special characters include
! @ # $ % ^ & * ( ) _ + - =
.- Db
Instance stringId The ID of the instance.
- Status string
The status of the account. Valid values:
Active
,Creating
andDeleting
.
- Account
Description string The description of the account.
- Starts with a letter.
- Does not start with
http://
orhttps://
. - Contains letters, underscores (_), hyphens (-), or digits.
- Be 2 to 256 characters in length.
- Account
Name string The name of the account. The account name must be unique and meet the following requirements:
- Starts with a letter.
- Contains only lowercase letters, digits, or underscores (_).
- Be up to 16 characters in length.
- Contains no reserved keywords.
- Account
Password string The password of the account. The password must be 8 to 32 characters in length and contain at least three of the following character types: uppercase letters, lowercase letters, digits, and special characters. Special characters include
! @ # $ % ^ & * ( ) _ + - =
.- Db
Instance stringId The ID of the instance.
- Status string
The status of the account. Valid values:
Active
,Creating
andDeleting
.
- account
Description String The description of the account.
- Starts with a letter.
- Does not start with
http://
orhttps://
. - Contains letters, underscores (_), hyphens (-), or digits.
- Be 2 to 256 characters in length.
- account
Name String The name of the account. The account name must be unique and meet the following requirements:
- Starts with a letter.
- Contains only lowercase letters, digits, or underscores (_).
- Be up to 16 characters in length.
- Contains no reserved keywords.
- account
Password String The password of the account. The password must be 8 to 32 characters in length and contain at least three of the following character types: uppercase letters, lowercase letters, digits, and special characters. Special characters include
! @ # $ % ^ & * ( ) _ + - =
.- db
Instance StringId The ID of the instance.
- status String
The status of the account. Valid values:
Active
,Creating
andDeleting
.
- account
Description string The description of the account.
- Starts with a letter.
- Does not start with
http://
orhttps://
. - Contains letters, underscores (_), hyphens (-), or digits.
- Be 2 to 256 characters in length.
- account
Name string The name of the account. The account name must be unique and meet the following requirements:
- Starts with a letter.
- Contains only lowercase letters, digits, or underscores (_).
- Be up to 16 characters in length.
- Contains no reserved keywords.
- account
Password string The password of the account. The password must be 8 to 32 characters in length and contain at least three of the following character types: uppercase letters, lowercase letters, digits, and special characters. Special characters include
! @ # $ % ^ & * ( ) _ + - =
.- db
Instance stringId The ID of the instance.
- status string
The status of the account. Valid values:
Active
,Creating
andDeleting
.
- account_
description str The description of the account.
- Starts with a letter.
- Does not start with
http://
orhttps://
. - Contains letters, underscores (_), hyphens (-), or digits.
- Be 2 to 256 characters in length.
- account_
name str The name of the account. The account name must be unique and meet the following requirements:
- Starts with a letter.
- Contains only lowercase letters, digits, or underscores (_).
- Be up to 16 characters in length.
- Contains no reserved keywords.
- account_
password str The password of the account. The password must be 8 to 32 characters in length and contain at least three of the following character types: uppercase letters, lowercase letters, digits, and special characters. Special characters include
! @ # $ % ^ & * ( ) _ + - =
.- db_
instance_ strid The ID of the instance.
- status str
The status of the account. Valid values:
Active
,Creating
andDeleting
.
- account
Description String The description of the account.
- Starts with a letter.
- Does not start with
http://
orhttps://
. - Contains letters, underscores (_), hyphens (-), or digits.
- Be 2 to 256 characters in length.
- account
Name String The name of the account. The account name must be unique and meet the following requirements:
- Starts with a letter.
- Contains only lowercase letters, digits, or underscores (_).
- Be up to 16 characters in length.
- Contains no reserved keywords.
- account
Password String The password of the account. The password must be 8 to 32 characters in length and contain at least three of the following character types: uppercase letters, lowercase letters, digits, and special characters. Special characters include
! @ # $ % ^ & * ( ) _ + - =
.- db
Instance StringId The ID of the instance.
- status String
The status of the account. Valid values:
Active
,Creating
andDeleting
.
Import
GPDB Account can be imported using the id, e.g.
$ pulumi import alicloud:gpdb/account:Account example <db_instance_id>:<account_name>
Package Details
- Repository
- Alibaba Cloud pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
alicloud
Terraform Provider.