@pulumi/postgresql 3.11.0 → 3.11.1

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.
@@ -10,13 +10,13 @@ import * as pulumi from "@pulumi/pulumi";
10
10
  * import * as pulumi from "@pulumi/pulumi";
11
11
  * import * as postgresql from "@pulumi/postgresql";
12
12
  *
13
- * const readOnlyTables = new postgresql.DefaultPrivileges("readOnlyTables", {
13
+ * const readOnlyTables = new postgresql.DefaultPrivileges("read_only_tables", {
14
+ * role: "test_role",
14
15
  * database: "test_db",
15
- * objectType: "table",
16
+ * schema: "public",
16
17
  * owner: "db_owner",
18
+ * objectType: "table",
17
19
  * privileges: ["SELECT"],
18
- * role: "test_role",
19
- * schema: "public",
20
20
  * });
21
21
  * ```
22
22
  *
@@ -28,8 +28,8 @@ import * as pulumi from "@pulumi/pulumi";
28
28
  * import * as pulumi from "@pulumi/pulumi";
29
29
  * import * as postgresql from "@pulumi/postgresql";
30
30
  *
31
- * const revokePublic = new postgresql.DefaultPrivileges("revokePublic", {
32
- * database: postgresql_database.example_db.name,
31
+ * const revokePublic = new postgresql.DefaultPrivileges("revoke_public", {
32
+ * database: exampleDb.name,
33
33
  * role: "public",
34
34
  * owner: "object_owner",
35
35
  * objectType: "function",
@@ -16,13 +16,13 @@ const utilities = require("./utilities");
16
16
  * import * as pulumi from "@pulumi/pulumi";
17
17
  * import * as postgresql from "@pulumi/postgresql";
18
18
  *
19
- * const readOnlyTables = new postgresql.DefaultPrivileges("readOnlyTables", {
19
+ * const readOnlyTables = new postgresql.DefaultPrivileges("read_only_tables", {
20
+ * role: "test_role",
20
21
  * database: "test_db",
21
- * objectType: "table",
22
+ * schema: "public",
22
23
  * owner: "db_owner",
24
+ * objectType: "table",
23
25
  * privileges: ["SELECT"],
24
- * role: "test_role",
25
- * schema: "public",
26
26
  * });
27
27
  * ```
28
28
  *
@@ -34,8 +34,8 @@ const utilities = require("./utilities");
34
34
  * import * as pulumi from "@pulumi/pulumi";
35
35
  * import * as postgresql from "@pulumi/postgresql";
36
36
  *
37
- * const revokePublic = new postgresql.DefaultPrivileges("revokePublic", {
38
- * database: postgresql_database.example_db.name,
37
+ * const revokePublic = new postgresql.DefaultPrivileges("revoke_public", {
38
+ * database: exampleDb.name,
39
39
  * role: "public",
40
40
  * owner: "object_owner",
41
41
  * objectType: "function",
@@ -10,13 +10,13 @@ import * as pulumi from "@pulumi/pulumi";
10
10
  * import * as pulumi from "@pulumi/pulumi";
11
11
  * import * as postgresql from "@pulumi/postgresql";
12
12
  *
13
- * const readOnlyTables = new postgresql.DefaultPrivileges("readOnlyTables", {
13
+ * const readOnlyTables = new postgresql.DefaultPrivileges("read_only_tables", {
14
+ * role: "test_role",
14
15
  * database: "test_db",
15
- * objectType: "table",
16
+ * schema: "public",
16
17
  * owner: "db_owner",
18
+ * objectType: "table",
17
19
  * privileges: ["SELECT"],
18
- * role: "test_role",
19
- * schema: "public",
20
20
  * });
21
21
  * ```
22
22
  *
@@ -28,8 +28,8 @@ import * as pulumi from "@pulumi/pulumi";
28
28
  * import * as pulumi from "@pulumi/pulumi";
29
29
  * import * as postgresql from "@pulumi/postgresql";
30
30
  *
31
- * const revokePublic = new postgresql.DefaultPrivileges("revokePublic", {
32
- * database: postgresql_database.example_db.name,
31
+ * const revokePublic = new postgresql.DefaultPrivileges("revoke_public", {
32
+ * database: exampleDb.name,
33
33
  * role: "public",
34
34
  * owner: "object_owner",
35
35
  * objectType: "function",
@@ -16,13 +16,13 @@ const utilities = require("./utilities");
16
16
  * import * as pulumi from "@pulumi/pulumi";
17
17
  * import * as postgresql from "@pulumi/postgresql";
18
18
  *
19
- * const readOnlyTables = new postgresql.DefaultPrivileges("readOnlyTables", {
19
+ * const readOnlyTables = new postgresql.DefaultPrivileges("read_only_tables", {
20
+ * role: "test_role",
20
21
  * database: "test_db",
21
- * objectType: "table",
22
+ * schema: "public",
22
23
  * owner: "db_owner",
24
+ * objectType: "table",
23
25
  * privileges: ["SELECT"],
24
- * role: "test_role",
25
- * schema: "public",
26
26
  * });
27
27
  * ```
28
28
  *
@@ -34,8 +34,8 @@ const utilities = require("./utilities");
34
34
  * import * as pulumi from "@pulumi/pulumi";
35
35
  * import * as postgresql from "@pulumi/postgresql";
36
36
  *
37
- * const revokePublic = new postgresql.DefaultPrivileges("revokePublic", {
38
- * database: postgresql_database.example_db.name,
37
+ * const revokePublic = new postgresql.DefaultPrivileges("revoke_public", {
38
+ * database: exampleDb.name,
39
39
  * role: "public",
40
40
  * owner: "object_owner",
41
41
  * objectType: "function",
package/extension.d.ts CHANGED
@@ -9,7 +9,7 @@ import * as pulumi from "@pulumi/pulumi";
9
9
  * import * as pulumi from "@pulumi/pulumi";
10
10
  * import * as postgresql from "@pulumi/postgresql";
11
11
  *
12
- * const myExtension = new postgresql.Extension("myExtension", {});
12
+ * const myExtension = new postgresql.Extension("my_extension", {name: "pg_trgm"});
13
13
  * ```
14
14
  *
15
15
  * ## Import
package/extension.js CHANGED
@@ -15,7 +15,7 @@ const utilities = require("./utilities");
15
15
  * import * as pulumi from "@pulumi/pulumi";
16
16
  * import * as postgresql from "@pulumi/postgresql";
17
17
  *
18
- * const myExtension = new postgresql.Extension("myExtension", {});
18
+ * const myExtension = new postgresql.Extension("my_extension", {name: "pg_trgm"});
19
19
  * ```
20
20
  *
21
21
  * ## Import
package/function.d.ts CHANGED
@@ -12,28 +12,32 @@ import * as outputs from "./types/output";
12
12
  * import * as postgresql from "@pulumi/postgresql";
13
13
  *
14
14
  * const increment = new postgresql.Function("increment", {
15
+ * name: "increment",
15
16
  * args: [{
16
17
  * name: "i",
17
18
  * type: "integer",
18
19
  * }],
19
- * body: ` BEGIN
20
- * RETURN i + 1;
21
- * END;
22
- *
23
- * `,
24
- * language: "plpgsql",
25
20
  * returns: "integer",
21
+ * language: "plpgsql",
22
+ * body: `BEGIN
23
+ * RETURN i + 1;
24
+ * END;
25
+ * `,
26
26
  * });
27
27
  * ```
28
28
  *
29
29
  * ## Import
30
30
  *
31
- * It is possible to import a `postgresql_function` resource with the following command:
31
+ * It is possible to import a `postgresql_function` resource with the following
32
+ * command:
32
33
  *
33
34
  * ```sh
34
- * $ pulumi import postgresql:index/function:Function function_foo "my_database.my_schema.my_function_name(arguments)"
35
+ * $ pulumi import postgresql:index/function:Function function_foo "my_database.my_schema.my_function_name(arguments)"
35
36
  * ```
36
- * Where `my_database` is the name of the database containing the schema, `my_schema` is the name of the schema in the PostgreSQL database, `my_function_name` is the function name to be imported, `arguments` is the argument signature of the function including all non OUT types and `postgresql_schema.function_foo` is the name of the resource whose state will be populated as a result of the command.
37
+ * Where `my_database` is the name of the database containing the schema,
38
+ * `my_schema` is the name of the schema in the PostgreSQL database, `my_function_name` is the function name to be imported, `arguments` is the argument signature of the function including all non OUT types and
39
+ * `postgresql_schema.function_foo` is the name of the resource whose state will be
40
+ * populated as a result of the command.
37
41
  */
38
42
  export declare class Function extends pulumi.CustomResource {
39
43
  /**
@@ -75,7 +79,7 @@ export declare class Function extends pulumi.CustomResource {
75
79
  */
76
80
  readonly language: pulumi.Output<string | undefined>;
77
81
  /**
78
- * The name of the argument.
82
+ * The name of the function.
79
83
  */
80
84
  readonly name: pulumi.Output<string>;
81
85
  /**
@@ -140,7 +144,7 @@ export interface FunctionState {
140
144
  */
141
145
  language?: pulumi.Input<string>;
142
146
  /**
143
- * The name of the argument.
147
+ * The name of the function.
144
148
  */
145
149
  name?: pulumi.Input<string>;
146
150
  /**
@@ -197,7 +201,7 @@ export interface FunctionArgs {
197
201
  */
198
202
  language?: pulumi.Input<string>;
199
203
  /**
200
- * The name of the argument.
204
+ * The name of the function.
201
205
  */
202
206
  name?: pulumi.Input<string>;
203
207
  /**
package/function.js CHANGED
@@ -16,28 +16,32 @@ const utilities = require("./utilities");
16
16
  * import * as postgresql from "@pulumi/postgresql";
17
17
  *
18
18
  * const increment = new postgresql.Function("increment", {
19
+ * name: "increment",
19
20
  * args: [{
20
21
  * name: "i",
21
22
  * type: "integer",
22
23
  * }],
23
- * body: ` BEGIN
24
- * RETURN i + 1;
25
- * END;
26
- *
27
- * `,
28
- * language: "plpgsql",
29
24
  * returns: "integer",
25
+ * language: "plpgsql",
26
+ * body: `BEGIN
27
+ * RETURN i + 1;
28
+ * END;
29
+ * `,
30
30
  * });
31
31
  * ```
32
32
  *
33
33
  * ## Import
34
34
  *
35
- * It is possible to import a `postgresql_function` resource with the following command:
35
+ * It is possible to import a `postgresql_function` resource with the following
36
+ * command:
36
37
  *
37
38
  * ```sh
38
- * $ pulumi import postgresql:index/function:Function function_foo "my_database.my_schema.my_function_name(arguments)"
39
+ * $ pulumi import postgresql:index/function:Function function_foo "my_database.my_schema.my_function_name(arguments)"
39
40
  * ```
40
- * Where `my_database` is the name of the database containing the schema, `my_schema` is the name of the schema in the PostgreSQL database, `my_function_name` is the function name to be imported, `arguments` is the argument signature of the function including all non OUT types and `postgresql_schema.function_foo` is the name of the resource whose state will be populated as a result of the command.
41
+ * Where `my_database` is the name of the database containing the schema,
42
+ * `my_schema` is the name of the schema in the PostgreSQL database, `my_function_name` is the function name to be imported, `arguments` is the argument signature of the function including all non OUT types and
43
+ * `postgresql_schema.function_foo` is the name of the resource whose state will be
44
+ * populated as a result of the command.
41
45
  */
42
46
  class Function extends pulumi.CustomResource {
43
47
  /**
package/function.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"function.js","sourceRoot":"","sources":["../function.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;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,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,C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E,IAAI,CAAC,CAAC;IAC7D,CAAC;;AA9HL,4BA+HC;AAjHG,gBAAgB;AACO,qBAAY,GAAG,oCAAoC,CAAC"}
package/grant.d.ts CHANGED
@@ -14,32 +14,32 @@ import * as pulumi from "@pulumi/pulumi";
14
14
  * import * as postgresql from "@pulumi/postgresql";
15
15
  *
16
16
  * // Grant SELECT privileges on 2 tables
17
- * const readonlyTables = new postgresql.Grant("readonlyTables", {
17
+ * const readonlyTables = new postgresql.Grant("readonly_tables", {
18
18
  * database: "test_db",
19
+ * role: "test_role",
20
+ * schema: "public",
19
21
  * objectType: "table",
20
22
  * objects: [
21
23
  * "table1",
22
24
  * "table2",
23
25
  * ],
24
26
  * privileges: ["SELECT"],
25
- * role: "test_role",
26
- * schema: "public",
27
27
  * });
28
28
  * // Grant SELECT & INSERT privileges on 2 columns in 1 table
29
- * const readInsertColumn = new postgresql.Grant("readInsertColumn", {
29
+ * const readInsertColumn = new postgresql.Grant("read_insert_column", {
30
+ * database: "test_db",
31
+ * role: "test_role",
32
+ * schema: "public",
33
+ * objectType: "column",
34
+ * objects: ["table1"],
30
35
  * columns: [
31
36
  * "col1",
32
37
  * "col2",
33
38
  * ],
34
- * database: "test_db",
35
- * objectType: "column",
36
- * objects: ["table1"],
37
39
  * privileges: [
38
40
  * "UPDATE",
39
41
  * "INSERT",
40
42
  * ],
41
- * role: "test_role",
42
- * schema: "public",
43
43
  * });
44
44
  * ```
45
45
  *
@@ -51,12 +51,12 @@ import * as pulumi from "@pulumi/pulumi";
51
51
  * import * as pulumi from "@pulumi/pulumi";
52
52
  * import * as postgresql from "@pulumi/postgresql";
53
53
  *
54
- * const revokePublic = new postgresql.Grant("revokePublic", {
54
+ * const revokePublic = new postgresql.Grant("revoke_public", {
55
55
  * database: "test_db",
56
- * objectType: "schema",
57
- * privileges: [],
58
56
  * role: "public",
59
57
  * schema: "public",
58
+ * objectType: "schema",
59
+ * privileges: [],
60
60
  * });
61
61
  * ```
62
62
  */
package/grant.js CHANGED
@@ -20,32 +20,32 @@ const utilities = require("./utilities");
20
20
  * import * as postgresql from "@pulumi/postgresql";
21
21
  *
22
22
  * // Grant SELECT privileges on 2 tables
23
- * const readonlyTables = new postgresql.Grant("readonlyTables", {
23
+ * const readonlyTables = new postgresql.Grant("readonly_tables", {
24
24
  * database: "test_db",
25
+ * role: "test_role",
26
+ * schema: "public",
25
27
  * objectType: "table",
26
28
  * objects: [
27
29
  * "table1",
28
30
  * "table2",
29
31
  * ],
30
32
  * privileges: ["SELECT"],
31
- * role: "test_role",
32
- * schema: "public",
33
33
  * });
34
34
  * // Grant SELECT & INSERT privileges on 2 columns in 1 table
35
- * const readInsertColumn = new postgresql.Grant("readInsertColumn", {
35
+ * const readInsertColumn = new postgresql.Grant("read_insert_column", {
36
+ * database: "test_db",
37
+ * role: "test_role",
38
+ * schema: "public",
39
+ * objectType: "column",
40
+ * objects: ["table1"],
36
41
  * columns: [
37
42
  * "col1",
38
43
  * "col2",
39
44
  * ],
40
- * database: "test_db",
41
- * objectType: "column",
42
- * objects: ["table1"],
43
45
  * privileges: [
44
46
  * "UPDATE",
45
47
  * "INSERT",
46
48
  * ],
47
- * role: "test_role",
48
- * schema: "public",
49
49
  * });
50
50
  * ```
51
51
  *
@@ -57,12 +57,12 @@ const utilities = require("./utilities");
57
57
  * import * as pulumi from "@pulumi/pulumi";
58
58
  * import * as postgresql from "@pulumi/postgresql";
59
59
  *
60
- * const revokePublic = new postgresql.Grant("revokePublic", {
60
+ * const revokePublic = new postgresql.Grant("revoke_public", {
61
61
  * database: "test_db",
62
- * objectType: "schema",
63
- * privileges: [],
64
62
  * role: "public",
65
63
  * schema: "public",
64
+ * objectType: "schema",
65
+ * privileges: [],
66
66
  * });
67
67
  * ```
68
68
  */
package/grantRole.d.ts CHANGED
@@ -12,9 +12,9 @@ import * as pulumi from "@pulumi/pulumi";
12
12
  * import * as pulumi from "@pulumi/pulumi";
13
13
  * import * as postgresql from "@pulumi/postgresql";
14
14
  *
15
- * const grantRoot = new postgresql.GrantRole("grantRoot", {
16
- * grantRole: "application",
15
+ * const grantRoot = new postgresql.GrantRole("grant_root", {
17
16
  * role: "root",
17
+ * grantRole: "application",
18
18
  * withAdminOption: true,
19
19
  * });
20
20
  * ```
@@ -24,8 +24,8 @@ import * as pulumi from "@pulumi/pulumi";
24
24
  * import * as pulumi from "@pulumi/pulumi";
25
25
  * import * as postgresql from "@pulumi/postgresql";
26
26
  *
27
- * const bob = new postgresql.Role("bob", {});
28
- * const bobAdmin = new postgresql.GrantRole("bobAdmin", {
27
+ * const bob = new postgresql.Role("bob", {name: "bob"});
28
+ * const bobAdmin = new postgresql.GrantRole("bob_admin", {
29
29
  * role: "bob",
30
30
  * grantRole: "admin",
31
31
  * });
package/grantRole.js CHANGED
@@ -18,9 +18,9 @@ const utilities = require("./utilities");
18
18
  * import * as pulumi from "@pulumi/pulumi";
19
19
  * import * as postgresql from "@pulumi/postgresql";
20
20
  *
21
- * const grantRoot = new postgresql.GrantRole("grantRoot", {
22
- * grantRole: "application",
21
+ * const grantRoot = new postgresql.GrantRole("grant_root", {
23
22
  * role: "root",
23
+ * grantRole: "application",
24
24
  * withAdminOption: true,
25
25
  * });
26
26
  * ```
@@ -30,8 +30,8 @@ const utilities = require("./utilities");
30
30
  * import * as pulumi from "@pulumi/pulumi";
31
31
  * import * as postgresql from "@pulumi/postgresql";
32
32
  *
33
- * const bob = new postgresql.Role("bob", {});
34
- * const bobAdmin = new postgresql.GrantRole("bobAdmin", {
33
+ * const bob = new postgresql.Role("bob", {name: "bob"});
34
+ * const bobAdmin = new postgresql.GrantRole("bob_admin", {
35
35
  * role: "bob",
36
36
  * grantRole: "admin",
37
37
  * });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pulumi/postgresql",
3
- "version": "v3.11.0",
3
+ "version": "v3.11.1",
4
4
  "description": "A Pulumi package for creating and managing postgresql cloud resources.",
5
5
  "keywords": [
6
6
  "pulumi",
@@ -10,7 +10,7 @@ import * as pulumi from "@pulumi/pulumi";
10
10
  * import * as pulumi from "@pulumi/pulumi";
11
11
  * import * as postgresql from "@pulumi/postgresql";
12
12
  *
13
- * const mySlot = new postgresql.PhysicalReplicationSlot("mySlot", {});
13
+ * const mySlot = new postgresql.PhysicalReplicationSlot("my_slot", {name: "my_slot"});
14
14
  * ```
15
15
  */
16
16
  export declare class PhysicalReplicationSlot extends pulumi.CustomResource {
@@ -16,7 +16,7 @@ const utilities = require("./utilities");
16
16
  * import * as pulumi from "@pulumi/pulumi";
17
17
  * import * as postgresql from "@pulumi/postgresql";
18
18
  *
19
- * const mySlot = new postgresql.PhysicalReplicationSlot("mySlot", {});
19
+ * const mySlot = new postgresql.PhysicalReplicationSlot("my_slot", {name: "my_slot"});
20
20
  * ```
21
21
  */
22
22
  class PhysicalReplicationSlot extends pulumi.CustomResource {
package/provider.d.ts CHANGED
@@ -20,10 +20,6 @@ export declare class Provider extends pulumi.ProviderResource {
20
20
  * AWS region to use for IAM auth
21
21
  */
22
22
  readonly awsRdsIamRegion: pulumi.Output<string | undefined>;
23
- /**
24
- * MS Azure tenant ID (see:
25
- * https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/data-sources/client_config.html)
26
- */
27
23
  readonly azureTenantId: pulumi.Output<string | undefined>;
28
24
  /**
29
25
  * The name of the database to connect to in order to conenct to (defaults to `postgres`).
@@ -47,7 +43,7 @@ export declare class Provider extends pulumi.ProviderResource {
47
43
  readonly password: pulumi.Output<string | undefined>;
48
44
  readonly scheme: pulumi.Output<string | undefined>;
49
45
  /**
50
- * @deprecated Rename PostgreSQL provider `ssl_mode` attribute to `sslmode`
46
+ * @deprecated Rename PostgreSQL provider `sslMode` attribute to `sslmode`
51
47
  */
52
48
  readonly sslMode: pulumi.Output<string | undefined>;
53
49
  /**
@@ -77,7 +73,7 @@ export declare class Provider extends pulumi.ProviderResource {
77
73
  */
78
74
  export interface ProviderArgs {
79
75
  /**
80
- * Use rds_iam instead of password authentication (see:
76
+ * Use rdsIam instead of password authentication (see:
81
77
  * https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/UsingWithRDS.IAMDBAuth.html)
82
78
  */
83
79
  awsRdsIamAuth?: pulumi.Input<boolean>;
@@ -94,10 +90,6 @@ export interface ProviderArgs {
94
90
  * https://learn.microsoft.com/en-us/azure/postgresql/flexible-server/how-to-configure-sign-in-azure-ad-authentication)
95
91
  */
96
92
  azureIdentityAuth?: pulumi.Input<boolean>;
97
- /**
98
- * MS Azure tenant ID (see:
99
- * https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/data-sources/client_config.html)
100
- */
101
93
  azureTenantId?: pulumi.Input<string>;
102
94
  /**
103
95
  * SSL client certificate if required by the database.
@@ -137,7 +129,7 @@ export interface ProviderArgs {
137
129
  port?: pulumi.Input<number>;
138
130
  scheme?: pulumi.Input<string>;
139
131
  /**
140
- * @deprecated Rename PostgreSQL provider `ssl_mode` attribute to `sslmode`
132
+ * @deprecated Rename PostgreSQL provider `sslMode` attribute to `sslmode`
141
133
  */
142
134
  sslMode?: pulumi.Input<string>;
143
135
  /**
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;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;IAsDD;;;;;;OAMG;IACH,YAAY,IAAY,EAAE,IAAmB,EAAE,IAA6B;;QACxE,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IA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ulumi/pulumi";
10
10
  * import * as postgresql from "@pulumi/postgresql";
11
11
  *
12
- * const publication = new postgresql.Publication("publication", {tables: [
13
- * "public.test",
14
- * "another_schema.test",
15
- * ]});
12
+ * const publication = new postgresql.Publication("publication", {
13
+ * name: "publication",
14
+ * tables: [
15
+ * "public.test",
16
+ * "another_schema.test",
17
+ * ],
18
+ * });
16
19
  * ```
20
+ *
21
+ * ## Import Example
22
+ *
23
+ * Publication can be imported using this format:
17
24
  */
18
25
  export declare class Publication extends pulumi.CustomResource {
19
26
  /**
package/publication.js CHANGED
@@ -15,11 +15,18 @@ const utilities = require("./utilities");
15
15
  * import * as pulumi from "@pulumi/pulumi";
16
16
  * import * as postgresql from "@pulumi/postgresql";
17
17
  *
18
- * const publication = new postgresql.Publication("publication", {tables: [
19
- * "public.test",
20
- * "another_schema.test",
21
- * ]});
18
+ * const publication = new postgresql.Publication("publication", {
19
+ * name: "publication",
20
+ * tables: [
21
+ * "public.test",
22
+ * "another_schema.test",
23
+ * ],
24
+ * });
22
25
  * ```
26
+ *
27
+ * ## Import Example
28
+ *
29
+ * Publication can be imported using this format:
23
30
  */
24
31
  class Publication extends pulumi.CustomResource {
25
32
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"publication.js","sourceRoot":"","sources":["../publication.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;GAeG;AACH,MAAa,WAAY,SAAQ,MAAM,CAAC,cAAc;IAClD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAwB,EAAE,IAAmC;QACtH,OAAO,IAAI,WAAW,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IAClE,CAAC;IAKD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,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Ac,CAAC,QAAQ,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC;SAC7D;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,WAAW,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAChE,CAAC;;AA/FL,kCAgGC;AAlFG,gBAAgB;AACO,wBAAY,GAAG,0CAA0C,CAAC"}
@@ -9,7 +9,10 @@ import * as pulumi from "@pulumi/pulumi";
9
9
  * import * as pulumi from "@pulumi/pulumi";
10
10
  * import * as postgresql from "@pulumi/postgresql";
11
11
  *
12
- * const mySlot = new postgresql.ReplicationSlot("mySlot", {plugin: "test_decoding"});
12
+ * const mySlot = new postgresql.ReplicationSlot("my_slot", {
13
+ * name: "my_slot",
14
+ * plugin: "test_decoding",
15
+ * });
13
16
  * ```
14
17
  */
15
18
  export declare class ReplicationSlot extends pulumi.CustomResource {
@@ -15,7 +15,10 @@ const utilities = require("./utilities");
15
15
  * import * as pulumi from "@pulumi/pulumi";
16
16
  * import * as postgresql from "@pulumi/postgresql";
17
17
  *
18
- * const mySlot = new postgresql.ReplicationSlot("mySlot", {plugin: "test_decoding"});
18
+ * const mySlot = new postgresql.ReplicationSlot("my_slot", {
19
+ * name: "my_slot",
20
+ * plugin: "test_decoding",
21
+ * });
19
22
  * ```
20
23
  */
21
24
  class ReplicationSlot extends pulumi.CustomResource {
@@ -1 +1 @@
1
- {"version":3,"file":"replicationSlot.js","sourceRoot":"","sources":["../replicationSlot.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;GAYG;AACH,MAAa,eAAgB,SAAQ,MAAM,CAAC,cAAc;IACtD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAA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-42,7 +42,7 @@ export declare class Role extends pulumi.CustomResource {
42
42
  */
43
43
  readonly createRole: pulumi.Output<boolean | undefined>;
44
44
  /**
45
- * @deprecated Rename PostgreSQL role resource attribute "encrypted" to "encrypted_password"
45
+ * @deprecated Rename PostgreSQL role resource attribute "encrypted" to "encryptedPassword"
46
46
  */
47
47
  readonly encrypted: pulumi.Output<string | undefined>;
48
48
  /**
@@ -173,7 +173,7 @@ export interface RoleState {
173
173
  */
174
174
  createRole?: pulumi.Input<boolean>;
175
175
  /**
176
- * @deprecated Rename PostgreSQL role resource attribute "encrypted" to "encrypted_password"
176
+ * @deprecated Rename PostgreSQL role resource attribute "encrypted" to "encryptedPassword"
177
177
  */
178
178
  encrypted?: pulumi.Input<string>;
179
179
  /**
@@ -296,7 +296,7 @@ export interface RoleArgs {
296
296
  */
297
297
  createRole?: pulumi.Input<boolean>;
298
298
  /**
299
- * @deprecated Rename PostgreSQL role resource attribute "encrypted" to "encrypted_password"
299
+ * @deprecated Rename PostgreSQL role resource attribute "encrypted" to "encryptedPassword"
300
300
  */
301
301
  encrypted?: pulumi.Input<string>;
302
302
  /**
package/schema.d.ts CHANGED
@@ -42,7 +42,7 @@ export declare class Schema extends pulumi.CustomResource {
42
42
  * Can be specified multiple times for each policy. Each
43
43
  * policy block supports fields documented below.
44
44
  *
45
- * @deprecated Use postgresql_grant resource instead (with object_type="schema")
45
+ * @deprecated Use postgresql.Grant resource instead (with object_type="schema")
46
46
  */
47
47
  readonly policies: pulumi.Output<outputs.SchemaPolicy[]>;
48
48
  /**
@@ -83,7 +83,7 @@ export interface SchemaState {
83
83
  * Can be specified multiple times for each policy. Each
84
84
  * policy block supports fields documented below.
85
85
  *
86
- * @deprecated Use postgresql_grant resource instead (with object_type="schema")
86
+ * @deprecated Use postgresql.Grant resource instead (with object_type="schema")
87
87
  */
88
88
  policies?: pulumi.Input<pulumi.Input<inputs.SchemaPolicy>[]>;
89
89
  }
@@ -116,7 +116,7 @@ export interface SchemaArgs {
116
116
  * Can be specified multiple times for each policy. Each
117
117
  * policy block supports fields documented below.
118
118
  *
119
- * @deprecated Use postgresql_grant resource instead (with object_type="schema")
119
+ * @deprecated Use postgresql.Grant resource instead (with object_type="schema")
120
120
  */
121
121
  policies?: pulumi.Input<pulumi.Input<inputs.SchemaPolicy>[]>;
122
122
  }
package/server.d.ts CHANGED
@@ -8,8 +8,8 @@ import * as pulumi from "@pulumi/pulumi";
8
8
  * import * as pulumi from "@pulumi/pulumi";
9
9
  * import * as postgresql from "@pulumi/postgresql";
10
10
  *
11
- * const extPostgresFdw = new postgresql.Extension("extPostgresFdw", {});
12
- * const myserverPostgres = new postgresql.Server("myserverPostgres", {
11
+ * const extPostgresFdw = new postgresql.Extension("ext_postgres_fdw", {name: "postgres_fdw"});
12
+ * const myserverPostgres = new postgresql.Server("myserver_postgres", {
13
13
  * serverName: "myserver_postgres",
14
14
  * fdwName: "postgres_fdw",
15
15
  * options: {
@@ -26,8 +26,8 @@ import * as pulumi from "@pulumi/pulumi";
26
26
  * import * as pulumi from "@pulumi/pulumi";
27
27
  * import * as postgresql from "@pulumi/postgresql";
28
28
  *
29
- * const extFileFdw = new postgresql.Extension("extFileFdw", {});
30
- * const myserverFile = new postgresql.Server("myserverFile", {
29
+ * const extFileFdw = new postgresql.Extension("ext_file_fdw", {name: "file_fdw"});
30
+ * const myserverFile = new postgresql.Server("myserver_file", {
31
31
  * serverName: "myserver_file",
32
32
  * fdwName: "file_fdw",
33
33
  * }, {
package/server.js CHANGED
@@ -14,8 +14,8 @@ const utilities = require("./utilities");
14
14
  * import * as pulumi from "@pulumi/pulumi";
15
15
  * import * as postgresql from "@pulumi/postgresql";
16
16
  *
17
- * const extPostgresFdw = new postgresql.Extension("extPostgresFdw", {});
18
- * const myserverPostgres = new postgresql.Server("myserverPostgres", {
17
+ * const extPostgresFdw = new postgresql.Extension("ext_postgres_fdw", {name: "postgres_fdw"});
18
+ * const myserverPostgres = new postgresql.Server("myserver_postgres", {
19
19
  * serverName: "myserver_postgres",
20
20
  * fdwName: "postgres_fdw",
21
21
  * options: {
@@ -32,8 +32,8 @@ const utilities = require("./utilities");
32
32
  * import * as pulumi from "@pulumi/pulumi";
33
33
  * import * as postgresql from "@pulumi/postgresql";
34
34
  *
35
- * const extFileFdw = new postgresql.Extension("extFileFdw", {});
36
- * const myserverFile = new postgresql.Server("myserverFile", {
35
+ * const extFileFdw = new postgresql.Extension("ext_file_fdw", {name: "file_fdw"});
36
+ * const myserverFile = new postgresql.Server("myserver_file", {
37
37
  * serverName: "myserver_file",
38
38
  * fdwName: "file_fdw",
39
39
  * }, {
package/subscription.d.ts CHANGED
@@ -10,6 +10,7 @@ import * as pulumi from "@pulumi/pulumi";
10
10
  * import * as postgresql from "@pulumi/postgresql";
11
11
  *
12
12
  * const subscription = new postgresql.Subscription("subscription", {
13
+ * name: "subscription",
13
14
  * conninfo: "host=localhost port=5432 dbname=mydb user=postgres password=postgres",
14
15
  * publications: ["publication"],
15
16
  * });
package/subscription.js CHANGED
@@ -16,6 +16,7 @@ const utilities = require("./utilities");
16
16
  * import * as postgresql from "@pulumi/postgresql";
17
17
  *
18
18
  * const subscription = new postgresql.Subscription("subscription", {
19
+ * name: "subscription",
19
20
  * conninfo: "host=localhost port=5432 dbname=mydb user=postgres password=postgres",
20
21
  * publications: ["publication"],
21
22
  * });
@@ -1 +1 @@
1
- {"version":3,"file":"subscription.js","sourceRoot":"","sources":["../subscription.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;GAmBG;AACH,MAAa,YAAa,SAAQ,MAAM,CAAC,cAAc;IACnD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAyB,EAAE,IAAmC;QACvH,OAAO,IAAI,YAAY,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC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AAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC;YACtD,cAAc,CAAC,cAAc,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC,CAAC,SAAS,CAAC;YACtE,cAAc,CAAC,UAAU,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC;SACjE;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,MAAM,UAAU,GAAG,EAAE,uBAAuB,EAAE,CAAC,UAAU,CAAC,EAAE,CAAC;QAC7D,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,IAAI,EAAE,UAAU,CAAC,CAAC;QAC7C,KAAK,CAAC,YAAY,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACjE,CAAC;;AA3FL,oCA4FC;AA9EG,gBAAgB;AACO,yBAAY,GAAG,4CAA4C,CAAC"}
package/userMapping.d.ts CHANGED
@@ -8,8 +8,8 @@ import * as pulumi from "@pulumi/pulumi";
8
8
  * import * as pulumi from "@pulumi/pulumi";
9
9
  * import * as postgresql from "@pulumi/postgresql";
10
10
  *
11
- * const extPostgresFdw = new postgresql.Extension("extPostgresFdw", {});
12
- * const myserverPostgres = new postgresql.Server("myserverPostgres", {
11
+ * const extPostgresFdw = new postgresql.Extension("ext_postgres_fdw", {name: "postgres_fdw"});
12
+ * const myserverPostgres = new postgresql.Server("myserver_postgres", {
13
13
  * serverName: "myserver_postgres",
14
14
  * fdwName: "postgres_fdw",
15
15
  * options: {
@@ -20,10 +20,10 @@ import * as pulumi from "@pulumi/pulumi";
20
20
  * }, {
21
21
  * dependsOn: [extPostgresFdw],
22
22
  * });
23
- * const remoteRole = new postgresql.Role("remoteRole", {});
24
- * const remoteUserMapping = new postgresql.UserMapping("remoteUserMapping", {
23
+ * const remote = new postgresql.Role("remote", {name: "remote"});
24
+ * const remoteUserMapping = new postgresql.UserMapping("remote", {
25
25
  * serverName: myserverPostgres.serverName,
26
- * userName: remoteRole.name,
26
+ * userName: remote.name,
27
27
  * options: {
28
28
  * user: "admin",
29
29
  * password: "pass",
package/userMapping.js CHANGED
@@ -14,8 +14,8 @@ const utilities = require("./utilities");
14
14
  * import * as pulumi from "@pulumi/pulumi";
15
15
  * import * as postgresql from "@pulumi/postgresql";
16
16
  *
17
- * const extPostgresFdw = new postgresql.Extension("extPostgresFdw", {});
18
- * const myserverPostgres = new postgresql.Server("myserverPostgres", {
17
+ * const extPostgresFdw = new postgresql.Extension("ext_postgres_fdw", {name: "postgres_fdw"});
18
+ * const myserverPostgres = new postgresql.Server("myserver_postgres", {
19
19
  * serverName: "myserver_postgres",
20
20
  * fdwName: "postgres_fdw",
21
21
  * options: {
@@ -26,10 +26,10 @@ const utilities = require("./utilities");
26
26
  * }, {
27
27
  * dependsOn: [extPostgresFdw],
28
28
  * });
29
- * const remoteRole = new postgresql.Role("remoteRole", {});
30
- * const remoteUserMapping = new postgresql.UserMapping("remoteUserMapping", {
29
+ * const remote = new postgresql.Role("remote", {name: "remote"});
30
+ * const remoteUserMapping = new postgresql.UserMapping("remote", {
31
31
  * serverName: myserverPostgres.serverName,
32
- * userName: remoteRole.name,
32
+ * userName: remote.name,
33
33
  * options: {
34
34
  * user: "admin",
35
35
  * password: "pass",