alicloud logo
Alibaba Cloud v3.34.0, Mar 17 23

alicloud.mongodb.Account

Provides a MongoDB Account resource.

For information about MongoDB Account and how to use it, see What is Account.

NOTE: Available in v1.148.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,
            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:mongodb: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. Valid values: root.

AccountPassword string

The Password of the Account.

  • The password must contain at least three of the following character types: uppercase letters, lowercase letters, digits, and special characters. Special characters include !#$%^&*()_+-=.
  • The password must be 8 to 32 characters in length.
InstanceId string

The ID of the instance.

AccountDescription string

The description of the account.

  • The description must start with a letter, and cannot start with http:// or https://.
  • It must be 2 to 256 characters in length, and can contain letters, digits, underscores (_), and hyphens (-).
AccountName string

The name of the account. Valid values: root.

AccountPassword string

The Password of the Account.

  • The password must contain at least three of the following character types: uppercase letters, lowercase letters, digits, and special characters. Special characters include !#$%^&*()_+-=.
  • The password must be 8 to 32 characters in length.
InstanceId string

The ID of the instance.

AccountDescription string

The description of the account.

  • The description must start with a letter, and cannot start with http:// or https://.
  • It must be 2 to 256 characters in length, and can contain letters, digits, underscores (_), and hyphens (-).
accountName String

The name of the account. Valid values: root.

accountPassword String

The Password of the Account.

  • The password must contain at least three of the following character types: uppercase letters, lowercase letters, digits, and special characters. Special characters include !#$%^&*()_+-=.
  • The password must be 8 to 32 characters in length.
instanceId String

The ID of the instance.

accountDescription String

The description of the account.

  • The description must start with a letter, and cannot start with http:// or https://.
  • It must be 2 to 256 characters in length, and can contain letters, digits, underscores (_), and hyphens (-).
accountName string

The name of the account. Valid values: root.

accountPassword string

The Password of the Account.

  • The password must contain at least three of the following character types: uppercase letters, lowercase letters, digits, and special characters. Special characters include !#$%^&*()_+-=.
  • The password must be 8 to 32 characters in length.
instanceId string

The ID of the instance.

accountDescription string

The description of the account.

  • The description must start with a letter, and cannot start with http:// or https://.
  • It must be 2 to 256 characters in length, and can contain letters, digits, underscores (_), and hyphens (-).
account_name str

The name of the account. Valid values: root.

account_password str

The Password of the Account.

  • The password must contain at least three of the following character types: uppercase letters, lowercase letters, digits, and special characters. Special characters include !#$%^&*()_+-=.
  • The password must be 8 to 32 characters in length.
instance_id str

The ID of the instance.

account_description str

The description of the account.

  • The description must start with a letter, and cannot start with http:// or https://.
  • It must be 2 to 256 characters in length, and can contain letters, digits, underscores (_), and hyphens (-).
accountName String

The name of the account. Valid values: root.

accountPassword String

The Password of the Account.

  • The password must contain at least three of the following character types: uppercase letters, lowercase letters, digits, and special characters. Special characters include !#$%^&*()_+-=.
  • The password must be 8 to 32 characters in length.
instanceId String

The ID of the instance.

accountDescription String

The description of the account.

  • The description must start with a letter, and cannot start with http:// or https://.
  • It must be 2 to 256 characters in length, and can contain letters, digits, underscores (_), and hyphens (-).

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: Unavailable, Available.

Id string

The provider-assigned unique ID for this managed resource.

Status string

The status of the account. Valid values: Unavailable, Available.

id String

The provider-assigned unique ID for this managed resource.

status String

The status of the account. Valid values: Unavailable, Available.

id string

The provider-assigned unique ID for this managed resource.

status string

The status of the account. Valid values: Unavailable, Available.

id str

The provider-assigned unique ID for this managed resource.

status str

The status of the account. Valid values: Unavailable, Available.

id String

The provider-assigned unique ID for this managed resource.

status String

The status of the account. Valid values: Unavailable, Available.

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,
        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.

  • The description must start with a letter, and cannot start with http:// or https://.
  • It must be 2 to 256 characters in length, and can contain letters, digits, underscores (_), and hyphens (-).
AccountName string

The name of the account. Valid values: root.

AccountPassword string

The Password of the Account.

  • The password must contain at least three of the following character types: uppercase letters, lowercase letters, digits, and special characters. Special characters include !#$%^&*()_+-=.
  • The password must be 8 to 32 characters in length.
InstanceId string

The ID of the instance.

Status string

The status of the account. Valid values: Unavailable, Available.

AccountDescription string

The description of the account.

  • The description must start with a letter, and cannot start with http:// or https://.
  • It must be 2 to 256 characters in length, and can contain letters, digits, underscores (_), and hyphens (-).
AccountName string

The name of the account. Valid values: root.

AccountPassword string

The Password of the Account.

  • The password must contain at least three of the following character types: uppercase letters, lowercase letters, digits, and special characters. Special characters include !#$%^&*()_+-=.
  • The password must be 8 to 32 characters in length.
InstanceId string

The ID of the instance.

Status string

The status of the account. Valid values: Unavailable, Available.

accountDescription String

The description of the account.

  • The description must start with a letter, and cannot start with http:// or https://.
  • It must be 2 to 256 characters in length, and can contain letters, digits, underscores (_), and hyphens (-).
accountName String

The name of the account. Valid values: root.

accountPassword String

The Password of the Account.

  • The password must contain at least three of the following character types: uppercase letters, lowercase letters, digits, and special characters. Special characters include !#$%^&*()_+-=.
  • The password must be 8 to 32 characters in length.
instanceId String

The ID of the instance.

status String

The status of the account. Valid values: Unavailable, Available.

accountDescription string

The description of the account.

  • The description must start with a letter, and cannot start with http:// or https://.
  • It must be 2 to 256 characters in length, and can contain letters, digits, underscores (_), and hyphens (-).
accountName string

The name of the account. Valid values: root.

accountPassword string

The Password of the Account.

  • The password must contain at least three of the following character types: uppercase letters, lowercase letters, digits, and special characters. Special characters include !#$%^&*()_+-=.
  • The password must be 8 to 32 characters in length.
instanceId string

The ID of the instance.

status string

The status of the account. Valid values: Unavailable, Available.

account_description str

The description of the account.

  • The description must start with a letter, and cannot start with http:// or https://.
  • It must be 2 to 256 characters in length, and can contain letters, digits, underscores (_), and hyphens (-).
account_name str

The name of the account. Valid values: root.

account_password str

The Password of the Account.

  • The password must contain at least three of the following character types: uppercase letters, lowercase letters, digits, and special characters. Special characters include !#$%^&*()_+-=.
  • The password must be 8 to 32 characters in length.
instance_id str

The ID of the instance.

status str

The status of the account. Valid values: Unavailable, Available.

accountDescription String

The description of the account.

  • The description must start with a letter, and cannot start with http:// or https://.
  • It must be 2 to 256 characters in length, and can contain letters, digits, underscores (_), and hyphens (-).
accountName String

The name of the account. Valid values: root.

accountPassword String

The Password of the Account.

  • The password must contain at least three of the following character types: uppercase letters, lowercase letters, digits, and special characters. Special characters include !#$%^&*()_+-=.
  • The password must be 8 to 32 characters in length.
instanceId String

The ID of the instance.

status String

The status of the account. Valid values: Unavailable, Available.

Import

MongoDB Account can be imported using the id, e.g.

 $ pulumi import alicloud:mongodb/account:Account example <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.