Show / Hide Table of Contents

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

Inheritance
System.Object
Resource
CustomResource
AccountPrivilege
Inherited Members
CustomResource.Id
Resource.GetResourceType()
Resource.GetResourceName()
Resource.Urn
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Pulumi.AliCloud.PolarDB
Assembly: Pulumi.AliCloud.dll
Syntax
public class AccountPrivilege : CustomResource

Constructors

View Source

AccountPrivilege(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 Source

AccountName

A specified account name.

Declaration
public Output<string> AccountName { get; }
Property Value
Type Description
Output<System.String>
View Source

DbClusterId

The Id of cluster in which account belongs.

Declaration
public Output<string> DbClusterId { get; }
Property Value
Type Description
Output<System.String>
View Source

DbNames

List of specified database name.

Declaration
public Output<ImmutableArray<string>> DbNames { get; }
Property Value
Type Description
Output<System.Collections.Immutable.ImmutableArray<System.String>>
View Source

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 Source

Get(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
  • View Source
Back to top Copyright 2016-2020, Pulumi Corporation.