Class AccountPrivilege
Provides a PolarDB account privilege resource and used to grant several database some access privilege. A database can be granted by multiple account.
NOTE: Available in v1.67.0+.
Inherited Members
Namespace: Pulumi.AliCloud.PolarDB
Assembly: Pulumi.AliCloud.dll
Syntax
public class AccountPrivilege : CustomResource
Constructors
View SourceAccountPrivilege(String, AccountPrivilegeArgs, CustomResourceOptions)
Create a AccountPrivilege resource with the given unique name, arguments, and options.
Declaration
public AccountPrivilege(string name, AccountPrivilegeArgs args, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resource |
| AccountPrivilegeArgs | args | The arguments used to populate this resource's properties |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Properties
View SourceAccountName
A specified account name.
Declaration
public Output<string> AccountName { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
DbClusterId
The Id of cluster in which account belongs.
Declaration
public Output<string> DbClusterId { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
DbNames
List of specified database name.
Declaration
public Output<ImmutableArray<string>> DbNames { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Collections.Immutable.ImmutableArray<System.String>> |
Privilege
The privilege of one account access database. Valid values: ["ReadOnly", "ReadWrite"]. Default to "ReadOnly".
Declaration
public Output<string> Privilege { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Methods
View SourceGet(String, Input<String>, AccountPrivilegeState, CustomResourceOptions)
Get an existing AccountPrivilege resource's state with the given name, ID, and optional extra properties used to qualify the lookup.
Declaration
public static AccountPrivilege Get(string name, Input<string> id, AccountPrivilegeState state = null, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resulting resource. |
| Input<System.String> | id | The unique provider ID of the resource to lookup. |
| AccountPrivilegeState | state | Any extra arguments used during the lookup. |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Returns
| Type | Description |
|---|---|
| AccountPrivilege |