@pulumi/postgresql 3.11.0-alpha.1709366779 → 3.11.0

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/grantRole.d.ts CHANGED
@@ -5,6 +5,31 @@ import * as pulumi from "@pulumi/pulumi";
5
5
  * When using ``postgresql.GrantRole`` resource it is likely because the PostgreSQL role you are modifying was created outside of this provider.
6
6
  *
7
7
  * > **Note:** This resource needs PostgreSQL version 9 or above.
8
+ *
9
+ * ## Usage
10
+ *
11
+ * ```typescript
12
+ * import * as pulumi from "@pulumi/pulumi";
13
+ * import * as postgresql from "@pulumi/postgresql";
14
+ *
15
+ * const grantRoot = new postgresql.GrantRole("grantRoot", {
16
+ * grantRole: "application",
17
+ * role: "root",
18
+ * withAdminOption: true,
19
+ * });
20
+ * ```
21
+ *
22
+ * > **Note:** If you use `postgresql.GrantRole` for a role that you also manage with a `postgresql.Role` resource, you need to ignore the changes of the `roles` attribute in the `postgresql.Role` resource or they will fight over what your role grants should be. e.g.:
23
+ * ```typescript
24
+ * import * as pulumi from "@pulumi/pulumi";
25
+ * import * as postgresql from "@pulumi/postgresql";
26
+ *
27
+ * const bob = new postgresql.Role("bob", {});
28
+ * const bobAdmin = new postgresql.GrantRole("bobAdmin", {
29
+ * role: "bob",
30
+ * grantRole: "admin",
31
+ * });
32
+ * ```
8
33
  */
9
34
  export declare class GrantRole extends pulumi.CustomResource {
10
35
  /**
package/grantRole.js CHANGED
@@ -11,6 +11,31 @@ const utilities = require("./utilities");
11
11
  * When using ``postgresql.GrantRole`` resource it is likely because the PostgreSQL role you are modifying was created outside of this provider.
12
12
  *
13
13
  * > **Note:** This resource needs PostgreSQL version 9 or above.
14
+ *
15
+ * ## Usage
16
+ *
17
+ * ```typescript
18
+ * import * as pulumi from "@pulumi/pulumi";
19
+ * import * as postgresql from "@pulumi/postgresql";
20
+ *
21
+ * const grantRoot = new postgresql.GrantRole("grantRoot", {
22
+ * grantRole: "application",
23
+ * role: "root",
24
+ * withAdminOption: true,
25
+ * });
26
+ * ```
27
+ *
28
+ * > **Note:** If you use `postgresql.GrantRole` for a role that you also manage with a `postgresql.Role` resource, you need to ignore the changes of the `roles` attribute in the `postgresql.Role` resource or they will fight over what your role grants should be. e.g.:
29
+ * ```typescript
30
+ * import * as pulumi from "@pulumi/pulumi";
31
+ * import * as postgresql from "@pulumi/postgresql";
32
+ *
33
+ * const bob = new postgresql.Role("bob", {});
34
+ * const bobAdmin = new postgresql.GrantRole("bobAdmin", {
35
+ * role: "bob",
36
+ * grantRole: "admin",
37
+ * });
38
+ * ```
14
39
  */
15
40
  class GrantRole extends pulumi.CustomResource {
16
41
  /**
package/grantRole.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"grantRole.js","sourceRoot":"","sources":["../grantRole.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;GAMG;AACH,MAAa,SAAU,SAAQ,MAAM,CAAC,cAAc;IAChD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAsB,EAAE,IAAmC;QACpH,OAAO,IAAI,SAAS,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IAChE,CAAC;IAKD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,EAAE;YACnC,OAAO,KAAK,CAAC;SAChB;QACD,OAAO,GAAG,CAAC,cAAc,CAAC,KAAK,SAAS,CAAC,YAAY,CAAC;IAC1D,CAAC;IAuBD,YAAY,IAAY,EAAE,WAA4C,EAAE,IAAmC;QACvG,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,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Ae,CAAC,CAAC,CAAC,SAAS,CAAC;SACjF;aAAM;YACH,MAAM,IAAI,GAAG,WAAwC,CAAC;YACtD,IAAI,CAAC,CAAC,IAAI,IAAI,IAAI,CAAC,SAAS,KAAK,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBACtD,MAAM,IAAI,KAAK,CAAC,uCAAuC,CAAC,CAAC;aAC5D;YACD,IAAI,CAAC,CAAC,IAAI,IAAI,IAAI,CAAC,IAAI,KAAK,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBACjD,MAAM,IAAI,KAAK,CAAC,kCAAkC,CAAC,CAAC;aACvD;YACD,cAAc,CAAC,WAAW,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC;YAChE,cAAc,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC;YACtD,cAAc,CAAC,iBAAiB,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC,CAAC,SAAS,CAAC;SAC/E;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,SAAS,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC9D,CAAC;;AAvEL,8BAwEC;AA1DG,gBAAgB;AACO,sBAAY,GAAG,sCAAsC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pulumi/postgresql",
3
- "version": "v3.11.0-alpha.1709366779+f26a05c2",
3
+ "version": "v3.11.0",
4
4
  "description": "A Pulumi package for creating and managing postgresql cloud resources.",
5
5
  "keywords": [
6
6
  "pulumi",