Show / Hide Table of Contents

Class GrantState

Inheritance
System.Object
InputArgs
ResourceArgs
GrantState
Inherited Members
ResourceArgs.Empty
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.MySql
Assembly: Pulumi.MySql.dll
Syntax
public sealed class GrantState : ResourceArgs

Constructors

View Source

GrantState()

Declaration
public GrantState()

Properties

View Source

Database

The database to grant privileges on.

Declaration
public Input<string> Database { get; set; }
Property Value
Type Description
Input<System.String>
View Source

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>
View Source

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>
View Source

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>
View Source

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>
View Source

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>
View Source

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>
View Source

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>
View Source

User

The name of the user. Conflicts with role.

Declaration
public Input<string> User { get; set; }
Property Value
Type Description
Input<System.String>
  • View Source
Back to top Copyright 2016-2020, Pulumi Corporation.