Documentation
¶
Overview ¶
A Pulumi package for creating and managing mysql cloud resources.
Index ¶
- type Database
- type DatabaseArgs
- type DatabaseArray
- type DatabaseArrayInput
- type DatabaseArrayOutput
- type DatabaseInput
- type DatabaseMap
- type DatabaseMapInput
- type DatabaseMapOutput
- type DatabaseOutput
- func (o DatabaseOutput) DefaultCharacterSet() pulumi.StringPtrOutput
- func (o DatabaseOutput) DefaultCollation() pulumi.StringPtrOutput
- func (DatabaseOutput) ElementType() reflect.Type
- func (o DatabaseOutput) Name() pulumi.StringOutput
- func (o DatabaseOutput) ToDatabaseOutput() DatabaseOutput
- func (o DatabaseOutput) ToDatabaseOutputWithContext(ctx context.Context) DatabaseOutput
- type DatabaseState
- type Grant
- type GrantArgs
- type GrantArray
- type GrantArrayInput
- type GrantArrayOutput
- type GrantInput
- type GrantMap
- type GrantMapInput
- type GrantMapOutput
- type GrantOutput
- func (o GrantOutput) Database() pulumi.StringOutput
- func (GrantOutput) ElementType() reflect.Type
- func (o GrantOutput) Grant() pulumi.BoolPtrOutput
- func (o GrantOutput) Host() pulumi.StringPtrOutput
- func (o GrantOutput) Privileges() pulumi.StringArrayOutput
- func (o GrantOutput) Role() pulumi.StringPtrOutput
- func (o GrantOutput) Roles() pulumi.StringArrayOutput
- func (o GrantOutput) Table() pulumi.StringPtrOutput
- func (o GrantOutput) TlsOption() pulumi.StringPtrOutput
- func (o GrantOutput) ToGrantOutput() GrantOutput
- func (o GrantOutput) ToGrantOutputWithContext(ctx context.Context) GrantOutput
- func (o GrantOutput) User() pulumi.StringPtrOutput
- type GrantState
- type Provider
- type ProviderArgs
- type ProviderInput
- type ProviderOutput
- func (o ProviderOutput) AuthenticationPlugin() pulumi.StringPtrOutput
- func (ProviderOutput) ElementType() reflect.Type
- func (o ProviderOutput) Endpoint() pulumi.StringOutput
- func (o ProviderOutput) Password() pulumi.StringPtrOutput
- func (o ProviderOutput) Proxy() pulumi.StringPtrOutput
- func (o ProviderOutput) Tls() pulumi.StringPtrOutput
- func (o ProviderOutput) ToProviderOutput() ProviderOutput
- func (o ProviderOutput) ToProviderOutputWithContext(ctx context.Context) ProviderOutput
- func (o ProviderOutput) Username() pulumi.StringOutput
- type Role
- type RoleArgs
- type RoleArray
- type RoleArrayInput
- type RoleArrayOutput
- type RoleInput
- type RoleMap
- type RoleMapInput
- type RoleMapOutput
- type RoleOutput
- type RoleState
- type User
- type UserArgs
- type UserArray
- type UserArrayInput
- type UserArrayOutput
- type UserInput
- type UserMap
- type UserMapInput
- type UserMapOutput
- type UserOutput
- func (o UserOutput) AuthPlugin() pulumi.StringPtrOutput
- func (UserOutput) ElementType() reflect.Type
- func (o UserOutput) Host() pulumi.StringPtrOutput
- func (o UserOutput) Password() pulumi.StringPtrOutputdeprecated
- func (o UserOutput) PlaintextPassword() pulumi.StringPtrOutput
- func (o UserOutput) TlsOption() pulumi.StringPtrOutput
- func (o UserOutput) ToUserOutput() UserOutput
- func (o UserOutput) ToUserOutputWithContext(ctx context.Context) UserOutput
- func (o UserOutput) User() pulumi.StringOutput
- type UserPassword
- type UserPasswordArgs
- type UserPasswordArray
- type UserPasswordArrayInput
- type UserPasswordArrayOutput
- func (UserPasswordArrayOutput) ElementType() reflect.Type
- func (o UserPasswordArrayOutput) Index(i pulumi.IntInput) UserPasswordOutput
- func (o UserPasswordArrayOutput) ToUserPasswordArrayOutput() UserPasswordArrayOutput
- func (o UserPasswordArrayOutput) ToUserPasswordArrayOutputWithContext(ctx context.Context) UserPasswordArrayOutput
- type UserPasswordInput
- type UserPasswordMap
- type UserPasswordMapInput
- type UserPasswordMapOutput
- func (UserPasswordMapOutput) ElementType() reflect.Type
- func (o UserPasswordMapOutput) MapIndex(k pulumi.StringInput) UserPasswordOutput
- func (o UserPasswordMapOutput) ToUserPasswordMapOutput() UserPasswordMapOutput
- func (o UserPasswordMapOutput) ToUserPasswordMapOutputWithContext(ctx context.Context) UserPasswordMapOutput
- type UserPasswordOutput
- func (UserPasswordOutput) ElementType() reflect.Type
- func (o UserPasswordOutput) EncryptedPassword() pulumi.StringOutput
- func (o UserPasswordOutput) Host() pulumi.StringPtrOutput
- func (o UserPasswordOutput) KeyFingerprint() pulumi.StringOutput
- func (o UserPasswordOutput) PgpKey() pulumi.StringOutput
- func (o UserPasswordOutput) ToUserPasswordOutput() UserPasswordOutput
- func (o UserPasswordOutput) ToUserPasswordOutputWithContext(ctx context.Context) UserPasswordOutput
- func (o UserPasswordOutput) User() pulumi.StringOutput
- type UserPasswordState
- type UserState
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Database ¶
type Database struct { pulumi.CustomResourceState // The default character set to use when // a table is created without specifying an explicit character set. Defaults // to "utf8". DefaultCharacterSet pulumi.StringPtrOutput `pulumi:"defaultCharacterSet"` // The default collation to use when a table // is created without specifying an explicit collation. Defaults to // “utf8GeneralCi“. Each character set has its own set of collations, so // changing the character set requires also changing the collation. // // Note that the defaults for character set and collation above do not respect // any defaults set on the MySQL server, so that the configuration can be set // appropriately even though this provider cannot see the server-level defaults. If // you wish to use the server's defaults you must consult the server's // configuration and then set the “defaultCharacterSet“ and // “defaultCollation“ to match. DefaultCollation pulumi.StringPtrOutput `pulumi:"defaultCollation"` // The name of the database. This must be unique within // a given MySQL server and may or may not be case-sensitive depending on // the operating system on which the MySQL server is running. Name pulumi.StringOutput `pulumi:"name"` }
The “Database“ resource creates and manages a database on a MySQL server.
## Example Usage
```go package main
import (
"github.com/pulumi/pulumi-mysql/sdk/v3/go/mysql" "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { _, err := mysql.NewDatabase(ctx, "app", &mysql.DatabaseArgs{ Name: pulumi.String("my_awesome_app"), }) if err != nil { return err } return nil }) }
```
## Import
Databases can be imported using their name, e.g.
```sh $ pulumi import mysql:index/database:Database example my-example-database ```
func GetDatabase ¶
func GetDatabase(ctx *pulumi.Context, name string, id pulumi.IDInput, state *DatabaseState, opts ...pulumi.ResourceOption) (*Database, error)
GetDatabase gets an existing Database resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).
func NewDatabase ¶
func NewDatabase(ctx *pulumi.Context, name string, args *DatabaseArgs, opts ...pulumi.ResourceOption) (*Database, error)
NewDatabase registers a new resource with the given unique name, arguments, and options.
func (*Database) ElementType ¶
func (*Database) ToDatabaseOutput ¶
func (i *Database) ToDatabaseOutput() DatabaseOutput
func (*Database) ToDatabaseOutputWithContext ¶
func (i *Database) ToDatabaseOutputWithContext(ctx context.Context) DatabaseOutput
type DatabaseArgs ¶
type DatabaseArgs struct { // The default character set to use when // a table is created without specifying an explicit character set. Defaults // to "utf8". DefaultCharacterSet pulumi.StringPtrInput // The default collation to use when a table // is created without specifying an explicit collation. Defaults to // “utf8GeneralCi“. Each character set has its own set of collations, so // changing the character set requires also changing the collation. // // Note that the defaults for character set and collation above do not respect // any defaults set on the MySQL server, so that the configuration can be set // appropriately even though this provider cannot see the server-level defaults. If // you wish to use the server's defaults you must consult the server's // configuration and then set the “defaultCharacterSet“ and // “defaultCollation“ to match. DefaultCollation pulumi.StringPtrInput // The name of the database. This must be unique within // a given MySQL server and may or may not be case-sensitive depending on // the operating system on which the MySQL server is running. Name pulumi.StringPtrInput }
The set of arguments for constructing a Database resource.
func (DatabaseArgs) ElementType ¶
func (DatabaseArgs) ElementType() reflect.Type
type DatabaseArray ¶
type DatabaseArray []DatabaseInput
func (DatabaseArray) ElementType ¶
func (DatabaseArray) ElementType() reflect.Type
func (DatabaseArray) ToDatabaseArrayOutput ¶
func (i DatabaseArray) ToDatabaseArrayOutput() DatabaseArrayOutput
func (DatabaseArray) ToDatabaseArrayOutputWithContext ¶
func (i DatabaseArray) ToDatabaseArrayOutputWithContext(ctx context.Context) DatabaseArrayOutput
type DatabaseArrayInput ¶
type DatabaseArrayInput interface { pulumi.Input ToDatabaseArrayOutput() DatabaseArrayOutput ToDatabaseArrayOutputWithContext(context.Context) DatabaseArrayOutput }
DatabaseArrayInput is an input type that accepts DatabaseArray and DatabaseArrayOutput values. You can construct a concrete instance of `DatabaseArrayInput` via:
DatabaseArray{ DatabaseArgs{...} }
type DatabaseArrayOutput ¶
type DatabaseArrayOutput struct{ *pulumi.OutputState }
func (DatabaseArrayOutput) ElementType ¶
func (DatabaseArrayOutput) ElementType() reflect.Type
func (DatabaseArrayOutput) Index ¶
func (o DatabaseArrayOutput) Index(i pulumi.IntInput) DatabaseOutput
func (DatabaseArrayOutput) ToDatabaseArrayOutput ¶
func (o DatabaseArrayOutput) ToDatabaseArrayOutput() DatabaseArrayOutput
func (DatabaseArrayOutput) ToDatabaseArrayOutputWithContext ¶
func (o DatabaseArrayOutput) ToDatabaseArrayOutputWithContext(ctx context.Context) DatabaseArrayOutput
type DatabaseInput ¶
type DatabaseInput interface { pulumi.Input ToDatabaseOutput() DatabaseOutput ToDatabaseOutputWithContext(ctx context.Context) DatabaseOutput }
type DatabaseMap ¶
type DatabaseMap map[string]DatabaseInput
func (DatabaseMap) ElementType ¶
func (DatabaseMap) ElementType() reflect.Type
func (DatabaseMap) ToDatabaseMapOutput ¶
func (i DatabaseMap) ToDatabaseMapOutput() DatabaseMapOutput
func (DatabaseMap) ToDatabaseMapOutputWithContext ¶
func (i DatabaseMap) ToDatabaseMapOutputWithContext(ctx context.Context) DatabaseMapOutput
type DatabaseMapInput ¶
type DatabaseMapInput interface { pulumi.Input ToDatabaseMapOutput() DatabaseMapOutput ToDatabaseMapOutputWithContext(context.Context) DatabaseMapOutput }
DatabaseMapInput is an input type that accepts DatabaseMap and DatabaseMapOutput values. You can construct a concrete instance of `DatabaseMapInput` via:
DatabaseMap{ "key": DatabaseArgs{...} }
type DatabaseMapOutput ¶
type DatabaseMapOutput struct{ *pulumi.OutputState }
func (DatabaseMapOutput) ElementType ¶
func (DatabaseMapOutput) ElementType() reflect.Type
func (DatabaseMapOutput) MapIndex ¶
func (o DatabaseMapOutput) MapIndex(k pulumi.StringInput) DatabaseOutput
func (DatabaseMapOutput) ToDatabaseMapOutput ¶
func (o DatabaseMapOutput) ToDatabaseMapOutput() DatabaseMapOutput
func (DatabaseMapOutput) ToDatabaseMapOutputWithContext ¶
func (o DatabaseMapOutput) ToDatabaseMapOutputWithContext(ctx context.Context) DatabaseMapOutput
type DatabaseOutput ¶
type DatabaseOutput struct{ *pulumi.OutputState }
func (DatabaseOutput) DefaultCharacterSet ¶ added in v3.2.0
func (o DatabaseOutput) DefaultCharacterSet() pulumi.StringPtrOutput
The default character set to use when a table is created without specifying an explicit character set. Defaults to "utf8".
func (DatabaseOutput) DefaultCollation ¶ added in v3.2.0
func (o DatabaseOutput) DefaultCollation() pulumi.StringPtrOutput
The default collation to use when a table is created without specifying an explicit collation. Defaults to “utf8GeneralCi“. Each character set has its own set of collations, so changing the character set requires also changing the collation.
Note that the defaults for character set and collation above do not respect any defaults set on the MySQL server, so that the configuration can be set appropriately even though this provider cannot see the server-level defaults. If you wish to use the server's defaults you must consult the server's configuration and then set the “defaultCharacterSet“ and “defaultCollation“ to match.
func (DatabaseOutput) ElementType ¶
func (DatabaseOutput) ElementType() reflect.Type
func (DatabaseOutput) Name ¶ added in v3.2.0
func (o DatabaseOutput) Name() pulumi.StringOutput
The name of the database. This must be unique within a given MySQL server and may or may not be case-sensitive depending on the operating system on which the MySQL server is running.
func (DatabaseOutput) ToDatabaseOutput ¶
func (o DatabaseOutput) ToDatabaseOutput() DatabaseOutput
func (DatabaseOutput) ToDatabaseOutputWithContext ¶
func (o DatabaseOutput) ToDatabaseOutputWithContext(ctx context.Context) DatabaseOutput
type DatabaseState ¶
type DatabaseState struct { // The default character set to use when // a table is created without specifying an explicit character set. Defaults // to "utf8". DefaultCharacterSet pulumi.StringPtrInput // The default collation to use when a table // is created without specifying an explicit collation. Defaults to // “utf8GeneralCi“. Each character set has its own set of collations, so // changing the character set requires also changing the collation. // // Note that the defaults for character set and collation above do not respect // any defaults set on the MySQL server, so that the configuration can be set // appropriately even though this provider cannot see the server-level defaults. If // you wish to use the server's defaults you must consult the server's // configuration and then set the “defaultCharacterSet“ and // “defaultCollation“ to match. DefaultCollation pulumi.StringPtrInput // The name of the database. This must be unique within // a given MySQL server and may or may not be case-sensitive depending on // the operating system on which the MySQL server is running. Name pulumi.StringPtrInput }
func (DatabaseState) ElementType ¶
func (DatabaseState) ElementType() reflect.Type
type Grant ¶
type Grant struct { pulumi.CustomResourceState // The database to grant privileges on. Database pulumi.StringOutput `pulumi:"database"` // Whether to also give the user privileges to grant the same privileges to other users. Grant pulumi.BoolPtrOutput `pulumi:"grant"` // The source host of the user. Defaults to "localhost". Conflicts with `role`. Host pulumi.StringPtrOutput `pulumi:"host"` // A list of privileges to grant to the user. Refer to a list of privileges (such as [here](https://dev.mysql.com/doc/refman/5.5/en/grant.html)) for applicable privileges. Conflicts with `roles`. Privileges pulumi.StringArrayOutput `pulumi:"privileges"` // The role to grant `privileges` to. Conflicts with `user` and `host`. Role pulumi.StringPtrOutput `pulumi:"role"` // A list of rols to grant to the user. Conflicts with `privileges`. Roles pulumi.StringArrayOutput `pulumi:"roles"` // Which table to grant `privileges` on. Defaults to `*`, which is all tables. Table pulumi.StringPtrOutput `pulumi:"table"` // 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](https://dev.mysql.com/doc/refman/5.7/en/grant.html) for more. Ignored if MySQL version is under 5.7.0. TlsOption pulumi.StringPtrOutput `pulumi:"tlsOption"` // The name of the user. Conflicts with `role`. User pulumi.StringPtrOutput `pulumi:"user"` }
The “Grant“ resource creates and manages privileges given to a user on a MySQL server.
## Examples
### Granting Privileges to a User
```go package main
import (
"github.com/pulumi/pulumi-mysql/sdk/v3/go/mysql" "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { jdoe, err := mysql.NewUser(ctx, "jdoe", &mysql.UserArgs{ User: pulumi.String("jdoe"), Host: pulumi.String("example.com"), PlaintextPassword: pulumi.String("password"), }) if err != nil { return err } _, err = mysql.NewGrant(ctx, "jdoe", &mysql.GrantArgs{ User: jdoe.User, Host: jdoe.Host, Database: pulumi.String("app"), Privileges: pulumi.StringArray{ pulumi.String("SELECT"), pulumi.String("UPDATE"), }, }) if err != nil { return err } return nil }) }
```
### Granting Privileges to a Role
```go package main
import (
"github.com/pulumi/pulumi-mysql/sdk/v3/go/mysql" "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { developer, err := mysql.NewRole(ctx, "developer", &mysql.RoleArgs{ Name: pulumi.String("developer"), }) if err != nil { return err } _, err = mysql.NewGrant(ctx, "developer", &mysql.GrantArgs{ Role: developer.Name, Database: pulumi.String("app"), Privileges: pulumi.StringArray{ pulumi.String("SELECT"), pulumi.String("UPDATE"), }, }) if err != nil { return err } return nil }) }
```
### Adding a Role to a User
```go package main
import (
"github.com/pulumi/pulumi-mysql/sdk/v3/go/mysql" "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { jdoe, err := mysql.NewUser(ctx, "jdoe", &mysql.UserArgs{ User: pulumi.String("jdoe"), Host: pulumi.String("example.com"), PlaintextPassword: pulumi.String("password"), }) if err != nil { return err } developer, err := mysql.NewRole(ctx, "developer", &mysql.RoleArgs{ Name: pulumi.String("developer"), }) if err != nil { return err } _, err = mysql.NewGrant(ctx, "developer", &mysql.GrantArgs{ User: jdoe.User, Host: jdoe.Host, Database: pulumi.String("app"), Roles: pulumi.StringArray{ developer.Name, }, }) if err != nil { return err } return nil }) }
```
func GetGrant ¶
func GetGrant(ctx *pulumi.Context, name string, id pulumi.IDInput, state *GrantState, opts ...pulumi.ResourceOption) (*Grant, error)
GetGrant gets an existing Grant resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).
func NewGrant ¶
func NewGrant(ctx *pulumi.Context, name string, args *GrantArgs, opts ...pulumi.ResourceOption) (*Grant, error)
NewGrant registers a new resource with the given unique name, arguments, and options.
func (*Grant) ElementType ¶
func (*Grant) ToGrantOutput ¶
func (i *Grant) ToGrantOutput() GrantOutput
func (*Grant) ToGrantOutputWithContext ¶
func (i *Grant) ToGrantOutputWithContext(ctx context.Context) GrantOutput
type GrantArgs ¶
type GrantArgs struct { // The database to grant privileges on. Database pulumi.StringInput // Whether to also give the user privileges to grant the same privileges to other users. Grant pulumi.BoolPtrInput // The source host of the user. Defaults to "localhost". Conflicts with `role`. Host pulumi.StringPtrInput // A list of privileges to grant to the user. Refer to a list of privileges (such as [here](https://dev.mysql.com/doc/refman/5.5/en/grant.html)) for applicable privileges. Conflicts with `roles`. Privileges pulumi.StringArrayInput // The role to grant `privileges` to. Conflicts with `user` and `host`. Role pulumi.StringPtrInput // A list of rols to grant to the user. Conflicts with `privileges`. Roles pulumi.StringArrayInput // Which table to grant `privileges` on. Defaults to `*`, which is all tables. Table pulumi.StringPtrInput // 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](https://dev.mysql.com/doc/refman/5.7/en/grant.html) for more. Ignored if MySQL version is under 5.7.0. TlsOption pulumi.StringPtrInput // The name of the user. Conflicts with `role`. User pulumi.StringPtrInput }
The set of arguments for constructing a Grant resource.
func (GrantArgs) ElementType ¶
type GrantArray ¶
type GrantArray []GrantInput
func (GrantArray) ElementType ¶
func (GrantArray) ElementType() reflect.Type
func (GrantArray) ToGrantArrayOutput ¶
func (i GrantArray) ToGrantArrayOutput() GrantArrayOutput
func (GrantArray) ToGrantArrayOutputWithContext ¶
func (i GrantArray) ToGrantArrayOutputWithContext(ctx context.Context) GrantArrayOutput
type GrantArrayInput ¶
type GrantArrayInput interface { pulumi.Input ToGrantArrayOutput() GrantArrayOutput ToGrantArrayOutputWithContext(context.Context) GrantArrayOutput }
GrantArrayInput is an input type that accepts GrantArray and GrantArrayOutput values. You can construct a concrete instance of `GrantArrayInput` via:
GrantArray{ GrantArgs{...} }
type GrantArrayOutput ¶
type GrantArrayOutput struct{ *pulumi.OutputState }
func (GrantArrayOutput) ElementType ¶
func (GrantArrayOutput) ElementType() reflect.Type
func (GrantArrayOutput) Index ¶
func (o GrantArrayOutput) Index(i pulumi.IntInput) GrantOutput
func (GrantArrayOutput) ToGrantArrayOutput ¶
func (o GrantArrayOutput) ToGrantArrayOutput() GrantArrayOutput
func (GrantArrayOutput) ToGrantArrayOutputWithContext ¶
func (o GrantArrayOutput) ToGrantArrayOutputWithContext(ctx context.Context) GrantArrayOutput
type GrantInput ¶
type GrantInput interface { pulumi.Input ToGrantOutput() GrantOutput ToGrantOutputWithContext(ctx context.Context) GrantOutput }
type GrantMap ¶
type GrantMap map[string]GrantInput
func (GrantMap) ElementType ¶
func (GrantMap) ToGrantMapOutput ¶
func (i GrantMap) ToGrantMapOutput() GrantMapOutput
func (GrantMap) ToGrantMapOutputWithContext ¶
func (i GrantMap) ToGrantMapOutputWithContext(ctx context.Context) GrantMapOutput
type GrantMapInput ¶
type GrantMapInput interface { pulumi.Input ToGrantMapOutput() GrantMapOutput ToGrantMapOutputWithContext(context.Context) GrantMapOutput }
GrantMapInput is an input type that accepts GrantMap and GrantMapOutput values. You can construct a concrete instance of `GrantMapInput` via:
GrantMap{ "key": GrantArgs{...} }
type GrantMapOutput ¶
type GrantMapOutput struct{ *pulumi.OutputState }
func (GrantMapOutput) ElementType ¶
func (GrantMapOutput) ElementType() reflect.Type
func (GrantMapOutput) MapIndex ¶
func (o GrantMapOutput) MapIndex(k pulumi.StringInput) GrantOutput
func (GrantMapOutput) ToGrantMapOutput ¶
func (o GrantMapOutput) ToGrantMapOutput() GrantMapOutput
func (GrantMapOutput) ToGrantMapOutputWithContext ¶
func (o GrantMapOutput) ToGrantMapOutputWithContext(ctx context.Context) GrantMapOutput
type GrantOutput ¶
type GrantOutput struct{ *pulumi.OutputState }
func (GrantOutput) Database ¶ added in v3.2.0
func (o GrantOutput) Database() pulumi.StringOutput
The database to grant privileges on.
func (GrantOutput) ElementType ¶
func (GrantOutput) ElementType() reflect.Type
func (GrantOutput) Grant ¶ added in v3.2.0
func (o GrantOutput) Grant() pulumi.BoolPtrOutput
Whether to also give the user privileges to grant the same privileges to other users.
func (GrantOutput) Host ¶ added in v3.2.0
func (o GrantOutput) Host() pulumi.StringPtrOutput
The source host of the user. Defaults to "localhost". Conflicts with `role`.
func (GrantOutput) Privileges ¶ added in v3.2.0
func (o GrantOutput) Privileges() pulumi.StringArrayOutput
A list of privileges to grant to the user. Refer to a list of privileges (such as [here](https://dev.mysql.com/doc/refman/5.5/en/grant.html)) for applicable privileges. Conflicts with `roles`.
func (GrantOutput) Role ¶ added in v3.2.0
func (o GrantOutput) Role() pulumi.StringPtrOutput
The role to grant `privileges` to. Conflicts with `user` and `host`.
func (GrantOutput) Roles ¶ added in v3.2.0
func (o GrantOutput) Roles() pulumi.StringArrayOutput
A list of rols to grant to the user. Conflicts with `privileges`.
func (GrantOutput) Table ¶ added in v3.2.0
func (o GrantOutput) Table() pulumi.StringPtrOutput
Which table to grant `privileges` on. Defaults to `*`, which is all tables.
func (GrantOutput) TlsOption ¶ added in v3.2.0
func (o GrantOutput) TlsOption() pulumi.StringPtrOutput
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](https://dev.mysql.com/doc/refman/5.7/en/grant.html) for more. Ignored if MySQL version is under 5.7.0.
func (GrantOutput) ToGrantOutput ¶
func (o GrantOutput) ToGrantOutput() GrantOutput
func (GrantOutput) ToGrantOutputWithContext ¶
func (o GrantOutput) ToGrantOutputWithContext(ctx context.Context) GrantOutput
func (GrantOutput) User ¶ added in v3.2.0
func (o GrantOutput) User() pulumi.StringPtrOutput
The name of the user. Conflicts with `role`.
type GrantState ¶
type GrantState struct { // The database to grant privileges on. Database pulumi.StringPtrInput // Whether to also give the user privileges to grant the same privileges to other users. Grant pulumi.BoolPtrInput // The source host of the user. Defaults to "localhost". Conflicts with `role`. Host pulumi.StringPtrInput // A list of privileges to grant to the user. Refer to a list of privileges (such as [here](https://dev.mysql.com/doc/refman/5.5/en/grant.html)) for applicable privileges. Conflicts with `roles`. Privileges pulumi.StringArrayInput // The role to grant `privileges` to. Conflicts with `user` and `host`. Role pulumi.StringPtrInput // A list of rols to grant to the user. Conflicts with `privileges`. Roles pulumi.StringArrayInput // Which table to grant `privileges` on. Defaults to `*`, which is all tables. Table pulumi.StringPtrInput // 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](https://dev.mysql.com/doc/refman/5.7/en/grant.html) for more. Ignored if MySQL version is under 5.7.0. TlsOption pulumi.StringPtrInput // The name of the user. Conflicts with `role`. User pulumi.StringPtrInput }
func (GrantState) ElementType ¶
func (GrantState) ElementType() reflect.Type
type Provider ¶
type Provider struct { pulumi.ProviderResourceState AuthenticationPlugin pulumi.StringPtrOutput `pulumi:"authenticationPlugin"` Endpoint pulumi.StringOutput `pulumi:"endpoint"` Password pulumi.StringPtrOutput `pulumi:"password"` Proxy pulumi.StringPtrOutput `pulumi:"proxy"` Tls pulumi.StringPtrOutput `pulumi:"tls"` Username pulumi.StringOutput `pulumi:"username"` }
The provider type for the mysql package. By default, resources use package-wide configuration settings, however an explicit `Provider` instance may be created and passed during resource construction to achieve fine-grained programmatic control over provider settings. See the [documentation](https://www.pulumi.com/docs/reference/programming-model/#providers) for more information.
func NewProvider ¶
func NewProvider(ctx *pulumi.Context, name string, args *ProviderArgs, opts ...pulumi.ResourceOption) (*Provider, error)
NewProvider registers a new resource with the given unique name, arguments, and options.
func (*Provider) ElementType ¶
func (*Provider) ToProviderOutput ¶
func (i *Provider) ToProviderOutput() ProviderOutput
func (*Provider) ToProviderOutputWithContext ¶
func (i *Provider) ToProviderOutputWithContext(ctx context.Context) ProviderOutput
type ProviderArgs ¶
type ProviderArgs struct { AuthenticationPlugin pulumi.StringPtrInput Endpoint pulumi.StringInput MaxConnLifetimeSec pulumi.IntPtrInput MaxOpenConns pulumi.IntPtrInput Password pulumi.StringPtrInput Proxy pulumi.StringPtrInput Tls pulumi.StringPtrInput Username pulumi.StringInput }
The set of arguments for constructing a Provider resource.
func (ProviderArgs) ElementType ¶
func (ProviderArgs) ElementType() reflect.Type
type ProviderInput ¶
type ProviderInput interface { pulumi.Input ToProviderOutput() ProviderOutput ToProviderOutputWithContext(ctx context.Context) ProviderOutput }
type ProviderOutput ¶
type ProviderOutput struct{ *pulumi.OutputState }
func (ProviderOutput) AuthenticationPlugin ¶ added in v3.2.0
func (o ProviderOutput) AuthenticationPlugin() pulumi.StringPtrOutput
func (ProviderOutput) ElementType ¶
func (ProviderOutput) ElementType() reflect.Type
func (ProviderOutput) Endpoint ¶ added in v3.2.0
func (o ProviderOutput) Endpoint() pulumi.StringOutput
func (ProviderOutput) Password ¶ added in v3.2.0
func (o ProviderOutput) Password() pulumi.StringPtrOutput
func (ProviderOutput) Proxy ¶ added in v3.2.0
func (o ProviderOutput) Proxy() pulumi.StringPtrOutput
func (ProviderOutput) Tls ¶ added in v3.2.0
func (o ProviderOutput) Tls() pulumi.StringPtrOutput
func (ProviderOutput) ToProviderOutput ¶
func (o ProviderOutput) ToProviderOutput() ProviderOutput
func (ProviderOutput) ToProviderOutputWithContext ¶
func (o ProviderOutput) ToProviderOutputWithContext(ctx context.Context) ProviderOutput
func (ProviderOutput) Username ¶ added in v3.2.0
func (o ProviderOutput) Username() pulumi.StringOutput
type Role ¶
type Role struct { pulumi.CustomResourceState // The name of the role. Name pulumi.StringOutput `pulumi:"name"` }
The “Role“ resource creates and manages a user on a MySQL server.
> **Note:** MySQL introduced roles in version 8. They do not work on MySQL 5 and lower.
## Example Usage
```go package main
import (
"github.com/pulumi/pulumi-mysql/sdk/v3/go/mysql" "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { _, err := mysql.NewRole(ctx, "developer", &mysql.RoleArgs{ Name: pulumi.String("developer"), }) if err != nil { return err } return nil }) }
```
func GetRole ¶
func GetRole(ctx *pulumi.Context, name string, id pulumi.IDInput, state *RoleState, opts ...pulumi.ResourceOption) (*Role, error)
GetRole gets an existing Role resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).
func NewRole ¶
func NewRole(ctx *pulumi.Context, name string, args *RoleArgs, opts ...pulumi.ResourceOption) (*Role, error)
NewRole registers a new resource with the given unique name, arguments, and options.
func (*Role) ElementType ¶
func (*Role) ToRoleOutput ¶
func (i *Role) ToRoleOutput() RoleOutput
func (*Role) ToRoleOutputWithContext ¶
func (i *Role) ToRoleOutputWithContext(ctx context.Context) RoleOutput
type RoleArgs ¶
type RoleArgs struct { // The name of the role. Name pulumi.StringPtrInput }
The set of arguments for constructing a Role resource.
func (RoleArgs) ElementType ¶
type RoleArray ¶
type RoleArray []RoleInput
func (RoleArray) ElementType ¶
func (RoleArray) ToRoleArrayOutput ¶
func (i RoleArray) ToRoleArrayOutput() RoleArrayOutput
func (RoleArray) ToRoleArrayOutputWithContext ¶
func (i RoleArray) ToRoleArrayOutputWithContext(ctx context.Context) RoleArrayOutput
type RoleArrayInput ¶
type RoleArrayInput interface { pulumi.Input ToRoleArrayOutput() RoleArrayOutput ToRoleArrayOutputWithContext(context.Context) RoleArrayOutput }
RoleArrayInput is an input type that accepts RoleArray and RoleArrayOutput values. You can construct a concrete instance of `RoleArrayInput` via:
RoleArray{ RoleArgs{...} }
type RoleArrayOutput ¶
type RoleArrayOutput struct{ *pulumi.OutputState }
func (RoleArrayOutput) ElementType ¶
func (RoleArrayOutput) ElementType() reflect.Type
func (RoleArrayOutput) Index ¶
func (o RoleArrayOutput) Index(i pulumi.IntInput) RoleOutput
func (RoleArrayOutput) ToRoleArrayOutput ¶
func (o RoleArrayOutput) ToRoleArrayOutput() RoleArrayOutput
func (RoleArrayOutput) ToRoleArrayOutputWithContext ¶
func (o RoleArrayOutput) ToRoleArrayOutputWithContext(ctx context.Context) RoleArrayOutput
type RoleInput ¶
type RoleInput interface { pulumi.Input ToRoleOutput() RoleOutput ToRoleOutputWithContext(ctx context.Context) RoleOutput }
type RoleMap ¶
func (RoleMap) ElementType ¶
func (RoleMap) ToRoleMapOutput ¶
func (i RoleMap) ToRoleMapOutput() RoleMapOutput
func (RoleMap) ToRoleMapOutputWithContext ¶
func (i RoleMap) ToRoleMapOutputWithContext(ctx context.Context) RoleMapOutput
type RoleMapInput ¶
type RoleMapInput interface { pulumi.Input ToRoleMapOutput() RoleMapOutput ToRoleMapOutputWithContext(context.Context) RoleMapOutput }
RoleMapInput is an input type that accepts RoleMap and RoleMapOutput values. You can construct a concrete instance of `RoleMapInput` via:
RoleMap{ "key": RoleArgs{...} }
type RoleMapOutput ¶
type RoleMapOutput struct{ *pulumi.OutputState }
func (RoleMapOutput) ElementType ¶
func (RoleMapOutput) ElementType() reflect.Type
func (RoleMapOutput) MapIndex ¶
func (o RoleMapOutput) MapIndex(k pulumi.StringInput) RoleOutput
func (RoleMapOutput) ToRoleMapOutput ¶
func (o RoleMapOutput) ToRoleMapOutput() RoleMapOutput
func (RoleMapOutput) ToRoleMapOutputWithContext ¶
func (o RoleMapOutput) ToRoleMapOutputWithContext(ctx context.Context) RoleMapOutput
type RoleOutput ¶
type RoleOutput struct{ *pulumi.OutputState }
func (RoleOutput) ElementType ¶
func (RoleOutput) ElementType() reflect.Type
func (RoleOutput) Name ¶ added in v3.2.0
func (o RoleOutput) Name() pulumi.StringOutput
The name of the role.
func (RoleOutput) ToRoleOutput ¶
func (o RoleOutput) ToRoleOutput() RoleOutput
func (RoleOutput) ToRoleOutputWithContext ¶
func (o RoleOutput) ToRoleOutputWithContext(ctx context.Context) RoleOutput
type RoleState ¶
type RoleState struct { // The name of the role. Name pulumi.StringPtrInput }
func (RoleState) ElementType ¶
type User ¶
type User struct { pulumi.CustomResourceState // Use an [authentication plugin][ref-auth-plugins] to authenticate the user instead of using password authentication. Description of the fields allowed in the block below. Conflicts with `password` and `plaintextPassword`. AuthPlugin pulumi.StringPtrOutput `pulumi:"authPlugin"` // The source host of the user. Defaults to "localhost". Host pulumi.StringPtrOutput `pulumi:"host"` // Deprecated alias of `plaintextPassword`, whose value is *stored as plaintext in state*. Prefer to use `plaintextPassword` instead, which stores the password as an unsalted hash. Conflicts with `authPlugin`. // // Deprecated: Please use plaintextPassword instead Password pulumi.StringPtrOutput `pulumi:"password"` // The password for the user. This must be provided in plain text, so the data source for it must be secured. An _unsalted_ hash of the provided password is stored in state. Conflicts with `authPlugin`. PlaintextPassword pulumi.StringPtrOutput `pulumi:"plaintextPassword"` // An TLS-Option for the `CREATE USER` or `ALTER USER` statement. The value is suffixed to `REQUIRE`. A value of 'SSL' will generate a `CREATE USER ... REQUIRE SSL` statement. See the [MYSQL `CREATE USER` documentation](https://dev.mysql.com/doc/refman/5.7/en/create-user.html) for more. Ignored if MySQL version is under 5.7.0. // // [ref-auth-plugins]: https://dev.mysql.com/doc/refman/5.7/en/authentication-plugins.html TlsOption pulumi.StringPtrOutput `pulumi:"tlsOption"` // The name of the user. User pulumi.StringOutput `pulumi:"user"` }
The “User“ resource creates and manages a user on a MySQL server.
## Examples
### Basic Usage
```go package main
import (
"github.com/pulumi/pulumi-mysql/sdk/v3/go/mysql" "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { _, err := mysql.NewUser(ctx, "jdoe", &mysql.UserArgs{ User: pulumi.String("jdoe"), Host: pulumi.String("example.com"), PlaintextPassword: pulumi.String("password"), }) if err != nil { return err } return nil }) }
```
### Example Usage with an Authentication Plugin
```go package main
import (
"github.com/pulumi/pulumi-mysql/sdk/v3/go/mysql" "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { _, err := mysql.NewUser(ctx, "nologin", &mysql.UserArgs{ User: pulumi.String("nologin"), Host: pulumi.String("example.com"), AuthPlugin: pulumi.String("mysql_no_login"), }) if err != nil { return err } return nil }) }
```
func GetUser ¶
func GetUser(ctx *pulumi.Context, name string, id pulumi.IDInput, state *UserState, opts ...pulumi.ResourceOption) (*User, error)
GetUser gets an existing User resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).
func NewUser ¶
func NewUser(ctx *pulumi.Context, name string, args *UserArgs, opts ...pulumi.ResourceOption) (*User, error)
NewUser registers a new resource with the given unique name, arguments, and options.
func (*User) ElementType ¶
func (*User) ToUserOutput ¶
func (i *User) ToUserOutput() UserOutput
func (*User) ToUserOutputWithContext ¶
func (i *User) ToUserOutputWithContext(ctx context.Context) UserOutput
type UserArgs ¶
type UserArgs struct { // Use an [authentication plugin][ref-auth-plugins] to authenticate the user instead of using password authentication. Description of the fields allowed in the block below. Conflicts with `password` and `plaintextPassword`. AuthPlugin pulumi.StringPtrInput // The source host of the user. Defaults to "localhost". Host pulumi.StringPtrInput // Deprecated alias of `plaintextPassword`, whose value is *stored as plaintext in state*. Prefer to use `plaintextPassword` instead, which stores the password as an unsalted hash. Conflicts with `authPlugin`. // // Deprecated: Please use plaintextPassword instead Password pulumi.StringPtrInput // The password for the user. This must be provided in plain text, so the data source for it must be secured. An _unsalted_ hash of the provided password is stored in state. Conflicts with `authPlugin`. PlaintextPassword pulumi.StringPtrInput // An TLS-Option for the `CREATE USER` or `ALTER USER` statement. The value is suffixed to `REQUIRE`. A value of 'SSL' will generate a `CREATE USER ... REQUIRE SSL` statement. See the [MYSQL `CREATE USER` documentation](https://dev.mysql.com/doc/refman/5.7/en/create-user.html) for more. Ignored if MySQL version is under 5.7.0. // // [ref-auth-plugins]: https://dev.mysql.com/doc/refman/5.7/en/authentication-plugins.html TlsOption pulumi.StringPtrInput // The name of the user. User pulumi.StringInput }
The set of arguments for constructing a User resource.
func (UserArgs) ElementType ¶
type UserArray ¶
type UserArray []UserInput
func (UserArray) ElementType ¶
func (UserArray) ToUserArrayOutput ¶
func (i UserArray) ToUserArrayOutput() UserArrayOutput
func (UserArray) ToUserArrayOutputWithContext ¶
func (i UserArray) ToUserArrayOutputWithContext(ctx context.Context) UserArrayOutput
type UserArrayInput ¶
type UserArrayInput interface { pulumi.Input ToUserArrayOutput() UserArrayOutput ToUserArrayOutputWithContext(context.Context) UserArrayOutput }
UserArrayInput is an input type that accepts UserArray and UserArrayOutput values. You can construct a concrete instance of `UserArrayInput` via:
UserArray{ UserArgs{...} }
type UserArrayOutput ¶
type UserArrayOutput struct{ *pulumi.OutputState }
func (UserArrayOutput) ElementType ¶
func (UserArrayOutput) ElementType() reflect.Type
func (UserArrayOutput) Index ¶
func (o UserArrayOutput) Index(i pulumi.IntInput) UserOutput
func (UserArrayOutput) ToUserArrayOutput ¶
func (o UserArrayOutput) ToUserArrayOutput() UserArrayOutput
func (UserArrayOutput) ToUserArrayOutputWithContext ¶
func (o UserArrayOutput) ToUserArrayOutputWithContext(ctx context.Context) UserArrayOutput
type UserInput ¶
type UserInput interface { pulumi.Input ToUserOutput() UserOutput ToUserOutputWithContext(ctx context.Context) UserOutput }
type UserMap ¶
func (UserMap) ElementType ¶
func (UserMap) ToUserMapOutput ¶
func (i UserMap) ToUserMapOutput() UserMapOutput
func (UserMap) ToUserMapOutputWithContext ¶
func (i UserMap) ToUserMapOutputWithContext(ctx context.Context) UserMapOutput
type UserMapInput ¶
type UserMapInput interface { pulumi.Input ToUserMapOutput() UserMapOutput ToUserMapOutputWithContext(context.Context) UserMapOutput }
UserMapInput is an input type that accepts UserMap and UserMapOutput values. You can construct a concrete instance of `UserMapInput` via:
UserMap{ "key": UserArgs{...} }
type UserMapOutput ¶
type UserMapOutput struct{ *pulumi.OutputState }
func (UserMapOutput) ElementType ¶
func (UserMapOutput) ElementType() reflect.Type
func (UserMapOutput) MapIndex ¶
func (o UserMapOutput) MapIndex(k pulumi.StringInput) UserOutput
func (UserMapOutput) ToUserMapOutput ¶
func (o UserMapOutput) ToUserMapOutput() UserMapOutput
func (UserMapOutput) ToUserMapOutputWithContext ¶
func (o UserMapOutput) ToUserMapOutputWithContext(ctx context.Context) UserMapOutput
type UserOutput ¶
type UserOutput struct{ *pulumi.OutputState }
func (UserOutput) AuthPlugin ¶ added in v3.2.0
func (o UserOutput) AuthPlugin() pulumi.StringPtrOutput
Use an [authentication plugin][ref-auth-plugins] to authenticate the user instead of using password authentication. Description of the fields allowed in the block below. Conflicts with `password` and `plaintextPassword`.
func (UserOutput) ElementType ¶
func (UserOutput) ElementType() reflect.Type
func (UserOutput) Host ¶ added in v3.2.0
func (o UserOutput) Host() pulumi.StringPtrOutput
The source host of the user. Defaults to "localhost".
func (UserOutput) Password
deprecated
added in
v3.2.0
func (o UserOutput) Password() pulumi.StringPtrOutput
Deprecated alias of `plaintextPassword`, whose value is *stored as plaintext in state*. Prefer to use `plaintextPassword` instead, which stores the password as an unsalted hash. Conflicts with `authPlugin`.
Deprecated: Please use plaintextPassword instead
func (UserOutput) PlaintextPassword ¶ added in v3.2.0
func (o UserOutput) PlaintextPassword() pulumi.StringPtrOutput
The password for the user. This must be provided in plain text, so the data source for it must be secured. An _unsalted_ hash of the provided password is stored in state. Conflicts with `authPlugin`.
func (UserOutput) TlsOption ¶ added in v3.2.0
func (o UserOutput) TlsOption() pulumi.StringPtrOutput
An TLS-Option for the `CREATE USER` or `ALTER USER` statement. The value is suffixed to `REQUIRE`. A value of 'SSL' will generate a `CREATE USER ... REQUIRE SSL` statement. See the [MYSQL `CREATE USER` documentation](https://dev.mysql.com/doc/refman/5.7/en/create-user.html) for more. Ignored if MySQL version is under 5.7.0.
func (UserOutput) ToUserOutput ¶
func (o UserOutput) ToUserOutput() UserOutput
func (UserOutput) ToUserOutputWithContext ¶
func (o UserOutput) ToUserOutputWithContext(ctx context.Context) UserOutput
func (UserOutput) User ¶ added in v3.2.0
func (o UserOutput) User() pulumi.StringOutput
The name of the user.
type UserPassword ¶
type UserPassword struct { pulumi.CustomResourceState // The encrypted password, base64 encoded. EncryptedPassword pulumi.StringOutput `pulumi:"encryptedPassword"` // The source host of the user. Defaults to `localhost`. Host pulumi.StringPtrOutput `pulumi:"host"` // The fingerprint of the PGP key used to encrypt the password KeyFingerprint pulumi.StringOutput `pulumi:"keyFingerprint"` // Either a base-64 encoded PGP public key, or a keybase username in the form `keybase:some_person_that_exists`. PgpKey pulumi.StringOutput `pulumi:"pgpKey"` // The IAM user to associate with this access key. User pulumi.StringOutput `pulumi:"user"` }
The `UserPassword` resource sets and manages a password for a given user on a MySQL server.
> **NOTE on MySQL Passwords:** This resource conflicts with the `password`
argument for `User`. This resource uses PGP encryption to avoid storing unencrypted passwords in the provider state.
> **NOTE on How Passwords are Created:** This resource **automatically**
generates a **random** password. The password will be a random UUID.
## Example Usage
```go package main
import (
"github.com/pulumi/pulumi-mysql/sdk/v3/go/mysql" "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { jdoe, err := mysql.NewUser(ctx, "jdoe", &mysql.UserArgs{ User: pulumi.String("jdoe"), }) if err != nil { return err } _, err = mysql.NewUserPassword(ctx, "jdoe", &mysql.UserPasswordArgs{ User: jdoe.User, PgpKey: pulumi.String("keybase:joestump"), }) if err != nil { return err } return nil }) }
```
func GetUserPassword ¶
func GetUserPassword(ctx *pulumi.Context, name string, id pulumi.IDInput, state *UserPasswordState, opts ...pulumi.ResourceOption) (*UserPassword, error)
GetUserPassword gets an existing UserPassword resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).
func NewUserPassword ¶
func NewUserPassword(ctx *pulumi.Context, name string, args *UserPasswordArgs, opts ...pulumi.ResourceOption) (*UserPassword, error)
NewUserPassword registers a new resource with the given unique name, arguments, and options.
func (*UserPassword) ElementType ¶
func (*UserPassword) ElementType() reflect.Type
func (*UserPassword) ToUserPasswordOutput ¶
func (i *UserPassword) ToUserPasswordOutput() UserPasswordOutput
func (*UserPassword) ToUserPasswordOutputWithContext ¶
func (i *UserPassword) ToUserPasswordOutputWithContext(ctx context.Context) UserPasswordOutput
type UserPasswordArgs ¶
type UserPasswordArgs struct { // The source host of the user. Defaults to `localhost`. Host pulumi.StringPtrInput // Either a base-64 encoded PGP public key, or a keybase username in the form `keybase:some_person_that_exists`. PgpKey pulumi.StringInput // The IAM user to associate with this access key. User pulumi.StringInput }
The set of arguments for constructing a UserPassword resource.
func (UserPasswordArgs) ElementType ¶
func (UserPasswordArgs) ElementType() reflect.Type
type UserPasswordArray ¶
type UserPasswordArray []UserPasswordInput
func (UserPasswordArray) ElementType ¶
func (UserPasswordArray) ElementType() reflect.Type
func (UserPasswordArray) ToUserPasswordArrayOutput ¶
func (i UserPasswordArray) ToUserPasswordArrayOutput() UserPasswordArrayOutput
func (UserPasswordArray) ToUserPasswordArrayOutputWithContext ¶
func (i UserPasswordArray) ToUserPasswordArrayOutputWithContext(ctx context.Context) UserPasswordArrayOutput
type UserPasswordArrayInput ¶
type UserPasswordArrayInput interface { pulumi.Input ToUserPasswordArrayOutput() UserPasswordArrayOutput ToUserPasswordArrayOutputWithContext(context.Context) UserPasswordArrayOutput }
UserPasswordArrayInput is an input type that accepts UserPasswordArray and UserPasswordArrayOutput values. You can construct a concrete instance of `UserPasswordArrayInput` via:
UserPasswordArray{ UserPasswordArgs{...} }
type UserPasswordArrayOutput ¶
type UserPasswordArrayOutput struct{ *pulumi.OutputState }
func (UserPasswordArrayOutput) ElementType ¶
func (UserPasswordArrayOutput) ElementType() reflect.Type
func (UserPasswordArrayOutput) Index ¶
func (o UserPasswordArrayOutput) Index(i pulumi.IntInput) UserPasswordOutput
func (UserPasswordArrayOutput) ToUserPasswordArrayOutput ¶
func (o UserPasswordArrayOutput) ToUserPasswordArrayOutput() UserPasswordArrayOutput
func (UserPasswordArrayOutput) ToUserPasswordArrayOutputWithContext ¶
func (o UserPasswordArrayOutput) ToUserPasswordArrayOutputWithContext(ctx context.Context) UserPasswordArrayOutput
type UserPasswordInput ¶
type UserPasswordInput interface { pulumi.Input ToUserPasswordOutput() UserPasswordOutput ToUserPasswordOutputWithContext(ctx context.Context) UserPasswordOutput }
type UserPasswordMap ¶
type UserPasswordMap map[string]UserPasswordInput
func (UserPasswordMap) ElementType ¶
func (UserPasswordMap) ElementType() reflect.Type
func (UserPasswordMap) ToUserPasswordMapOutput ¶
func (i UserPasswordMap) ToUserPasswordMapOutput() UserPasswordMapOutput
func (UserPasswordMap) ToUserPasswordMapOutputWithContext ¶
func (i UserPasswordMap) ToUserPasswordMapOutputWithContext(ctx context.Context) UserPasswordMapOutput
type UserPasswordMapInput ¶
type UserPasswordMapInput interface { pulumi.Input ToUserPasswordMapOutput() UserPasswordMapOutput ToUserPasswordMapOutputWithContext(context.Context) UserPasswordMapOutput }
UserPasswordMapInput is an input type that accepts UserPasswordMap and UserPasswordMapOutput values. You can construct a concrete instance of `UserPasswordMapInput` via:
UserPasswordMap{ "key": UserPasswordArgs{...} }
type UserPasswordMapOutput ¶
type UserPasswordMapOutput struct{ *pulumi.OutputState }
func (UserPasswordMapOutput) ElementType ¶
func (UserPasswordMapOutput) ElementType() reflect.Type
func (UserPasswordMapOutput) MapIndex ¶
func (o UserPasswordMapOutput) MapIndex(k pulumi.StringInput) UserPasswordOutput
func (UserPasswordMapOutput) ToUserPasswordMapOutput ¶
func (o UserPasswordMapOutput) ToUserPasswordMapOutput() UserPasswordMapOutput
func (UserPasswordMapOutput) ToUserPasswordMapOutputWithContext ¶
func (o UserPasswordMapOutput) ToUserPasswordMapOutputWithContext(ctx context.Context) UserPasswordMapOutput
type UserPasswordOutput ¶
type UserPasswordOutput struct{ *pulumi.OutputState }
func (UserPasswordOutput) ElementType ¶
func (UserPasswordOutput) ElementType() reflect.Type
func (UserPasswordOutput) EncryptedPassword ¶ added in v3.2.0
func (o UserPasswordOutput) EncryptedPassword() pulumi.StringOutput
The encrypted password, base64 encoded.
func (UserPasswordOutput) Host ¶ added in v3.2.0
func (o UserPasswordOutput) Host() pulumi.StringPtrOutput
The source host of the user. Defaults to `localhost`.
func (UserPasswordOutput) KeyFingerprint ¶ added in v3.2.0
func (o UserPasswordOutput) KeyFingerprint() pulumi.StringOutput
The fingerprint of the PGP key used to encrypt the password
func (UserPasswordOutput) PgpKey ¶ added in v3.2.0
func (o UserPasswordOutput) PgpKey() pulumi.StringOutput
Either a base-64 encoded PGP public key, or a keybase username in the form `keybase:some_person_that_exists`.
func (UserPasswordOutput) ToUserPasswordOutput ¶
func (o UserPasswordOutput) ToUserPasswordOutput() UserPasswordOutput
func (UserPasswordOutput) ToUserPasswordOutputWithContext ¶
func (o UserPasswordOutput) ToUserPasswordOutputWithContext(ctx context.Context) UserPasswordOutput
func (UserPasswordOutput) User ¶ added in v3.2.0
func (o UserPasswordOutput) User() pulumi.StringOutput
The IAM user to associate with this access key.
type UserPasswordState ¶
type UserPasswordState struct { // The encrypted password, base64 encoded. EncryptedPassword pulumi.StringPtrInput // The source host of the user. Defaults to `localhost`. Host pulumi.StringPtrInput // The fingerprint of the PGP key used to encrypt the password KeyFingerprint pulumi.StringPtrInput // Either a base-64 encoded PGP public key, or a keybase username in the form `keybase:some_person_that_exists`. PgpKey pulumi.StringPtrInput // The IAM user to associate with this access key. User pulumi.StringPtrInput }
func (UserPasswordState) ElementType ¶
func (UserPasswordState) ElementType() reflect.Type
type UserState ¶
type UserState struct { // Use an [authentication plugin][ref-auth-plugins] to authenticate the user instead of using password authentication. Description of the fields allowed in the block below. Conflicts with `password` and `plaintextPassword`. AuthPlugin pulumi.StringPtrInput // The source host of the user. Defaults to "localhost". Host pulumi.StringPtrInput // Deprecated alias of `plaintextPassword`, whose value is *stored as plaintext in state*. Prefer to use `plaintextPassword` instead, which stores the password as an unsalted hash. Conflicts with `authPlugin`. // // Deprecated: Please use plaintextPassword instead Password pulumi.StringPtrInput // The password for the user. This must be provided in plain text, so the data source for it must be secured. An _unsalted_ hash of the provided password is stored in state. Conflicts with `authPlugin`. PlaintextPassword pulumi.StringPtrInput // An TLS-Option for the `CREATE USER` or `ALTER USER` statement. The value is suffixed to `REQUIRE`. A value of 'SSL' will generate a `CREATE USER ... REQUIRE SSL` statement. See the [MYSQL `CREATE USER` documentation](https://dev.mysql.com/doc/refman/5.7/en/create-user.html) for more. Ignored if MySQL version is under 5.7.0. // // [ref-auth-plugins]: https://dev.mysql.com/doc/refman/5.7/en/authentication-plugins.html TlsOption pulumi.StringPtrInput // The name of the user. User pulumi.StringPtrInput }