Class GrantArgs
Inherited Members
Namespace: Pulumi.MySql
Assembly: Pulumi.MySql.dll
Syntax
public sealed class GrantArgs : ResourceArgs
Constructors
View SourceGrantArgs()
Declaration
public GrantArgs()
Properties
View SourceDatabase
The database to grant privileges on.
Declaration
public Input<string> Database { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.String> |
GrantName
Whether to also give the user privileges to grant the same privileges to other users.
Declaration
public Input<bool> GrantName { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.Boolean> |
Host
The source host of the user. Defaults to "localhost". Conflicts with role.
Declaration
public Input<string> Host { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.String> |
Privileges
A list of privileges to grant to the user. Refer to a list of privileges (such as here) for applicable privileges. Conflicts with roles.
Declaration
public InputList<string> Privileges { get; set; }
Property Value
| Type | Description |
|---|---|
| InputList<System.String> |
Role
The role to grant privileges to. Conflicts with user and host.
Declaration
public Input<string> Role { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.String> |
Roles
A list of rols to grant to the user. Conflicts with privileges.
Declaration
public InputList<string> Roles { get; set; }
Property Value
| Type | Description |
|---|---|
| InputList<System.String> |
Table
Which table to grant privileges on. Defaults to *, which is all tables.
Declaration
public Input<string> Table { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.String> |
TlsOption
An TLS-Option for the GRANT statement. The value is suffixed to REQUIRE. A value of 'SSL' will generate a GRANT ... REQUIRE SSL statement. See the MYSQL GRANT documentation for more. Ignored if MySQL version is under 5.7.0.
Declaration
public Input<string> TlsOption { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.String> |
User
The name of the user. Conflicts with role.
Declaration
public Input<string> User { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.String> |