@pulumi/postgresql 3.5.0-alpha.1651783522 → 3.5.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/function.d.ts +143 -0
- package/function.js +87 -0
- package/function.js.map +1 -0
- package/index.d.ts +2 -0
- package/index.js +10 -0
- package/index.js.map +1 -1
- package/package.json +2 -2
- package/package.json.dev +2 -2
- package/physicalReplicationSlot.d.ts +9 -0
- package/physicalReplicationSlot.js +9 -0
- package/physicalReplicationSlot.js.map +1 -1
- package/publication.d.ts +150 -0
- package/publication.js +81 -0
- package/publication.js.map +1 -0
- package/types/input.d.ts +18 -0
- package/types/output.d.ts +18 -0
package/function.d.ts
ADDED
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
import { input as inputs, output as outputs } from "./types";
|
|
3
|
+
/**
|
|
4
|
+
* The ``postgresql.Function`` resource creates and manages a function on a PostgreSQL
|
|
5
|
+
* server.
|
|
6
|
+
*
|
|
7
|
+
* ## Usage
|
|
8
|
+
*
|
|
9
|
+
* ```typescript
|
|
10
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
11
|
+
* import * as postgresql from "@pulumi/postgresql";
|
|
12
|
+
*
|
|
13
|
+
* const increment = new postgresql.Function("increment", {
|
|
14
|
+
* args: [{
|
|
15
|
+
* name: "i",
|
|
16
|
+
* type: "integer",
|
|
17
|
+
* }],
|
|
18
|
+
* body: ` AS $
|
|
19
|
+
* BEGIN
|
|
20
|
+
* RETURN i + 1;
|
|
21
|
+
* END;
|
|
22
|
+
* $ LANGUAGE plpgsql;
|
|
23
|
+
* `,
|
|
24
|
+
* returns: "integer",
|
|
25
|
+
* });
|
|
26
|
+
* ```
|
|
27
|
+
*/
|
|
28
|
+
export declare class Function extends pulumi.CustomResource {
|
|
29
|
+
/**
|
|
30
|
+
* Get an existing Function 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: string, id: pulumi.Input<pulumi.ID>, state?: FunctionState, opts?: pulumi.CustomResourceOptions): Function;
|
|
39
|
+
/**
|
|
40
|
+
* Returns true if the given object is an instance of Function. This is designed to work even
|
|
41
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
42
|
+
*/
|
|
43
|
+
static isInstance(obj: any): obj is Function;
|
|
44
|
+
/**
|
|
45
|
+
* List of arguments for the function.
|
|
46
|
+
*/
|
|
47
|
+
readonly args: pulumi.Output<outputs.FunctionArg[] | undefined>;
|
|
48
|
+
/**
|
|
49
|
+
* Function body.
|
|
50
|
+
* This should be everything after the return type in the function definition.
|
|
51
|
+
*/
|
|
52
|
+
readonly body: pulumi.Output<string>;
|
|
53
|
+
/**
|
|
54
|
+
* True to automatically drop objects that depend on the function (such as
|
|
55
|
+
* operators or triggers), and in turn all objects that depend on those objects. Default is false.
|
|
56
|
+
*/
|
|
57
|
+
readonly dropCascade: pulumi.Output<boolean | undefined>;
|
|
58
|
+
/**
|
|
59
|
+
* The name of the argument.
|
|
60
|
+
*/
|
|
61
|
+
readonly name: pulumi.Output<string>;
|
|
62
|
+
/**
|
|
63
|
+
* Type that the function returns.
|
|
64
|
+
*/
|
|
65
|
+
readonly returns: pulumi.Output<string | undefined>;
|
|
66
|
+
/**
|
|
67
|
+
* The schema where the function is located.
|
|
68
|
+
* If not specified, the function is created in the current schema.
|
|
69
|
+
*/
|
|
70
|
+
readonly schema: pulumi.Output<string>;
|
|
71
|
+
/**
|
|
72
|
+
* Create a Function resource with the given unique name, arguments, and options.
|
|
73
|
+
*
|
|
74
|
+
* @param name The _unique_ name of the resource.
|
|
75
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
76
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
77
|
+
*/
|
|
78
|
+
constructor(name: string, args: FunctionArgs, opts?: pulumi.CustomResourceOptions);
|
|
79
|
+
}
|
|
80
|
+
/**
|
|
81
|
+
* Input properties used for looking up and filtering Function resources.
|
|
82
|
+
*/
|
|
83
|
+
export interface FunctionState {
|
|
84
|
+
/**
|
|
85
|
+
* List of arguments for the function.
|
|
86
|
+
*/
|
|
87
|
+
args?: pulumi.Input<pulumi.Input<inputs.FunctionArg>[]>;
|
|
88
|
+
/**
|
|
89
|
+
* Function body.
|
|
90
|
+
* This should be everything after the return type in the function definition.
|
|
91
|
+
*/
|
|
92
|
+
body?: pulumi.Input<string>;
|
|
93
|
+
/**
|
|
94
|
+
* True to automatically drop objects that depend on the function (such as
|
|
95
|
+
* operators or triggers), and in turn all objects that depend on those objects. Default is false.
|
|
96
|
+
*/
|
|
97
|
+
dropCascade?: pulumi.Input<boolean>;
|
|
98
|
+
/**
|
|
99
|
+
* The name of the argument.
|
|
100
|
+
*/
|
|
101
|
+
name?: pulumi.Input<string>;
|
|
102
|
+
/**
|
|
103
|
+
* Type that the function returns.
|
|
104
|
+
*/
|
|
105
|
+
returns?: pulumi.Input<string>;
|
|
106
|
+
/**
|
|
107
|
+
* The schema where the function is located.
|
|
108
|
+
* If not specified, the function is created in the current schema.
|
|
109
|
+
*/
|
|
110
|
+
schema?: pulumi.Input<string>;
|
|
111
|
+
}
|
|
112
|
+
/**
|
|
113
|
+
* The set of arguments for constructing a Function resource.
|
|
114
|
+
*/
|
|
115
|
+
export interface FunctionArgs {
|
|
116
|
+
/**
|
|
117
|
+
* List of arguments for the function.
|
|
118
|
+
*/
|
|
119
|
+
args?: pulumi.Input<pulumi.Input<inputs.FunctionArg>[]>;
|
|
120
|
+
/**
|
|
121
|
+
* Function body.
|
|
122
|
+
* This should be everything after the return type in the function definition.
|
|
123
|
+
*/
|
|
124
|
+
body: pulumi.Input<string>;
|
|
125
|
+
/**
|
|
126
|
+
* True to automatically drop objects that depend on the function (such as
|
|
127
|
+
* operators or triggers), and in turn all objects that depend on those objects. Default is false.
|
|
128
|
+
*/
|
|
129
|
+
dropCascade?: pulumi.Input<boolean>;
|
|
130
|
+
/**
|
|
131
|
+
* The name of the argument.
|
|
132
|
+
*/
|
|
133
|
+
name?: pulumi.Input<string>;
|
|
134
|
+
/**
|
|
135
|
+
* Type that the function returns.
|
|
136
|
+
*/
|
|
137
|
+
returns?: pulumi.Input<string>;
|
|
138
|
+
/**
|
|
139
|
+
* The schema where the function is located.
|
|
140
|
+
* If not specified, the function is created in the current schema.
|
|
141
|
+
*/
|
|
142
|
+
schema?: pulumi.Input<string>;
|
|
143
|
+
}
|
package/function.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.Function = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("./utilities");
|
|
8
|
+
/**
|
|
9
|
+
* The ``postgresql.Function`` resource creates and manages a function 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 increment = new postgresql.Function("increment", {
|
|
19
|
+
* args: [{
|
|
20
|
+
* name: "i",
|
|
21
|
+
* type: "integer",
|
|
22
|
+
* }],
|
|
23
|
+
* body: ` AS $
|
|
24
|
+
* BEGIN
|
|
25
|
+
* RETURN i + 1;
|
|
26
|
+
* END;
|
|
27
|
+
* $ LANGUAGE plpgsql;
|
|
28
|
+
* `,
|
|
29
|
+
* returns: "integer",
|
|
30
|
+
* });
|
|
31
|
+
* ```
|
|
32
|
+
*/
|
|
33
|
+
class Function extends pulumi.CustomResource {
|
|
34
|
+
constructor(name, argsOrState, opts) {
|
|
35
|
+
let resourceInputs = {};
|
|
36
|
+
opts = opts || {};
|
|
37
|
+
if (opts.id) {
|
|
38
|
+
const state = argsOrState;
|
|
39
|
+
resourceInputs["args"] = state ? state.args : undefined;
|
|
40
|
+
resourceInputs["body"] = state ? state.body : undefined;
|
|
41
|
+
resourceInputs["dropCascade"] = state ? state.dropCascade : undefined;
|
|
42
|
+
resourceInputs["name"] = state ? state.name : undefined;
|
|
43
|
+
resourceInputs["returns"] = state ? state.returns : undefined;
|
|
44
|
+
resourceInputs["schema"] = state ? state.schema : undefined;
|
|
45
|
+
}
|
|
46
|
+
else {
|
|
47
|
+
const args = argsOrState;
|
|
48
|
+
if ((!args || args.body === undefined) && !opts.urn) {
|
|
49
|
+
throw new Error("Missing required property 'body'");
|
|
50
|
+
}
|
|
51
|
+
resourceInputs["args"] = args ? args.args : undefined;
|
|
52
|
+
resourceInputs["body"] = args ? args.body : undefined;
|
|
53
|
+
resourceInputs["dropCascade"] = args ? args.dropCascade : undefined;
|
|
54
|
+
resourceInputs["name"] = args ? args.name : undefined;
|
|
55
|
+
resourceInputs["returns"] = args ? args.returns : undefined;
|
|
56
|
+
resourceInputs["schema"] = args ? args.schema : undefined;
|
|
57
|
+
}
|
|
58
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
59
|
+
super(Function.__pulumiType, name, resourceInputs, opts);
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* Get an existing Function resource's state with the given name, ID, and optional extra
|
|
63
|
+
* properties used to qualify the lookup.
|
|
64
|
+
*
|
|
65
|
+
* @param name The _unique_ name of the resulting resource.
|
|
66
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
67
|
+
* @param state Any extra arguments used during the lookup.
|
|
68
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
69
|
+
*/
|
|
70
|
+
static get(name, id, state, opts) {
|
|
71
|
+
return new Function(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
72
|
+
}
|
|
73
|
+
/**
|
|
74
|
+
* Returns true if the given object is an instance of Function. This is designed to work even
|
|
75
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
76
|
+
*/
|
|
77
|
+
static isInstance(obj) {
|
|
78
|
+
if (obj === undefined || obj === null) {
|
|
79
|
+
return false;
|
|
80
|
+
}
|
|
81
|
+
return obj['__pulumiType'] === Function.__pulumiType;
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
exports.Function = Function;
|
|
85
|
+
/** @internal */
|
|
86
|
+
Function.__pulumiType = 'postgresql:index/function:Function';
|
|
87
|
+
//# sourceMappingURL=function.js.map
|
package/function.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"function.js","sourceRoot":"","sources":["../function.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAEzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,MAAa,QAAS,SAAQ,MAAM,CAAC,cAAc;IAgE/C,YAAY,IAAY,EAAE,WAA0C,EAAE,IAAmC;QACrG,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAAwC,CAAC;YACvD,cAAc,CAAC,MAAM,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC;YACxD,cAAc,CAAC,MAAM,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC;YACxD,cAAc,CAAC,aAAa,CA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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;IAxFD;;;;;;;;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,CAAC;IAC/D,CAAC;IAKD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,EAAE;YACnC,OAAO,KAAK,CAAC;SAChB;QACD,OAAO,GAAG,CAAC,cAAc,CAAC,KAAK,QAAQ,CAAC,YAAY,CAAC;IACzD,CAAC;;AA1BL,4BA0FC;AA5EG,gBAAgB;AACO,qBAAY,GAAG,oCAAoC,CAAC"}
|
package/index.d.ts
CHANGED
|
@@ -2,10 +2,12 @@ export * from "./database";
|
|
|
2
2
|
export * from "./defaultPrivileg";
|
|
3
3
|
export * from "./defaultPrivileges";
|
|
4
4
|
export * from "./extension";
|
|
5
|
+
export * from "./function";
|
|
5
6
|
export * from "./grant";
|
|
6
7
|
export * from "./grantRole";
|
|
7
8
|
export * from "./physicalReplicationSlot";
|
|
8
9
|
export * from "./provider";
|
|
10
|
+
export * from "./publication";
|
|
9
11
|
export * from "./replicationSlot";
|
|
10
12
|
export * from "./role";
|
|
11
13
|
export * from "./schema";
|
package/index.js
CHANGED
|
@@ -24,10 +24,12 @@ __exportStar(require("./database"), exports);
|
|
|
24
24
|
__exportStar(require("./defaultPrivileg"), exports);
|
|
25
25
|
__exportStar(require("./defaultPrivileges"), exports);
|
|
26
26
|
__exportStar(require("./extension"), exports);
|
|
27
|
+
__exportStar(require("./function"), exports);
|
|
27
28
|
__exportStar(require("./grant"), exports);
|
|
28
29
|
__exportStar(require("./grantRole"), exports);
|
|
29
30
|
__exportStar(require("./physicalReplicationSlot"), exports);
|
|
30
31
|
__exportStar(require("./provider"), exports);
|
|
32
|
+
__exportStar(require("./publication"), exports);
|
|
31
33
|
__exportStar(require("./replicationSlot"), exports);
|
|
32
34
|
__exportStar(require("./role"), exports);
|
|
33
35
|
__exportStar(require("./schema"), exports);
|
|
@@ -41,9 +43,11 @@ const database_1 = require("./database");
|
|
|
41
43
|
const defaultPrivileg_1 = require("./defaultPrivileg");
|
|
42
44
|
const defaultPrivileges_1 = require("./defaultPrivileges");
|
|
43
45
|
const extension_1 = require("./extension");
|
|
46
|
+
const function_1 = require("./function");
|
|
44
47
|
const grant_1 = require("./grant");
|
|
45
48
|
const grantRole_1 = require("./grantRole");
|
|
46
49
|
const physicalReplicationSlot_1 = require("./physicalReplicationSlot");
|
|
50
|
+
const publication_1 = require("./publication");
|
|
47
51
|
const replicationSlot_1 = require("./replicationSlot");
|
|
48
52
|
const role_1 = require("./role");
|
|
49
53
|
const schema_1 = require("./schema");
|
|
@@ -59,12 +63,16 @@ const _module = {
|
|
|
59
63
|
return new defaultPrivileges_1.DefaultPrivileges(name, undefined, { urn });
|
|
60
64
|
case "postgresql:index/extension:Extension":
|
|
61
65
|
return new extension_1.Extension(name, undefined, { urn });
|
|
66
|
+
case "postgresql:index/function:Function":
|
|
67
|
+
return new function_1.Function(name, undefined, { urn });
|
|
62
68
|
case "postgresql:index/grant:Grant":
|
|
63
69
|
return new grant_1.Grant(name, undefined, { urn });
|
|
64
70
|
case "postgresql:index/grantRole:GrantRole":
|
|
65
71
|
return new grantRole_1.GrantRole(name, undefined, { urn });
|
|
66
72
|
case "postgresql:index/physicalReplicationSlot:PhysicalReplicationSlot":
|
|
67
73
|
return new physicalReplicationSlot_1.PhysicalReplicationSlot(name, undefined, { urn });
|
|
74
|
+
case "postgresql:index/publication:Publication":
|
|
75
|
+
return new publication_1.Publication(name, undefined, { urn });
|
|
68
76
|
case "postgresql:index/replicationSlot:ReplicationSlot":
|
|
69
77
|
return new replicationSlot_1.ReplicationSlot(name, undefined, { urn });
|
|
70
78
|
case "postgresql:index/role:Role":
|
|
@@ -80,9 +88,11 @@ pulumi.runtime.registerResourceModule("postgresql", "index/database", _module);
|
|
|
80
88
|
pulumi.runtime.registerResourceModule("postgresql", "index/defaultPrivileg", _module);
|
|
81
89
|
pulumi.runtime.registerResourceModule("postgresql", "index/defaultPrivileges", _module);
|
|
82
90
|
pulumi.runtime.registerResourceModule("postgresql", "index/extension", _module);
|
|
91
|
+
pulumi.runtime.registerResourceModule("postgresql", "index/function", _module);
|
|
83
92
|
pulumi.runtime.registerResourceModule("postgresql", "index/grant", _module);
|
|
84
93
|
pulumi.runtime.registerResourceModule("postgresql", "index/grantRole", _module);
|
|
85
94
|
pulumi.runtime.registerResourceModule("postgresql", "index/physicalReplicationSlot", _module);
|
|
95
|
+
pulumi.runtime.registerResourceModule("postgresql", "index/publication", _module);
|
|
86
96
|
pulumi.runtime.registerResourceModule("postgresql", "index/replicationSlot", _module);
|
|
87
97
|
pulumi.runtime.registerResourceModule("postgresql", "index/role", _module);
|
|
88
98
|
pulumi.runtime.registerResourceModule("postgresql", "index/schema", _module);
|
package/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;;;;;;;;;;;;;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC,kBAAkB;AAClB,6CAA2B;AAC3B,oDAAkC;AAClC,sDAAoC;AACpC,8CAA4B;AAC5B,0CAAwB;AACxB,8CAA4B;AAC5B,4DAA0C;AAC1C,6CAA2B;AAC3B,oDAAkC;AAClC,yCAAuB;AACvB,2CAAyB;AAEzB,sBAAsB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AE;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,mBAAQ,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.5.0
|
|
3
|
+
"version": "v3.5.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.5.0
|
|
14
|
+
"install": "node scripts/install-pulumi-plugin.js resource postgresql v3.5.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.5.0
|
|
3
|
+
"version": "v3.5.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.5.0
|
|
14
|
+
"install": "node scripts/install-pulumi-plugin.js resource postgresql v3.5.0"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
17
|
"@pulumi/pulumi": "^3.0.0"
|
|
@@ -3,6 +3,15 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
3
3
|
* The ``postgresql.PhysicalReplicationSlot`` resource creates and manages a physical replication slot on a PostgreSQL
|
|
4
4
|
* server. This is useful to setup a cross datacenter replication, with Patroni for example, or permit
|
|
5
5
|
* any stand-by cluster to replicate physically data.
|
|
6
|
+
*
|
|
7
|
+
* ## Usage
|
|
8
|
+
*
|
|
9
|
+
* ```typescript
|
|
10
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
11
|
+
* import * as postgresql from "@pulumi/postgresql";
|
|
12
|
+
*
|
|
13
|
+
* const mySlot = new postgresql.PhysicalReplicationSlot("my_slot", {});
|
|
14
|
+
* ```
|
|
6
15
|
*/
|
|
7
16
|
export declare class PhysicalReplicationSlot extends pulumi.CustomResource {
|
|
8
17
|
/**
|
|
@@ -9,6 +9,15 @@ const utilities = require("./utilities");
|
|
|
9
9
|
* The ``postgresql.PhysicalReplicationSlot`` resource creates and manages a physical replication slot on a PostgreSQL
|
|
10
10
|
* server. This is useful to setup a cross datacenter replication, with Patroni for example, or permit
|
|
11
11
|
* any stand-by cluster to replicate physically data.
|
|
12
|
+
*
|
|
13
|
+
* ## Usage
|
|
14
|
+
*
|
|
15
|
+
* ```typescript
|
|
16
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
17
|
+
* import * as postgresql from "@pulumi/postgresql";
|
|
18
|
+
*
|
|
19
|
+
* const mySlot = new postgresql.PhysicalReplicationSlot("my_slot", {});
|
|
20
|
+
* ```
|
|
12
21
|
*/
|
|
13
22
|
class PhysicalReplicationSlot extends pulumi.CustomResource {
|
|
14
23
|
constructor(name, argsOrState, opts) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"physicalReplicationSlot.js","sourceRoot":"","sources":["../physicalReplicationSlot.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC
|
|
1
|
+
{"version":3,"file":"physicalReplicationSlot.js","sourceRoot":"","sources":["../physicalReplicationSlot.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;GAaG;AACH,MAAa,uBAAwB,SAAQ,MAAM,CAAC,cAAc;IAyC9D,YAAY,IAAY,EAAE,WAAwE,EAAE,IAAmC;QACnI,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAAuD,CAAC;YACtE,cAAc,CAAC,MAAM,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC;SAC3D;aAAM;YACH,MAAM,IAAI,GAAG,WAAsD,CAAC;YACpE,cAAc,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC;SACzD;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,uBAAuB,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC5E,CAAC;IApDD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAoC,EAAE,IAAmC;QAClI,OAAO,IAAI,uBAAuB,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IAC9E,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,uBAAuB,CAAC,YAAY,CAAC;IACxE,CAAC;;AA1BL,0DAsDC;AAxCG,gBAAgB;AACO,oCAAY,GAAG,kEAAkE,CAAC"}
|
package/publication.d.ts
ADDED
|
@@ -0,0 +1,150 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
/**
|
|
3
|
+
* The `postgresql.Publication` 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 publication = new postgresql.Publication("publication", {
|
|
13
|
+
* tables: [
|
|
14
|
+
* "public.test",
|
|
15
|
+
* "another_schema.test",
|
|
16
|
+
* ],
|
|
17
|
+
* });
|
|
18
|
+
* ```
|
|
19
|
+
*/
|
|
20
|
+
export declare class Publication extends pulumi.CustomResource {
|
|
21
|
+
/**
|
|
22
|
+
* Get an existing Publication resource's state with the given name, ID, and optional extra
|
|
23
|
+
* properties used to qualify the lookup.
|
|
24
|
+
*
|
|
25
|
+
* @param name The _unique_ name of the resulting resource.
|
|
26
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
27
|
+
* @param state Any extra arguments used during the lookup.
|
|
28
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
29
|
+
*/
|
|
30
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: PublicationState, opts?: pulumi.CustomResourceOptions): Publication;
|
|
31
|
+
/**
|
|
32
|
+
* Returns true if the given object is an instance of Publication. This is designed to work even
|
|
33
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
34
|
+
*/
|
|
35
|
+
static isInstance(obj: any): obj is Publication;
|
|
36
|
+
/**
|
|
37
|
+
* Should be ALL TABLES added to the publication. Defaults to 'false'
|
|
38
|
+
*/
|
|
39
|
+
readonly allTables: pulumi.Output<boolean>;
|
|
40
|
+
/**
|
|
41
|
+
* Which database to create the publication on. Defaults to provider database.
|
|
42
|
+
*/
|
|
43
|
+
readonly database: pulumi.Output<string>;
|
|
44
|
+
/**
|
|
45
|
+
* Should all subsequent resources of the publication be dropped. Defaults to 'false'
|
|
46
|
+
*/
|
|
47
|
+
readonly dropCascade: pulumi.Output<boolean | undefined>;
|
|
48
|
+
/**
|
|
49
|
+
* The name of the publication.
|
|
50
|
+
*/
|
|
51
|
+
readonly name: pulumi.Output<string>;
|
|
52
|
+
/**
|
|
53
|
+
* Who owns the publication. Defaults to provider user.
|
|
54
|
+
*/
|
|
55
|
+
readonly owner: pulumi.Output<string>;
|
|
56
|
+
/**
|
|
57
|
+
* Which 'publish' options should be turned on. Default to 'insert','update','delete'
|
|
58
|
+
*/
|
|
59
|
+
readonly publishParams: pulumi.Output<string[]>;
|
|
60
|
+
/**
|
|
61
|
+
* Should be option 'publish_via_partition_root' be turned on. Default to 'false'
|
|
62
|
+
*/
|
|
63
|
+
readonly publishViaPartitionRootParam: pulumi.Output<boolean | undefined>;
|
|
64
|
+
/**
|
|
65
|
+
* Which tables add to the publication. By defaults no tables added. Format of table is `<schema_name>.<table_name>`. If `<schema_name>` is not specified - default database schema will be used.
|
|
66
|
+
*/
|
|
67
|
+
readonly tables: pulumi.Output<string[]>;
|
|
68
|
+
/**
|
|
69
|
+
* Create a Publication resource with the given unique name, arguments, and options.
|
|
70
|
+
*
|
|
71
|
+
* @param name The _unique_ name of the resource.
|
|
72
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
73
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
74
|
+
*/
|
|
75
|
+
constructor(name: string, args?: PublicationArgs, opts?: pulumi.CustomResourceOptions);
|
|
76
|
+
}
|
|
77
|
+
/**
|
|
78
|
+
* Input properties used for looking up and filtering Publication resources.
|
|
79
|
+
*/
|
|
80
|
+
export interface PublicationState {
|
|
81
|
+
/**
|
|
82
|
+
* Should be ALL TABLES added to the publication. Defaults to 'false'
|
|
83
|
+
*/
|
|
84
|
+
allTables?: pulumi.Input<boolean>;
|
|
85
|
+
/**
|
|
86
|
+
* Which database to create the publication on. Defaults to provider database.
|
|
87
|
+
*/
|
|
88
|
+
database?: pulumi.Input<string>;
|
|
89
|
+
/**
|
|
90
|
+
* Should all subsequent resources of the publication be dropped. Defaults to 'false'
|
|
91
|
+
*/
|
|
92
|
+
dropCascade?: pulumi.Input<boolean>;
|
|
93
|
+
/**
|
|
94
|
+
* The name of the publication.
|
|
95
|
+
*/
|
|
96
|
+
name?: pulumi.Input<string>;
|
|
97
|
+
/**
|
|
98
|
+
* Who owns the publication. Defaults to provider user.
|
|
99
|
+
*/
|
|
100
|
+
owner?: pulumi.Input<string>;
|
|
101
|
+
/**
|
|
102
|
+
* Which 'publish' options should be turned on. Default to 'insert','update','delete'
|
|
103
|
+
*/
|
|
104
|
+
publishParams?: pulumi.Input<pulumi.Input<string>[]>;
|
|
105
|
+
/**
|
|
106
|
+
* Should be option 'publish_via_partition_root' be turned on. Default to 'false'
|
|
107
|
+
*/
|
|
108
|
+
publishViaPartitionRootParam?: pulumi.Input<boolean>;
|
|
109
|
+
/**
|
|
110
|
+
* Which tables add to the publication. By defaults no tables added. Format of table is `<schema_name>.<table_name>`. If `<schema_name>` is not specified - default database schema will be used.
|
|
111
|
+
*/
|
|
112
|
+
tables?: pulumi.Input<pulumi.Input<string>[]>;
|
|
113
|
+
}
|
|
114
|
+
/**
|
|
115
|
+
* The set of arguments for constructing a Publication resource.
|
|
116
|
+
*/
|
|
117
|
+
export interface PublicationArgs {
|
|
118
|
+
/**
|
|
119
|
+
* Should be ALL TABLES added to the publication. Defaults to 'false'
|
|
120
|
+
*/
|
|
121
|
+
allTables?: pulumi.Input<boolean>;
|
|
122
|
+
/**
|
|
123
|
+
* Which database to create the publication on. Defaults to provider database.
|
|
124
|
+
*/
|
|
125
|
+
database?: pulumi.Input<string>;
|
|
126
|
+
/**
|
|
127
|
+
* Should all subsequent resources of the publication be dropped. Defaults to 'false'
|
|
128
|
+
*/
|
|
129
|
+
dropCascade?: pulumi.Input<boolean>;
|
|
130
|
+
/**
|
|
131
|
+
* The name of the publication.
|
|
132
|
+
*/
|
|
133
|
+
name?: pulumi.Input<string>;
|
|
134
|
+
/**
|
|
135
|
+
* Who owns the publication. Defaults to provider user.
|
|
136
|
+
*/
|
|
137
|
+
owner?: pulumi.Input<string>;
|
|
138
|
+
/**
|
|
139
|
+
* Which 'publish' options should be turned on. Default to 'insert','update','delete'
|
|
140
|
+
*/
|
|
141
|
+
publishParams?: pulumi.Input<pulumi.Input<string>[]>;
|
|
142
|
+
/**
|
|
143
|
+
* Should be option 'publish_via_partition_root' be turned on. Default to 'false'
|
|
144
|
+
*/
|
|
145
|
+
publishViaPartitionRootParam?: pulumi.Input<boolean>;
|
|
146
|
+
/**
|
|
147
|
+
* Which tables add to the publication. By defaults no tables added. Format of table is `<schema_name>.<table_name>`. If `<schema_name>` is not specified - default database schema will be used.
|
|
148
|
+
*/
|
|
149
|
+
tables?: pulumi.Input<pulumi.Input<string>[]>;
|
|
150
|
+
}
|
package/publication.js
ADDED
|
@@ -0,0 +1,81 @@
|
|
|
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.Publication = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("./utilities");
|
|
8
|
+
/**
|
|
9
|
+
* The `postgresql.Publication` 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 publication = new postgresql.Publication("publication", {
|
|
19
|
+
* tables: [
|
|
20
|
+
* "public.test",
|
|
21
|
+
* "another_schema.test",
|
|
22
|
+
* ],
|
|
23
|
+
* });
|
|
24
|
+
* ```
|
|
25
|
+
*/
|
|
26
|
+
class Publication extends pulumi.CustomResource {
|
|
27
|
+
constructor(name, argsOrState, opts) {
|
|
28
|
+
let resourceInputs = {};
|
|
29
|
+
opts = opts || {};
|
|
30
|
+
if (opts.id) {
|
|
31
|
+
const state = argsOrState;
|
|
32
|
+
resourceInputs["allTables"] = state ? state.allTables : undefined;
|
|
33
|
+
resourceInputs["database"] = state ? state.database : undefined;
|
|
34
|
+
resourceInputs["dropCascade"] = state ? state.dropCascade : undefined;
|
|
35
|
+
resourceInputs["name"] = state ? state.name : undefined;
|
|
36
|
+
resourceInputs["owner"] = state ? state.owner : undefined;
|
|
37
|
+
resourceInputs["publishParams"] = state ? state.publishParams : undefined;
|
|
38
|
+
resourceInputs["publishViaPartitionRootParam"] = state ? state.publishViaPartitionRootParam : undefined;
|
|
39
|
+
resourceInputs["tables"] = state ? state.tables : undefined;
|
|
40
|
+
}
|
|
41
|
+
else {
|
|
42
|
+
const args = argsOrState;
|
|
43
|
+
resourceInputs["allTables"] = args ? args.allTables : undefined;
|
|
44
|
+
resourceInputs["database"] = args ? args.database : undefined;
|
|
45
|
+
resourceInputs["dropCascade"] = args ? args.dropCascade : undefined;
|
|
46
|
+
resourceInputs["name"] = args ? args.name : undefined;
|
|
47
|
+
resourceInputs["owner"] = args ? args.owner : undefined;
|
|
48
|
+
resourceInputs["publishParams"] = args ? args.publishParams : undefined;
|
|
49
|
+
resourceInputs["publishViaPartitionRootParam"] = args ? args.publishViaPartitionRootParam : undefined;
|
|
50
|
+
resourceInputs["tables"] = args ? args.tables : undefined;
|
|
51
|
+
}
|
|
52
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
53
|
+
super(Publication.__pulumiType, name, resourceInputs, opts);
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* Get an existing Publication resource's state with the given name, ID, and optional extra
|
|
57
|
+
* properties used to qualify the lookup.
|
|
58
|
+
*
|
|
59
|
+
* @param name The _unique_ name of the resulting resource.
|
|
60
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
61
|
+
* @param state Any extra arguments used during the lookup.
|
|
62
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
63
|
+
*/
|
|
64
|
+
static get(name, id, state, opts) {
|
|
65
|
+
return new Publication(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
66
|
+
}
|
|
67
|
+
/**
|
|
68
|
+
* Returns true if the given object is an instance of Publication. This is designed to work even
|
|
69
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
70
|
+
*/
|
|
71
|
+
static isInstance(obj) {
|
|
72
|
+
if (obj === undefined || obj === null) {
|
|
73
|
+
return false;
|
|
74
|
+
}
|
|
75
|
+
return obj['__pulumiType'] === Publication.__pulumiType;
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
exports.Publication = Publication;
|
|
79
|
+
/** @internal */
|
|
80
|
+
Publication.__pulumiType = 'postgresql:index/publication:Publication';
|
|
81
|
+
//# sourceMappingURL=publication.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"publication.js","sourceRoot":"","sources":["../publication.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;GAiBG;AACH,MAAa,WAAY,SAAQ,MAAM,CAAC,cAAc;IAqElD,YAAY,IAAY,EAAE,WAAgD,EAAE,IAAmC;QAC3G,IAAI,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,KAAK,CAAC;SAChB;QACD,OAAO,GAAG,CAAC,cAAc,CAAC,KAAK,WAAW,CAAC,YAAY,CAAC;IAC5D,CAAC;;AA1BL,kCAgGC;AAlFG,gBAAgB;AACO,wBAAY,GAAG,0CAA0C,CAAC"}
|
package/types/input.d.ts
CHANGED
|
@@ -1,4 +1,22 @@
|
|
|
1
1
|
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
export interface FunctionArg {
|
|
3
|
+
/**
|
|
4
|
+
* An expression to be used as default value if the parameter is not specified.
|
|
5
|
+
*/
|
|
6
|
+
default?: pulumi.Input<string>;
|
|
7
|
+
/**
|
|
8
|
+
* Can be one of IN, INOUT, OUT, or VARIADIC. Default is IN.
|
|
9
|
+
*/
|
|
10
|
+
mode?: pulumi.Input<string>;
|
|
11
|
+
/**
|
|
12
|
+
* The name of the argument.
|
|
13
|
+
*/
|
|
14
|
+
name?: pulumi.Input<string>;
|
|
15
|
+
/**
|
|
16
|
+
* The type of the argument.
|
|
17
|
+
*/
|
|
18
|
+
type: pulumi.Input<string>;
|
|
19
|
+
}
|
|
2
20
|
export interface ProviderClientcert {
|
|
3
21
|
cert: pulumi.Input<string>;
|
|
4
22
|
key: pulumi.Input<string>;
|
package/types/output.d.ts
CHANGED
|
@@ -1,3 +1,21 @@
|
|
|
1
|
+
export interface FunctionArg {
|
|
2
|
+
/**
|
|
3
|
+
* An expression to be used as default value if the parameter is not specified.
|
|
4
|
+
*/
|
|
5
|
+
default?: string;
|
|
6
|
+
/**
|
|
7
|
+
* Can be one of IN, INOUT, OUT, or VARIADIC. Default is IN.
|
|
8
|
+
*/
|
|
9
|
+
mode?: string;
|
|
10
|
+
/**
|
|
11
|
+
* The name of the argument.
|
|
12
|
+
*/
|
|
13
|
+
name?: string;
|
|
14
|
+
/**
|
|
15
|
+
* The type of the argument.
|
|
16
|
+
*/
|
|
17
|
+
type: string;
|
|
18
|
+
}
|
|
1
19
|
export interface SchemaPolicy {
|
|
2
20
|
/**
|
|
3
21
|
* Should the specified ROLE have CREATE privileges to the specified SCHEMA.
|