@pulumi/postgresql 3.2.0 → 3.4.0-alpha.1641575801
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/README.md +1 -1
- package/config/index.js +11 -4
- package/config/index.js.map +1 -1
- package/config/vars.d.ts +15 -15
- package/config/vars.js +93 -57
- package/config/vars.js.map +1 -1
- package/database.d.ts +20 -20
- package/database.js +1 -0
- package/database.js.map +1 -1
- package/defaultPrivileg.d.ts +14 -14
- package/defaultPrivileg.js +1 -0
- package/defaultPrivileg.js.map +1 -1
- package/defaultPrivileges.d.ts +14 -14
- package/defaultPrivileges.js +1 -0
- package/defaultPrivileges.js.map +1 -1
- package/extension.d.ts +12 -12
- package/extension.js +1 -0
- package/extension.js.map +1 -1
- package/grant.d.ts +14 -14
- package/grant.js +1 -0
- package/grant.js.map +1 -1
- package/grantRole.d.ts +6 -6
- package/grantRole.js +1 -0
- package/grantRole.js.map +1 -1
- package/index.js +22 -14
- package/index.js.map +1 -1
- package/package.json +4 -3
- package/package.json.bak +3 -2
- package/package.json.dev +4 -3
- package/physicalReplicationSlot.d.ts +2 -2
- package/physicalReplicationSlot.js +1 -0
- package/physicalReplicationSlot.js.map +1 -1
- package/provider.d.ts +53 -15
- package/provider.js +3 -2
- package/provider.js.map +1 -1
- package/replicationSlot.d.ts +6 -6
- package/replicationSlot.js +1 -0
- package/replicationSlot.js.map +1 -1
- package/role.d.ts +38 -38
- package/role.js +1 -0
- package/role.js.map +1 -1
- package/schema.d.ts +12 -12
- package/schema.js +1 -0
- package/schema.js.map +1 -1
- package/types/index.js +1 -0
- package/types/index.js.map +1 -1
- package/types/output.d.ts +0 -4
- package/utilities.js +1 -0
- package/utilities.js.map +1 -1
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
166
|
+
createRole?: pulumi.Input<boolean>;
|
|
167
167
|
/**
|
|
168
168
|
* @deprecated Rename PostgreSQL role resource attribute "encrypted" to "encrypted_password"
|
|
169
169
|
*/
|
|
170
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
209
|
+
replication?: pulumi.Input<boolean>;
|
|
210
210
|
/**
|
|
211
211
|
* Defines list of roles which will be granted to this new role.
|
|
212
212
|
*/
|
|
213
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
285
|
+
createRole?: pulumi.Input<boolean>;
|
|
286
286
|
/**
|
|
287
287
|
* @deprecated Rename PostgreSQL role resource attribute "encrypted" to "encrypted_password"
|
|
288
288
|
*/
|
|
289
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
328
|
+
replication?: pulumi.Input<boolean>;
|
|
329
329
|
/**
|
|
330
330
|
* Defines list of roles which will be granted to this new role.
|
|
331
331
|
*/
|
|
332
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
|
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,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAAoC,CAAC;YACnD,MAAM,CAAC,wBAAwB,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,sBAAsB,CAAC,CAAC,CAAC,SAAS,CAAC;YACpF,MAAM,CAAC,iBAAiB,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,eAAe,CAAC,CAAC,CAAC,SAAS,CAAC;YACtE,MAAM,CAAC,gBAAgB,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,cAAc,CAAC,CAAC,CAAC,SAAS,CAAC;YACpE,MAAM,CAAC,YAAY,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC,CAAC,SAAS,CAAC;YAC5D,MAAM,CAAC,WAAW,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC;YAC1D,MAAM,CAAC,mBAAmB,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,iBAAiB,CAAC,CAAC,CAAC,SAAS,CAAC;YAC1E,MAAM,CAAC,iCAAiC,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,+BAA+B,CAAC,CAAC,CAAC,SAA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E,IAAI,CAAC,CAAC;IACjD,CAAC;IAxMD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAiB,EAAE,IAAmC;QAC/G,OAAO,IAAI,IAAI,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IAC3D,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,IAAI,CAAC,YAAY,CAAC;IACrD,CAAC;;AA1BL,oBA0MC;AA5LG,gBAAgB;AACO,iBAAY,GAAG,4BAA4B,CAAC"}
|
package/schema.d.ts
CHANGED
|
@@ -60,31 +60,31 @@ export interface SchemaState {
|
|
|
60
60
|
/**
|
|
61
61
|
* The DATABASE in which where this schema will be created. (Default: The database used by your `provider` configuration)
|
|
62
62
|
*/
|
|
63
|
-
|
|
63
|
+
database?: pulumi.Input<string>;
|
|
64
64
|
/**
|
|
65
65
|
* When true, will also drop all the objects that are contained in the schema. (Default: false)
|
|
66
66
|
*/
|
|
67
|
-
|
|
67
|
+
dropCascade?: pulumi.Input<boolean>;
|
|
68
68
|
/**
|
|
69
69
|
* When true, use the existing schema if it exists. (Default: true)
|
|
70
70
|
*/
|
|
71
|
-
|
|
71
|
+
ifNotExists?: pulumi.Input<boolean>;
|
|
72
72
|
/**
|
|
73
73
|
* The name of the schema. Must be unique in the PostgreSQL
|
|
74
74
|
* database instance where it is configured.
|
|
75
75
|
*/
|
|
76
|
-
|
|
76
|
+
name?: pulumi.Input<string>;
|
|
77
77
|
/**
|
|
78
78
|
* The ROLE who owns the schema.
|
|
79
79
|
*/
|
|
80
|
-
|
|
80
|
+
owner?: pulumi.Input<string>;
|
|
81
81
|
/**
|
|
82
82
|
* Can be specified multiple times for each policy. Each
|
|
83
83
|
* policy block supports fields documented below.
|
|
84
84
|
*
|
|
85
85
|
* @deprecated Use postgresql_grant resource instead (with object_type="schema")
|
|
86
86
|
*/
|
|
87
|
-
|
|
87
|
+
policies?: pulumi.Input<pulumi.Input<inputs.SchemaPolicy>[]>;
|
|
88
88
|
}
|
|
89
89
|
/**
|
|
90
90
|
* The set of arguments for constructing a Schema resource.
|
|
@@ -93,29 +93,29 @@ export interface SchemaArgs {
|
|
|
93
93
|
/**
|
|
94
94
|
* The DATABASE in which where this schema will be created. (Default: The database used by your `provider` configuration)
|
|
95
95
|
*/
|
|
96
|
-
|
|
96
|
+
database?: pulumi.Input<string>;
|
|
97
97
|
/**
|
|
98
98
|
* When true, will also drop all the objects that are contained in the schema. (Default: false)
|
|
99
99
|
*/
|
|
100
|
-
|
|
100
|
+
dropCascade?: pulumi.Input<boolean>;
|
|
101
101
|
/**
|
|
102
102
|
* When true, use the existing schema if it exists. (Default: true)
|
|
103
103
|
*/
|
|
104
|
-
|
|
104
|
+
ifNotExists?: pulumi.Input<boolean>;
|
|
105
105
|
/**
|
|
106
106
|
* The name of the schema. Must be unique in the PostgreSQL
|
|
107
107
|
* database instance where it is configured.
|
|
108
108
|
*/
|
|
109
|
-
|
|
109
|
+
name?: pulumi.Input<string>;
|
|
110
110
|
/**
|
|
111
111
|
* The ROLE who owns the schema.
|
|
112
112
|
*/
|
|
113
|
-
|
|
113
|
+
owner?: pulumi.Input<string>;
|
|
114
114
|
/**
|
|
115
115
|
* Can be specified multiple times for each policy. Each
|
|
116
116
|
* policy block supports fields documented below.
|
|
117
117
|
*
|
|
118
118
|
* @deprecated Use postgresql_grant resource instead (with object_type="schema")
|
|
119
119
|
*/
|
|
120
|
-
|
|
120
|
+
policies?: pulumi.Input<pulumi.Input<inputs.SchemaPolicy>[]>;
|
|
121
121
|
}
|
package/schema.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.Schema = void 0;
|
|
5
6
|
const pulumi = require("@pulumi/pulumi");
|
|
6
7
|
const utilities = require("./utilities");
|
|
7
8
|
class Schema extends pulumi.CustomResource {
|
package/schema.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema.js","sourceRoot":"","sources":["../schema.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF
|
|
1
|
+
{"version":3,"file":"schema.js","sourceRoot":"","sources":["../schema.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAEzC,yCAAyC;AAEzC,MAAa,MAAO,SAAQ,MAAM,CAAC,cAAc;IAiE7C,YAAY,IAAY,EAAE,WAAsC,EAAE,IAAmC;QACjG,IAAI,MAAM,GAAkB,EAAE,CAAC;QAC/B,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAAsC,CAAC;YACrD,MAAM,CAAC,UAAU,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC;YACxD,MAAM,CAAC,aAAa,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC,CAAC,SAAS,CAAC;YAC9D,MAAM,CAAC,aAAa,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC,CAAC,SAAS,CAAC;YAC9D,MAAM,CAAC,MAAM,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC;YAChD,MAAM,CAAC,OAAO,CAAC,GAAG,KAAK,CAAC,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QACjH,OAAO,IAAI,MAAM,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IAC7D,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,MAAM,CAAC,YAAY,CAAC;IACvD,CAAC;;AA1BL,wBA0FC;AA5EG,gBAAgB;AACO,mBAAY,GAAG,gCAAgC,CAAC"}
|
package/types/index.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.output = exports.input = void 0;
|
|
5
6
|
// Export sub-modules:
|
|
6
7
|
const input = require("./input");
|
|
7
8
|
exports.input = input;
|
package/types/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../types/index.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../types/index.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,sBAAsB;AACtB,iCAAiC;AAI7B,sBAAK;AAHT,mCAAmC;AAI/B,wBAAM"}
|
package/types/output.d.ts
CHANGED
package/utilities.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.getVersion = exports.getEnvNumber = exports.getEnvBoolean = exports.getEnv = void 0;
|
|
5
6
|
function getEnv(...vars) {
|
|
6
7
|
for (const v of vars) {
|
|
7
8
|
const value = process.env[v];
|
package/utilities.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utilities.js","sourceRoot":"","sources":["../utilities.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF
|
|
1
|
+
{"version":3,"file":"utilities.js","sourceRoot":"","sources":["../utilities.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAGjF,SAAgB,MAAM,CAAC,GAAG,IAAc;IACpC,KAAK,MAAM,CAAC,IAAI,IAAI,EAAE;QAClB,MAAM,KAAK,GAAG,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;QAC7B,IAAI,KAAK,EAAE;YACP,OAAO,KAAK,CAAC;SAChB;KACJ;IACD,OAAO,SAAS,CAAC;AACrB,CAAC;AARD,wBAQC;AAED,SAAgB,aAAa,CAAC,GAAG,IAAc;IAC3C,MAAM,CAAC,GAAG,MAAM,CAAC,GAAG,IAAI,CAAC,CAAC;IAC1B,IAAI,CAAC,KAAK,SAAS,EAAE;QACjB,uGAAuG;QACvG,yDAAyD;QACzD,IAAI,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,KAAK,SAAS,EAAE;YAC1E,OAAO,IAAI,CAAC;SACf;QACD,IAAI,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,OAAO,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,KAAK,SAAS,EAAE;YAC7E,OAAO,KAAK,CAAC;SAChB;KACJ;IACD,OAAO,SAAS,CAAC;AACrB,CAAC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