Alibaba Cloud

Pulumi Official
Package maintained by Pulumi
v3.19.0 published on Friday, Mar 18, 2022 by Pulumi

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 a 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:

AccountName 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.
AccountPassword 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 ! @ # $ % ^ & * ( ) _ + - =.

DbInstanceId string

The ID of the instance.

AccountDescription string

The description of the account.

  • Starts with a letter.
  • Does not start with http:// or https://.
  • Contains letters, underscores (_), hyphens (-), or digits.
  • Be 2 to 256 characters in length.
AccountName 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.
AccountPassword 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 ! @ # $ % ^ & * ( ) _ + - =.

DbInstanceId string

The ID of the instance.

AccountDescription string

The description of the account.

  • Starts with a letter.
  • Does not start with http:// or https://.
  • Contains letters, underscores (_), hyphens (-), or digits.
  • Be 2 to 256 characters in length.
accountName 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.
accountPassword 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 ! @ # $ % ^ & * ( ) _ + - =.

dbInstanceId String

The ID of the instance.

accountDescription String

The description of the account.

  • Starts with a letter.
  • Does not start with http:// or https://.
  • Contains letters, underscores (_), hyphens (-), or digits.
  • Be 2 to 256 characters in length.
accountName 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.
accountPassword 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 ! @ # $ % ^ & * ( ) _ + - =.

dbInstanceId string

The ID of the instance.

accountDescription string

The description of the account.

  • Starts with a letter.
  • Does not start with http:// or https://.
  • 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_id str

The ID of the instance.

account_description str

The description of the account.

  • Starts with a letter.
  • Does not start with http:// or https://.
  • Contains letters, underscores (_), hyphens (-), or digits.
  • Be 2 to 256 characters in length.
accountName 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.
accountPassword 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 ! @ # $ % ^ & * ( ) _ + - =.

dbInstanceId String

The ID of the instance.

accountDescription String

The description of the account.

  • Starts with a letter.
  • Does not start with http:// or https://.
  • 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:

Id string

The provider-assigned unique ID for this managed resource.

Status string

The status of the account. Valid values: Active, Creating and Deleting.

Id string

The provider-assigned unique ID for this managed resource.

Status string

The status of the account. Valid values: Active, Creating and Deleting.

id String

The provider-assigned unique ID for this managed resource.

status String

The status of the account. Valid values: Active, Creating and Deleting.

id string

The provider-assigned unique ID for this managed resource.

status string

The status of the account. Valid values: Active, Creating and Deleting.

id str

The provider-assigned unique ID for this managed resource.

status str

The status of the account. Valid values: Active, Creating and Deleting.

id String

The provider-assigned unique ID for this managed resource.

status String

The status of the account. Valid values: Active, Creating and Deleting.

Look up an 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.
The following state arguments are supported:
AccountDescription string

The description of the account.

  • Starts with a letter.
  • Does not start with http:// or https://.
  • Contains letters, underscores (_), hyphens (-), or digits.
  • Be 2 to 256 characters in length.
AccountName 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.
AccountPassword 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 ! @ # $ % ^ & * ( ) _ + - =.

DbInstanceId string

The ID of the instance.

Status string

The status of the account. Valid values: Active, Creating and Deleting.

AccountDescription string

The description of the account.

  • Starts with a letter.
  • Does not start with http:// or https://.
  • Contains letters, underscores (_), hyphens (-), or digits.
  • Be 2 to 256 characters in length.
AccountName 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.
AccountPassword 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 ! @ # $ % ^ & * ( ) _ + - =.

DbInstanceId string

The ID of the instance.

Status string

The status of the account. Valid values: Active, Creating and Deleting.

accountDescription String

The description of the account.

  • Starts with a letter.
  • Does not start with http:// or https://.
  • Contains letters, underscores (_), hyphens (-), or digits.
  • Be 2 to 256 characters in length.
accountName 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.
accountPassword 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 ! @ # $ % ^ & * ( ) _ + - =.

dbInstanceId String

The ID of the instance.

status String

The status of the account. Valid values: Active, Creating and Deleting.

accountDescription string

The description of the account.

  • Starts with a letter.
  • Does not start with http:// or https://.
  • Contains letters, underscores (_), hyphens (-), or digits.
  • Be 2 to 256 characters in length.
accountName 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.
accountPassword 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 ! @ # $ % ^ & * ( ) _ + - =.

dbInstanceId string

The ID of the instance.

status string

The status of the account. Valid values: Active, Creating and Deleting.

account_description str

The description of the account.

  • Starts with a letter.
  • Does not start with http:// or https://.
  • 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_id str

The ID of the instance.

status str

The status of the account. Valid values: Active, Creating and Deleting.

accountDescription String

The description of the account.

  • Starts with a letter.
  • Does not start with http:// or https://.
  • Contains letters, underscores (_), hyphens (-), or digits.
  • Be 2 to 256 characters in length.
accountName 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.
accountPassword 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 ! @ # $ % ^ & * ( ) _ + - =.

dbInstanceId String

The ID of the instance.

status String

The status of the account. Valid values: Active, Creating and Deleting.

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
https://github.com/pulumi/pulumi-alicloud
License
Apache-2.0
Notes

This Pulumi package is based on the alicloud Terraform Provider.