@pulumi/postgresql 3.7.0-alpha.1678129657 → 3.7.0-alpha.1679074220
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/publication.d.ts
CHANGED
|
@@ -9,12 +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 publication = new postgresql.Publication("publication", {
|
|
13
|
-
*
|
|
14
|
-
*
|
|
15
|
-
*
|
|
16
|
-
* ],
|
|
17
|
-
* });
|
|
12
|
+
* const publication = new postgresql.Publication("publication", {tables: [
|
|
13
|
+
* "public.test",
|
|
14
|
+
* "another_schema.test",
|
|
15
|
+
* ]});
|
|
18
16
|
* ```
|
|
19
17
|
*/
|
|
20
18
|
export declare class Publication extends pulumi.CustomResource {
|
package/publication.js
CHANGED
|
@@ -15,12 +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 publication = new postgresql.Publication("publication", {
|
|
19
|
-
*
|
|
20
|
-
*
|
|
21
|
-
*
|
|
22
|
-
* ],
|
|
23
|
-
* });
|
|
18
|
+
* const publication = new postgresql.Publication("publication", {tables: [
|
|
19
|
+
* "public.test",
|
|
20
|
+
* "another_schema.test",
|
|
21
|
+
* ]});
|
|
24
22
|
* ```
|
|
25
23
|
*/
|
|
26
24
|
class Publication extends pulumi.CustomResource {
|
package/publication.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"publication.js","sourceRoot":"","sources":["../publication.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC
|
|
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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Y,GAAG,0CAA0C,CAAC"}
|
package/replicationSlot.d.ts
CHANGED
|
@@ -9,9 +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 mySlot = new postgresql.ReplicationSlot("
|
|
13
|
-
* plugin: "test_decoding",
|
|
14
|
-
* });
|
|
12
|
+
* const mySlot = new postgresql.ReplicationSlot("mySlot", {plugin: "test_decoding"});
|
|
15
13
|
* ```
|
|
16
14
|
*/
|
|
17
15
|
export declare class ReplicationSlot extends pulumi.CustomResource {
|
package/replicationSlot.js
CHANGED
|
@@ -15,9 +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 mySlot = new postgresql.ReplicationSlot("
|
|
19
|
-
* plugin: "test_decoding",
|
|
20
|
-
* });
|
|
18
|
+
* const mySlot = new postgresql.ReplicationSlot("mySlot", {plugin: "test_decoding"});
|
|
21
19
|
* ```
|
|
22
20
|
*/
|
|
23
21
|
class ReplicationSlot extends pulumi.CustomResource {
|
package/replicationSlot.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"replicationSlot.js","sourceRoot":"","sources":["../replicationSlot.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC
|
|
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,GAAG,CAAC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D,cAAc,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC;YACtD,cAAc,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,eAAe,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACpE,CAAC;;AApEL,0CAqEC;AAvDG,gBAAgB;AACO,4BAAY,GAAG,kDAAkD,CAAC"}
|
package/role.js
CHANGED
|
@@ -67,7 +67,7 @@ class Role extends pulumi.CustomResource {
|
|
|
67
67
|
resourceInputs["inherit"] = args ? args.inherit : undefined;
|
|
68
68
|
resourceInputs["login"] = args ? args.login : undefined;
|
|
69
69
|
resourceInputs["name"] = args ? args.name : undefined;
|
|
70
|
-
resourceInputs["password"] = args ? args.password : undefined;
|
|
70
|
+
resourceInputs["password"] = (args === null || args === void 0 ? void 0 : args.password) ? pulumi.secret(args.password) : undefined;
|
|
71
71
|
resourceInputs["replication"] = args ? args.replication : undefined;
|
|
72
72
|
resourceInputs["roles"] = args ? args.roles : undefined;
|
|
73
73
|
resourceInputs["searchPaths"] = args ? args.searchPaths : undefined;
|
|
@@ -78,6 +78,8 @@ class Role extends pulumi.CustomResource {
|
|
|
78
78
|
resourceInputs["validUntil"] = args ? args.validUntil : undefined;
|
|
79
79
|
}
|
|
80
80
|
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
81
|
+
const secretOpts = { additionalSecretOutputs: ["password"] };
|
|
82
|
+
opts = pulumi.mergeOptions(opts, secretOpts);
|
|
81
83
|
super(Role.__pulumiType, name, resourceInputs, opts);
|
|
82
84
|
}
|
|
83
85
|
}
|
package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AAG,EAAE,uBAAuB,EAAE,CAAC,UAAU,CAAC,EAAE,CAAC;QAC7D,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;;AA/ML,oBAgNC;AAlMG,gBAAgB;AACO,iBAAY,GAAG,4BAA4B,CAAC"}
|
package/schema.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
|
export declare class Schema extends pulumi.CustomResource {
|
|
4
5
|
/**
|
|
5
6
|
* 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,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;
|
|
1
|
+
{"version":3,"file":"schema.js","sourceRoot":"","sources":["../schema.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,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,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IAC7D,CAAC;IAKD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,EAAE;YACnC,OAAO,KAAK,CAAC;SAChB;QACD,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CAAC,CAAC,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC,SAAS,CAAC;YACpE,cAAc,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC;YACtD,cAAc,CAAC,OAAO,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS,CAAC;YACxD,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,KAAK,CAAC,MAAM,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC3D,CAAC;;AAvFL,wBAwFC;AA1EG,gBAAgB;AACO,mBAAY,GAAG,gCAAgC,CAAC"}
|
package/server.d.ts
ADDED
|
@@ -0,0 +1,180 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
/**
|
|
3
|
+
* The ``postgresql.Server`` resource creates and manages a foreign server on a PostgreSQL server.
|
|
4
|
+
*
|
|
5
|
+
* ## Usage
|
|
6
|
+
*
|
|
7
|
+
* ```typescript
|
|
8
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
9
|
+
* import * as postgresql from "@pulumi/postgresql";
|
|
10
|
+
*
|
|
11
|
+
* const extPostgresFdw = new postgresql.Extension("extPostgresFdw", {});
|
|
12
|
+
* const myserverPostgres = new postgresql.Server("myserverPostgres", {
|
|
13
|
+
* serverName: "myserver_postgres",
|
|
14
|
+
* fdwName: "postgres_fdw",
|
|
15
|
+
* options: {
|
|
16
|
+
* host: "foo",
|
|
17
|
+
* dbname: "foodb",
|
|
18
|
+
* port: "5432",
|
|
19
|
+
* },
|
|
20
|
+
* }, {
|
|
21
|
+
* dependsOn: [extPostgresFdw],
|
|
22
|
+
* });
|
|
23
|
+
* ```
|
|
24
|
+
*
|
|
25
|
+
* ```typescript
|
|
26
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
27
|
+
* import * as postgresql from "@pulumi/postgresql";
|
|
28
|
+
*
|
|
29
|
+
* const extFileFdw = new postgresql.Extension("extFileFdw", {});
|
|
30
|
+
* const myserverFile = new postgresql.Server("myserverFile", {
|
|
31
|
+
* serverName: "myserver_file",
|
|
32
|
+
* fdwName: "file_fdw",
|
|
33
|
+
* }, {
|
|
34
|
+
* dependsOn: [extFileFdw],
|
|
35
|
+
* });
|
|
36
|
+
* ```
|
|
37
|
+
*/
|
|
38
|
+
export declare class Server extends pulumi.CustomResource {
|
|
39
|
+
/**
|
|
40
|
+
* Get an existing Server resource's state with the given name, ID, and optional extra
|
|
41
|
+
* properties used to qualify the lookup.
|
|
42
|
+
*
|
|
43
|
+
* @param name The _unique_ name of the resulting resource.
|
|
44
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
45
|
+
* @param state Any extra arguments used during the lookup.
|
|
46
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
47
|
+
*/
|
|
48
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: ServerState, opts?: pulumi.CustomResourceOptions): Server;
|
|
49
|
+
/**
|
|
50
|
+
* Returns true if the given object is an instance of Server. This is designed to work even
|
|
51
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
52
|
+
*/
|
|
53
|
+
static isInstance(obj: any): obj is Server;
|
|
54
|
+
/**
|
|
55
|
+
* When true, will drop objects that depend on the server (such as user mappings), and in turn all objects that depend on those objects . (Default: false)
|
|
56
|
+
*/
|
|
57
|
+
readonly dropCascade: pulumi.Output<boolean | undefined>;
|
|
58
|
+
/**
|
|
59
|
+
* The name of the foreign-data wrapper that manages the server.
|
|
60
|
+
* Changing this value
|
|
61
|
+
* will force the creation of a new resource as this value can only be set
|
|
62
|
+
* when the foreign server is created.
|
|
63
|
+
*/
|
|
64
|
+
readonly fdwName: pulumi.Output<string>;
|
|
65
|
+
/**
|
|
66
|
+
* This clause specifies the options for the server. The options typically define the connection details of the server, but the actual names and values are dependent on the server's foreign-data wrapper.
|
|
67
|
+
*/
|
|
68
|
+
readonly options: pulumi.Output<{
|
|
69
|
+
[key: string]: string;
|
|
70
|
+
} | undefined>;
|
|
71
|
+
/**
|
|
72
|
+
* The name of the foreign server to be created.
|
|
73
|
+
*/
|
|
74
|
+
readonly serverName: pulumi.Output<string>;
|
|
75
|
+
/**
|
|
76
|
+
* By default, the user who defines the server becomes its owner. Set this value to configure the new owner of the foreign server.
|
|
77
|
+
*/
|
|
78
|
+
readonly serverOwner: pulumi.Output<string>;
|
|
79
|
+
/**
|
|
80
|
+
* Optional server type, potentially useful to foreign-data wrappers.
|
|
81
|
+
* Changing this value
|
|
82
|
+
* will force the creation of a new resource as this value can only be set
|
|
83
|
+
* when the foreign server is created.
|
|
84
|
+
*/
|
|
85
|
+
readonly serverType: pulumi.Output<string | undefined>;
|
|
86
|
+
/**
|
|
87
|
+
* Optional server version, potentially useful to foreign-data wrappers.
|
|
88
|
+
*/
|
|
89
|
+
readonly serverVersion: pulumi.Output<string | undefined>;
|
|
90
|
+
/**
|
|
91
|
+
* Create a Server resource with the given unique name, arguments, and options.
|
|
92
|
+
*
|
|
93
|
+
* @param name The _unique_ name of the resource.
|
|
94
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
95
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
96
|
+
*/
|
|
97
|
+
constructor(name: string, args: ServerArgs, opts?: pulumi.CustomResourceOptions);
|
|
98
|
+
}
|
|
99
|
+
/**
|
|
100
|
+
* Input properties used for looking up and filtering Server resources.
|
|
101
|
+
*/
|
|
102
|
+
export interface ServerState {
|
|
103
|
+
/**
|
|
104
|
+
* When true, will drop objects that depend on the server (such as user mappings), and in turn all objects that depend on those objects . (Default: false)
|
|
105
|
+
*/
|
|
106
|
+
dropCascade?: pulumi.Input<boolean>;
|
|
107
|
+
/**
|
|
108
|
+
* The name of the foreign-data wrapper that manages the server.
|
|
109
|
+
* Changing this value
|
|
110
|
+
* will force the creation of a new resource as this value can only be set
|
|
111
|
+
* when the foreign server is created.
|
|
112
|
+
*/
|
|
113
|
+
fdwName?: pulumi.Input<string>;
|
|
114
|
+
/**
|
|
115
|
+
* This clause specifies the options for the server. The options typically define the connection details of the server, but the actual names and values are dependent on the server's foreign-data wrapper.
|
|
116
|
+
*/
|
|
117
|
+
options?: pulumi.Input<{
|
|
118
|
+
[key: string]: pulumi.Input<string>;
|
|
119
|
+
}>;
|
|
120
|
+
/**
|
|
121
|
+
* The name of the foreign server to be created.
|
|
122
|
+
*/
|
|
123
|
+
serverName?: pulumi.Input<string>;
|
|
124
|
+
/**
|
|
125
|
+
* By default, the user who defines the server becomes its owner. Set this value to configure the new owner of the foreign server.
|
|
126
|
+
*/
|
|
127
|
+
serverOwner?: pulumi.Input<string>;
|
|
128
|
+
/**
|
|
129
|
+
* Optional server type, potentially useful to foreign-data wrappers.
|
|
130
|
+
* Changing this value
|
|
131
|
+
* will force the creation of a new resource as this value can only be set
|
|
132
|
+
* when the foreign server is created.
|
|
133
|
+
*/
|
|
134
|
+
serverType?: pulumi.Input<string>;
|
|
135
|
+
/**
|
|
136
|
+
* Optional server version, potentially useful to foreign-data wrappers.
|
|
137
|
+
*/
|
|
138
|
+
serverVersion?: pulumi.Input<string>;
|
|
139
|
+
}
|
|
140
|
+
/**
|
|
141
|
+
* The set of arguments for constructing a Server resource.
|
|
142
|
+
*/
|
|
143
|
+
export interface ServerArgs {
|
|
144
|
+
/**
|
|
145
|
+
* When true, will drop objects that depend on the server (such as user mappings), and in turn all objects that depend on those objects . (Default: false)
|
|
146
|
+
*/
|
|
147
|
+
dropCascade?: pulumi.Input<boolean>;
|
|
148
|
+
/**
|
|
149
|
+
* The name of the foreign-data wrapper that manages the server.
|
|
150
|
+
* Changing this value
|
|
151
|
+
* will force the creation of a new resource as this value can only be set
|
|
152
|
+
* when the foreign server is created.
|
|
153
|
+
*/
|
|
154
|
+
fdwName: pulumi.Input<string>;
|
|
155
|
+
/**
|
|
156
|
+
* This clause specifies the options for the server. The options typically define the connection details of the server, but the actual names and values are dependent on the server's foreign-data wrapper.
|
|
157
|
+
*/
|
|
158
|
+
options?: pulumi.Input<{
|
|
159
|
+
[key: string]: pulumi.Input<string>;
|
|
160
|
+
}>;
|
|
161
|
+
/**
|
|
162
|
+
* The name of the foreign server to be created.
|
|
163
|
+
*/
|
|
164
|
+
serverName: pulumi.Input<string>;
|
|
165
|
+
/**
|
|
166
|
+
* By default, the user who defines the server becomes its owner. Set this value to configure the new owner of the foreign server.
|
|
167
|
+
*/
|
|
168
|
+
serverOwner?: pulumi.Input<string>;
|
|
169
|
+
/**
|
|
170
|
+
* Optional server type, potentially useful to foreign-data wrappers.
|
|
171
|
+
* Changing this value
|
|
172
|
+
* will force the creation of a new resource as this value can only be set
|
|
173
|
+
* when the foreign server is created.
|
|
174
|
+
*/
|
|
175
|
+
serverType?: pulumi.Input<string>;
|
|
176
|
+
/**
|
|
177
|
+
* Optional server version, potentially useful to foreign-data wrappers.
|
|
178
|
+
*/
|
|
179
|
+
serverVersion?: pulumi.Input<string>;
|
|
180
|
+
}
|
package/server.js
ADDED
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
|
|
3
|
+
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports.Server = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("./utilities");
|
|
8
|
+
/**
|
|
9
|
+
* The ``postgresql.Server`` resource creates and manages a foreign server on a PostgreSQL server.
|
|
10
|
+
*
|
|
11
|
+
* ## Usage
|
|
12
|
+
*
|
|
13
|
+
* ```typescript
|
|
14
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
15
|
+
* import * as postgresql from "@pulumi/postgresql";
|
|
16
|
+
*
|
|
17
|
+
* const extPostgresFdw = new postgresql.Extension("extPostgresFdw", {});
|
|
18
|
+
* const myserverPostgres = new postgresql.Server("myserverPostgres", {
|
|
19
|
+
* serverName: "myserver_postgres",
|
|
20
|
+
* fdwName: "postgres_fdw",
|
|
21
|
+
* options: {
|
|
22
|
+
* host: "foo",
|
|
23
|
+
* dbname: "foodb",
|
|
24
|
+
* port: "5432",
|
|
25
|
+
* },
|
|
26
|
+
* }, {
|
|
27
|
+
* dependsOn: [extPostgresFdw],
|
|
28
|
+
* });
|
|
29
|
+
* ```
|
|
30
|
+
*
|
|
31
|
+
* ```typescript
|
|
32
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
33
|
+
* import * as postgresql from "@pulumi/postgresql";
|
|
34
|
+
*
|
|
35
|
+
* const extFileFdw = new postgresql.Extension("extFileFdw", {});
|
|
36
|
+
* const myserverFile = new postgresql.Server("myserverFile", {
|
|
37
|
+
* serverName: "myserver_file",
|
|
38
|
+
* fdwName: "file_fdw",
|
|
39
|
+
* }, {
|
|
40
|
+
* dependsOn: [extFileFdw],
|
|
41
|
+
* });
|
|
42
|
+
* ```
|
|
43
|
+
*/
|
|
44
|
+
class Server extends pulumi.CustomResource {
|
|
45
|
+
/**
|
|
46
|
+
* Get an existing Server resource's state with the given name, ID, and optional extra
|
|
47
|
+
* properties used to qualify the lookup.
|
|
48
|
+
*
|
|
49
|
+
* @param name The _unique_ name of the resulting resource.
|
|
50
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
51
|
+
* @param state Any extra arguments used during the lookup.
|
|
52
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
53
|
+
*/
|
|
54
|
+
static get(name, id, state, opts) {
|
|
55
|
+
return new Server(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* Returns true if the given object is an instance of Server. This is designed to work even
|
|
59
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
60
|
+
*/
|
|
61
|
+
static isInstance(obj) {
|
|
62
|
+
if (obj === undefined || obj === null) {
|
|
63
|
+
return false;
|
|
64
|
+
}
|
|
65
|
+
return obj['__pulumiType'] === Server.__pulumiType;
|
|
66
|
+
}
|
|
67
|
+
constructor(name, argsOrState, opts) {
|
|
68
|
+
let resourceInputs = {};
|
|
69
|
+
opts = opts || {};
|
|
70
|
+
if (opts.id) {
|
|
71
|
+
const state = argsOrState;
|
|
72
|
+
resourceInputs["dropCascade"] = state ? state.dropCascade : undefined;
|
|
73
|
+
resourceInputs["fdwName"] = state ? state.fdwName : undefined;
|
|
74
|
+
resourceInputs["options"] = state ? state.options : undefined;
|
|
75
|
+
resourceInputs["serverName"] = state ? state.serverName : undefined;
|
|
76
|
+
resourceInputs["serverOwner"] = state ? state.serverOwner : undefined;
|
|
77
|
+
resourceInputs["serverType"] = state ? state.serverType : undefined;
|
|
78
|
+
resourceInputs["serverVersion"] = state ? state.serverVersion : undefined;
|
|
79
|
+
}
|
|
80
|
+
else {
|
|
81
|
+
const args = argsOrState;
|
|
82
|
+
if ((!args || args.fdwName === undefined) && !opts.urn) {
|
|
83
|
+
throw new Error("Missing required property 'fdwName'");
|
|
84
|
+
}
|
|
85
|
+
if ((!args || args.serverName === undefined) && !opts.urn) {
|
|
86
|
+
throw new Error("Missing required property 'serverName'");
|
|
87
|
+
}
|
|
88
|
+
resourceInputs["dropCascade"] = args ? args.dropCascade : undefined;
|
|
89
|
+
resourceInputs["fdwName"] = args ? args.fdwName : undefined;
|
|
90
|
+
resourceInputs["options"] = args ? args.options : undefined;
|
|
91
|
+
resourceInputs["serverName"] = args ? args.serverName : undefined;
|
|
92
|
+
resourceInputs["serverOwner"] = args ? args.serverOwner : undefined;
|
|
93
|
+
resourceInputs["serverType"] = args ? args.serverType : undefined;
|
|
94
|
+
resourceInputs["serverVersion"] = args ? args.serverVersion : undefined;
|
|
95
|
+
}
|
|
96
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
97
|
+
super(Server.__pulumiType, name, resourceInputs, opts);
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
exports.Server = Server;
|
|
101
|
+
/** @internal */
|
|
102
|
+
Server.__pulumiType = 'postgresql:index/server:Server';
|
|
103
|
+
//# sourceMappingURL=server.js.map
|
package/server.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"server.js","sourceRoot":"","sources":["../server.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmCG;AACH,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,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IAC7D,CAAC;IAKD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,EAAE;YACnC,OAAO,KAAK,CAAC;SAChB;QACD,OAAO,GAAG,CAAC,cAAc,CAAC,KAAK,MAAM,CAAC,YAAY,CAAC;IACvD,CAAC;IA6CD,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,aAAa,CAAC,GAAG,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SAAS,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC;YAC5D,cAAc,CAAC,SAAS,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC;YAC5D,cAAc,CAAC,YAAY,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,SAAS,CAAC;YAClE,cAAc,CAAC,aAAa,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC,SAAS,CAAC;YACpE,cAAc,CAAC,YAAY,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,SAAS,CAAC;YAClE,cAAc,CAAC,eAAe,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC,CAAC,SAAS,CAAC;SAC3E;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,MAAM,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC3D,CAAC;;AArGL,wBAsGC;AAxFG,gBAAgB;AACO,mBAAY,GAAG,gCAAgC,CAAC"}
|
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
/**
|
|
3
|
+
* The `postgresql.Subscription` resource creates and manages a publication on a PostgreSQL
|
|
4
|
+
* server.
|
|
5
|
+
*
|
|
6
|
+
* ## Usage
|
|
7
|
+
*
|
|
8
|
+
* ```typescript
|
|
9
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
10
|
+
* import * as postgresql from "@pulumi/postgresql";
|
|
11
|
+
*
|
|
12
|
+
* const subscription = new postgresql.Subscription("subscription", {
|
|
13
|
+
* conninfo: "host=localhost port=5432 dbname=mydb user=postgres password=postgres",
|
|
14
|
+
* publications: ["publication"],
|
|
15
|
+
* });
|
|
16
|
+
* ```
|
|
17
|
+
*
|
|
18
|
+
* ## Postgres documentation
|
|
19
|
+
*
|
|
20
|
+
* - https://www.postgresql.org/docs/current/sql-createsubscription.html
|
|
21
|
+
*/
|
|
22
|
+
export declare class Subscription extends pulumi.CustomResource {
|
|
23
|
+
/**
|
|
24
|
+
* Get an existing Subscription resource's state with the given name, ID, and optional extra
|
|
25
|
+
* properties used to qualify the lookup.
|
|
26
|
+
*
|
|
27
|
+
* @param name The _unique_ name of the resulting resource.
|
|
28
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
29
|
+
* @param state Any extra arguments used during the lookup.
|
|
30
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
31
|
+
*/
|
|
32
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: SubscriptionState, opts?: pulumi.CustomResourceOptions): Subscription;
|
|
33
|
+
/**
|
|
34
|
+
* Returns true if the given object is an instance of Subscription. This is designed to work even
|
|
35
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
36
|
+
*/
|
|
37
|
+
static isInstance(obj: any): obj is Subscription;
|
|
38
|
+
/**
|
|
39
|
+
* The connection string to the publisher. It should follow the [keyword/value format](https://www.postgresql.org/docs/current/libpq-connect.html#LIBPQ-CONNSTRING)
|
|
40
|
+
*/
|
|
41
|
+
readonly conninfo: pulumi.Output<string>;
|
|
42
|
+
/**
|
|
43
|
+
* Specifies whether the command should create the replication slot on the publisher. Default behavior is true
|
|
44
|
+
*/
|
|
45
|
+
readonly createSlot: pulumi.Output<boolean | undefined>;
|
|
46
|
+
/**
|
|
47
|
+
* Which database to create the subscription on. Defaults to provider database.
|
|
48
|
+
*/
|
|
49
|
+
readonly database: pulumi.Output<string>;
|
|
50
|
+
/**
|
|
51
|
+
* The name of the publication.
|
|
52
|
+
*/
|
|
53
|
+
readonly name: pulumi.Output<string>;
|
|
54
|
+
/**
|
|
55
|
+
* Names of the publications on the publisher to subscribe to
|
|
56
|
+
*/
|
|
57
|
+
readonly publications: pulumi.Output<string[]>;
|
|
58
|
+
/**
|
|
59
|
+
* Name of the replication slot to use. The default behavior is to use the name of the subscription for the slot name
|
|
60
|
+
*/
|
|
61
|
+
readonly slotName: pulumi.Output<string | undefined>;
|
|
62
|
+
/**
|
|
63
|
+
* Create a Subscription resource with the given unique name, arguments, and options.
|
|
64
|
+
*
|
|
65
|
+
* @param name The _unique_ name of the resource.
|
|
66
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
67
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
68
|
+
*/
|
|
69
|
+
constructor(name: string, args: SubscriptionArgs, opts?: pulumi.CustomResourceOptions);
|
|
70
|
+
}
|
|
71
|
+
/**
|
|
72
|
+
* Input properties used for looking up and filtering Subscription resources.
|
|
73
|
+
*/
|
|
74
|
+
export interface SubscriptionState {
|
|
75
|
+
/**
|
|
76
|
+
* The connection string to the publisher. It should follow the [keyword/value format](https://www.postgresql.org/docs/current/libpq-connect.html#LIBPQ-CONNSTRING)
|
|
77
|
+
*/
|
|
78
|
+
conninfo?: pulumi.Input<string>;
|
|
79
|
+
/**
|
|
80
|
+
* Specifies whether the command should create the replication slot on the publisher. Default behavior is true
|
|
81
|
+
*/
|
|
82
|
+
createSlot?: pulumi.Input<boolean>;
|
|
83
|
+
/**
|
|
84
|
+
* Which database to create the subscription on. Defaults to provider database.
|
|
85
|
+
*/
|
|
86
|
+
database?: pulumi.Input<string>;
|
|
87
|
+
/**
|
|
88
|
+
* The name of the publication.
|
|
89
|
+
*/
|
|
90
|
+
name?: pulumi.Input<string>;
|
|
91
|
+
/**
|
|
92
|
+
* Names of the publications on the publisher to subscribe to
|
|
93
|
+
*/
|
|
94
|
+
publications?: pulumi.Input<pulumi.Input<string>[]>;
|
|
95
|
+
/**
|
|
96
|
+
* Name of the replication slot to use. The default behavior is to use the name of the subscription for the slot name
|
|
97
|
+
*/
|
|
98
|
+
slotName?: pulumi.Input<string>;
|
|
99
|
+
}
|
|
100
|
+
/**
|
|
101
|
+
* The set of arguments for constructing a Subscription resource.
|
|
102
|
+
*/
|
|
103
|
+
export interface SubscriptionArgs {
|
|
104
|
+
/**
|
|
105
|
+
* The connection string to the publisher. It should follow the [keyword/value format](https://www.postgresql.org/docs/current/libpq-connect.html#LIBPQ-CONNSTRING)
|
|
106
|
+
*/
|
|
107
|
+
conninfo: pulumi.Input<string>;
|
|
108
|
+
/**
|
|
109
|
+
* Specifies whether the command should create the replication slot on the publisher. Default behavior is true
|
|
110
|
+
*/
|
|
111
|
+
createSlot?: pulumi.Input<boolean>;
|
|
112
|
+
/**
|
|
113
|
+
* Which database to create the subscription on. Defaults to provider database.
|
|
114
|
+
*/
|
|
115
|
+
database?: pulumi.Input<string>;
|
|
116
|
+
/**
|
|
117
|
+
* The name of the publication.
|
|
118
|
+
*/
|
|
119
|
+
name?: pulumi.Input<string>;
|
|
120
|
+
/**
|
|
121
|
+
* Names of the publications on the publisher to subscribe to
|
|
122
|
+
*/
|
|
123
|
+
publications: pulumi.Input<pulumi.Input<string>[]>;
|
|
124
|
+
/**
|
|
125
|
+
* Name of the replication slot to use. The default behavior is to use the name of the subscription for the slot name
|
|
126
|
+
*/
|
|
127
|
+
slotName?: pulumi.Input<string>;
|
|
128
|
+
}
|
package/subscription.js
ADDED
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
|
|
3
|
+
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports.Subscription = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("./utilities");
|
|
8
|
+
/**
|
|
9
|
+
* The `postgresql.Subscription` resource creates and manages a publication on a PostgreSQL
|
|
10
|
+
* server.
|
|
11
|
+
*
|
|
12
|
+
* ## Usage
|
|
13
|
+
*
|
|
14
|
+
* ```typescript
|
|
15
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
16
|
+
* import * as postgresql from "@pulumi/postgresql";
|
|
17
|
+
*
|
|
18
|
+
* const subscription = new postgresql.Subscription("subscription", {
|
|
19
|
+
* conninfo: "host=localhost port=5432 dbname=mydb user=postgres password=postgres",
|
|
20
|
+
* publications: ["publication"],
|
|
21
|
+
* });
|
|
22
|
+
* ```
|
|
23
|
+
*
|
|
24
|
+
* ## Postgres documentation
|
|
25
|
+
*
|
|
26
|
+
* - https://www.postgresql.org/docs/current/sql-createsubscription.html
|
|
27
|
+
*/
|
|
28
|
+
class Subscription extends pulumi.CustomResource {
|
|
29
|
+
/**
|
|
30
|
+
* Get an existing Subscription resource's state with the given name, ID, and optional extra
|
|
31
|
+
* properties used to qualify the lookup.
|
|
32
|
+
*
|
|
33
|
+
* @param name The _unique_ name of the resulting resource.
|
|
34
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
35
|
+
* @param state Any extra arguments used during the lookup.
|
|
36
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
37
|
+
*/
|
|
38
|
+
static get(name, id, state, opts) {
|
|
39
|
+
return new Subscription(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* Returns true if the given object is an instance of Subscription. This is designed to work even
|
|
43
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
44
|
+
*/
|
|
45
|
+
static isInstance(obj) {
|
|
46
|
+
if (obj === undefined || obj === null) {
|
|
47
|
+
return false;
|
|
48
|
+
}
|
|
49
|
+
return obj['__pulumiType'] === Subscription.__pulumiType;
|
|
50
|
+
}
|
|
51
|
+
constructor(name, argsOrState, opts) {
|
|
52
|
+
let resourceInputs = {};
|
|
53
|
+
opts = opts || {};
|
|
54
|
+
if (opts.id) {
|
|
55
|
+
const state = argsOrState;
|
|
56
|
+
resourceInputs["conninfo"] = state ? state.conninfo : undefined;
|
|
57
|
+
resourceInputs["createSlot"] = state ? state.createSlot : undefined;
|
|
58
|
+
resourceInputs["database"] = state ? state.database : undefined;
|
|
59
|
+
resourceInputs["name"] = state ? state.name : undefined;
|
|
60
|
+
resourceInputs["publications"] = state ? state.publications : undefined;
|
|
61
|
+
resourceInputs["slotName"] = state ? state.slotName : undefined;
|
|
62
|
+
}
|
|
63
|
+
else {
|
|
64
|
+
const args = argsOrState;
|
|
65
|
+
if ((!args || args.conninfo === undefined) && !opts.urn) {
|
|
66
|
+
throw new Error("Missing required property 'conninfo'");
|
|
67
|
+
}
|
|
68
|
+
if ((!args || args.publications === undefined) && !opts.urn) {
|
|
69
|
+
throw new Error("Missing required property 'publications'");
|
|
70
|
+
}
|
|
71
|
+
resourceInputs["conninfo"] = (args === null || args === void 0 ? void 0 : args.conninfo) ? pulumi.secret(args.conninfo) : undefined;
|
|
72
|
+
resourceInputs["createSlot"] = args ? args.createSlot : undefined;
|
|
73
|
+
resourceInputs["database"] = args ? args.database : undefined;
|
|
74
|
+
resourceInputs["name"] = args ? args.name : undefined;
|
|
75
|
+
resourceInputs["publications"] = args ? args.publications : undefined;
|
|
76
|
+
resourceInputs["slotName"] = args ? args.slotName : undefined;
|
|
77
|
+
}
|
|
78
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
79
|
+
const secretOpts = { additionalSecretOutputs: ["conninfo"] };
|
|
80
|
+
opts = pulumi.mergeOptions(opts, secretOpts);
|
|
81
|
+
super(Subscription.__pulumiType, name, resourceInputs, opts);
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
exports.Subscription = Subscription;
|
|
85
|
+
/** @internal */
|
|
86
|
+
Subscription.__pulumiType = 'postgresql:index/subscription:Subscription';
|
|
87
|
+
//# sourceMappingURL=subscription.js.map
|