@pulumi/postgresql 3.16.2 → 3.16.3-alpha.1775837978
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/config/vars.d.ts +3 -0
- package/config/vars.js.map +1 -1
- package/database.d.ts +116 -12
- package/database.js +41 -0
- package/database.js.map +1 -1
- package/extension.d.ts +1 -3
- package/extension.js +1 -3
- package/extension.js.map +1 -1
- package/function.d.ts +4 -3
- package/function.js +4 -3
- package/function.js.map +1 -1
- package/package.json +2 -2
- package/provider.d.ts +6 -0
- package/provider.js.map +1 -1
- package/role.d.ts +97 -0
- package/role.js +97 -0
- package/role.js.map +1 -1
- package/schema.d.ts +63 -0
- package/schema.js +63 -0
- package/schema.js.map +1 -1
package/config/vars.d.ts
CHANGED
|
@@ -19,6 +19,9 @@ export declare const awsRdsIamRegion: string | undefined;
|
|
|
19
19
|
* Use MS Azure identity OAuth token (see: https://learn.microsoft.com/en-us/azure/postgresql/flexible-server/how-to-configure-sign-in-azure-ad-authentication)
|
|
20
20
|
*/
|
|
21
21
|
export declare const azureIdentityAuth: boolean | undefined;
|
|
22
|
+
/**
|
|
23
|
+
* MS Azure tenant ID (see: https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/data-sources/client_config.html)
|
|
24
|
+
*/
|
|
22
25
|
export declare const azureTenantId: string | undefined;
|
|
23
26
|
/**
|
|
24
27
|
* SSL client certificate if required by the database.
|
package/config/vars.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vars.js","sourceRoot":"","sources":["../../config/vars.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;AAEjF,yCAAyC;AAGzC,0CAA0C;AAG1C,MAAM,QAAQ,GAAG,IAAI,MAAM,CAAC,MAAM,CAAC,YAAY,CAAC,CAAC;AAMjD,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,eAAe,EAAE;IAC5C,GAAG;QACC,OAAO,QAAQ,CAAC,S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,UAAU,CAAC,CAAC;IACpC,CAAC;IACD,UAAU,EAAE,IAAI;CACnB,CAAC,CAAC"}
|
package/database.d.ts
CHANGED
|
@@ -1,4 +1,45 @@
|
|
|
1
1
|
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
/**
|
|
3
|
+
* The ``postgresql.Database`` resource creates and manages [database
|
|
4
|
+
* objects](https://www.postgresql.org/docs/current/static/managing-databases.html)
|
|
5
|
+
* within a PostgreSQL server instance.
|
|
6
|
+
*
|
|
7
|
+
* ## Usage
|
|
8
|
+
*
|
|
9
|
+
* ```typescript
|
|
10
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
11
|
+
* import * as postgresql from "@pulumi/postgresql";
|
|
12
|
+
*
|
|
13
|
+
* const myDb = new postgresql.Database("my_db", {
|
|
14
|
+
* name: "my_db",
|
|
15
|
+
* owner: "my_role",
|
|
16
|
+
* template: "template0",
|
|
17
|
+
* lcCollate: "C",
|
|
18
|
+
* connectionLimit: -1,
|
|
19
|
+
* allowConnections: true,
|
|
20
|
+
* alterObjectOwnership: true,
|
|
21
|
+
* });
|
|
22
|
+
* ```
|
|
23
|
+
*
|
|
24
|
+
* ## Import Example
|
|
25
|
+
*
|
|
26
|
+
* `postgresql.Database` supports importing resources. Supposing the following
|
|
27
|
+
* Terraform:
|
|
28
|
+
*
|
|
29
|
+
* ```typescript
|
|
30
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
31
|
+
* import * as postgresql from "@pulumi/postgresql";
|
|
32
|
+
*
|
|
33
|
+
* const db1 = new postgresql.Database("db1", {name: "testdb1"});
|
|
34
|
+
* ```
|
|
35
|
+
*
|
|
36
|
+
* It is possible to import a `postgresql.Database` resource with the following
|
|
37
|
+
* command:
|
|
38
|
+
*
|
|
39
|
+
* Where `testdb1` is the name of the database to import and
|
|
40
|
+
* `postgresql_database.db1` is the name of the resource whose state will be
|
|
41
|
+
* populated as a result of the command.
|
|
42
|
+
*/
|
|
2
43
|
export declare class Database extends pulumi.CustomResource {
|
|
3
44
|
/**
|
|
4
45
|
* Get an existing Database resource's state with the given name, ID, and optional extra
|
|
@@ -37,7 +78,12 @@ export declare class Database extends pulumi.CustomResource {
|
|
|
37
78
|
*/
|
|
38
79
|
readonly connectionLimit: pulumi.Output<number | undefined>;
|
|
39
80
|
/**
|
|
40
|
-
* Character set encoding to use in the
|
|
81
|
+
* Character set encoding to use in the database.
|
|
82
|
+
* Specify a string constant (e.g. `UTF8` or `SQL_ASCII`), or an integer encoding
|
|
83
|
+
* number. If unset or set to an empty string the default encoding is set to
|
|
84
|
+
* `UTF8`. If set to `DEFAULT` Terraform will use the same encoding as the
|
|
85
|
+
* template database. Changing this value will force the creation of a new
|
|
86
|
+
* resource as this value can only be changed when a database is created.
|
|
41
87
|
*/
|
|
42
88
|
readonly encoding: pulumi.Output<string>;
|
|
43
89
|
/**
|
|
@@ -47,11 +93,23 @@ export declare class Database extends pulumi.CustomResource {
|
|
|
47
93
|
*/
|
|
48
94
|
readonly isTemplate: pulumi.Output<boolean>;
|
|
49
95
|
/**
|
|
50
|
-
* Collation order (LC_COLLATE) to use in the
|
|
96
|
+
* Collation order (`LC_COLLATE`) to use in the
|
|
97
|
+
* database. This affects the sort order applied to strings, e.g. in queries
|
|
98
|
+
* with `ORDER BY`, as well as the order used in indexes on text columns. If
|
|
99
|
+
* unset or set to an empty string the default collation is set to `C`. If set
|
|
100
|
+
* to `DEFAULT` Terraform will use the same collation order as the specified
|
|
101
|
+
* `template` database. Changing this value will force the creation of a new
|
|
102
|
+
* resource as this value can only be changed when a database is created.
|
|
51
103
|
*/
|
|
52
104
|
readonly lcCollate: pulumi.Output<string>;
|
|
53
105
|
/**
|
|
54
|
-
* Character classification (LC_CTYPE) to use in the
|
|
106
|
+
* Character classification (`LC_CTYPE`) to use in the
|
|
107
|
+
* database. This affects the categorization of characters, e.g. lower, upper and
|
|
108
|
+
* digit. If unset or set to an empty string the default character classification
|
|
109
|
+
* is set to `C`. If set to `DEFAULT` Terraform will use the character
|
|
110
|
+
* classification of the specified `template` database. Changing this value will
|
|
111
|
+
* force the creation of a new resource as this value can only be changed when a
|
|
112
|
+
* database is created.
|
|
55
113
|
*/
|
|
56
114
|
readonly lcCtype: pulumi.Output<string>;
|
|
57
115
|
/**
|
|
@@ -75,7 +133,11 @@ export declare class Database extends pulumi.CustomResource {
|
|
|
75
133
|
*/
|
|
76
134
|
readonly tablespaceName: pulumi.Output<string>;
|
|
77
135
|
/**
|
|
78
|
-
* The name of the template from which to create
|
|
136
|
+
* The name of the template database from which to create
|
|
137
|
+
* the database, or `DEFAULT` to use the default template (`template0`). NOTE:
|
|
138
|
+
* the default in Terraform is `template0`, not `template1`. Changing this value
|
|
139
|
+
* will force the creation of a new resource as this value can only be changed
|
|
140
|
+
* when a database is created.
|
|
79
141
|
*/
|
|
80
142
|
readonly template: pulumi.Output<string>;
|
|
81
143
|
/**
|
|
@@ -113,7 +175,12 @@ export interface DatabaseState {
|
|
|
113
175
|
*/
|
|
114
176
|
connectionLimit?: pulumi.Input<number>;
|
|
115
177
|
/**
|
|
116
|
-
* Character set encoding to use in the
|
|
178
|
+
* Character set encoding to use in the database.
|
|
179
|
+
* Specify a string constant (e.g. `UTF8` or `SQL_ASCII`), or an integer encoding
|
|
180
|
+
* number. If unset or set to an empty string the default encoding is set to
|
|
181
|
+
* `UTF8`. If set to `DEFAULT` Terraform will use the same encoding as the
|
|
182
|
+
* template database. Changing this value will force the creation of a new
|
|
183
|
+
* resource as this value can only be changed when a database is created.
|
|
117
184
|
*/
|
|
118
185
|
encoding?: pulumi.Input<string>;
|
|
119
186
|
/**
|
|
@@ -123,11 +190,23 @@ export interface DatabaseState {
|
|
|
123
190
|
*/
|
|
124
191
|
isTemplate?: pulumi.Input<boolean>;
|
|
125
192
|
/**
|
|
126
|
-
* Collation order (LC_COLLATE) to use in the
|
|
193
|
+
* Collation order (`LC_COLLATE`) to use in the
|
|
194
|
+
* database. This affects the sort order applied to strings, e.g. in queries
|
|
195
|
+
* with `ORDER BY`, as well as the order used in indexes on text columns. If
|
|
196
|
+
* unset or set to an empty string the default collation is set to `C`. If set
|
|
197
|
+
* to `DEFAULT` Terraform will use the same collation order as the specified
|
|
198
|
+
* `template` database. Changing this value will force the creation of a new
|
|
199
|
+
* resource as this value can only be changed when a database is created.
|
|
127
200
|
*/
|
|
128
201
|
lcCollate?: pulumi.Input<string>;
|
|
129
202
|
/**
|
|
130
|
-
* Character classification (LC_CTYPE) to use in the
|
|
203
|
+
* Character classification (`LC_CTYPE`) to use in the
|
|
204
|
+
* database. This affects the categorization of characters, e.g. lower, upper and
|
|
205
|
+
* digit. If unset or set to an empty string the default character classification
|
|
206
|
+
* is set to `C`. If set to `DEFAULT` Terraform will use the character
|
|
207
|
+
* classification of the specified `template` database. Changing this value will
|
|
208
|
+
* force the creation of a new resource as this value can only be changed when a
|
|
209
|
+
* database is created.
|
|
131
210
|
*/
|
|
132
211
|
lcCtype?: pulumi.Input<string>;
|
|
133
212
|
/**
|
|
@@ -151,7 +230,11 @@ export interface DatabaseState {
|
|
|
151
230
|
*/
|
|
152
231
|
tablespaceName?: pulumi.Input<string>;
|
|
153
232
|
/**
|
|
154
|
-
* The name of the template from which to create
|
|
233
|
+
* The name of the template database from which to create
|
|
234
|
+
* the database, or `DEFAULT` to use the default template (`template0`). NOTE:
|
|
235
|
+
* the default in Terraform is `template0`, not `template1`. Changing this value
|
|
236
|
+
* will force the creation of a new resource as this value can only be changed
|
|
237
|
+
* when a database is created.
|
|
155
238
|
*/
|
|
156
239
|
template?: pulumi.Input<string>;
|
|
157
240
|
}
|
|
@@ -181,7 +264,12 @@ export interface DatabaseArgs {
|
|
|
181
264
|
*/
|
|
182
265
|
connectionLimit?: pulumi.Input<number>;
|
|
183
266
|
/**
|
|
184
|
-
* Character set encoding to use in the
|
|
267
|
+
* Character set encoding to use in the database.
|
|
268
|
+
* Specify a string constant (e.g. `UTF8` or `SQL_ASCII`), or an integer encoding
|
|
269
|
+
* number. If unset or set to an empty string the default encoding is set to
|
|
270
|
+
* `UTF8`. If set to `DEFAULT` Terraform will use the same encoding as the
|
|
271
|
+
* template database. Changing this value will force the creation of a new
|
|
272
|
+
* resource as this value can only be changed when a database is created.
|
|
185
273
|
*/
|
|
186
274
|
encoding?: pulumi.Input<string>;
|
|
187
275
|
/**
|
|
@@ -191,11 +279,23 @@ export interface DatabaseArgs {
|
|
|
191
279
|
*/
|
|
192
280
|
isTemplate?: pulumi.Input<boolean>;
|
|
193
281
|
/**
|
|
194
|
-
* Collation order (LC_COLLATE) to use in the
|
|
282
|
+
* Collation order (`LC_COLLATE`) to use in the
|
|
283
|
+
* database. This affects the sort order applied to strings, e.g. in queries
|
|
284
|
+
* with `ORDER BY`, as well as the order used in indexes on text columns. If
|
|
285
|
+
* unset or set to an empty string the default collation is set to `C`. If set
|
|
286
|
+
* to `DEFAULT` Terraform will use the same collation order as the specified
|
|
287
|
+
* `template` database. Changing this value will force the creation of a new
|
|
288
|
+
* resource as this value can only be changed when a database is created.
|
|
195
289
|
*/
|
|
196
290
|
lcCollate?: pulumi.Input<string>;
|
|
197
291
|
/**
|
|
198
|
-
* Character classification (LC_CTYPE) to use in the
|
|
292
|
+
* Character classification (`LC_CTYPE`) to use in the
|
|
293
|
+
* database. This affects the categorization of characters, e.g. lower, upper and
|
|
294
|
+
* digit. If unset or set to an empty string the default character classification
|
|
295
|
+
* is set to `C`. If set to `DEFAULT` Terraform will use the character
|
|
296
|
+
* classification of the specified `template` database. Changing this value will
|
|
297
|
+
* force the creation of a new resource as this value can only be changed when a
|
|
298
|
+
* database is created.
|
|
199
299
|
*/
|
|
200
300
|
lcCtype?: pulumi.Input<string>;
|
|
201
301
|
/**
|
|
@@ -219,7 +319,11 @@ export interface DatabaseArgs {
|
|
|
219
319
|
*/
|
|
220
320
|
tablespaceName?: pulumi.Input<string>;
|
|
221
321
|
/**
|
|
222
|
-
* The name of the template from which to create
|
|
322
|
+
* The name of the template database from which to create
|
|
323
|
+
* the database, or `DEFAULT` to use the default template (`template0`). NOTE:
|
|
324
|
+
* the default in Terraform is `template0`, not `template1`. Changing this value
|
|
325
|
+
* will force the creation of a new resource as this value can only be changed
|
|
326
|
+
* when a database is created.
|
|
223
327
|
*/
|
|
224
328
|
template?: pulumi.Input<string>;
|
|
225
329
|
}
|
package/database.js
CHANGED
|
@@ -5,6 +5,47 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
5
5
|
exports.Database = void 0;
|
|
6
6
|
const pulumi = require("@pulumi/pulumi");
|
|
7
7
|
const utilities = require("./utilities");
|
|
8
|
+
/**
|
|
9
|
+
* The ``postgresql.Database`` resource creates and manages [database
|
|
10
|
+
* objects](https://www.postgresql.org/docs/current/static/managing-databases.html)
|
|
11
|
+
* within a PostgreSQL server instance.
|
|
12
|
+
*
|
|
13
|
+
* ## Usage
|
|
14
|
+
*
|
|
15
|
+
* ```typescript
|
|
16
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
17
|
+
* import * as postgresql from "@pulumi/postgresql";
|
|
18
|
+
*
|
|
19
|
+
* const myDb = new postgresql.Database("my_db", {
|
|
20
|
+
* name: "my_db",
|
|
21
|
+
* owner: "my_role",
|
|
22
|
+
* template: "template0",
|
|
23
|
+
* lcCollate: "C",
|
|
24
|
+
* connectionLimit: -1,
|
|
25
|
+
* allowConnections: true,
|
|
26
|
+
* alterObjectOwnership: true,
|
|
27
|
+
* });
|
|
28
|
+
* ```
|
|
29
|
+
*
|
|
30
|
+
* ## Import Example
|
|
31
|
+
*
|
|
32
|
+
* `postgresql.Database` supports importing resources. Supposing the following
|
|
33
|
+
* Terraform:
|
|
34
|
+
*
|
|
35
|
+
* ```typescript
|
|
36
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
37
|
+
* import * as postgresql from "@pulumi/postgresql";
|
|
38
|
+
*
|
|
39
|
+
* const db1 = new postgresql.Database("db1", {name: "testdb1"});
|
|
40
|
+
* ```
|
|
41
|
+
*
|
|
42
|
+
* It is possible to import a `postgresql.Database` resource with the following
|
|
43
|
+
* command:
|
|
44
|
+
*
|
|
45
|
+
* Where `testdb1` is the name of the database to import and
|
|
46
|
+
* `postgresql_database.db1` is the name of the resource whose state will be
|
|
47
|
+
* populated as a result of the command.
|
|
48
|
+
*/
|
|
8
49
|
class Database extends pulumi.CustomResource {
|
|
9
50
|
/**
|
|
10
51
|
* Get an existing Database resource's state with the given name, ID, and optional extra
|
package/database.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"database.js","sourceRoot":"","sources":["../database.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC,MAAa,QAAS,SAAQ,MAAM,CAAC,cAAc;IAC/C;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAqB,EAAE,IAAmC;QACnH,OAAO,IAAI,QAAQ,CAAC,IAAI,EAAO,KAAK,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;IAC/D,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,QAAQ,CAAC,YAAY,CAAC;IACzD,CAAC;
|
|
1
|
+
{"version":3,"file":"database.js","sourceRoot":"","sources":["../database.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwCG;AACH,MAAa,QAAS,SAAQ,MAAM,CAAC,cAAc;IAC/C;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAqB,EAAE,IAAmC;QACnH,OAAO,IAAI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AAM,IAAI,GAAG,WAAuC,CAAC;YACrD,cAAc,CAAC,kBAAkB,CAAC,GAAG,IAAI,EAAE,gBAAgB,CAAC;YAC5D,cAAc,CAAC,sBAAsB,CAAC,GAAG,IAAI,EAAE,oBAAoB,CAAC;YACpE,cAAc,CAAC,iBAAiB,CAAC,GAAG,IAAI,EAAE,eAAe,CAAC;YAC1D,cAAc,CAAC,UAAU,CAAC,GAAG,IAAI,EAAE,QAAQ,CAAC;YAC5C,cAAc,CAAC,YAAY,CAAC,GAAG,IAAI,EAAE,UAAU,CAAC;YAChD,cAAc,CAAC,WAAW,CAAC,GAAG,IAAI,EAAE,SAAS,CAAC;YAC9C,cAAc,CAAC,SAAS,CAAC,GAAG,IAAI,EAAE,OAAO,CAAC;YAC1C,cAAc,CAAC,MAAM,CAAC,GAAG,IAAI,EAAE,IAAI,CAAC;YACpC,cAAc,CAAC,OAAO,CAAC,GAAG,IAAI,EAAE,KAAK,CAAC;YACtC,cAAc,CAAC,gBAAgB,CAAC,GAAG,IAAI,EAAE,cAAc,CAAC;YACxD,cAAc,CAAC,UAAU,CAAC,GAAG,IAAI,EAAE,QAAQ,CAAC;SAC/C;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,QAAQ,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC7D,CAAC;;AAzJL,4BA0JC;AA5IG,gBAAgB;AACO,qBAAY,GAAG,oCAAoC,CAAC"}
|
package/extension.d.ts
CHANGED
|
@@ -16,9 +16,7 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
16
16
|
*
|
|
17
17
|
* PostgreSQL Extensions can be imported using the database name and the extension's resource name, e.g.
|
|
18
18
|
*
|
|
19
|
-
*
|
|
20
|
-
* $ pulumi import postgresql:index/extension:Extension uuid_ossp example-database.uuid-ossp`
|
|
21
|
-
* ```
|
|
19
|
+
* `terraform import postgresql_extension.uuid_ossp example-database.uuid-ossp`
|
|
22
20
|
*/
|
|
23
21
|
export declare class Extension extends pulumi.CustomResource {
|
|
24
22
|
/**
|
package/extension.js
CHANGED
|
@@ -22,9 +22,7 @@ const utilities = require("./utilities");
|
|
|
22
22
|
*
|
|
23
23
|
* PostgreSQL Extensions can be imported using the database name and the extension's resource name, e.g.
|
|
24
24
|
*
|
|
25
|
-
*
|
|
26
|
-
* $ pulumi import postgresql:index/extension:Extension uuid_ossp example-database.uuid-ossp`
|
|
27
|
-
* ```
|
|
25
|
+
* `terraform import postgresql_extension.uuid_ossp example-database.uuid-ossp`
|
|
28
26
|
*/
|
|
29
27
|
class Extension extends pulumi.CustomResource {
|
|
30
28
|
/**
|
package/extension.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"extension.js","sourceRoot":"","sources":["../extension.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC
|
|
1
|
+
{"version":3,"file":"extension.js","sourceRoot":"","sources":["../extension.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;GAkBG;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,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,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,CAA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AnFL,8BAoFC;AAtEG,gBAAgB;AACO,sBAAY,GAAG,sCAAsC,CAAC"}
|
package/function.d.ts
CHANGED
|
@@ -28,14 +28,15 @@ import * as outputs from "./types/output";
|
|
|
28
28
|
*
|
|
29
29
|
* ## Import
|
|
30
30
|
*
|
|
31
|
-
* It is possible to import a `
|
|
31
|
+
* It is possible to import a `postgresql.Function` resource with the following
|
|
32
32
|
* command:
|
|
33
33
|
*
|
|
34
34
|
* ```sh
|
|
35
35
|
* $ pulumi import postgresql:index/function:Function function_foo "my_database.my_schema.my_function_name(arguments)"
|
|
36
36
|
* ```
|
|
37
|
-
*
|
|
38
|
-
* `
|
|
37
|
+
*
|
|
38
|
+
* Where `myDatabase` is the name of the database containing the schema,
|
|
39
|
+
* `mySchema` is the name of the schema in the PostgreSQL database, `myFunctionName` is the function name to be imported, `arguments` is the argument signature of the function including all non OUT types and
|
|
39
40
|
* `postgresql_schema.function_foo` is the name of the resource whose state will be
|
|
40
41
|
* populated as a result of the command.
|
|
41
42
|
*/
|
package/function.js
CHANGED
|
@@ -32,14 +32,15 @@ const utilities = require("./utilities");
|
|
|
32
32
|
*
|
|
33
33
|
* ## Import
|
|
34
34
|
*
|
|
35
|
-
* It is possible to import a `
|
|
35
|
+
* It is possible to import a `postgresql.Function` resource with the following
|
|
36
36
|
* command:
|
|
37
37
|
*
|
|
38
38
|
* ```sh
|
|
39
39
|
* $ pulumi import postgresql:index/function:Function function_foo "my_database.my_schema.my_function_name(arguments)"
|
|
40
40
|
* ```
|
|
41
|
-
*
|
|
42
|
-
* `
|
|
41
|
+
*
|
|
42
|
+
* Where `myDatabase` is the name of the database containing the schema,
|
|
43
|
+
* `mySchema` is the name of the schema in the PostgreSQL database, `myFunctionName` is the function name to be imported, `arguments` is the argument signature of the function including all non OUT types and
|
|
43
44
|
* `postgresql_schema.function_foo` is the name of the resource whose state will be
|
|
44
45
|
* populated as a result of the command.
|
|
45
46
|
*/
|
package/function.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"function.js","sourceRoot":"","sources":["../function.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC
|
|
1
|
+
{"version":3,"file":"function.js","sourceRoot":"","sources":["../function.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsCG;AACH,MAAa,QAAS,SAAQ,MAAM,CAAC,cAAc;IAC/C;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAqB,EAAE,IAAmC;QACnH,OAAO,IAAI,QAAQ,CAAC,IAAI,EAAO,KAAK,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;IAC/D,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,QAAQ,CAAC,YAAY,CAAC;IACzD,CAAC;IA+DD,YAAY,IAAY,EAAE,WAA0C,EAAE,IAAmC;QACrG,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAAwC,CAAC;YACvD,cAAc,CAAC,MAAM,CAAC,GAAG,KAAK,EAAE,IAAI,CAAC;YACrC,cAAc,CAAC,MAAM,CAAC,GAAG,KAAK,EAAE,IAAI,CAAC;YACrC,cAAc,CAAC,UAAU,CAAC,GAAG,KAAK,EAAE,QAAQ,CAAC;YAC7C,cAAc,CAAC,aAAa,CAAC,GAAG,KA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AAE,MAAM,CAAC;YACxC,cAAc,CAAC,iBAAiB,CAAC,GAAG,IAAI,EAAE,eAAe,CAAC;YAC1D,cAAc,CAAC,QAAQ,CAAC,GAAG,IAAI,EAAE,MAAM,CAAC;YACxC,cAAc,CAAC,YAAY,CAAC,GAAG,IAAI,EAAE,UAAU,CAAC;SACnD;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,QAAQ,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC7D,CAAC;;AA9HL,4BA+HC;AAjHG,gBAAgB;AACO,qBAAY,GAAG,oCAAoC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pulumi/postgresql",
|
|
3
|
-
"version": "3.16.
|
|
3
|
+
"version": "3.16.3-alpha.1775837978",
|
|
4
4
|
"description": "A Pulumi package for creating and managing postgresql cloud resources.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"pulumi",
|
|
@@ -23,6 +23,6 @@
|
|
|
23
23
|
"pulumi": {
|
|
24
24
|
"resource": true,
|
|
25
25
|
"name": "postgresql",
|
|
26
|
-
"version": "3.16.
|
|
26
|
+
"version": "3.16.3-alpha.1775837978"
|
|
27
27
|
}
|
|
28
28
|
}
|
package/provider.d.ts
CHANGED
|
@@ -24,6 +24,9 @@ export declare class Provider extends pulumi.ProviderResource {
|
|
|
24
24
|
* AWS region to use for IAM auth
|
|
25
25
|
*/
|
|
26
26
|
readonly awsRdsIamRegion: pulumi.Output<string | undefined>;
|
|
27
|
+
/**
|
|
28
|
+
* MS Azure tenant ID (see: https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/data-sources/client_config.html)
|
|
29
|
+
*/
|
|
27
30
|
readonly azureTenantId: pulumi.Output<string | undefined>;
|
|
28
31
|
/**
|
|
29
32
|
* The name of the database to connect to in order to connect to (defaults to `postgres`).
|
|
@@ -103,6 +106,9 @@ export interface ProviderArgs {
|
|
|
103
106
|
* Use MS Azure identity OAuth token (see: https://learn.microsoft.com/en-us/azure/postgresql/flexible-server/how-to-configure-sign-in-azure-ad-authentication)
|
|
104
107
|
*/
|
|
105
108
|
azureIdentityAuth?: pulumi.Input<boolean>;
|
|
109
|
+
/**
|
|
110
|
+
* MS Azure tenant ID (see: https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/data-sources/client_config.html)
|
|
111
|
+
*/
|
|
106
112
|
azureTenantId?: pulumi.Input<string>;
|
|
107
113
|
/**
|
|
108
114
|
* SSL client certificate if required by the database.
|
package/provider.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"provider.js","sourceRoot":"","sources":["../provider.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;GAKG;AACH,MAAa,QAAS,SAAQ,MAAM,CAAC,gBAAgB;IAIjD;;;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,mBAAmB,GAAG,QAAQ,CAAC,YAAY,CAAC;IAC/E,CAAC;
|
|
1
|
+
{"version":3,"file":"provider.js","sourceRoot":"","sources":["../provider.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;GAKG;AACH,MAAa,QAAS,SAAQ,MAAM,CAAC,gBAAgB;IAIjD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,EAAE;YACnC,OAAO,KAAK,CAAC;SAChB;QACD,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G,EAAE,uBAAuB,EAAE,CAAC,UAAU,CAAC,EAAE,CAAC;QAC7D,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,IAAI,EAAE,UAAU,CAAC,CAAC;QAC7C,KAAK,CAAC,QAAQ,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC7D,CAAC;IAED;;OAEG;IACH,eAAe;QACX,OAAO,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,6CAA6C,EAAE;YACtE,UAAU,EAAE,IAAI;SACnB,EAAE,IAAI,CAAC,CAAC;IACb,CAAC;;AAxHL,4BAyHC;AAxHG,gBAAgB;AACO,qBAAY,GAAG,YAAY,CAAC"}
|
package/role.d.ts
CHANGED
|
@@ -1,4 +1,101 @@
|
|
|
1
1
|
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
/**
|
|
3
|
+
* The ``postgresql.Role`` resource creates and manages a role on a PostgreSQL
|
|
4
|
+
* server.
|
|
5
|
+
*
|
|
6
|
+
* When a ``postgresql.Role`` resource is removed, the PostgreSQL ROLE will
|
|
7
|
+
* automatically run a [`REASSIGN
|
|
8
|
+
* OWNED`](https://www.postgresql.org/docs/current/static/sql-reassign-owned.html)
|
|
9
|
+
* and [`DROP
|
|
10
|
+
* OWNED`](https://www.postgresql.org/docs/current/static/sql-drop-owned.html) to
|
|
11
|
+
* the `CURRENT_USER` (normally the connected user for the provider). If the
|
|
12
|
+
* specified PostgreSQL ROLE owns objects in multiple PostgreSQL databases in the
|
|
13
|
+
* same PostgreSQL Cluster, one PostgreSQL provider per database must be created
|
|
14
|
+
* and all but the final ``postgresql.Role`` must specify a `skipDropRole`.
|
|
15
|
+
*
|
|
16
|
+
* > **Note:** All arguments including role name and password will be stored in the raw state as plain-text.
|
|
17
|
+
* Read more about sensitive data in state.
|
|
18
|
+
*
|
|
19
|
+
* > **Note:** For enhanced security, consider using the `passwordWo` and `passwordWoVersion` attributes
|
|
20
|
+
* instead of `password`. The write-only password attributes prevent the password from being stored in
|
|
21
|
+
* the Terraform state file while still allowing password management through version-controlled updates.
|
|
22
|
+
*
|
|
23
|
+
* ## Usage
|
|
24
|
+
*
|
|
25
|
+
* ```typescript
|
|
26
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
27
|
+
* import * as postgresql from "@pulumi/postgresql";
|
|
28
|
+
*
|
|
29
|
+
* const myRole = new postgresql.Role("my_role", {
|
|
30
|
+
* name: "my_role",
|
|
31
|
+
* login: true,
|
|
32
|
+
* password: "mypass",
|
|
33
|
+
* });
|
|
34
|
+
* const myReplicationRole = new postgresql.Role("my_replication_role", {
|
|
35
|
+
* name: "replication_role",
|
|
36
|
+
* replication: true,
|
|
37
|
+
* login: true,
|
|
38
|
+
* connectionLimit: 5,
|
|
39
|
+
* password: "md5c98cbfeb6a347a47eb8e96cfb4c4b890",
|
|
40
|
+
* });
|
|
41
|
+
* // Example using write-only password (password not stored in state)
|
|
42
|
+
* const secureRole = new postgresql.Role("secure_role", {
|
|
43
|
+
* name: "secure_role",
|
|
44
|
+
* login: true,
|
|
45
|
+
* passwordWo: "secure_password_123",
|
|
46
|
+
* passwordWoVersion: "1",
|
|
47
|
+
* });
|
|
48
|
+
* ```
|
|
49
|
+
*
|
|
50
|
+
* ## Write-Only Password Management
|
|
51
|
+
*
|
|
52
|
+
* The `passwordWo` and `passwordWoVersion` attributes provide a secure way to manage role passwords
|
|
53
|
+
* without storing them in the Terraform state file:
|
|
54
|
+
*
|
|
55
|
+
* * **Security**: The password value is never stored in the state file, reducing the risk of exposure
|
|
56
|
+
* * **Version Control**: Password updates are controlled through the `passwordWoVersion` attribute
|
|
57
|
+
* * **Idempotency**: Terraform only updates the password when the version changes, not on every apply
|
|
58
|
+
*
|
|
59
|
+
* To change a password when using write-only attributes:
|
|
60
|
+
*
|
|
61
|
+
* 1. Update the `passwordWo` value with the new password
|
|
62
|
+
* 2. Increment or change the `passwordWoVersion` value
|
|
63
|
+
* 3. Apply the configuration
|
|
64
|
+
*
|
|
65
|
+
* **Example of password rotation:**
|
|
66
|
+
*
|
|
67
|
+
* ```typescript
|
|
68
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
69
|
+
* import * as postgresql from "@pulumi/postgresql";
|
|
70
|
+
*
|
|
71
|
+
* // Initial password setup
|
|
72
|
+
* const appUser = new postgresql.Role("app_user", {
|
|
73
|
+
* name: "app_user",
|
|
74
|
+
* login: true,
|
|
75
|
+
* passwordWo: "initial_password_123",
|
|
76
|
+
* passwordWoVersion: "1",
|
|
77
|
+
* });
|
|
78
|
+
* ```
|
|
79
|
+
*
|
|
80
|
+
* ## Import Example
|
|
81
|
+
*
|
|
82
|
+
* `postgresql.Role` supports importing resources. Supposing the following
|
|
83
|
+
* Terraform:
|
|
84
|
+
*
|
|
85
|
+
* ```typescript
|
|
86
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
87
|
+
* import * as postgresql from "@pulumi/postgresql";
|
|
88
|
+
*
|
|
89
|
+
* const replicationRole = new postgresql.Role("replication_role", {name: "replication_name"});
|
|
90
|
+
* ```
|
|
91
|
+
*
|
|
92
|
+
* It is possible to import a `postgresql.Role` resource with the following
|
|
93
|
+
* command:
|
|
94
|
+
*
|
|
95
|
+
* Where `replicationName` is the name of the role to import and
|
|
96
|
+
* `postgresql_role.replication_role` is the name of the resource whose state will
|
|
97
|
+
* be populated as a result of the command.
|
|
98
|
+
*/
|
|
2
99
|
export declare class Role extends pulumi.CustomResource {
|
|
3
100
|
/**
|
|
4
101
|
* Get an existing Role resource's state with the given name, ID, and optional extra
|
package/role.js
CHANGED
|
@@ -5,6 +5,103 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
5
5
|
exports.Role = void 0;
|
|
6
6
|
const pulumi = require("@pulumi/pulumi");
|
|
7
7
|
const utilities = require("./utilities");
|
|
8
|
+
/**
|
|
9
|
+
* The ``postgresql.Role`` resource creates and manages a role on a PostgreSQL
|
|
10
|
+
* server.
|
|
11
|
+
*
|
|
12
|
+
* When a ``postgresql.Role`` resource is removed, the PostgreSQL ROLE will
|
|
13
|
+
* automatically run a [`REASSIGN
|
|
14
|
+
* OWNED`](https://www.postgresql.org/docs/current/static/sql-reassign-owned.html)
|
|
15
|
+
* and [`DROP
|
|
16
|
+
* OWNED`](https://www.postgresql.org/docs/current/static/sql-drop-owned.html) to
|
|
17
|
+
* the `CURRENT_USER` (normally the connected user for the provider). If the
|
|
18
|
+
* specified PostgreSQL ROLE owns objects in multiple PostgreSQL databases in the
|
|
19
|
+
* same PostgreSQL Cluster, one PostgreSQL provider per database must be created
|
|
20
|
+
* and all but the final ``postgresql.Role`` must specify a `skipDropRole`.
|
|
21
|
+
*
|
|
22
|
+
* > **Note:** All arguments including role name and password will be stored in the raw state as plain-text.
|
|
23
|
+
* Read more about sensitive data in state.
|
|
24
|
+
*
|
|
25
|
+
* > **Note:** For enhanced security, consider using the `passwordWo` and `passwordWoVersion` attributes
|
|
26
|
+
* instead of `password`. The write-only password attributes prevent the password from being stored in
|
|
27
|
+
* the Terraform state file while still allowing password management through version-controlled updates.
|
|
28
|
+
*
|
|
29
|
+
* ## Usage
|
|
30
|
+
*
|
|
31
|
+
* ```typescript
|
|
32
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
33
|
+
* import * as postgresql from "@pulumi/postgresql";
|
|
34
|
+
*
|
|
35
|
+
* const myRole = new postgresql.Role("my_role", {
|
|
36
|
+
* name: "my_role",
|
|
37
|
+
* login: true,
|
|
38
|
+
* password: "mypass",
|
|
39
|
+
* });
|
|
40
|
+
* const myReplicationRole = new postgresql.Role("my_replication_role", {
|
|
41
|
+
* name: "replication_role",
|
|
42
|
+
* replication: true,
|
|
43
|
+
* login: true,
|
|
44
|
+
* connectionLimit: 5,
|
|
45
|
+
* password: "md5c98cbfeb6a347a47eb8e96cfb4c4b890",
|
|
46
|
+
* });
|
|
47
|
+
* // Example using write-only password (password not stored in state)
|
|
48
|
+
* const secureRole = new postgresql.Role("secure_role", {
|
|
49
|
+
* name: "secure_role",
|
|
50
|
+
* login: true,
|
|
51
|
+
* passwordWo: "secure_password_123",
|
|
52
|
+
* passwordWoVersion: "1",
|
|
53
|
+
* });
|
|
54
|
+
* ```
|
|
55
|
+
*
|
|
56
|
+
* ## Write-Only Password Management
|
|
57
|
+
*
|
|
58
|
+
* The `passwordWo` and `passwordWoVersion` attributes provide a secure way to manage role passwords
|
|
59
|
+
* without storing them in the Terraform state file:
|
|
60
|
+
*
|
|
61
|
+
* * **Security**: The password value is never stored in the state file, reducing the risk of exposure
|
|
62
|
+
* * **Version Control**: Password updates are controlled through the `passwordWoVersion` attribute
|
|
63
|
+
* * **Idempotency**: Terraform only updates the password when the version changes, not on every apply
|
|
64
|
+
*
|
|
65
|
+
* To change a password when using write-only attributes:
|
|
66
|
+
*
|
|
67
|
+
* 1. Update the `passwordWo` value with the new password
|
|
68
|
+
* 2. Increment or change the `passwordWoVersion` value
|
|
69
|
+
* 3. Apply the configuration
|
|
70
|
+
*
|
|
71
|
+
* **Example of password rotation:**
|
|
72
|
+
*
|
|
73
|
+
* ```typescript
|
|
74
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
75
|
+
* import * as postgresql from "@pulumi/postgresql";
|
|
76
|
+
*
|
|
77
|
+
* // Initial password setup
|
|
78
|
+
* const appUser = new postgresql.Role("app_user", {
|
|
79
|
+
* name: "app_user",
|
|
80
|
+
* login: true,
|
|
81
|
+
* passwordWo: "initial_password_123",
|
|
82
|
+
* passwordWoVersion: "1",
|
|
83
|
+
* });
|
|
84
|
+
* ```
|
|
85
|
+
*
|
|
86
|
+
* ## Import Example
|
|
87
|
+
*
|
|
88
|
+
* `postgresql.Role` supports importing resources. Supposing the following
|
|
89
|
+
* Terraform:
|
|
90
|
+
*
|
|
91
|
+
* ```typescript
|
|
92
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
93
|
+
* import * as postgresql from "@pulumi/postgresql";
|
|
94
|
+
*
|
|
95
|
+
* const replicationRole = new postgresql.Role("replication_role", {name: "replication_name"});
|
|
96
|
+
* ```
|
|
97
|
+
*
|
|
98
|
+
* It is possible to import a `postgresql.Role` resource with the following
|
|
99
|
+
* command:
|
|
100
|
+
*
|
|
101
|
+
* Where `replicationName` is the name of the role to import and
|
|
102
|
+
* `postgresql_role.replication_role` is the name of the resource whose state will
|
|
103
|
+
* be populated as a result of the command.
|
|
104
|
+
*/
|
|
8
105
|
class Role extends pulumi.CustomResource {
|
|
9
106
|
/**
|
|
10
107
|
* Get an existing Role resource's state with the given name, ID, and optional extra
|
package/role.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"role.js","sourceRoot":"","sources":["../role.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC,MAAa,IAAK,SAAQ,MAAM,CAAC,cAAc;IAC3C;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAiB,EAAE,IAAmC;QAC/G,OAAO,IAAI,IAAI,CAAC,IAAI,EAAO,KAAK,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,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;IA+ID,YAAY,IAAY,EAAE,WAAkC,EAAE,IAAmC;QAC7F,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAAoC,CAAC;YACnD,cAAc,CAAC,YAAY,CAAC,GAAG,KAAK,EAAE,UAAU,CAAC;YACjD,cAA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,YAAY,CAAC,EAAE,CAAC;QAC3E,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,IAAI,EAAE,UAAU,CAAC,CAAC;QAC7C,KAAK,CAAC,IAAI,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACzD,CAAC;;AAjOL,oBAkOC;AApNG,gBAAgB;AACO,iBAAY,GAAG,4BAA4B,CAAC"}
|
package/schema.d.ts
CHANGED
|
@@ -1,6 +1,69 @@
|
|
|
1
1
|
import * as pulumi from "@pulumi/pulumi";
|
|
2
2
|
import * as inputs from "./types/input";
|
|
3
3
|
import * as outputs from "./types/output";
|
|
4
|
+
/**
|
|
5
|
+
* The ``postgresql.Schema`` resource creates and manages [schema
|
|
6
|
+
* objects](https://www.postgresql.org/docs/current/static/ddl-schemas.html) within
|
|
7
|
+
* a PostgreSQL database.
|
|
8
|
+
*
|
|
9
|
+
* ## Usage
|
|
10
|
+
*
|
|
11
|
+
* ```typescript
|
|
12
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
13
|
+
* import * as postgresql from "@pulumi/postgresql";
|
|
14
|
+
*
|
|
15
|
+
* const appWww = new postgresql.Role("app_www", {name: "app_www"});
|
|
16
|
+
* const appDba = new postgresql.Role("app_dba", {name: "app_dba"});
|
|
17
|
+
* const appReleng = new postgresql.Role("app_releng", {name: "app_releng"});
|
|
18
|
+
* const mySchema = new postgresql.Schema("my_schema", {
|
|
19
|
+
* name: "my_schema",
|
|
20
|
+
* owner: "postgres",
|
|
21
|
+
* policies: [
|
|
22
|
+
* {
|
|
23
|
+
* usage: true,
|
|
24
|
+
* role: appWww.name,
|
|
25
|
+
* },
|
|
26
|
+
* {
|
|
27
|
+
* create: true,
|
|
28
|
+
* usage: true,
|
|
29
|
+
* role: appReleng.name,
|
|
30
|
+
* },
|
|
31
|
+
* {
|
|
32
|
+
* createWithGrant: true,
|
|
33
|
+
* usageWithGrant: true,
|
|
34
|
+
* role: appDba.name,
|
|
35
|
+
* },
|
|
36
|
+
* ],
|
|
37
|
+
* });
|
|
38
|
+
* ```
|
|
39
|
+
*
|
|
40
|
+
* ## Import Example
|
|
41
|
+
*
|
|
42
|
+
* `postgresql.Schema` supports importing resources. Supposing the following
|
|
43
|
+
* Terraform:
|
|
44
|
+
*
|
|
45
|
+
* ```typescript
|
|
46
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
47
|
+
* import * as postgresql from "@pulumi/postgresql";
|
|
48
|
+
*
|
|
49
|
+
* const _public = new postgresql.Schema("public", {name: "public"});
|
|
50
|
+
* const schemaFoo = new postgresql.Schema("schema_foo", {
|
|
51
|
+
* name: "my_schema",
|
|
52
|
+
* owner: "postgres",
|
|
53
|
+
* policies: [{
|
|
54
|
+
* usage: true,
|
|
55
|
+
* }],
|
|
56
|
+
* });
|
|
57
|
+
* ```
|
|
58
|
+
*
|
|
59
|
+
* It is possible to import a `postgresql.Schema` resource with the following
|
|
60
|
+
* command:
|
|
61
|
+
*
|
|
62
|
+
* Where `myDatabase` is the name of the database containing the schema,
|
|
63
|
+
* `mySchema` is the name of the schema in the PostgreSQL database and
|
|
64
|
+
* `postgresql_schema.schema_foo` is the name of the resource whose state will be
|
|
65
|
+
* populated as a result of the command.
|
|
66
|
+
*/
|
|
4
67
|
export declare class Schema extends pulumi.CustomResource {
|
|
5
68
|
/**
|
|
6
69
|
* Get an existing Schema resource's state with the given name, ID, and optional extra
|
package/schema.js
CHANGED
|
@@ -5,6 +5,69 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
5
5
|
exports.Schema = void 0;
|
|
6
6
|
const pulumi = require("@pulumi/pulumi");
|
|
7
7
|
const utilities = require("./utilities");
|
|
8
|
+
/**
|
|
9
|
+
* The ``postgresql.Schema`` resource creates and manages [schema
|
|
10
|
+
* objects](https://www.postgresql.org/docs/current/static/ddl-schemas.html) within
|
|
11
|
+
* a PostgreSQL database.
|
|
12
|
+
*
|
|
13
|
+
* ## Usage
|
|
14
|
+
*
|
|
15
|
+
* ```typescript
|
|
16
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
17
|
+
* import * as postgresql from "@pulumi/postgresql";
|
|
18
|
+
*
|
|
19
|
+
* const appWww = new postgresql.Role("app_www", {name: "app_www"});
|
|
20
|
+
* const appDba = new postgresql.Role("app_dba", {name: "app_dba"});
|
|
21
|
+
* const appReleng = new postgresql.Role("app_releng", {name: "app_releng"});
|
|
22
|
+
* const mySchema = new postgresql.Schema("my_schema", {
|
|
23
|
+
* name: "my_schema",
|
|
24
|
+
* owner: "postgres",
|
|
25
|
+
* policies: [
|
|
26
|
+
* {
|
|
27
|
+
* usage: true,
|
|
28
|
+
* role: appWww.name,
|
|
29
|
+
* },
|
|
30
|
+
* {
|
|
31
|
+
* create: true,
|
|
32
|
+
* usage: true,
|
|
33
|
+
* role: appReleng.name,
|
|
34
|
+
* },
|
|
35
|
+
* {
|
|
36
|
+
* createWithGrant: true,
|
|
37
|
+
* usageWithGrant: true,
|
|
38
|
+
* role: appDba.name,
|
|
39
|
+
* },
|
|
40
|
+
* ],
|
|
41
|
+
* });
|
|
42
|
+
* ```
|
|
43
|
+
*
|
|
44
|
+
* ## Import Example
|
|
45
|
+
*
|
|
46
|
+
* `postgresql.Schema` supports importing resources. Supposing the following
|
|
47
|
+
* Terraform:
|
|
48
|
+
*
|
|
49
|
+
* ```typescript
|
|
50
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
51
|
+
* import * as postgresql from "@pulumi/postgresql";
|
|
52
|
+
*
|
|
53
|
+
* const _public = new postgresql.Schema("public", {name: "public"});
|
|
54
|
+
* const schemaFoo = new postgresql.Schema("schema_foo", {
|
|
55
|
+
* name: "my_schema",
|
|
56
|
+
* owner: "postgres",
|
|
57
|
+
* policies: [{
|
|
58
|
+
* usage: true,
|
|
59
|
+
* }],
|
|
60
|
+
* });
|
|
61
|
+
* ```
|
|
62
|
+
*
|
|
63
|
+
* It is possible to import a `postgresql.Schema` resource with the following
|
|
64
|
+
* command:
|
|
65
|
+
*
|
|
66
|
+
* Where `myDatabase` is the name of the database containing the schema,
|
|
67
|
+
* `mySchema` is the name of the schema in the PostgreSQL database and
|
|
68
|
+
* `postgresql_schema.schema_foo` is the name of the resource whose state will be
|
|
69
|
+
* populated as a result of the command.
|
|
70
|
+
*/
|
|
8
71
|
class Schema extends pulumi.CustomResource {
|
|
9
72
|
/**
|
|
10
73
|
* Get an existing Schema resource's state with the given name, ID, and optional extra
|
package/schema.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema.js","sourceRoot":"","sources":["../schema.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC,MAAa,MAAO,SAAQ,MAAM,CAAC,cAAc;IAC7C;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAmB,EAAE,IAAmC;QACjH,OAAO,IAAI,MAAM,CAAC,IAAI,EAAO,KAAK,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,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;IAuCD,YAAY,IAAY,EAAE,WAAsC,EAAE,IAAmC;QACjG,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAAsC,CAAC;YACrD,cAAc,CAAC,UAAU,CAAC,GAAG,KAAK,EAAE,QAAQ,CAAC;YAC7C,cAAc,CAAC,aAAa,CAAC,GAAG,KAAK,EAAE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