@pulumi/postgresql 3.1.0 → 3.3.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.
Files changed (50) hide show
  1. package/README.md +1 -1
  2. package/config/index.js +11 -4
  3. package/config/index.js.map +1 -1
  4. package/config/vars.d.ts +15 -15
  5. package/config/vars.js +93 -57
  6. package/config/vars.js.map +1 -1
  7. package/database.d.ts +20 -20
  8. package/database.js +1 -0
  9. package/database.js.map +1 -1
  10. package/defaultPrivileg.d.ts +14 -14
  11. package/defaultPrivileg.js +1 -0
  12. package/defaultPrivileg.js.map +1 -1
  13. package/defaultPrivileges.d.ts +17 -17
  14. package/defaultPrivileges.js +1 -0
  15. package/defaultPrivileges.js.map +1 -1
  16. package/extension.d.ts +22 -10
  17. package/extension.js +3 -0
  18. package/extension.js.map +1 -1
  19. package/grant.d.ts +34 -18
  20. package/grant.js +7 -0
  21. package/grant.js.map +1 -1
  22. package/grantRole.d.ts +6 -6
  23. package/grantRole.js +1 -0
  24. package/grantRole.js.map +1 -1
  25. package/index.d.ts +2 -0
  26. package/index.js +30 -12
  27. package/index.js.map +1 -1
  28. package/package.json +4 -3
  29. package/package.json.bak +3 -2
  30. package/package.json.dev +4 -3
  31. package/physicalReplicationSlot.d.ts +53 -0
  32. package/physicalReplicationSlot.js +56 -0
  33. package/physicalReplicationSlot.js.map +1 -0
  34. package/provider.d.ts +53 -15
  35. package/provider.js +3 -2
  36. package/provider.js.map +1 -1
  37. package/replicationSlot.d.ts +76 -0
  38. package/replicationSlot.js +62 -0
  39. package/replicationSlot.js.map +1 -0
  40. package/role.d.ts +38 -38
  41. package/role.js +1 -0
  42. package/role.js.map +1 -1
  43. package/schema.d.ts +12 -12
  44. package/schema.js +1 -0
  45. package/schema.js.map +1 -1
  46. package/types/index.js +1 -0
  47. package/types/index.js.map +1 -1
  48. package/types/output.d.ts +0 -4
  49. package/utilities.js +1 -0
  50. package/utilities.js.map +1 -1
package/provider.d.ts CHANGED
@@ -12,6 +12,44 @@ export declare class Provider extends pulumi.ProviderResource {
12
12
  * when multiple copies of the Pulumi SDK have been loaded into the same process.
13
13
  */
14
14
  static isInstance(obj: any): obj is Provider;
15
+ /**
16
+ * The name of the database to connect to in order to conenct to (defaults to `postgres`).
17
+ */
18
+ readonly database: pulumi.Output<string | undefined>;
19
+ /**
20
+ * Database username associated to the connected user (for user name maps)
21
+ */
22
+ readonly databaseUsername: pulumi.Output<string | undefined>;
23
+ /**
24
+ * Specify the expected version of PostgreSQL.
25
+ */
26
+ readonly expectedVersion: pulumi.Output<string | undefined>;
27
+ /**
28
+ * Name of PostgreSQL server address to connect to
29
+ */
30
+ readonly host: pulumi.Output<string | undefined>;
31
+ /**
32
+ * Password to be used if the PostgreSQL server demands password authentication
33
+ */
34
+ readonly password: pulumi.Output<string | undefined>;
35
+ readonly scheme: pulumi.Output<string | undefined>;
36
+ /**
37
+ * @deprecated Rename PostgreSQL provider `ssl_mode` attribute to `sslmode`
38
+ */
39
+ readonly sslMode: pulumi.Output<string | undefined>;
40
+ /**
41
+ * This option determines whether or with what priority a secure SSL TCP/IP connection will be negotiated with the
42
+ * PostgreSQL server
43
+ */
44
+ readonly sslmode: pulumi.Output<string | undefined>;
45
+ /**
46
+ * The SSL server root certificate file path. The file must contain PEM encoded data.
47
+ */
48
+ readonly sslrootcert: pulumi.Output<string | undefined>;
49
+ /**
50
+ * PostgreSQL user name to connect as
51
+ */
52
+ readonly username: pulumi.Output<string | undefined>;
15
53
  /**
16
54
  * Create a Provider resource with the given unique name, arguments, and options.
17
55
  *
@@ -28,60 +66,60 @@ export interface ProviderArgs {
28
66
  /**
29
67
  * SSL client certificate if required by the database.
30
68
  */
31
- readonly clientcert?: pulumi.Input<inputs.ProviderClientcert>;
69
+ clientcert?: pulumi.Input<inputs.ProviderClientcert>;
32
70
  /**
33
71
  * Maximum wait for connection, in seconds. Zero or not specified means wait indefinitely.
34
72
  */
35
- readonly connectTimeout?: pulumi.Input<number>;
73
+ connectTimeout?: pulumi.Input<number>;
36
74
  /**
37
75
  * The name of the database to connect to in order to conenct to (defaults to `postgres`).
38
76
  */
39
- readonly database?: pulumi.Input<string>;
77
+ database?: pulumi.Input<string>;
40
78
  /**
41
79
  * Database username associated to the connected user (for user name maps)
42
80
  */
43
- readonly databaseUsername?: pulumi.Input<string>;
81
+ databaseUsername?: pulumi.Input<string>;
44
82
  /**
45
83
  * Specify the expected version of PostgreSQL.
46
84
  */
47
- readonly expectedVersion?: pulumi.Input<string>;
85
+ expectedVersion?: pulumi.Input<string>;
48
86
  /**
49
87
  * Name of PostgreSQL server address to connect to
50
88
  */
51
- readonly host?: pulumi.Input<string>;
89
+ host?: pulumi.Input<string>;
52
90
  /**
53
91
  * Maximum number of connections to establish to the database. Zero means unlimited.
54
92
  */
55
- readonly maxConnections?: pulumi.Input<number>;
93
+ maxConnections?: pulumi.Input<number>;
56
94
  /**
57
95
  * Password to be used if the PostgreSQL server demands password authentication
58
96
  */
59
- readonly password?: pulumi.Input<string>;
97
+ password?: pulumi.Input<string>;
60
98
  /**
61
99
  * The PostgreSQL port number to connect to at the server host, or socket file name extension for Unix-domain connections
62
100
  */
63
- readonly port?: pulumi.Input<number>;
64
- readonly scheme?: pulumi.Input<string>;
101
+ port?: pulumi.Input<number>;
102
+ scheme?: pulumi.Input<string>;
65
103
  /**
66
104
  * @deprecated Rename PostgreSQL provider `ssl_mode` attribute to `sslmode`
67
105
  */
68
- readonly sslMode?: pulumi.Input<string>;
106
+ sslMode?: pulumi.Input<string>;
69
107
  /**
70
108
  * This option determines whether or with what priority a secure SSL TCP/IP connection will be negotiated with the
71
109
  * PostgreSQL server
72
110
  */
73
- readonly sslmode?: pulumi.Input<string>;
111
+ sslmode?: pulumi.Input<string>;
74
112
  /**
75
113
  * The SSL server root certificate file path. The file must contain PEM encoded data.
76
114
  */
77
- readonly sslrootcert?: pulumi.Input<string>;
115
+ sslrootcert?: pulumi.Input<string>;
78
116
  /**
79
117
  * Specify if the user to connect as is a Postgres superuser or not.If not, some feature might be disabled (e.g.:
80
118
  * Refreshing state password from Postgres)
81
119
  */
82
- readonly superuser?: pulumi.Input<boolean>;
120
+ superuser?: pulumi.Input<boolean>;
83
121
  /**
84
122
  * PostgreSQL user name to connect as
85
123
  */
86
- readonly username?: pulumi.Input<string>;
124
+ username?: pulumi.Input<string>;
87
125
  }
package/provider.js CHANGED
@@ -2,6 +2,7 @@
2
2
  // *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
3
3
  // *** Do not edit by hand unless you're certain you know what you are doing! ***
4
4
  Object.defineProperty(exports, "__esModule", { value: true });
5
+ exports.Provider = void 0;
5
6
  const pulumi = require("@pulumi/pulumi");
6
7
  const utilities = require("./utilities");
7
8
  /**
@@ -24,7 +25,7 @@ class Provider extends pulumi.ProviderResource {
24
25
  opts = opts || {};
25
26
  {
26
27
  inputs["clientcert"] = pulumi.output(args ? args.clientcert : undefined).apply(JSON.stringify);
27
- inputs["connectTimeout"] = pulumi.output((_a = (args ? args.connectTimeout : undefined), (_a !== null && _a !== void 0 ? _a : (utilities.getEnvNumber("PGCONNECT_TIMEOUT") || 180)))).apply(JSON.stringify);
28
+ inputs["connectTimeout"] = pulumi.output((_a = (args ? args.connectTimeout : undefined)) !== null && _a !== void 0 ? _a : (utilities.getEnvNumber("PGCONNECT_TIMEOUT") || 180)).apply(JSON.stringify);
28
29
  inputs["database"] = args ? args.database : undefined;
29
30
  inputs["databaseUsername"] = args ? args.databaseUsername : undefined;
30
31
  inputs["expectedVersion"] = args ? args.expectedVersion : undefined;
@@ -34,7 +35,7 @@ class Provider extends pulumi.ProviderResource {
34
35
  inputs["port"] = pulumi.output(args ? args.port : undefined).apply(JSON.stringify);
35
36
  inputs["scheme"] = args ? args.scheme : undefined;
36
37
  inputs["sslMode"] = args ? args.sslMode : undefined;
37
- inputs["sslmode"] = (_b = (args ? args.sslmode : undefined), (_b !== null && _b !== void 0 ? _b : utilities.getEnv("PGSSLMODE")));
38
+ inputs["sslmode"] = (_b = (args ? args.sslmode : undefined)) !== null && _b !== void 0 ? _b : utilities.getEnv("PGSSLMODE");
38
39
  inputs["sslrootcert"] = args ? args.sslrootcert : undefined;
39
40
  inputs["superuser"] = pulumi.output(args ? args.superuser : undefined).apply(JSON.stringify);
40
41
  inputs["username"] = args ? args.username : undefined;
package/provider.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"provider.js","sourceRoot":"","sources":["../provider.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;AAEjF,yCAAyC;AAEzC,yCAAyC;AAEzC;;;;;GAKG;AACH,MAAa,QAAS,SAAQ,MAAM,CAAC,gBAAgB;IAgBjD;;;;;;OAMG;IACH,YAAY,IAAY,EAAE,IAAmB,EAAE,IAA6B;;QACxE,IAAI,MAAM,GAAkB,EAAE,CAAC;QAC/B,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB;YACI,MAAM,CAAC,YAAY,CAAC,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;YAC/F,MAAM,CAAC,gBAAgB,CAAC,GAAG,MAAM,CAAC,MAAM,OAAC,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC,CAAC,SAAS,CAAC,uCAAI,CAAM,SAAS,CAAC,YAAY,CAAC,mBAAmB,CAAC,IAAI,GAAG,CAAC,GAAC,CAAC,KAAK,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;YACtK,MAAM,CAAC,UAAU,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC;YACtD,MAAM,CAAC,kBAAkB,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAC,CAAC,SA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C;SAChB;QACD,OAAO,GAAG,CAAC,cAAc,CAAC,KAAK,QAAQ,CAAC,YAAY,CAAC;IACzD,CAAC;;AAbL,4BAsFC;AArFG,gBAAgB;AACO,qBAAY,GAAG,YAAY,CAAC"}
@@ -0,0 +1,76 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ /**
3
+ * The ``postgresql.ReplicationSlot`` resource creates and manages a replication slot on a PostgreSQL
4
+ * server.
5
+ */
6
+ export declare class ReplicationSlot extends pulumi.CustomResource {
7
+ /**
8
+ * Get an existing ReplicationSlot resource's state with the given name, ID, and optional extra
9
+ * properties used to qualify the lookup.
10
+ *
11
+ * @param name The _unique_ name of the resulting resource.
12
+ * @param id The _unique_ provider ID of the resource to lookup.
13
+ * @param state Any extra arguments used during the lookup.
14
+ * @param opts Optional settings to control the behavior of the CustomResource.
15
+ */
16
+ static get(name: string, id: pulumi.Input<pulumi.ID>, state?: ReplicationSlotState, opts?: pulumi.CustomResourceOptions): ReplicationSlot;
17
+ /**
18
+ * Returns true if the given object is an instance of ReplicationSlot. This is designed to work even
19
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
20
+ */
21
+ static isInstance(obj: any): obj is ReplicationSlot;
22
+ /**
23
+ * Which database to create the replication slot on. Defaults to provider database.
24
+ */
25
+ readonly database: pulumi.Output<string>;
26
+ /**
27
+ * The name of the replication slot.
28
+ */
29
+ readonly name: pulumi.Output<string>;
30
+ /**
31
+ * Sets the output plugin.
32
+ */
33
+ readonly plugin: pulumi.Output<string>;
34
+ /**
35
+ * Create a ReplicationSlot resource with the given unique name, arguments, and options.
36
+ *
37
+ * @param name The _unique_ name of the resource.
38
+ * @param args The arguments to use to populate this resource's properties.
39
+ * @param opts A bag of options that control this resource's behavior.
40
+ */
41
+ constructor(name: string, args: ReplicationSlotArgs, opts?: pulumi.CustomResourceOptions);
42
+ }
43
+ /**
44
+ * Input properties used for looking up and filtering ReplicationSlot resources.
45
+ */
46
+ export interface ReplicationSlotState {
47
+ /**
48
+ * Which database to create the replication slot on. Defaults to provider database.
49
+ */
50
+ database?: pulumi.Input<string>;
51
+ /**
52
+ * The name of the replication slot.
53
+ */
54
+ name?: pulumi.Input<string>;
55
+ /**
56
+ * Sets the output plugin.
57
+ */
58
+ plugin?: pulumi.Input<string>;
59
+ }
60
+ /**
61
+ * The set of arguments for constructing a ReplicationSlot resource.
62
+ */
63
+ export interface ReplicationSlotArgs {
64
+ /**
65
+ * Which database to create the replication slot on. Defaults to provider database.
66
+ */
67
+ database?: pulumi.Input<string>;
68
+ /**
69
+ * The name of the replication slot.
70
+ */
71
+ name?: pulumi.Input<string>;
72
+ /**
73
+ * Sets the output plugin.
74
+ */
75
+ plugin: pulumi.Input<string>;
76
+ }
@@ -0,0 +1,62 @@
1
+ "use strict";
2
+ // *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
3
+ // *** Do not edit by hand unless you're certain you know what you are doing! ***
4
+ Object.defineProperty(exports, "__esModule", { value: true });
5
+ exports.ReplicationSlot = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("./utilities");
8
+ /**
9
+ * The ``postgresql.ReplicationSlot`` resource creates and manages a replication slot on a PostgreSQL
10
+ * server.
11
+ */
12
+ class ReplicationSlot extends pulumi.CustomResource {
13
+ constructor(name, argsOrState, opts) {
14
+ let inputs = {};
15
+ opts = opts || {};
16
+ if (opts.id) {
17
+ const state = argsOrState;
18
+ inputs["database"] = state ? state.database : undefined;
19
+ inputs["name"] = state ? state.name : undefined;
20
+ inputs["plugin"] = state ? state.plugin : undefined;
21
+ }
22
+ else {
23
+ const args = argsOrState;
24
+ if ((!args || args.plugin === undefined) && !opts.urn) {
25
+ throw new Error("Missing required property 'plugin'");
26
+ }
27
+ inputs["database"] = args ? args.database : undefined;
28
+ inputs["name"] = args ? args.name : undefined;
29
+ inputs["plugin"] = args ? args.plugin : undefined;
30
+ }
31
+ if (!opts.version) {
32
+ opts = pulumi.mergeOptions(opts, { version: utilities.getVersion() });
33
+ }
34
+ super(ReplicationSlot.__pulumiType, name, inputs, opts);
35
+ }
36
+ /**
37
+ * Get an existing ReplicationSlot resource's state with the given name, ID, and optional extra
38
+ * properties used to qualify the lookup.
39
+ *
40
+ * @param name The _unique_ name of the resulting resource.
41
+ * @param id The _unique_ provider ID of the resource to lookup.
42
+ * @param state Any extra arguments used during the lookup.
43
+ * @param opts Optional settings to control the behavior of the CustomResource.
44
+ */
45
+ static get(name, id, state, opts) {
46
+ return new ReplicationSlot(name, state, Object.assign(Object.assign({}, opts), { id: id }));
47
+ }
48
+ /**
49
+ * Returns true if the given object is an instance of ReplicationSlot. This is designed to work even
50
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
51
+ */
52
+ static isInstance(obj) {
53
+ if (obj === undefined || obj === null) {
54
+ return false;
55
+ }
56
+ return obj['__pulumiType'] === ReplicationSlot.__pulumiType;
57
+ }
58
+ }
59
+ exports.ReplicationSlot = ReplicationSlot;
60
+ /** @internal */
61
+ ReplicationSlot.__pulumiType = 'postgresql:index/replicationSlot:ReplicationSlot';
62
+ //# sourceMappingURL=replicationSlot.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"replicationSlot.js","sourceRoot":"","sources":["../replicationSlot.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;GAGG;AACH,MAAa,eAAgB,SAAQ,MAAM,CAAC,cAAc;IAiDtD,YAAY,IAAY,EAAE,WAAwD,EAAE,IAAmC;QACnH,IAAI,MAAM,GAAkB,EAAE,CAAC;QAC/B,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAA+C,CAAC;YAC9D,MAAM,CAAC,UAAU,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC;YACxD,MAAM,CAAC,MAAM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AC,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,eAAe,CAAC,YAAY,CAAC;IAChE,CAAC;;AA1BL,0CAuEC;AAzDG,gBAAgB;AACO,4BAAY,GAAG,kDAAkD,CAAC"}
package/role.d.ts CHANGED
@@ -146,28 +146,28 @@ export interface RoleState {
146
146
  * Defines whether a role bypasses every
147
147
  * row-level security (RLS) policy. Default value is `false`.
148
148
  */
149
- readonly bypassRowLevelSecurity?: pulumi.Input<boolean>;
149
+ bypassRowLevelSecurity?: pulumi.Input<boolean>;
150
150
  /**
151
151
  * If this role can log in, this specifies how
152
152
  * many concurrent connections the role can establish. `-1` (the default) means no
153
153
  * limit.
154
154
  */
155
- readonly connectionLimit?: pulumi.Input<number>;
155
+ connectionLimit?: pulumi.Input<number>;
156
156
  /**
157
157
  * Defines a role's ability to execute `CREATE
158
158
  * DATABASE`. Default value is `false`.
159
159
  */
160
- readonly createDatabase?: pulumi.Input<boolean>;
160
+ createDatabase?: pulumi.Input<boolean>;
161
161
  /**
162
162
  * Defines a role's ability to execute `CREATE ROLE`.
163
163
  * A role with this privilege can also alter and drop other roles. Default value
164
164
  * is `false`.
165
165
  */
166
- readonly createRole?: pulumi.Input<boolean>;
166
+ createRole?: pulumi.Input<boolean>;
167
167
  /**
168
168
  * @deprecated Rename PostgreSQL role resource attribute "encrypted" to "encrypted_password"
169
169
  */
170
- readonly encrypted?: pulumi.Input<string>;
170
+ encrypted?: pulumi.Input<string>;
171
171
  /**
172
172
  * Defines whether the password is stored
173
173
  * encrypted in the system catalogs. Default value is `true`. NOTE: this value
@@ -175,48 +175,48 @@ export interface RoleState {
175
175
  * behavior of
176
176
  * [PostgreSQL's `passwordEncryption` setting](https://www.postgresql.org/docs/current/static/runtime-config-connection.html#GUC-PASSWORD-ENCRYPTION).
177
177
  */
178
- readonly encryptedPassword?: pulumi.Input<boolean>;
178
+ encryptedPassword?: pulumi.Input<boolean>;
179
179
  /**
180
180
  * Terminate any session with an open transaction that has been idle for longer than the specified duration in milliseconds
181
181
  */
182
- readonly idleInTransactionSessionTimeout?: pulumi.Input<number>;
182
+ idleInTransactionSessionTimeout?: pulumi.Input<number>;
183
183
  /**
184
184
  * Defines whether a role "inherits" the privileges of
185
185
  * roles it is a member of. Default value is `true`.
186
186
  */
187
- readonly inherit?: pulumi.Input<boolean>;
187
+ inherit?: pulumi.Input<boolean>;
188
188
  /**
189
189
  * Defines whether role is allowed to log in. Roles without
190
190
  * this attribute are useful for managing database privileges, but are not users
191
191
  * in the usual sense of the word. Default value is `false`.
192
192
  */
193
- readonly login?: pulumi.Input<boolean>;
193
+ login?: pulumi.Input<boolean>;
194
194
  /**
195
195
  * The name of the role. Must be unique on the PostgreSQL
196
196
  * server instance where it is configured.
197
197
  */
198
- readonly name?: pulumi.Input<string>;
198
+ name?: pulumi.Input<string>;
199
199
  /**
200
200
  * Sets the role's password. A password is only of use
201
201
  * for roles having the `login` attribute set to true.
202
202
  */
203
- readonly password?: pulumi.Input<string>;
203
+ password?: pulumi.Input<string>;
204
204
  /**
205
205
  * Defines whether a role is allowed to initiate
206
206
  * streaming replication or put the system in and out of backup mode. Default
207
207
  * value is `false`
208
208
  */
209
- readonly replication?: pulumi.Input<boolean>;
209
+ replication?: pulumi.Input<boolean>;
210
210
  /**
211
211
  * Defines list of roles which will be granted to this new role.
212
212
  */
213
- readonly roles?: pulumi.Input<pulumi.Input<string>[]>;
213
+ roles?: pulumi.Input<pulumi.Input<string>[]>;
214
214
  /**
215
215
  * Alters the search path of this new role. Note that
216
216
  * due to limitations in the implementation, values cannot contain the substring
217
217
  * `", "`.
218
218
  */
219
- readonly searchPaths?: pulumi.Input<pulumi.Input<string>[]>;
219
+ searchPaths?: pulumi.Input<pulumi.Input<string>[]>;
220
220
  /**
221
221
  * When a PostgreSQL ROLE exists in multiple
222
222
  * databases and the ROLE is dropped, the
@@ -226,7 +226,7 @@ export interface RoleState {
226
226
  * in a PostgreSQL cluster using the same PostgreSQL ROLE for object ownership.
227
227
  * This is the third and final step taken when removing a ROLE from a database.
228
228
  */
229
- readonly skipDropRole?: pulumi.Input<boolean>;
229
+ skipDropRole?: pulumi.Input<boolean>;
230
230
  /**
231
231
  * When a PostgreSQL ROLE exists in multiple
232
232
  * databases and the ROLE is dropped, a
@@ -237,17 +237,17 @@ export interface RoleState {
237
237
  * an implicit
238
238
  * [`DROP OWNED`](https://www.postgresql.org/docs/current/static/sql-drop-owned.html)).
239
239
  */
240
- readonly skipReassignOwned?: pulumi.Input<boolean>;
240
+ skipReassignOwned?: pulumi.Input<boolean>;
241
241
  /**
242
242
  * Defines [`statementTimeout`](https://www.postgresql.org/docs/current/runtime-config-client.html#RUNTIME-CONFIG-CLIENT-STATEMENT) setting for this role which allows to abort any statement that takes more than the specified amount of time.
243
243
  */
244
- readonly statementTimeout?: pulumi.Input<number>;
244
+ statementTimeout?: pulumi.Input<number>;
245
245
  /**
246
246
  * Defines whether the role is a "superuser", and
247
247
  * therefore can override all access restrictions within the database. Default
248
248
  * value is `false`.
249
249
  */
250
- readonly superuser?: pulumi.Input<boolean>;
250
+ superuser?: pulumi.Input<boolean>;
251
251
  /**
252
252
  * Defines the date and time after which the role's
253
253
  * password is no longer valid. Established connections past this `validTime`
@@ -255,7 +255,7 @@ export interface RoleState {
255
255
  * datetime. If omitted or the magic value `NULL` is used, `validUntil` will be
256
256
  * set to `infinity`. Default is `NULL`, therefore `infinity`.
257
257
  */
258
- readonly validUntil?: pulumi.Input<string>;
258
+ validUntil?: pulumi.Input<string>;
259
259
  }
260
260
  /**
261
261
  * The set of arguments for constructing a Role resource.
@@ -265,28 +265,28 @@ export interface RoleArgs {
265
265
  * Defines whether a role bypasses every
266
266
  * row-level security (RLS) policy. Default value is `false`.
267
267
  */
268
- readonly bypassRowLevelSecurity?: pulumi.Input<boolean>;
268
+ bypassRowLevelSecurity?: pulumi.Input<boolean>;
269
269
  /**
270
270
  * If this role can log in, this specifies how
271
271
  * many concurrent connections the role can establish. `-1` (the default) means no
272
272
  * limit.
273
273
  */
274
- readonly connectionLimit?: pulumi.Input<number>;
274
+ connectionLimit?: pulumi.Input<number>;
275
275
  /**
276
276
  * Defines a role's ability to execute `CREATE
277
277
  * DATABASE`. Default value is `false`.
278
278
  */
279
- readonly createDatabase?: pulumi.Input<boolean>;
279
+ createDatabase?: pulumi.Input<boolean>;
280
280
  /**
281
281
  * Defines a role's ability to execute `CREATE ROLE`.
282
282
  * A role with this privilege can also alter and drop other roles. Default value
283
283
  * is `false`.
284
284
  */
285
- readonly createRole?: pulumi.Input<boolean>;
285
+ createRole?: pulumi.Input<boolean>;
286
286
  /**
287
287
  * @deprecated Rename PostgreSQL role resource attribute "encrypted" to "encrypted_password"
288
288
  */
289
- readonly encrypted?: pulumi.Input<string>;
289
+ encrypted?: pulumi.Input<string>;
290
290
  /**
291
291
  * Defines whether the password is stored
292
292
  * encrypted in the system catalogs. Default value is `true`. NOTE: this value
@@ -294,48 +294,48 @@ export interface RoleArgs {
294
294
  * behavior of
295
295
  * [PostgreSQL's `passwordEncryption` setting](https://www.postgresql.org/docs/current/static/runtime-config-connection.html#GUC-PASSWORD-ENCRYPTION).
296
296
  */
297
- readonly encryptedPassword?: pulumi.Input<boolean>;
297
+ encryptedPassword?: pulumi.Input<boolean>;
298
298
  /**
299
299
  * Terminate any session with an open transaction that has been idle for longer than the specified duration in milliseconds
300
300
  */
301
- readonly idleInTransactionSessionTimeout?: pulumi.Input<number>;
301
+ idleInTransactionSessionTimeout?: pulumi.Input<number>;
302
302
  /**
303
303
  * Defines whether a role "inherits" the privileges of
304
304
  * roles it is a member of. Default value is `true`.
305
305
  */
306
- readonly inherit?: pulumi.Input<boolean>;
306
+ inherit?: pulumi.Input<boolean>;
307
307
  /**
308
308
  * Defines whether role is allowed to log in. Roles without
309
309
  * this attribute are useful for managing database privileges, but are not users
310
310
  * in the usual sense of the word. Default value is `false`.
311
311
  */
312
- readonly login?: pulumi.Input<boolean>;
312
+ login?: pulumi.Input<boolean>;
313
313
  /**
314
314
  * The name of the role. Must be unique on the PostgreSQL
315
315
  * server instance where it is configured.
316
316
  */
317
- readonly name?: pulumi.Input<string>;
317
+ name?: pulumi.Input<string>;
318
318
  /**
319
319
  * Sets the role's password. A password is only of use
320
320
  * for roles having the `login` attribute set to true.
321
321
  */
322
- readonly password?: pulumi.Input<string>;
322
+ password?: pulumi.Input<string>;
323
323
  /**
324
324
  * Defines whether a role is allowed to initiate
325
325
  * streaming replication or put the system in and out of backup mode. Default
326
326
  * value is `false`
327
327
  */
328
- readonly replication?: pulumi.Input<boolean>;
328
+ replication?: pulumi.Input<boolean>;
329
329
  /**
330
330
  * Defines list of roles which will be granted to this new role.
331
331
  */
332
- readonly roles?: pulumi.Input<pulumi.Input<string>[]>;
332
+ roles?: pulumi.Input<pulumi.Input<string>[]>;
333
333
  /**
334
334
  * Alters the search path of this new role. Note that
335
335
  * due to limitations in the implementation, values cannot contain the substring
336
336
  * `", "`.
337
337
  */
338
- readonly searchPaths?: pulumi.Input<pulumi.Input<string>[]>;
338
+ searchPaths?: pulumi.Input<pulumi.Input<string>[]>;
339
339
  /**
340
340
  * When a PostgreSQL ROLE exists in multiple
341
341
  * databases and the ROLE is dropped, the
@@ -345,7 +345,7 @@ export interface RoleArgs {
345
345
  * in a PostgreSQL cluster using the same PostgreSQL ROLE for object ownership.
346
346
  * This is the third and final step taken when removing a ROLE from a database.
347
347
  */
348
- readonly skipDropRole?: pulumi.Input<boolean>;
348
+ skipDropRole?: pulumi.Input<boolean>;
349
349
  /**
350
350
  * When a PostgreSQL ROLE exists in multiple
351
351
  * databases and the ROLE is dropped, a
@@ -356,17 +356,17 @@ export interface RoleArgs {
356
356
  * an implicit
357
357
  * [`DROP OWNED`](https://www.postgresql.org/docs/current/static/sql-drop-owned.html)).
358
358
  */
359
- readonly skipReassignOwned?: pulumi.Input<boolean>;
359
+ skipReassignOwned?: pulumi.Input<boolean>;
360
360
  /**
361
361
  * Defines [`statementTimeout`](https://www.postgresql.org/docs/current/runtime-config-client.html#RUNTIME-CONFIG-CLIENT-STATEMENT) setting for this role which allows to abort any statement that takes more than the specified amount of time.
362
362
  */
363
- readonly statementTimeout?: pulumi.Input<number>;
363
+ statementTimeout?: pulumi.Input<number>;
364
364
  /**
365
365
  * Defines whether the role is a "superuser", and
366
366
  * therefore can override all access restrictions within the database. Default
367
367
  * value is `false`.
368
368
  */
369
- readonly superuser?: pulumi.Input<boolean>;
369
+ superuser?: pulumi.Input<boolean>;
370
370
  /**
371
371
  * Defines the date and time after which the role's
372
372
  * password is no longer valid. Established connections past this `validTime`
@@ -374,5 +374,5 @@ export interface RoleArgs {
374
374
  * datetime. If omitted or the magic value `NULL` is used, `validUntil` will be
375
375
  * set to `infinity`. Default is `NULL`, therefore `infinity`.
376
376
  */
377
- readonly validUntil?: pulumi.Input<string>;
377
+ validUntil?: pulumi.Input<string>;
378
378
  }
package/role.js CHANGED
@@ -2,6 +2,7 @@
2
2
  // *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
3
3
  // *** Do not edit by hand unless you're certain you know what you are doing! ***
4
4
  Object.defineProperty(exports, "__esModule", { value: true });
5
+ exports.Role = void 0;
5
6
  const pulumi = require("@pulumi/pulumi");
6
7
  const utilities = require("./utilities");
7
8
  class Role extends pulumi.CustomResource {
package/role.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"role.js","sourceRoot":"","sources":["../role.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC,MAAa,IAAK,SAAQ,MAAM,CAAC,cAAc;IAuJ3C,YAAY,IAAY,EAAE,WAAkC,EAAE,IAAmC;QAC7F,IAAI,MAAM,GAAkB,EAAE,CAAC;QAC/B,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CA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