@pulumi/mysql 3.2.1 → 3.2.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/database.d.ts CHANGED
@@ -9,7 +9,7 @@ import * as pulumi from "@pulumi/pulumi";
9
9
  * import * as pulumi from "@pulumi/pulumi";
10
10
  * import * as mysql from "@pulumi/mysql";
11
11
  *
12
- * const app = new mysql.Database("app", {});
12
+ * const app = new mysql.Database("app", {name: "my_awesome_app"});
13
13
  * ```
14
14
  *
15
15
  * ## Import
@@ -17,7 +17,7 @@ import * as pulumi from "@pulumi/pulumi";
17
17
  * Databases can be imported using their name, e.g.
18
18
  *
19
19
  * ```sh
20
- * $ pulumi import mysql:index/database:Database example my-example-database
20
+ * $ pulumi import mysql:index/database:Database example my-example-database
21
21
  * ```
22
22
  */
23
23
  export declare class Database extends pulumi.CustomResource {
package/database.js CHANGED
@@ -15,7 +15,7 @@ const utilities = require("./utilities");
15
15
  * import * as pulumi from "@pulumi/pulumi";
16
16
  * import * as mysql from "@pulumi/mysql";
17
17
  *
18
- * const app = new mysql.Database("app", {});
18
+ * const app = new mysql.Database("app", {name: "my_awesome_app"});
19
19
  * ```
20
20
  *
21
21
  * ## Import
@@ -23,7 +23,7 @@ const utilities = require("./utilities");
23
23
  * Databases can be imported using their name, e.g.
24
24
  *
25
25
  * ```sh
26
- * $ pulumi import mysql:index/database:Database example my-example-database
26
+ * $ pulumi import mysql:index/database:Database example my-example-database
27
27
  * ```
28
28
  */
29
29
  class Database extends pulumi.CustomResource {
package/grant.d.ts CHANGED
@@ -11,19 +11,19 @@ import * as pulumi from "@pulumi/pulumi";
11
11
  * import * as pulumi from "@pulumi/pulumi";
12
12
  * import * as mysql from "@pulumi/mysql";
13
13
  *
14
- * const jdoeUser = new mysql.User("jdoeUser", {
14
+ * const jdoe = new mysql.User("jdoe", {
15
+ * user: "jdoe",
15
16
  * host: "example.com",
16
17
  * plaintextPassword: "password",
17
- * user: "jdoe",
18
18
  * });
19
- * const jdoeGrant = new mysql.Grant("jdoeGrant", {
19
+ * const jdoeGrant = new mysql.Grant("jdoe", {
20
+ * user: jdoe.user,
21
+ * host: jdoe.host,
20
22
  * database: "app",
21
- * host: jdoeUser.host,
22
23
  * privileges: [
23
24
  * "SELECT",
24
25
  * "UPDATE",
25
26
  * ],
26
- * user: jdoeUser.user,
27
27
  * });
28
28
  * ```
29
29
  *
@@ -33,14 +33,14 @@ import * as pulumi from "@pulumi/pulumi";
33
33
  * import * as pulumi from "@pulumi/pulumi";
34
34
  * import * as mysql from "@pulumi/mysql";
35
35
  *
36
- * const developerRole = new mysql.Role("developerRole", {});
37
- * const developerGrant = new mysql.Grant("developerGrant", {
36
+ * const developer = new mysql.Role("developer", {name: "developer"});
37
+ * const developerGrant = new mysql.Grant("developer", {
38
+ * role: developer.name,
38
39
  * database: "app",
39
40
  * privileges: [
40
41
  * "SELECT",
41
42
  * "UPDATE",
42
43
  * ],
43
- * role: developerRole.name,
44
44
  * });
45
45
  * ```
46
46
  *
@@ -51,16 +51,16 @@ import * as pulumi from "@pulumi/pulumi";
51
51
  * import * as mysql from "@pulumi/mysql";
52
52
  *
53
53
  * const jdoe = new mysql.User("jdoe", {
54
+ * user: "jdoe",
54
55
  * host: "example.com",
55
56
  * plaintextPassword: "password",
56
- * user: "jdoe",
57
57
  * });
58
- * const developerRole = new mysql.Role("developerRole", {});
59
- * const developerGrant = new mysql.Grant("developerGrant", {
60
- * database: "app",
61
- * host: jdoe.host,
62
- * roles: [developerRole.name],
58
+ * const developer = new mysql.Role("developer", {name: "developer"});
59
+ * const developerGrant = new mysql.Grant("developer", {
63
60
  * user: jdoe.user,
61
+ * host: jdoe.host,
62
+ * database: "app",
63
+ * roles: [developer.name],
64
64
  * });
65
65
  * ```
66
66
  */
package/grant.js CHANGED
@@ -17,19 +17,19 @@ const utilities = require("./utilities");
17
17
  * import * as pulumi from "@pulumi/pulumi";
18
18
  * import * as mysql from "@pulumi/mysql";
19
19
  *
20
- * const jdoeUser = new mysql.User("jdoeUser", {
20
+ * const jdoe = new mysql.User("jdoe", {
21
+ * user: "jdoe",
21
22
  * host: "example.com",
22
23
  * plaintextPassword: "password",
23
- * user: "jdoe",
24
24
  * });
25
- * const jdoeGrant = new mysql.Grant("jdoeGrant", {
25
+ * const jdoeGrant = new mysql.Grant("jdoe", {
26
+ * user: jdoe.user,
27
+ * host: jdoe.host,
26
28
  * database: "app",
27
- * host: jdoeUser.host,
28
29
  * privileges: [
29
30
  * "SELECT",
30
31
  * "UPDATE",
31
32
  * ],
32
- * user: jdoeUser.user,
33
33
  * });
34
34
  * ```
35
35
  *
@@ -39,14 +39,14 @@ const utilities = require("./utilities");
39
39
  * import * as pulumi from "@pulumi/pulumi";
40
40
  * import * as mysql from "@pulumi/mysql";
41
41
  *
42
- * const developerRole = new mysql.Role("developerRole", {});
43
- * const developerGrant = new mysql.Grant("developerGrant", {
42
+ * const developer = new mysql.Role("developer", {name: "developer"});
43
+ * const developerGrant = new mysql.Grant("developer", {
44
+ * role: developer.name,
44
45
  * database: "app",
45
46
  * privileges: [
46
47
  * "SELECT",
47
48
  * "UPDATE",
48
49
  * ],
49
- * role: developerRole.name,
50
50
  * });
51
51
  * ```
52
52
  *
@@ -57,16 +57,16 @@ const utilities = require("./utilities");
57
57
  * import * as mysql from "@pulumi/mysql";
58
58
  *
59
59
  * const jdoe = new mysql.User("jdoe", {
60
+ * user: "jdoe",
60
61
  * host: "example.com",
61
62
  * plaintextPassword: "password",
62
- * user: "jdoe",
63
63
  * });
64
- * const developerRole = new mysql.Role("developerRole", {});
65
- * const developerGrant = new mysql.Grant("developerGrant", {
66
- * database: "app",
67
- * host: jdoe.host,
68
- * roles: [developerRole.name],
64
+ * const developer = new mysql.Role("developer", {name: "developer"});
65
+ * const developerGrant = new mysql.Grant("developer", {
69
66
  * user: jdoe.user,
67
+ * host: jdoe.host,
68
+ * database: "app",
69
+ * roles: [developer.name],
70
70
  * });
71
71
  * ```
72
72
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pulumi/mysql",
3
- "version": "v3.2.1",
3
+ "version": "v3.2.4",
4
4
  "description": "A Pulumi package for creating and managing mysql cloud resources.",
5
5
  "keywords": [
6
6
  "pulumi",
package/role.d.ts CHANGED
@@ -11,7 +11,7 @@ import * as pulumi from "@pulumi/pulumi";
11
11
  * import * as pulumi from "@pulumi/pulumi";
12
12
  * import * as mysql from "@pulumi/mysql";
13
13
  *
14
- * const developer = new mysql.Role("developer", {});
14
+ * const developer = new mysql.Role("developer", {name: "developer"});
15
15
  * ```
16
16
  */
17
17
  export declare class Role extends pulumi.CustomResource {
package/role.js CHANGED
@@ -17,7 +17,7 @@ const utilities = require("./utilities");
17
17
  * import * as pulumi from "@pulumi/pulumi";
18
18
  * import * as mysql from "@pulumi/mysql";
19
19
  *
20
- * const developer = new mysql.Role("developer", {});
20
+ * const developer = new mysql.Role("developer", {name: "developer"});
21
21
  * ```
22
22
  */
23
23
  class Role extends pulumi.CustomResource {
package/user.d.ts CHANGED
@@ -12,9 +12,9 @@ import * as pulumi from "@pulumi/pulumi";
12
12
  * import * as mysql from "@pulumi/mysql";
13
13
  *
14
14
  * const jdoe = new mysql.User("jdoe", {
15
+ * user: "jdoe",
15
16
  * host: "example.com",
16
17
  * plaintextPassword: "password",
17
- * user: "jdoe",
18
18
  * });
19
19
  * ```
20
20
  *
@@ -25,9 +25,9 @@ import * as pulumi from "@pulumi/pulumi";
25
25
  * import * as mysql from "@pulumi/mysql";
26
26
  *
27
27
  * const nologin = new mysql.User("nologin", {
28
- * authPlugin: "mysql_no_login",
29
- * host: "example.com",
30
28
  * user: "nologin",
29
+ * host: "example.com",
30
+ * authPlugin: "mysql_no_login",
31
31
  * });
32
32
  * ```
33
33
  */
@@ -58,7 +58,7 @@ export declare class User extends pulumi.CustomResource {
58
58
  /**
59
59
  * 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`.
60
60
  *
61
- * @deprecated Please use plaintext_password instead
61
+ * @deprecated Please use plaintextPassword instead
62
62
  */
63
63
  readonly password: pulumi.Output<string | undefined>;
64
64
  /**
@@ -99,7 +99,7 @@ export interface UserState {
99
99
  /**
100
100
  * 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`.
101
101
  *
102
- * @deprecated Please use plaintext_password instead
102
+ * @deprecated Please use plaintextPassword instead
103
103
  */
104
104
  password?: pulumi.Input<string>;
105
105
  /**
@@ -132,7 +132,7 @@ export interface UserArgs {
132
132
  /**
133
133
  * 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`.
134
134
  *
135
- * @deprecated Please use plaintext_password instead
135
+ * @deprecated Please use plaintextPassword instead
136
136
  */
137
137
  password?: pulumi.Input<string>;
138
138
  /**
package/user.js CHANGED
@@ -18,9 +18,9 @@ const utilities = require("./utilities");
18
18
  * import * as mysql from "@pulumi/mysql";
19
19
  *
20
20
  * const jdoe = new mysql.User("jdoe", {
21
+ * user: "jdoe",
21
22
  * host: "example.com",
22
23
  * plaintextPassword: "password",
23
- * user: "jdoe",
24
24
  * });
25
25
  * ```
26
26
  *
@@ -31,9 +31,9 @@ const utilities = require("./utilities");
31
31
  * import * as mysql from "@pulumi/mysql";
32
32
  *
33
33
  * const nologin = new mysql.User("nologin", {
34
- * authPlugin: "mysql_no_login",
35
- * host: "example.com",
36
34
  * user: "nologin",
35
+ * host: "example.com",
36
+ * authPlugin: "mysql_no_login",
37
37
  * });
38
38
  * ```
39
39
  */
package/userPassword.d.ts CHANGED
@@ -9,6 +9,19 @@ import * as pulumi from "@pulumi/pulumi";
9
9
  *
10
10
  * > **NOTE on How Passwords are Created:** This resource **automatically**
11
11
  * generates a **random** password. The password will be a random UUID.
12
+ *
13
+ * ## Example Usage
14
+ *
15
+ * ```typescript
16
+ * import * as pulumi from "@pulumi/pulumi";
17
+ * import * as mysql from "@pulumi/mysql";
18
+ *
19
+ * const jdoe = new mysql.User("jdoe", {user: "jdoe"});
20
+ * const jdoeUserPassword = new mysql.UserPassword("jdoe", {
21
+ * user: jdoe.user,
22
+ * pgpKey: "keybase:joestump",
23
+ * });
24
+ * ```
12
25
  */
13
26
  export declare class UserPassword extends pulumi.CustomResource {
14
27
  /**
package/userPassword.js CHANGED
@@ -15,6 +15,19 @@ const utilities = require("./utilities");
15
15
  *
16
16
  * > **NOTE on How Passwords are Created:** This resource **automatically**
17
17
  * generates a **random** password. The password will be a random UUID.
18
+ *
19
+ * ## Example Usage
20
+ *
21
+ * ```typescript
22
+ * import * as pulumi from "@pulumi/pulumi";
23
+ * import * as mysql from "@pulumi/mysql";
24
+ *
25
+ * const jdoe = new mysql.User("jdoe", {user: "jdoe"});
26
+ * const jdoeUserPassword = new mysql.UserPassword("jdoe", {
27
+ * user: jdoe.user,
28
+ * pgpKey: "keybase:joestump",
29
+ * });
30
+ * ```
18
31
  */
19
32
  class UserPassword extends pulumi.CustomResource {
20
33
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"userPassword.js","sourceRoot":"","sources":["../userPassword.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;GAUG;AACH,MAAa,YAAa,SAAQ,MAAM,CAAC,cAAc;IACnD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAyB,EAAE,IAAmC;QACvH,OAAO,IAAI,YAAY,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IACnE,CAAC;IAKD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAA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