@pulumi/postgresql 3.7.0-alpha.1678129657 → 3.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/config/vars.d.ts +5 -1
- package/config/vars.js +6 -0
- package/config/vars.js.map +1 -1
- package/defaultPrivileg.d.ts +4 -4
- package/defaultPrivileg.js +1 -1
- package/defaultPrivileges.d.ts +4 -4
- package/defaultPrivileges.js +1 -1
- package/extension.d.ts +1 -1
- package/extension.js +1 -1
- package/function.d.ts +3 -1
- package/function.js +1 -0
- package/function.js.map +1 -1
- package/grant.d.ts +2 -2
- package/grant.js +2 -2
- package/index.d.ts +48 -13
- package/index.js +55 -56
- package/index.js.map +1 -1
- package/package.json +2 -2
- package/package.json.dev +2 -2
- package/physicalReplicationSlot.d.ts +1 -1
- package/physicalReplicationSlot.js +1 -1
- package/provider.d.ts +9 -1
- package/provider.js +4 -1
- package/provider.js.map +1 -1
- package/publication.d.ts +4 -6
- package/publication.js +4 -6
- package/publication.js.map +1 -1
- package/replicationSlot.d.ts +1 -3
- package/replicationSlot.js +1 -3
- package/replicationSlot.js.map +1 -1
- package/role.js +3 -1
- package/role.js.map +1 -1
- package/schema.d.ts +2 -1
- package/schema.js.map +1 -1
- package/server.d.ts +180 -0
- package/server.js +103 -0
- package/server.js.map +1 -0
- package/subscription.d.ts +128 -0
- package/subscription.js +87 -0
- package/subscription.js.map +1 -0
- package/types/index.js.map +1 -1
- package/userMapping.d.ts +128 -0
- package/userMapping.js +91 -0
- package/userMapping.js.map +1 -0
- package/utilities.js +13 -1
- package/utilities.js.map +1 -1
package/config/vars.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import * as outputs from "../types/output";
|
|
2
2
|
/**
|
|
3
3
|
* Use rds_iam instead of password authentication (see:
|
|
4
4
|
* https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/UsingWithRDS.IAMDBAuth.html)
|
|
@@ -8,6 +8,10 @@ export declare const awsRdsIamAuth: boolean | undefined;
|
|
|
8
8
|
* AWS profile to use for IAM auth
|
|
9
9
|
*/
|
|
10
10
|
export declare const awsRdsIamProfile: string | undefined;
|
|
11
|
+
/**
|
|
12
|
+
* AWS region to use for IAM auth
|
|
13
|
+
*/
|
|
14
|
+
export declare const awsRdsIamRegion: string | undefined;
|
|
11
15
|
/**
|
|
12
16
|
* SSL client certificate if required by the database.
|
|
13
17
|
*/
|
package/config/vars.js
CHANGED
|
@@ -17,6 +17,12 @@ Object.defineProperty(exports, "awsRdsIamProfile", {
|
|
|
17
17
|
},
|
|
18
18
|
enumerable: true,
|
|
19
19
|
});
|
|
20
|
+
Object.defineProperty(exports, "awsRdsIamRegion", {
|
|
21
|
+
get() {
|
|
22
|
+
return __config.get("awsRdsIamRegion");
|
|
23
|
+
},
|
|
24
|
+
enumerable: true,
|
|
25
|
+
});
|
|
20
26
|
Object.defineProperty(exports, "clientcert", {
|
|
21
27
|
get() {
|
|
22
28
|
return __config.getObject("clientcert");
|
package/config/vars.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vars.js","sourceRoot":"","sources":["../../config/vars.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;AAEjF,yCAAyC;
|
|
1
|
+
{"version":3,"file":"vars.js","sourceRoot":"","sources":["../../config/vars.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;AAEjF,yCAAyC;AAGzC,0CAA0C;AAG1C,MAAM,QAAQ,GAAG,IAAI,MAAM,CAAC,MAAM,CAAC,YAAY,CAAC,CAAC;AAOjD,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,eAAe,EAAE;IAC5C,GAAG;QACC,OAAO,QAAQ,CAAC,SAAS,CAAU,eAAe,CAAC,CAAC;IACxD,CAAC;IACD,UAAU,EAAE,IAAI;CACnB,CAAC,CAAC;AAMH,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,kBAAkB,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,MAAM,CAAC,WAAW,CAAC,CAAC;IACpE,CAAC;IACD,UAAU,EAAE,IAAI;CACnB,CAAC,CAAC;AAMH,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,aAAa,EAAE;IAC1C,GAAG;QACC,OAAO,QAAQ,CAAC,GAAG,CAAC,aAAa,CAAC,CAAC;IACvC,CAAC;IACD,UAAU,EAAE,IAAI;CACnB,CAAC,CAAC;AAOH,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,WAAW,EAAE;IACxC,GAAG;QACC,OAAO,QAAQ,CAAC,SAAS,CAAU,WAAW,CAAC,CAAC;IACpD,CAAC;IACD,UAAU,EAAE,IAAI;CACnB,CAAC,CAAC;AAMH,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,UAAU,EAAE;IACvC,GAAG;QACC,OAAO,QAAQ,CAAC,GAAG,CAAC,UAAU,CAAC,CAAC;IACpC,CAAC;IACD,UAAU,EAAE,IAAI;CACnB,CAAC,CAAC"}
|
package/defaultPrivileg.d.ts
CHANGED
|
@@ -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 readOnlyTables = new postgresql.DefaultPrivileges("
|
|
13
|
+
* const readOnlyTables = new postgresql.DefaultPrivileges("readOnlyTables", {
|
|
14
14
|
* database: "test_db",
|
|
15
15
|
* objectType: "table",
|
|
16
16
|
* owner: "db_owner",
|
|
@@ -60,7 +60,7 @@ export declare class DefaultPrivileg extends pulumi.CustomResource {
|
|
|
60
60
|
*/
|
|
61
61
|
readonly database: pulumi.Output<string>;
|
|
62
62
|
/**
|
|
63
|
-
* The PostgreSQL object type to set the default privileges on (one of: table, sequence, function, type).
|
|
63
|
+
* The PostgreSQL object type to set the default privileges on (one of: table, sequence, function, type, schema).
|
|
64
64
|
*/
|
|
65
65
|
readonly objectType: pulumi.Output<string>;
|
|
66
66
|
/**
|
|
@@ -102,7 +102,7 @@ export interface DefaultPrivilegState {
|
|
|
102
102
|
*/
|
|
103
103
|
database?: pulumi.Input<string>;
|
|
104
104
|
/**
|
|
105
|
-
* The PostgreSQL object type to set the default privileges on (one of: table, sequence, function, type).
|
|
105
|
+
* The PostgreSQL object type to set the default privileges on (one of: table, sequence, function, type, schema).
|
|
106
106
|
*/
|
|
107
107
|
objectType?: pulumi.Input<string>;
|
|
108
108
|
/**
|
|
@@ -135,7 +135,7 @@ export interface DefaultPrivilegArgs {
|
|
|
135
135
|
*/
|
|
136
136
|
database: pulumi.Input<string>;
|
|
137
137
|
/**
|
|
138
|
-
* The PostgreSQL object type to set the default privileges on (one of: table, sequence, function, type).
|
|
138
|
+
* The PostgreSQL object type to set the default privileges on (one of: table, sequence, function, type, schema).
|
|
139
139
|
*/
|
|
140
140
|
objectType: pulumi.Input<string>;
|
|
141
141
|
/**
|
package/defaultPrivileg.js
CHANGED
|
@@ -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 readOnlyTables = new postgresql.DefaultPrivileges("
|
|
19
|
+
* const readOnlyTables = new postgresql.DefaultPrivileges("readOnlyTables", {
|
|
20
20
|
* database: "test_db",
|
|
21
21
|
* objectType: "table",
|
|
22
22
|
* owner: "db_owner",
|
package/defaultPrivileges.d.ts
CHANGED
|
@@ -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 readOnlyTables = new postgresql.DefaultPrivileges("
|
|
13
|
+
* const readOnlyTables = new postgresql.DefaultPrivileges("readOnlyTables", {
|
|
14
14
|
* database: "test_db",
|
|
15
15
|
* objectType: "table",
|
|
16
16
|
* owner: "db_owner",
|
|
@@ -58,7 +58,7 @@ export declare class DefaultPrivileges extends pulumi.CustomResource {
|
|
|
58
58
|
*/
|
|
59
59
|
readonly database: pulumi.Output<string>;
|
|
60
60
|
/**
|
|
61
|
-
* The PostgreSQL object type to set the default privileges on (one of: table, sequence, function, type).
|
|
61
|
+
* The PostgreSQL object type to set the default privileges on (one of: table, sequence, function, type, schema).
|
|
62
62
|
*/
|
|
63
63
|
readonly objectType: pulumi.Output<string>;
|
|
64
64
|
/**
|
|
@@ -99,7 +99,7 @@ export interface DefaultPrivilegesState {
|
|
|
99
99
|
*/
|
|
100
100
|
database?: pulumi.Input<string>;
|
|
101
101
|
/**
|
|
102
|
-
* The PostgreSQL object type to set the default privileges on (one of: table, sequence, function, type).
|
|
102
|
+
* The PostgreSQL object type to set the default privileges on (one of: table, sequence, function, type, schema).
|
|
103
103
|
*/
|
|
104
104
|
objectType?: pulumi.Input<string>;
|
|
105
105
|
/**
|
|
@@ -132,7 +132,7 @@ export interface DefaultPrivilegesArgs {
|
|
|
132
132
|
*/
|
|
133
133
|
database: pulumi.Input<string>;
|
|
134
134
|
/**
|
|
135
|
-
* The PostgreSQL object type to set the default privileges on (one of: table, sequence, function, type).
|
|
135
|
+
* The PostgreSQL object type to set the default privileges on (one of: table, sequence, function, type, schema).
|
|
136
136
|
*/
|
|
137
137
|
objectType: pulumi.Input<string>;
|
|
138
138
|
/**
|
package/defaultPrivileges.js
CHANGED
|
@@ -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 readOnlyTables = new postgresql.DefaultPrivileges("
|
|
19
|
+
* const readOnlyTables = new postgresql.DefaultPrivileges("readOnlyTables", {
|
|
20
20
|
* database: "test_db",
|
|
21
21
|
* objectType: "table",
|
|
22
22
|
* owner: "db_owner",
|
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("
|
|
12
|
+
* const myExtension = new postgresql.Extension("myExtension", {});
|
|
13
13
|
* ```
|
|
14
14
|
*/
|
|
15
15
|
export declare class Extension extends pulumi.CustomResource {
|
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("
|
|
18
|
+
* const myExtension = new postgresql.Extension("myExtension", {});
|
|
19
19
|
* ```
|
|
20
20
|
*/
|
|
21
21
|
class Extension extends pulumi.CustomResource {
|
package/function.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
-
import
|
|
2
|
+
import * as inputs from "./types/input";
|
|
3
|
+
import * as outputs from "./types/output";
|
|
3
4
|
/**
|
|
4
5
|
* The ``postgresql.Function`` resource creates and manages a function on a PostgreSQL
|
|
5
6
|
* server.
|
|
@@ -20,6 +21,7 @@ import { input as inputs, output as outputs } from "./types";
|
|
|
20
21
|
* RETURN i + 1;
|
|
21
22
|
* END;
|
|
22
23
|
* $ LANGUAGE plpgsql;
|
|
24
|
+
*
|
|
23
25
|
* `,
|
|
24
26
|
* returns: "integer",
|
|
25
27
|
* });
|
package/function.js
CHANGED
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;
|
|
1
|
+
{"version":3,"file":"function.js","sourceRoot":"","sources":["../function.ts"],"names":[],"mappings":";AAAA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,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,QAAQ,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC7D,CAAC;;AAhGL,4BAiGC;AAnFG,gBAAgB;AACO,qBAAY,GAAG,oCAAoC,CAAC"}
|
package/grant.d.ts
CHANGED
|
@@ -12,7 +12,7 @@ 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 readonlyTables = new postgresql.Grant("
|
|
15
|
+
* const readonlyTables = new postgresql.Grant("readonlyTables", {
|
|
16
16
|
* database: "test_db",
|
|
17
17
|
* objectType: "table",
|
|
18
18
|
* objects: [
|
|
@@ -33,7 +33,7 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
33
33
|
* import * as pulumi from "@pulumi/pulumi";
|
|
34
34
|
* import * as postgresql from "@pulumi/postgresql";
|
|
35
35
|
*
|
|
36
|
-
* const revokePublic = new postgresql.Grant("
|
|
36
|
+
* const revokePublic = new postgresql.Grant("revokePublic", {
|
|
37
37
|
* database: "test_db",
|
|
38
38
|
* objectType: "schema",
|
|
39
39
|
* privileges: [],
|
package/grant.js
CHANGED
|
@@ -18,7 +18,7 @@ const utilities = require("./utilities");
|
|
|
18
18
|
* import * as pulumi from "@pulumi/pulumi";
|
|
19
19
|
* import * as postgresql from "@pulumi/postgresql";
|
|
20
20
|
*
|
|
21
|
-
* const readonlyTables = new postgresql.Grant("
|
|
21
|
+
* const readonlyTables = new postgresql.Grant("readonlyTables", {
|
|
22
22
|
* database: "test_db",
|
|
23
23
|
* objectType: "table",
|
|
24
24
|
* objects: [
|
|
@@ -39,7 +39,7 @@ const utilities = require("./utilities");
|
|
|
39
39
|
* import * as pulumi from "@pulumi/pulumi";
|
|
40
40
|
* import * as postgresql from "@pulumi/postgresql";
|
|
41
41
|
*
|
|
42
|
-
* const revokePublic = new postgresql.Grant("
|
|
42
|
+
* const revokePublic = new postgresql.Grant("revokePublic", {
|
|
43
43
|
* database: "test_db",
|
|
44
44
|
* objectType: "schema",
|
|
45
45
|
* privileges: [],
|
package/index.d.ts
CHANGED
|
@@ -1,16 +1,51 @@
|
|
|
1
|
-
export
|
|
2
|
-
export
|
|
3
|
-
export
|
|
4
|
-
export
|
|
5
|
-
export
|
|
6
|
-
export
|
|
7
|
-
export
|
|
8
|
-
export
|
|
9
|
-
export
|
|
10
|
-
export
|
|
11
|
-
export
|
|
12
|
-
export
|
|
13
|
-
export
|
|
1
|
+
export { DatabaseArgs, DatabaseState } from "./database";
|
|
2
|
+
export type Database = import("./database").Database;
|
|
3
|
+
export declare const Database: typeof import("./database").Database;
|
|
4
|
+
export { DefaultPrivilegArgs, DefaultPrivilegState } from "./defaultPrivileg";
|
|
5
|
+
export type DefaultPrivileg = import("./defaultPrivileg").DefaultPrivileg;
|
|
6
|
+
export declare const DefaultPrivileg: typeof import("./defaultPrivileg").DefaultPrivileg;
|
|
7
|
+
export { DefaultPrivilegesArgs, DefaultPrivilegesState } from "./defaultPrivileges";
|
|
8
|
+
export type DefaultPrivileges = import("./defaultPrivileges").DefaultPrivileges;
|
|
9
|
+
export declare const DefaultPrivileges: typeof import("./defaultPrivileges").DefaultPrivileges;
|
|
10
|
+
export { ExtensionArgs, ExtensionState } from "./extension";
|
|
11
|
+
export type Extension = import("./extension").Extension;
|
|
12
|
+
export declare const Extension: typeof import("./extension").Extension;
|
|
13
|
+
export { FunctionArgs, FunctionState } from "./function";
|
|
14
|
+
export type Function = import("./function").Function;
|
|
15
|
+
export declare const Function: typeof import("./function").Function;
|
|
16
|
+
export { GrantArgs, GrantState } from "./grant";
|
|
17
|
+
export type Grant = import("./grant").Grant;
|
|
18
|
+
export declare const Grant: typeof import("./grant").Grant;
|
|
19
|
+
export { GrantRoleArgs, GrantRoleState } from "./grantRole";
|
|
20
|
+
export type GrantRole = import("./grantRole").GrantRole;
|
|
21
|
+
export declare const GrantRole: typeof import("./grantRole").GrantRole;
|
|
22
|
+
export { PhysicalReplicationSlotArgs, PhysicalReplicationSlotState } from "./physicalReplicationSlot";
|
|
23
|
+
export type PhysicalReplicationSlot = import("./physicalReplicationSlot").PhysicalReplicationSlot;
|
|
24
|
+
export declare const PhysicalReplicationSlot: typeof import("./physicalReplicationSlot").PhysicalReplicationSlot;
|
|
25
|
+
export { ProviderArgs } from "./provider";
|
|
26
|
+
export type Provider = import("./provider").Provider;
|
|
27
|
+
export declare const Provider: typeof import("./provider").Provider;
|
|
28
|
+
export { PublicationArgs, PublicationState } from "./publication";
|
|
29
|
+
export type Publication = import("./publication").Publication;
|
|
30
|
+
export declare const Publication: typeof import("./publication").Publication;
|
|
31
|
+
export { ReplicationSlotArgs, ReplicationSlotState } from "./replicationSlot";
|
|
32
|
+
export type ReplicationSlot = import("./replicationSlot").ReplicationSlot;
|
|
33
|
+
export declare const ReplicationSlot: typeof import("./replicationSlot").ReplicationSlot;
|
|
34
|
+
export { RoleArgs, RoleState } from "./role";
|
|
35
|
+
export type Role = import("./role").Role;
|
|
36
|
+
export declare const Role: typeof import("./role").Role;
|
|
37
|
+
export { SchemaArgs, SchemaState } from "./schema";
|
|
38
|
+
export type Schema = import("./schema").Schema;
|
|
39
|
+
export declare const Schema: typeof import("./schema").Schema;
|
|
40
|
+
export { ServerArgs, ServerState } from "./server";
|
|
41
|
+
export type Server = import("./server").Server;
|
|
42
|
+
export declare const Server: typeof import("./server").Server;
|
|
43
|
+
export { SubscriptionArgs, SubscriptionState } from "./subscription";
|
|
44
|
+
export type Subscription = import("./subscription").Subscription;
|
|
45
|
+
export declare const Subscription: typeof import("./subscription").Subscription;
|
|
46
|
+
export { UserMappingArgs, UserMappingState } from "./userMapping";
|
|
47
|
+
export type UserMapping = import("./userMapping").UserMapping;
|
|
48
|
+
export declare const UserMapping: typeof import("./userMapping").UserMapping;
|
|
14
49
|
import * as config from "./config";
|
|
15
50
|
import * as types from "./types";
|
|
16
51
|
export { config, types, };
|
package/index.js
CHANGED
|
@@ -1,84 +1,81 @@
|
|
|
1
1
|
"use strict";
|
|
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
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
5
|
-
if (k2 === undefined) k2 = k;
|
|
6
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
7
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
8
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
9
|
-
}
|
|
10
|
-
Object.defineProperty(o, k2, desc);
|
|
11
|
-
}) : (function(o, m, k, k2) {
|
|
12
|
-
if (k2 === undefined) k2 = k;
|
|
13
|
-
o[k2] = m[k];
|
|
14
|
-
}));
|
|
15
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
16
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
17
|
-
};
|
|
18
4
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
19
|
-
exports.types = exports.config = void 0;
|
|
5
|
+
exports.types = exports.config = exports.UserMapping = exports.Subscription = exports.Server = exports.Schema = exports.Role = exports.ReplicationSlot = exports.Publication = exports.Provider = exports.PhysicalReplicationSlot = exports.GrantRole = exports.Grant = exports.Function = exports.Extension = exports.DefaultPrivileges = exports.DefaultPrivileg = exports.Database = void 0;
|
|
20
6
|
const pulumi = require("@pulumi/pulumi");
|
|
21
7
|
const utilities = require("./utilities");
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
8
|
+
exports.Database = null;
|
|
9
|
+
utilities.lazyLoad(exports, ["Database"], () => require("./database"));
|
|
10
|
+
exports.DefaultPrivileg = null;
|
|
11
|
+
utilities.lazyLoad(exports, ["DefaultPrivileg"], () => require("./defaultPrivileg"));
|
|
12
|
+
exports.DefaultPrivileges = null;
|
|
13
|
+
utilities.lazyLoad(exports, ["DefaultPrivileges"], () => require("./defaultPrivileges"));
|
|
14
|
+
exports.Extension = null;
|
|
15
|
+
utilities.lazyLoad(exports, ["Extension"], () => require("./extension"));
|
|
16
|
+
exports.Function = null;
|
|
17
|
+
utilities.lazyLoad(exports, ["Function"], () => require("./function"));
|
|
18
|
+
exports.Grant = null;
|
|
19
|
+
utilities.lazyLoad(exports, ["Grant"], () => require("./grant"));
|
|
20
|
+
exports.GrantRole = null;
|
|
21
|
+
utilities.lazyLoad(exports, ["GrantRole"], () => require("./grantRole"));
|
|
22
|
+
exports.PhysicalReplicationSlot = null;
|
|
23
|
+
utilities.lazyLoad(exports, ["PhysicalReplicationSlot"], () => require("./physicalReplicationSlot"));
|
|
24
|
+
exports.Provider = null;
|
|
25
|
+
utilities.lazyLoad(exports, ["Provider"], () => require("./provider"));
|
|
26
|
+
exports.Publication = null;
|
|
27
|
+
utilities.lazyLoad(exports, ["Publication"], () => require("./publication"));
|
|
28
|
+
exports.ReplicationSlot = null;
|
|
29
|
+
utilities.lazyLoad(exports, ["ReplicationSlot"], () => require("./replicationSlot"));
|
|
30
|
+
exports.Role = null;
|
|
31
|
+
utilities.lazyLoad(exports, ["Role"], () => require("./role"));
|
|
32
|
+
exports.Schema = null;
|
|
33
|
+
utilities.lazyLoad(exports, ["Schema"], () => require("./schema"));
|
|
34
|
+
exports.Server = null;
|
|
35
|
+
utilities.lazyLoad(exports, ["Server"], () => require("./server"));
|
|
36
|
+
exports.Subscription = null;
|
|
37
|
+
utilities.lazyLoad(exports, ["Subscription"], () => require("./subscription"));
|
|
38
|
+
exports.UserMapping = null;
|
|
39
|
+
utilities.lazyLoad(exports, ["UserMapping"], () => require("./userMapping"));
|
|
36
40
|
// Export sub-modules:
|
|
37
41
|
const config = require("./config");
|
|
38
42
|
exports.config = config;
|
|
39
43
|
const types = require("./types");
|
|
40
44
|
exports.types = types;
|
|
41
|
-
// Import resources to register:
|
|
42
|
-
const database_1 = require("./database");
|
|
43
|
-
const defaultPrivileg_1 = require("./defaultPrivileg");
|
|
44
|
-
const defaultPrivileges_1 = require("./defaultPrivileges");
|
|
45
|
-
const extension_1 = require("./extension");
|
|
46
|
-
const function_1 = require("./function");
|
|
47
|
-
const grant_1 = require("./grant");
|
|
48
|
-
const grantRole_1 = require("./grantRole");
|
|
49
|
-
const physicalReplicationSlot_1 = require("./physicalReplicationSlot");
|
|
50
|
-
const publication_1 = require("./publication");
|
|
51
|
-
const replicationSlot_1 = require("./replicationSlot");
|
|
52
|
-
const role_1 = require("./role");
|
|
53
|
-
const schema_1 = require("./schema");
|
|
54
45
|
const _module = {
|
|
55
46
|
version: utilities.getVersion(),
|
|
56
47
|
construct: (name, type, urn) => {
|
|
57
48
|
switch (type) {
|
|
58
49
|
case "postgresql:index/database:Database":
|
|
59
|
-
return new
|
|
50
|
+
return new exports.Database(name, undefined, { urn });
|
|
60
51
|
case "postgresql:index/defaultPrivileg:DefaultPrivileg":
|
|
61
|
-
return new
|
|
52
|
+
return new exports.DefaultPrivileg(name, undefined, { urn });
|
|
62
53
|
case "postgresql:index/defaultPrivileges:DefaultPrivileges":
|
|
63
|
-
return new
|
|
54
|
+
return new exports.DefaultPrivileges(name, undefined, { urn });
|
|
64
55
|
case "postgresql:index/extension:Extension":
|
|
65
|
-
return new
|
|
56
|
+
return new exports.Extension(name, undefined, { urn });
|
|
66
57
|
case "postgresql:index/function:Function":
|
|
67
|
-
return new
|
|
58
|
+
return new exports.Function(name, undefined, { urn });
|
|
68
59
|
case "postgresql:index/grant:Grant":
|
|
69
|
-
return new
|
|
60
|
+
return new exports.Grant(name, undefined, { urn });
|
|
70
61
|
case "postgresql:index/grantRole:GrantRole":
|
|
71
|
-
return new
|
|
62
|
+
return new exports.GrantRole(name, undefined, { urn });
|
|
72
63
|
case "postgresql:index/physicalReplicationSlot:PhysicalReplicationSlot":
|
|
73
|
-
return new
|
|
64
|
+
return new exports.PhysicalReplicationSlot(name, undefined, { urn });
|
|
74
65
|
case "postgresql:index/publication:Publication":
|
|
75
|
-
return new
|
|
66
|
+
return new exports.Publication(name, undefined, { urn });
|
|
76
67
|
case "postgresql:index/replicationSlot:ReplicationSlot":
|
|
77
|
-
return new
|
|
68
|
+
return new exports.ReplicationSlot(name, undefined, { urn });
|
|
78
69
|
case "postgresql:index/role:Role":
|
|
79
|
-
return new
|
|
70
|
+
return new exports.Role(name, undefined, { urn });
|
|
80
71
|
case "postgresql:index/schema:Schema":
|
|
81
|
-
return new
|
|
72
|
+
return new exports.Schema(name, undefined, { urn });
|
|
73
|
+
case "postgresql:index/server:Server":
|
|
74
|
+
return new exports.Server(name, undefined, { urn });
|
|
75
|
+
case "postgresql:index/subscription:Subscription":
|
|
76
|
+
return new exports.Subscription(name, undefined, { urn });
|
|
77
|
+
case "postgresql:index/userMapping:UserMapping":
|
|
78
|
+
return new exports.UserMapping(name, undefined, { urn });
|
|
82
79
|
default:
|
|
83
80
|
throw new Error(`unknown resource type ${type}`);
|
|
84
81
|
}
|
|
@@ -96,14 +93,16 @@ pulumi.runtime.registerResourceModule("postgresql", "index/publication", _module
|
|
|
96
93
|
pulumi.runtime.registerResourceModule("postgresql", "index/replicationSlot", _module);
|
|
97
94
|
pulumi.runtime.registerResourceModule("postgresql", "index/role", _module);
|
|
98
95
|
pulumi.runtime.registerResourceModule("postgresql", "index/schema", _module);
|
|
99
|
-
|
|
96
|
+
pulumi.runtime.registerResourceModule("postgresql", "index/server", _module);
|
|
97
|
+
pulumi.runtime.registerResourceModule("postgresql", "index/subscription", _module);
|
|
98
|
+
pulumi.runtime.registerResourceModule("postgresql", "index/userMapping", _module);
|
|
100
99
|
pulumi.runtime.registerResourcePackage("postgresql", {
|
|
101
100
|
version: utilities.getVersion(),
|
|
102
101
|
constructProvider: (name, type, urn) => {
|
|
103
102
|
if (type !== "pulumi:providers:postgresql") {
|
|
104
103
|
throw new Error(`unknown provider type ${type}`);
|
|
105
104
|
}
|
|
106
|
-
return new
|
|
105
|
+
return new exports.Provider(name, undefined, { urn });
|
|
107
106
|
},
|
|
108
107
|
});
|
|
109
108
|
//# sourceMappingURL=index.js.map
|
package/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAK5B,QAAA,QAAQ,GAAyC,IAAW,CAAC;AAC1E,SAAS,CAAC,QAAQ,CAAC,OAAO,EAAE,CAAC,UAAU,CAAC,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,YAAY,CAAC,CAAC,CAAC;AAI1D,QAAA,eAAe,GAAuD,IAAW,CAAC;AAC/F,SAAS,CAAC,QAAQ,CAAC,OAAO,EAAE,CAAC,iBAAiB,CAAC,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,mBAAmB,CAAC,CAAC,CAAC;AAIxE,QAAA,iBAAiB,GAA2D,IAAW,CAAC;AACrG,SAAS,CAAC,QAAQ,CAAC,OAAO,EAAE,CAAC,mBAAmB,CAAC,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,qBAAqB,CAAC,CAAC,CAAC;AAI5E,QAAA,SAAS,GAA2C,IAAW,CAAC;AAC7E,SAAS,CAAC,QAAQ,CAAC,OAAO,EAAE,CAAC,WAAW,CAA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CAAA;AAC1E,MAAM,CAAC,OAAO,CAAC,sBAAsB,CAAC,YAAY,EAAE,cAAc,EAAE,OAAO,CAAC,CAAA;AAC5E,MAAM,CAAC,OAAO,CAAC,sBAAsB,CAAC,YAAY,EAAE,cAAc,EAAE,OAAO,CAAC,CAAA;AAC5E,MAAM,CAAC,OAAO,CAAC,sBAAsB,CAAC,YAAY,EAAE,oBAAoB,EAAE,OAAO,CAAC,CAAA;AAClF,MAAM,CAAC,OAAO,CAAC,sBAAsB,CAAC,YAAY,EAAE,mBAAmB,EAAE,OAAO,CAAC,CAAA;AACjF,MAAM,CAAC,OAAO,CAAC,uBAAuB,CAAC,YAAY,EAAE;IACjD,OAAO,EAAE,SAAS,CAAC,UAAU,EAAE;IAC/B,iBAAiB,EAAE,CAAC,IAAY,EAAE,IAAY,EAAE,GAAW,EAA2B,EAAE;QACpF,IAAI,IAAI,KAAK,6BAA6B,EAAE;YACxC,MAAM,IAAI,KAAK,CAAC,yBAAyB,IAAI,EAAE,CAAC,CAAC;SACpD;QACD,OAAO,IAAI,gBAAQ,CAAC,IAAI,EAAO,SAAS,EAAE,EAAE,GAAG,EAAE,CAAC,CAAC;IACvD,CAAC;CACJ,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pulumi/postgresql",
|
|
3
|
-
"version": "v3.7.0
|
|
3
|
+
"version": "v3.7.0",
|
|
4
4
|
"description": "A Pulumi package for creating and managing postgresql cloud resources.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"pulumi",
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"license": "Apache-2.0",
|
|
12
12
|
"scripts": {
|
|
13
13
|
"build": "tsc",
|
|
14
|
-
"install": "node scripts/install-pulumi-plugin.js resource postgresql v3.7.0
|
|
14
|
+
"install": "node scripts/install-pulumi-plugin.js resource postgresql v3.7.0"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
17
|
"@pulumi/pulumi": "^3.0.0"
|
package/package.json.dev
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pulumi/postgresql",
|
|
3
|
-
"version": "v3.7.0
|
|
3
|
+
"version": "v3.7.0",
|
|
4
4
|
"description": "A Pulumi package for creating and managing postgresql cloud resources.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"pulumi",
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"license": "Apache-2.0",
|
|
12
12
|
"scripts": {
|
|
13
13
|
"build": "tsc",
|
|
14
|
-
"install": "node scripts/install-pulumi-plugin.js resource postgresql v3.7.0
|
|
14
|
+
"install": "node scripts/install-pulumi-plugin.js resource postgresql v3.7.0"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
17
|
"@pulumi/pulumi": "^3.0.0"
|
|
@@ -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("
|
|
13
|
+
* const mySlot = new postgresql.PhysicalReplicationSlot("mySlot", {});
|
|
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("
|
|
19
|
+
* const mySlot = new postgresql.PhysicalReplicationSlot("mySlot", {});
|
|
20
20
|
* ```
|
|
21
21
|
*/
|
|
22
22
|
class PhysicalReplicationSlot extends pulumi.CustomResource {
|
package/provider.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
-
import
|
|
2
|
+
import * as inputs from "./types/input";
|
|
3
3
|
/**
|
|
4
4
|
* The provider type for the postgresql package. By default, resources use package-wide configuration
|
|
5
5
|
* settings, however an explicit `Provider` instance may be created and passed during resource
|
|
@@ -16,6 +16,10 @@ export declare class Provider extends pulumi.ProviderResource {
|
|
|
16
16
|
* AWS profile to use for IAM auth
|
|
17
17
|
*/
|
|
18
18
|
readonly awsRdsIamProfile: pulumi.Output<string | undefined>;
|
|
19
|
+
/**
|
|
20
|
+
* AWS region to use for IAM auth
|
|
21
|
+
*/
|
|
22
|
+
readonly awsRdsIamRegion: pulumi.Output<string | undefined>;
|
|
19
23
|
/**
|
|
20
24
|
* The name of the database to connect to in order to conenct to (defaults to `postgres`).
|
|
21
25
|
*/
|
|
@@ -76,6 +80,10 @@ export interface ProviderArgs {
|
|
|
76
80
|
* AWS profile to use for IAM auth
|
|
77
81
|
*/
|
|
78
82
|
awsRdsIamProfile?: pulumi.Input<string>;
|
|
83
|
+
/**
|
|
84
|
+
* AWS region to use for IAM auth
|
|
85
|
+
*/
|
|
86
|
+
awsRdsIamRegion?: pulumi.Input<string>;
|
|
79
87
|
/**
|
|
80
88
|
* SSL client certificate if required by the database.
|
|
81
89
|
*/
|
package/provider.js
CHANGED
|
@@ -36,6 +36,7 @@ class Provider extends pulumi.ProviderResource {
|
|
|
36
36
|
{
|
|
37
37
|
resourceInputs["awsRdsIamAuth"] = pulumi.output(args ? args.awsRdsIamAuth : undefined).apply(JSON.stringify);
|
|
38
38
|
resourceInputs["awsRdsIamProfile"] = args ? args.awsRdsIamProfile : undefined;
|
|
39
|
+
resourceInputs["awsRdsIamRegion"] = args ? args.awsRdsIamRegion : undefined;
|
|
39
40
|
resourceInputs["clientcert"] = pulumi.output(args ? args.clientcert : undefined).apply(JSON.stringify);
|
|
40
41
|
resourceInputs["connectTimeout"] = pulumi.output((_a = (args ? args.connectTimeout : undefined)) !== null && _a !== void 0 ? _a : (utilities.getEnvNumber("PGCONNECT_TIMEOUT") || 180)).apply(JSON.stringify);
|
|
41
42
|
resourceInputs["database"] = args ? args.database : undefined;
|
|
@@ -43,7 +44,7 @@ class Provider extends pulumi.ProviderResource {
|
|
|
43
44
|
resourceInputs["expectedVersion"] = args ? args.expectedVersion : undefined;
|
|
44
45
|
resourceInputs["host"] = args ? args.host : undefined;
|
|
45
46
|
resourceInputs["maxConnections"] = pulumi.output(args ? args.maxConnections : undefined).apply(JSON.stringify);
|
|
46
|
-
resourceInputs["password"] = args ? args.password : undefined;
|
|
47
|
+
resourceInputs["password"] = (args === null || args === void 0 ? void 0 : args.password) ? pulumi.secret(args.password) : undefined;
|
|
47
48
|
resourceInputs["port"] = pulumi.output(args ? args.port : undefined).apply(JSON.stringify);
|
|
48
49
|
resourceInputs["scheme"] = args ? args.scheme : undefined;
|
|
49
50
|
resourceInputs["sslMode"] = args ? args.sslMode : undefined;
|
|
@@ -53,6 +54,8 @@ class Provider extends pulumi.ProviderResource {
|
|
|
53
54
|
resourceInputs["username"] = args ? args.username : undefined;
|
|
54
55
|
}
|
|
55
56
|
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
57
|
+
const secretOpts = { additionalSecretOutputs: ["password"] };
|
|
58
|
+
opts = pulumi.mergeOptions(opts, secretOpts);
|
|
56
59
|
super(Provider.__pulumiType, name, resourceInputs, opts);
|
|
57
60
|
}
|
|
58
61
|
}
|
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;
|
|
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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