@pulumi/postgresql 3.8.0-alpha.1679418256 → 3.8.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 CHANGED
@@ -16,13 +16,12 @@ import * as outputs from "./types/output";
16
16
  * name: "i",
17
17
  * type: "integer",
18
18
  * }],
19
- * body: ` AS $
20
- * BEGIN
19
+ * body: ` BEGIN
21
20
  * RETURN i + 1;
22
21
  * END;
23
- * $ LANGUAGE plpgsql;
24
22
  *
25
23
  * `,
24
+ * language: "plpgsql",
26
25
  * returns: "integer",
27
26
  * });
28
27
  * ```
@@ -49,7 +48,7 @@ export declare class Function extends pulumi.CustomResource {
49
48
  readonly args: pulumi.Output<outputs.FunctionArg[] | undefined>;
50
49
  /**
51
50
  * Function body.
52
- * This should be everything after the return type in the function definition.
51
+ * This should be the body content withing the `AS $$` and the final `$$`. It will also accept the `AS $$` and `$$` if added.
53
52
  */
54
53
  readonly body: pulumi.Output<string>;
55
54
  /**
@@ -62,14 +61,18 @@ export declare class Function extends pulumi.CustomResource {
62
61
  * operators or triggers), and in turn all objects that depend on those objects. Default is false.
63
62
  */
64
63
  readonly dropCascade: pulumi.Output<boolean | undefined>;
64
+ /**
65
+ * The function programming language. Can be one of internal, sql, c, plpgsql. Default is plpgsql.
66
+ */
67
+ readonly language: pulumi.Output<string | undefined>;
65
68
  /**
66
69
  * The name of the argument.
67
70
  */
68
71
  readonly name: pulumi.Output<string>;
69
72
  /**
70
- * Type that the function returns.
73
+ * Type that the function returns. It can be computed from the OUT arguments. Default is void.
71
74
  */
72
- readonly returns: pulumi.Output<string | undefined>;
75
+ readonly returns: pulumi.Output<string>;
73
76
  /**
74
77
  * The schema where the function is located.
75
78
  * If not specified, the function is created in the current schema.
@@ -94,7 +97,7 @@ export interface FunctionState {
94
97
  args?: pulumi.Input<pulumi.Input<inputs.FunctionArg>[]>;
95
98
  /**
96
99
  * Function body.
97
- * This should be everything after the return type in the function definition.
100
+ * This should be the body content withing the `AS $$` and the final `$$`. It will also accept the `AS $$` and `$$` if added.
98
101
  */
99
102
  body?: pulumi.Input<string>;
100
103
  /**
@@ -107,12 +110,16 @@ export interface FunctionState {
107
110
  * operators or triggers), and in turn all objects that depend on those objects. Default is false.
108
111
  */
109
112
  dropCascade?: pulumi.Input<boolean>;
113
+ /**
114
+ * The function programming language. Can be one of internal, sql, c, plpgsql. Default is plpgsql.
115
+ */
116
+ language?: pulumi.Input<string>;
110
117
  /**
111
118
  * The name of the argument.
112
119
  */
113
120
  name?: pulumi.Input<string>;
114
121
  /**
115
- * Type that the function returns.
122
+ * Type that the function returns. It can be computed from the OUT arguments. Default is void.
116
123
  */
117
124
  returns?: pulumi.Input<string>;
118
125
  /**
@@ -131,7 +138,7 @@ export interface FunctionArgs {
131
138
  args?: pulumi.Input<pulumi.Input<inputs.FunctionArg>[]>;
132
139
  /**
133
140
  * Function body.
134
- * This should be everything after the return type in the function definition.
141
+ * This should be the body content withing the `AS $$` and the final `$$`. It will also accept the `AS $$` and `$$` if added.
135
142
  */
136
143
  body: pulumi.Input<string>;
137
144
  /**
@@ -144,12 +151,16 @@ export interface FunctionArgs {
144
151
  * operators or triggers), and in turn all objects that depend on those objects. Default is false.
145
152
  */
146
153
  dropCascade?: pulumi.Input<boolean>;
154
+ /**
155
+ * The function programming language. Can be one of internal, sql, c, plpgsql. Default is plpgsql.
156
+ */
157
+ language?: pulumi.Input<string>;
147
158
  /**
148
159
  * The name of the argument.
149
160
  */
150
161
  name?: pulumi.Input<string>;
151
162
  /**
152
- * Type that the function returns.
163
+ * Type that the function returns. It can be computed from the OUT arguments. Default is void.
153
164
  */
154
165
  returns?: pulumi.Input<string>;
155
166
  /**
package/function.js CHANGED
@@ -20,13 +20,12 @@ const utilities = require("./utilities");
20
20
  * name: "i",
21
21
  * type: "integer",
22
22
  * }],
23
- * body: ` AS $
24
- * BEGIN
23
+ * body: ` BEGIN
25
24
  * RETURN i + 1;
26
25
  * END;
27
- * $ LANGUAGE plpgsql;
28
26
  *
29
27
  * `,
28
+ * language: "plpgsql",
30
29
  * returns: "integer",
31
30
  * });
32
31
  * ```
@@ -63,6 +62,7 @@ class Function extends pulumi.CustomResource {
63
62
  resourceInputs["body"] = state ? state.body : undefined;
64
63
  resourceInputs["database"] = state ? state.database : undefined;
65
64
  resourceInputs["dropCascade"] = state ? state.dropCascade : undefined;
65
+ resourceInputs["language"] = state ? state.language : undefined;
66
66
  resourceInputs["name"] = state ? state.name : undefined;
67
67
  resourceInputs["returns"] = state ? state.returns : undefined;
68
68
  resourceInputs["schema"] = state ? state.schema : undefined;
@@ -76,6 +76,7 @@ class Function extends pulumi.CustomResource {
76
76
  resourceInputs["body"] = args ? args.body : undefined;
77
77
  resourceInputs["database"] = args ? args.database : undefined;
78
78
  resourceInputs["dropCascade"] = args ? args.dropCascade : undefined;
79
+ resourceInputs["language"] = args ? args.language : undefined;
79
80
  resourceInputs["name"] = args ? args.name : undefined;
80
81
  resourceInputs["returns"] = args ? args.returns : undefined;
81
82
  resourceInputs["schema"] = args ? args.schema : undefined;
package/function.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"function.js","sourceRoot":"","sources":["../function.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,MAAa,QAAS,SAAQ,MAAM,CAAC,cAAc;IAC/C;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAqB,EAAE,IAAmC;QACnH,OAAO,IAAI,QAAQ,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IAC/D,CAAC;IAKD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,EAAE;YACnC,OAA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C,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC;YAC5D,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,QAAQ,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC7D,CAAC;;AAtGL,4BAuGC;AAzFG,gBAAgB;AACO,qBAAY,GAAG,oCAAoC,CAAC"}
@@ -0,0 +1,108 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ /**
3
+ * The ``postgresql.getSchemas`` data source retrieves a list of schema names from a specified PostgreSQL database.
4
+ *
5
+ * ## Usage
6
+ *
7
+ * ```typescript
8
+ * import * as pulumi from "@pulumi/pulumi";
9
+ * import * as postgresql from "@pulumi/postgresql";
10
+ *
11
+ * const mySchemas = postgresql.getSchemas({
12
+ * database: "my_database",
13
+ * });
14
+ * ```
15
+ */
16
+ export declare function getSchemas(args: GetSchemasArgs, opts?: pulumi.InvokeOptions): Promise<GetSchemasResult>;
17
+ /**
18
+ * A collection of arguments for invoking getSchemas.
19
+ */
20
+ export interface GetSchemasArgs {
21
+ /**
22
+ * The PostgreSQL database which will be queried for schema names.
23
+ */
24
+ database: string;
25
+ /**
26
+ * Determines whether to include system schemas (pg_ prefix and information_schema). 'public' will always be included. Defaults to ``false``.
27
+ */
28
+ includeSystemSchemas?: boolean;
29
+ /**
30
+ * List of expressions which will be pattern matched in the query using the PostgreSQL ``LIKE ALL`` operators.
31
+ */
32
+ likeAllPatterns?: string[];
33
+ /**
34
+ * List of expressions which will be pattern matched in the query using the PostgreSQL ``LIKE ANY`` operators.
35
+ */
36
+ likeAnyPatterns?: string[];
37
+ /**
38
+ * List of expressions which will be pattern matched in the query using the PostgreSQL ``NOT LIKE ALL`` operators.
39
+ */
40
+ notLikeAllPatterns?: string[];
41
+ /**
42
+ * Expression which will be pattern matched in the query using the PostgreSQL ``~`` (regular expression match) operator.
43
+ */
44
+ regexPattern?: string;
45
+ }
46
+ /**
47
+ * A collection of values returned by getSchemas.
48
+ */
49
+ export interface GetSchemasResult {
50
+ readonly database: string;
51
+ /**
52
+ * The provider-assigned unique ID for this managed resource.
53
+ */
54
+ readonly id: string;
55
+ readonly includeSystemSchemas?: boolean;
56
+ readonly likeAllPatterns?: string[];
57
+ readonly likeAnyPatterns?: string[];
58
+ readonly notLikeAllPatterns?: string[];
59
+ readonly regexPattern?: string;
60
+ /**
61
+ * A list of full names of found schemas.
62
+ */
63
+ readonly schemas: string[];
64
+ }
65
+ /**
66
+ * The ``postgresql.getSchemas`` data source retrieves a list of schema names from a specified PostgreSQL database.
67
+ *
68
+ * ## Usage
69
+ *
70
+ * ```typescript
71
+ * import * as pulumi from "@pulumi/pulumi";
72
+ * import * as postgresql from "@pulumi/postgresql";
73
+ *
74
+ * const mySchemas = postgresql.getSchemas({
75
+ * database: "my_database",
76
+ * });
77
+ * ```
78
+ */
79
+ export declare function getSchemasOutput(args: GetSchemasOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetSchemasResult>;
80
+ /**
81
+ * A collection of arguments for invoking getSchemas.
82
+ */
83
+ export interface GetSchemasOutputArgs {
84
+ /**
85
+ * The PostgreSQL database which will be queried for schema names.
86
+ */
87
+ database: pulumi.Input<string>;
88
+ /**
89
+ * Determines whether to include system schemas (pg_ prefix and information_schema). 'public' will always be included. Defaults to ``false``.
90
+ */
91
+ includeSystemSchemas?: pulumi.Input<boolean>;
92
+ /**
93
+ * List of expressions which will be pattern matched in the query using the PostgreSQL ``LIKE ALL`` operators.
94
+ */
95
+ likeAllPatterns?: pulumi.Input<pulumi.Input<string>[]>;
96
+ /**
97
+ * List of expressions which will be pattern matched in the query using the PostgreSQL ``LIKE ANY`` operators.
98
+ */
99
+ likeAnyPatterns?: pulumi.Input<pulumi.Input<string>[]>;
100
+ /**
101
+ * List of expressions which will be pattern matched in the query using the PostgreSQL ``NOT LIKE ALL`` operators.
102
+ */
103
+ notLikeAllPatterns?: pulumi.Input<pulumi.Input<string>[]>;
104
+ /**
105
+ * Expression which will be pattern matched in the query using the PostgreSQL ``~`` (regular expression match) operator.
106
+ */
107
+ regexPattern?: pulumi.Input<string>;
108
+ }
package/getSchemas.js ADDED
@@ -0,0 +1,52 @@
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.getSchemasOutput = exports.getSchemas = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("./utilities");
8
+ /**
9
+ * The ``postgresql.getSchemas`` data source retrieves a list of schema names from a specified PostgreSQL database.
10
+ *
11
+ * ## Usage
12
+ *
13
+ * ```typescript
14
+ * import * as pulumi from "@pulumi/pulumi";
15
+ * import * as postgresql from "@pulumi/postgresql";
16
+ *
17
+ * const mySchemas = postgresql.getSchemas({
18
+ * database: "my_database",
19
+ * });
20
+ * ```
21
+ */
22
+ function getSchemas(args, opts) {
23
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
24
+ return pulumi.runtime.invoke("postgresql:index/getSchemas:getSchemas", {
25
+ "database": args.database,
26
+ "includeSystemSchemas": args.includeSystemSchemas,
27
+ "likeAllPatterns": args.likeAllPatterns,
28
+ "likeAnyPatterns": args.likeAnyPatterns,
29
+ "notLikeAllPatterns": args.notLikeAllPatterns,
30
+ "regexPattern": args.regexPattern,
31
+ }, opts);
32
+ }
33
+ exports.getSchemas = getSchemas;
34
+ /**
35
+ * The ``postgresql.getSchemas`` data source retrieves a list of schema names from a specified PostgreSQL database.
36
+ *
37
+ * ## Usage
38
+ *
39
+ * ```typescript
40
+ * import * as pulumi from "@pulumi/pulumi";
41
+ * import * as postgresql from "@pulumi/postgresql";
42
+ *
43
+ * const mySchemas = postgresql.getSchemas({
44
+ * database: "my_database",
45
+ * });
46
+ * ```
47
+ */
48
+ function getSchemasOutput(args, opts) {
49
+ return pulumi.output(args).apply((a) => getSchemas(a, opts));
50
+ }
51
+ exports.getSchemasOutput = getSchemasOutput;
52
+ //# sourceMappingURL=getSchemas.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getSchemas.js","sourceRoot":"","sources":["../getSchemas.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;GAaG;AACH,SAAgB,UAAU,CAAC,IAAoB,EAAE,IAA2B;IAExE,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,wCAAwC,EAAE;QACnE,UAAU,EAAE,IAAI,CAAC,QAAQ;QACzB,sBAAsB,EAAE,IAAI,CAAC,oBAAoB;QACjD,iBAAiB,EAAE,IAAI,CAAC,eAAe;QACvC,iBAAiB,EAAE,IAAI,CAAC,eAAe;QACvC,oBAAoB,EAAE,IAAI,CAAC,kBAAkB;QAC7C,cAAc,EAAE,IAAI,CAAC,YAAY;KACpC,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAXD,gCAWC;AAmDD;;;;;;;;;;;;;GAaG;AACH,SAAgB,gBAAgB,CAAC,IAA0B,EAAE,IAA2B;IACpF,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAM,EAAE,EAAE,CAAC,UAAU,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AACrE,CAAC;AAFD,4CAEC"}
@@ -0,0 +1,110 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ import * as outputs from "./types/output";
3
+ /**
4
+ * The ``postgresql.getSequences`` data source retrieves a list of sequence names from a specified PostgreSQL database.
5
+ *
6
+ * ## Usage
7
+ *
8
+ * ```typescript
9
+ * import * as pulumi from "@pulumi/pulumi";
10
+ * import * as postgresql from "@pulumi/postgresql";
11
+ *
12
+ * const mySequences = postgresql.getSequences({
13
+ * database: "my_database",
14
+ * });
15
+ * ```
16
+ */
17
+ export declare function getSequences(args: GetSequencesArgs, opts?: pulumi.InvokeOptions): Promise<GetSequencesResult>;
18
+ /**
19
+ * A collection of arguments for invoking getSequences.
20
+ */
21
+ export interface GetSequencesArgs {
22
+ /**
23
+ * The PostgreSQL database which will be queried for sequence names.
24
+ */
25
+ database: string;
26
+ /**
27
+ * List of expressions which will be pattern matched against sequence names in the query using the PostgreSQL ``LIKE ALL`` operators.
28
+ */
29
+ likeAllPatterns?: string[];
30
+ /**
31
+ * List of expressions which will be pattern matched against sequence names in the query using the PostgreSQL ``LIKE ANY`` operators.
32
+ */
33
+ likeAnyPatterns?: string[];
34
+ /**
35
+ * List of expressions which will be pattern matched against sequence names in the query using the PostgreSQL ``NOT LIKE ALL`` operators.
36
+ */
37
+ notLikeAllPatterns?: string[];
38
+ /**
39
+ * Expression which will be pattern matched against sequence names in the query using the PostgreSQL ``~`` (regular expression match) operator.
40
+ */
41
+ regexPattern?: string;
42
+ /**
43
+ * List of PostgreSQL schema(s) which will be queried for sequence names. Queries all schemas in the database by default.
44
+ */
45
+ schemas?: string[];
46
+ }
47
+ /**
48
+ * A collection of values returned by getSequences.
49
+ */
50
+ export interface GetSequencesResult {
51
+ readonly database: string;
52
+ /**
53
+ * The provider-assigned unique ID for this managed resource.
54
+ */
55
+ readonly id: string;
56
+ readonly likeAllPatterns?: string[];
57
+ readonly likeAnyPatterns?: string[];
58
+ readonly notLikeAllPatterns?: string[];
59
+ readonly regexPattern?: string;
60
+ readonly schemas?: string[];
61
+ /**
62
+ * A list of PostgreSQL sequences retrieved by this data source. Each sequence consists of the fields documented below.
63
+ * ___
64
+ */
65
+ readonly sequences: outputs.GetSequencesSequence[];
66
+ }
67
+ /**
68
+ * The ``postgresql.getSequences`` data source retrieves a list of sequence names from a specified PostgreSQL database.
69
+ *
70
+ * ## Usage
71
+ *
72
+ * ```typescript
73
+ * import * as pulumi from "@pulumi/pulumi";
74
+ * import * as postgresql from "@pulumi/postgresql";
75
+ *
76
+ * const mySequences = postgresql.getSequences({
77
+ * database: "my_database",
78
+ * });
79
+ * ```
80
+ */
81
+ export declare function getSequencesOutput(args: GetSequencesOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetSequencesResult>;
82
+ /**
83
+ * A collection of arguments for invoking getSequences.
84
+ */
85
+ export interface GetSequencesOutputArgs {
86
+ /**
87
+ * The PostgreSQL database which will be queried for sequence names.
88
+ */
89
+ database: pulumi.Input<string>;
90
+ /**
91
+ * List of expressions which will be pattern matched against sequence names in the query using the PostgreSQL ``LIKE ALL`` operators.
92
+ */
93
+ likeAllPatterns?: pulumi.Input<pulumi.Input<string>[]>;
94
+ /**
95
+ * List of expressions which will be pattern matched against sequence names in the query using the PostgreSQL ``LIKE ANY`` operators.
96
+ */
97
+ likeAnyPatterns?: pulumi.Input<pulumi.Input<string>[]>;
98
+ /**
99
+ * List of expressions which will be pattern matched against sequence names in the query using the PostgreSQL ``NOT LIKE ALL`` operators.
100
+ */
101
+ notLikeAllPatterns?: pulumi.Input<pulumi.Input<string>[]>;
102
+ /**
103
+ * Expression which will be pattern matched against sequence names in the query using the PostgreSQL ``~`` (regular expression match) operator.
104
+ */
105
+ regexPattern?: pulumi.Input<string>;
106
+ /**
107
+ * List of PostgreSQL schema(s) which will be queried for sequence names. Queries all schemas in the database by default.
108
+ */
109
+ schemas?: pulumi.Input<pulumi.Input<string>[]>;
110
+ }
@@ -0,0 +1,52 @@
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.getSequencesOutput = exports.getSequences = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("./utilities");
8
+ /**
9
+ * The ``postgresql.getSequences`` data source retrieves a list of sequence names from a specified PostgreSQL database.
10
+ *
11
+ * ## Usage
12
+ *
13
+ * ```typescript
14
+ * import * as pulumi from "@pulumi/pulumi";
15
+ * import * as postgresql from "@pulumi/postgresql";
16
+ *
17
+ * const mySequences = postgresql.getSequences({
18
+ * database: "my_database",
19
+ * });
20
+ * ```
21
+ */
22
+ function getSequences(args, opts) {
23
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
24
+ return pulumi.runtime.invoke("postgresql:index/getSequences:getSequences", {
25
+ "database": args.database,
26
+ "likeAllPatterns": args.likeAllPatterns,
27
+ "likeAnyPatterns": args.likeAnyPatterns,
28
+ "notLikeAllPatterns": args.notLikeAllPatterns,
29
+ "regexPattern": args.regexPattern,
30
+ "schemas": args.schemas,
31
+ }, opts);
32
+ }
33
+ exports.getSequences = getSequences;
34
+ /**
35
+ * The ``postgresql.getSequences`` data source retrieves a list of sequence names from a specified PostgreSQL database.
36
+ *
37
+ * ## Usage
38
+ *
39
+ * ```typescript
40
+ * import * as pulumi from "@pulumi/pulumi";
41
+ * import * as postgresql from "@pulumi/postgresql";
42
+ *
43
+ * const mySequences = postgresql.getSequences({
44
+ * database: "my_database",
45
+ * });
46
+ * ```
47
+ */
48
+ function getSequencesOutput(args, opts) {
49
+ return pulumi.output(args).apply((a) => getSequences(a, opts));
50
+ }
51
+ exports.getSequencesOutput = getSequencesOutput;
52
+ //# sourceMappingURL=getSequences.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getSequences.js","sourceRoot":"","sources":["../getSequences.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;GAaG;AACH,SAAgB,YAAY,CAAC,IAAsB,EAAE,IAA2B;IAE5E,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,4CAA4C,EAAE;QACvE,UAAU,EAAE,IAAI,CAAC,QAAQ;QACzB,iBAAiB,EAAE,IAAI,CAAC,eAAe;QACvC,iBAAiB,EAAE,IAAI,CAAC,eAAe;QACvC,oBAAoB,EAAE,IAAI,CAAC,kBAAkB;QAC7C,cAAc,EAAE,IAAI,CAAC,YAAY;QACjC,SAAS,EAAE,IAAI,CAAC,OAAO;KAC1B,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAXD,oCAWC;AAoDD;;;;;;;;;;;;;GAaG;AACH,SAAgB,kBAAkB,CAAC,IAA4B,EAAE,IAA2B;IACxF,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAM,EAAE,EAAE,CAAC,YAAY,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AACvE,CAAC;AAFD,gDAEC"}
package/getTables.d.ts ADDED
@@ -0,0 +1,119 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ import * as outputs from "./types/output";
3
+ /**
4
+ * The ``postgresql.getTables`` data source retrieves a list of table names from a specified PostgreSQL database.
5
+ *
6
+ * ## Usage
7
+ *
8
+ * ```typescript
9
+ * import * as pulumi from "@pulumi/pulumi";
10
+ * import * as postgresql from "@pulumi/postgresql";
11
+ *
12
+ * const myTables = postgresql.getTables({
13
+ * database: "my_database",
14
+ * });
15
+ * ```
16
+ */
17
+ export declare function getTables(args: GetTablesArgs, opts?: pulumi.InvokeOptions): Promise<GetTablesResult>;
18
+ /**
19
+ * A collection of arguments for invoking getTables.
20
+ */
21
+ export interface GetTablesArgs {
22
+ /**
23
+ * The PostgreSQL database which will be queried for table names.
24
+ */
25
+ database: string;
26
+ /**
27
+ * List of expressions which will be pattern matched against table names in the query using the PostgreSQL ``LIKE ALL`` operators.
28
+ */
29
+ likeAllPatterns?: string[];
30
+ /**
31
+ * List of expressions which will be pattern matched against table names in the query using the PostgreSQL ``LIKE ANY`` operators.
32
+ */
33
+ likeAnyPatterns?: string[];
34
+ /**
35
+ * List of expressions which will be pattern matched against table names in the query using the PostgreSQL ``NOT LIKE ALL`` operators.
36
+ */
37
+ notLikeAllPatterns?: string[];
38
+ /**
39
+ * Expression which will be pattern matched against table names in the query using the PostgreSQL ``~`` (regular expression match) operator.
40
+ */
41
+ regexPattern?: string;
42
+ /**
43
+ * List of PostgreSQL schema(s) which will be queried for table names. Queries all schemas in the database by default.
44
+ */
45
+ schemas?: string[];
46
+ /**
47
+ * List of PostgreSQL table types which will be queried for table names. Includes all table types by default (including views and temp tables). Use 'BASE TABLE' for normal tables only.
48
+ */
49
+ tableTypes?: string[];
50
+ }
51
+ /**
52
+ * A collection of values returned by getTables.
53
+ */
54
+ export interface GetTablesResult {
55
+ readonly database: string;
56
+ /**
57
+ * The provider-assigned unique ID for this managed resource.
58
+ */
59
+ readonly id: string;
60
+ readonly likeAllPatterns?: string[];
61
+ readonly likeAnyPatterns?: string[];
62
+ readonly notLikeAllPatterns?: string[];
63
+ readonly regexPattern?: string;
64
+ readonly schemas?: string[];
65
+ readonly tableTypes?: string[];
66
+ /**
67
+ * A list of PostgreSQL tables retrieved by this data source. Each table consists of the fields documented below.
68
+ * ___
69
+ */
70
+ readonly tables: outputs.GetTablesTable[];
71
+ }
72
+ /**
73
+ * The ``postgresql.getTables`` data source retrieves a list of table names from a specified PostgreSQL database.
74
+ *
75
+ * ## Usage
76
+ *
77
+ * ```typescript
78
+ * import * as pulumi from "@pulumi/pulumi";
79
+ * import * as postgresql from "@pulumi/postgresql";
80
+ *
81
+ * const myTables = postgresql.getTables({
82
+ * database: "my_database",
83
+ * });
84
+ * ```
85
+ */
86
+ export declare function getTablesOutput(args: GetTablesOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetTablesResult>;
87
+ /**
88
+ * A collection of arguments for invoking getTables.
89
+ */
90
+ export interface GetTablesOutputArgs {
91
+ /**
92
+ * The PostgreSQL database which will be queried for table names.
93
+ */
94
+ database: pulumi.Input<string>;
95
+ /**
96
+ * List of expressions which will be pattern matched against table names in the query using the PostgreSQL ``LIKE ALL`` operators.
97
+ */
98
+ likeAllPatterns?: pulumi.Input<pulumi.Input<string>[]>;
99
+ /**
100
+ * List of expressions which will be pattern matched against table names in the query using the PostgreSQL ``LIKE ANY`` operators.
101
+ */
102
+ likeAnyPatterns?: pulumi.Input<pulumi.Input<string>[]>;
103
+ /**
104
+ * List of expressions which will be pattern matched against table names in the query using the PostgreSQL ``NOT LIKE ALL`` operators.
105
+ */
106
+ notLikeAllPatterns?: pulumi.Input<pulumi.Input<string>[]>;
107
+ /**
108
+ * Expression which will be pattern matched against table names in the query using the PostgreSQL ``~`` (regular expression match) operator.
109
+ */
110
+ regexPattern?: pulumi.Input<string>;
111
+ /**
112
+ * List of PostgreSQL schema(s) which will be queried for table names. Queries all schemas in the database by default.
113
+ */
114
+ schemas?: pulumi.Input<pulumi.Input<string>[]>;
115
+ /**
116
+ * List of PostgreSQL table types which will be queried for table names. Includes all table types by default (including views and temp tables). Use 'BASE TABLE' for normal tables only.
117
+ */
118
+ tableTypes?: pulumi.Input<pulumi.Input<string>[]>;
119
+ }
package/getTables.js ADDED
@@ -0,0 +1,53 @@
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.getTablesOutput = exports.getTables = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("./utilities");
8
+ /**
9
+ * The ``postgresql.getTables`` data source retrieves a list of table names from a specified PostgreSQL database.
10
+ *
11
+ * ## Usage
12
+ *
13
+ * ```typescript
14
+ * import * as pulumi from "@pulumi/pulumi";
15
+ * import * as postgresql from "@pulumi/postgresql";
16
+ *
17
+ * const myTables = postgresql.getTables({
18
+ * database: "my_database",
19
+ * });
20
+ * ```
21
+ */
22
+ function getTables(args, opts) {
23
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
24
+ return pulumi.runtime.invoke("postgresql:index/getTables:getTables", {
25
+ "database": args.database,
26
+ "likeAllPatterns": args.likeAllPatterns,
27
+ "likeAnyPatterns": args.likeAnyPatterns,
28
+ "notLikeAllPatterns": args.notLikeAllPatterns,
29
+ "regexPattern": args.regexPattern,
30
+ "schemas": args.schemas,
31
+ "tableTypes": args.tableTypes,
32
+ }, opts);
33
+ }
34
+ exports.getTables = getTables;
35
+ /**
36
+ * The ``postgresql.getTables`` data source retrieves a list of table names from a specified PostgreSQL database.
37
+ *
38
+ * ## Usage
39
+ *
40
+ * ```typescript
41
+ * import * as pulumi from "@pulumi/pulumi";
42
+ * import * as postgresql from "@pulumi/postgresql";
43
+ *
44
+ * const myTables = postgresql.getTables({
45
+ * database: "my_database",
46
+ * });
47
+ * ```
48
+ */
49
+ function getTablesOutput(args, opts) {
50
+ return pulumi.output(args).apply((a) => getTables(a, opts));
51
+ }
52
+ exports.getTablesOutput = getTablesOutput;
53
+ //# sourceMappingURL=getTables.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getTables.js","sourceRoot":"","sources":["../getTables.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;GAaG;AACH,SAAgB,SAAS,CAAC,IAAmB,EAAE,IAA2B;IAEtE,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,sCAAsC,EAAE;QACjE,UAAU,EAAE,IAAI,CAAC,QAAQ;QACzB,iBAAiB,EAAE,IAAI,CAAC,eAAe;QACvC,iBAAiB,EAAE,IAAI,CAAC,eAAe;QACvC,oBAAoB,EAAE,IAAI,CAAC,kBAAkB;QAC7C,cAAc,EAAE,IAAI,CAAC,YAAY;QACjC,SAAS,EAAE,IAAI,CAAC,OAAO;QACvB,YAAY,EAAE,IAAI,CAAC,UAAU;KAChC,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAZD,8BAYC;AAyDD;;;;;;;;;;;;;GAaG;AACH,SAAgB,eAAe,CAAC,IAAyB,EAAE,IAA2B;IAClF,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAM,EAAE,EAAE,CAAC,SAAS,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AACpE,CAAC;AAFD,0CAEC"}
package/grant.d.ts CHANGED
@@ -5,6 +5,7 @@ import * as pulumi from "@pulumi/pulumi";
5
5
  * See [PostgreSQL documentation](https://www.postgresql.org/docs/current/sql-grant.html)
6
6
  *
7
7
  * > **Note:** This resource needs Postgresql version 9 or above.
8
+ * **Note:** Using column & table grants on the _same_ table with the _same_ privileges can lead to unexpected behaviours.
8
9
  *
9
10
  * ## Usage
10
11
  *
@@ -12,6 +13,7 @@ import * as pulumi from "@pulumi/pulumi";
12
13
  * import * as pulumi from "@pulumi/pulumi";
13
14
  * import * as postgresql from "@pulumi/postgresql";
14
15
  *
16
+ * // Grant SELECT privileges on 2 tables
15
17
  * const readonlyTables = new postgresql.Grant("readonlyTables", {
16
18
  * database: "test_db",
17
19
  * objectType: "table",
@@ -23,6 +25,22 @@ import * as pulumi from "@pulumi/pulumi";
23
25
  * role: "test_role",
24
26
  * schema: "public",
25
27
  * });
28
+ * // Grant SELECT & INSERT privileges on 2 columns in 1 table
29
+ * const readInsertColumn = new postgresql.Grant("readInsertColumn", {
30
+ * columns: [
31
+ * "col1",
32
+ * "col2",
33
+ * ],
34
+ * database: "test_db",
35
+ * objectType: "column",
36
+ * objects: ["table1"],
37
+ * privileges: [
38
+ * "UPDATE",
39
+ * "INSERT",
40
+ * ],
41
+ * role: "test_role",
42
+ * schema: "public",
43
+ * });
26
44
  * ```
27
45
  *
28
46
  * ## Examples
@@ -58,16 +76,20 @@ export declare class Grant extends pulumi.CustomResource {
58
76
  * when multiple copies of the Pulumi SDK have been loaded into the same process.
59
77
  */
60
78
  static isInstance(obj: any): obj is Grant;
79
+ /**
80
+ * The columns upon which to grant the privileges. Required when `objectType` is `column`. You cannot specify this option if the `objectType` is not `column`.
81
+ */
82
+ readonly columns: pulumi.Output<string[] | undefined>;
61
83
  /**
62
84
  * The database to grant privileges on for this role.
63
85
  */
64
86
  readonly database: pulumi.Output<string>;
65
87
  /**
66
- * The PostgreSQL object type to grant the privileges on (one of: database, schema, table, sequence, function, procedure, routine, foreign_data_wrapper, foreign_server).
88
+ * The PostgreSQL object type to grant the privileges on (one of: database, schema, table, sequence, function, procedure, routine, foreign_data_wrapper, foreign_server, column).
67
89
  */
68
90
  readonly objectType: pulumi.Output<string>;
69
91
  /**
70
- * The objects upon which to grant the privileges. An empty list (the default) means to grant permissions on *all* objects of the specified type. You cannot specify this option if the `objectType` is `database` or `schema`.
92
+ * The objects upon which to grant the privileges. An empty list (the default) means to grant permissions on *all* objects of the specified type. You cannot specify this option if the `objectType` is `database` or `schema`. When `objectType` is `column`, only one value is allowed.
71
93
  */
72
94
  readonly objects: pulumi.Output<string[] | undefined>;
73
95
  /**
@@ -99,16 +121,20 @@ export declare class Grant extends pulumi.CustomResource {
99
121
  * Input properties used for looking up and filtering Grant resources.
100
122
  */
101
123
  export interface GrantState {
124
+ /**
125
+ * The columns upon which to grant the privileges. Required when `objectType` is `column`. You cannot specify this option if the `objectType` is not `column`.
126
+ */
127
+ columns?: pulumi.Input<pulumi.Input<string>[]>;
102
128
  /**
103
129
  * The database to grant privileges on for this role.
104
130
  */
105
131
  database?: pulumi.Input<string>;
106
132
  /**
107
- * The PostgreSQL object type to grant the privileges on (one of: database, schema, table, sequence, function, procedure, routine, foreign_data_wrapper, foreign_server).
133
+ * The PostgreSQL object type to grant the privileges on (one of: database, schema, table, sequence, function, procedure, routine, foreign_data_wrapper, foreign_server, column).
108
134
  */
109
135
  objectType?: pulumi.Input<string>;
110
136
  /**
111
- * The objects upon which to grant the privileges. An empty list (the default) means to grant permissions on *all* objects of the specified type. You cannot specify this option if the `objectType` is `database` or `schema`.
137
+ * The objects upon which to grant the privileges. An empty list (the default) means to grant permissions on *all* objects of the specified type. You cannot specify this option if the `objectType` is `database` or `schema`. When `objectType` is `column`, only one value is allowed.
112
138
  */
113
139
  objects?: pulumi.Input<pulumi.Input<string>[]>;
114
140
  /**
@@ -132,16 +158,20 @@ export interface GrantState {
132
158
  * The set of arguments for constructing a Grant resource.
133
159
  */
134
160
  export interface GrantArgs {
161
+ /**
162
+ * The columns upon which to grant the privileges. Required when `objectType` is `column`. You cannot specify this option if the `objectType` is not `column`.
163
+ */
164
+ columns?: pulumi.Input<pulumi.Input<string>[]>;
135
165
  /**
136
166
  * The database to grant privileges on for this role.
137
167
  */
138
168
  database: pulumi.Input<string>;
139
169
  /**
140
- * The PostgreSQL object type to grant the privileges on (one of: database, schema, table, sequence, function, procedure, routine, foreign_data_wrapper, foreign_server).
170
+ * The PostgreSQL object type to grant the privileges on (one of: database, schema, table, sequence, function, procedure, routine, foreign_data_wrapper, foreign_server, column).
141
171
  */
142
172
  objectType: pulumi.Input<string>;
143
173
  /**
144
- * The objects upon which to grant the privileges. An empty list (the default) means to grant permissions on *all* objects of the specified type. You cannot specify this option if the `objectType` is `database` or `schema`.
174
+ * The objects upon which to grant the privileges. An empty list (the default) means to grant permissions on *all* objects of the specified type. You cannot specify this option if the `objectType` is `database` or `schema`. When `objectType` is `column`, only one value is allowed.
145
175
  */
146
176
  objects?: pulumi.Input<pulumi.Input<string>[]>;
147
177
  /**
package/grant.js CHANGED
@@ -11,6 +11,7 @@ const utilities = require("./utilities");
11
11
  * See [PostgreSQL documentation](https://www.postgresql.org/docs/current/sql-grant.html)
12
12
  *
13
13
  * > **Note:** This resource needs Postgresql version 9 or above.
14
+ * **Note:** Using column & table grants on the _same_ table with the _same_ privileges can lead to unexpected behaviours.
14
15
  *
15
16
  * ## Usage
16
17
  *
@@ -18,6 +19,7 @@ const utilities = require("./utilities");
18
19
  * import * as pulumi from "@pulumi/pulumi";
19
20
  * import * as postgresql from "@pulumi/postgresql";
20
21
  *
22
+ * // Grant SELECT privileges on 2 tables
21
23
  * const readonlyTables = new postgresql.Grant("readonlyTables", {
22
24
  * database: "test_db",
23
25
  * objectType: "table",
@@ -29,6 +31,22 @@ const utilities = require("./utilities");
29
31
  * role: "test_role",
30
32
  * schema: "public",
31
33
  * });
34
+ * // Grant SELECT & INSERT privileges on 2 columns in 1 table
35
+ * const readInsertColumn = new postgresql.Grant("readInsertColumn", {
36
+ * columns: [
37
+ * "col1",
38
+ * "col2",
39
+ * ],
40
+ * database: "test_db",
41
+ * objectType: "column",
42
+ * objects: ["table1"],
43
+ * privileges: [
44
+ * "UPDATE",
45
+ * "INSERT",
46
+ * ],
47
+ * role: "test_role",
48
+ * schema: "public",
49
+ * });
32
50
  * ```
33
51
  *
34
52
  * ## Examples
@@ -76,6 +94,7 @@ class Grant extends pulumi.CustomResource {
76
94
  opts = opts || {};
77
95
  if (opts.id) {
78
96
  const state = argsOrState;
97
+ resourceInputs["columns"] = state ? state.columns : undefined;
79
98
  resourceInputs["database"] = state ? state.database : undefined;
80
99
  resourceInputs["objectType"] = state ? state.objectType : undefined;
81
100
  resourceInputs["objects"] = state ? state.objects : undefined;
@@ -98,6 +117,7 @@ class Grant extends pulumi.CustomResource {
98
117
  if ((!args || args.role === undefined) && !opts.urn) {
99
118
  throw new Error("Missing required property 'role'");
100
119
  }
120
+ resourceInputs["columns"] = args ? args.columns : undefined;
101
121
  resourceInputs["database"] = args ? args.database : undefined;
102
122
  resourceInputs["objectType"] = args ? args.objectType : undefined;
103
123
  resourceInputs["objects"] = args ? args.objects : undefined;
package/grant.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"grant.js","sourceRoot":"","sources":["../grant.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0CG;AACH,MAAa,KAAM,SAAQ,MAAM,CAAC,cAAc;IAC5C;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAkB,EAAE,IAAmC;QAChH,OAAO,IAAI,KAAK,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IAC5D,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,KAAK,CAAC,YAAY,CAAC;IACtD,CAAC;IAuCD,YAAY,IAAY,EAAE,WAAoC,EAAE,IAAmC;QAC/F,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAAqC,CAAC;YACpD,cAAc,CAAC,UAAU,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC;YAChE,cAAc,CAAC,YAAY,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC,CAAC,SAAS,CAAC;YACpE,cAAc,CAAC,SAAS,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS,C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AAI,CAAC,UAAU,CAAC,CAAC,CAAC,SAAS,CAAC;YAClE,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,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;YAC1D,cAAc,CAAC,iBAAiB,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC,CAAC,SAAS,CAAC;SAC/E;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,KAAK,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC1D,CAAC;;AA3GL,sBA4GC;AA9FG,gBAAgB;AACO,kBAAY,GAAG,8BAA8B,CAAC"}
package/index.d.ts CHANGED
@@ -13,6 +13,15 @@ export declare const Extension: typeof import("./extension").Extension;
13
13
  export { FunctionArgs, FunctionState } from "./function";
14
14
  export type Function = import("./function").Function;
15
15
  export declare const Function: typeof import("./function").Function;
16
+ export { GetSchemasArgs, GetSchemasResult, GetSchemasOutputArgs } from "./getSchemas";
17
+ export declare const getSchemas: typeof import("./getSchemas").getSchemas;
18
+ export declare const getSchemasOutput: typeof import("./getSchemas").getSchemasOutput;
19
+ export { GetSequencesArgs, GetSequencesResult, GetSequencesOutputArgs } from "./getSequences";
20
+ export declare const getSequences: typeof import("./getSequences").getSequences;
21
+ export declare const getSequencesOutput: typeof import("./getSequences").getSequencesOutput;
22
+ export { GetTablesArgs, GetTablesResult, GetTablesOutputArgs } from "./getTables";
23
+ export declare const getTables: typeof import("./getTables").getTables;
24
+ export declare const getTablesOutput: typeof import("./getTables").getTablesOutput;
16
25
  export { GrantArgs, GrantState } from "./grant";
17
26
  export type Grant = import("./grant").Grant;
18
27
  export declare const Grant: typeof import("./grant").Grant;
package/index.js CHANGED
@@ -2,7 +2,7 @@
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
4
  Object.defineProperty(exports, "__esModule", { value: true });
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;
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.getTablesOutput = exports.getTables = exports.getSequencesOutput = exports.getSequences = exports.getSchemasOutput = exports.getSchemas = exports.Function = exports.Extension = exports.DefaultPrivileges = exports.DefaultPrivileg = exports.Database = void 0;
6
6
  const pulumi = require("@pulumi/pulumi");
7
7
  const utilities = require("./utilities");
8
8
  exports.Database = null;
@@ -15,6 +15,15 @@ exports.Extension = null;
15
15
  utilities.lazyLoad(exports, ["Extension"], () => require("./extension"));
16
16
  exports.Function = null;
17
17
  utilities.lazyLoad(exports, ["Function"], () => require("./function"));
18
+ exports.getSchemas = null;
19
+ exports.getSchemasOutput = null;
20
+ utilities.lazyLoad(exports, ["getSchemas", "getSchemasOutput"], () => require("./getSchemas"));
21
+ exports.getSequences = null;
22
+ exports.getSequencesOutput = null;
23
+ utilities.lazyLoad(exports, ["getSequences", "getSequencesOutput"], () => require("./getSequences"));
24
+ exports.getTables = null;
25
+ exports.getTablesOutput = null;
26
+ utilities.lazyLoad(exports, ["getTables", "getTablesOutput"], () => require("./getTables"));
18
27
  exports.Grant = null;
19
28
  utilities.lazyLoad(exports, ["Grant"], () => require("./grant"));
20
29
  exports.GrantRole = null;
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;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,CAAC,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,aAAa,CAAC,CAAC,CAAC;AAI5D,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,KAAK,GAAmC,IAAW,CA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AI,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.8.0-alpha.1679418256+1a5e8970",
3
+ "version": "v3.8.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.8.0-alpha.1679418256+1a5e8970"
14
+ "install": "node scripts/install-pulumi-plugin.js resource postgresql v3.8.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.8.0-alpha.1679418256+1a5e8970",
3
+ "version": "v3.8.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.8.0-alpha.1679418256+1a5e8970"
14
+ "install": "node scripts/install-pulumi-plugin.js resource postgresql v3.8.0"
15
15
  },
16
16
  "dependencies": {
17
17
  "@pulumi/pulumi": "^3.0.0"
package/types/output.d.ts CHANGED
@@ -16,6 +16,34 @@ export interface FunctionArg {
16
16
  */
17
17
  type: string;
18
18
  }
19
+ export interface GetSequencesSequence {
20
+ /**
21
+ * The sequence's data type as defined in ``information_schema.sequences``.
22
+ */
23
+ dataType: string;
24
+ /**
25
+ * The sequence name.
26
+ */
27
+ objectName: string;
28
+ /**
29
+ * The parent schema.
30
+ */
31
+ schemaName: string;
32
+ }
33
+ export interface GetTablesTable {
34
+ /**
35
+ * The table name.
36
+ */
37
+ objectName: string;
38
+ /**
39
+ * The parent schema.
40
+ */
41
+ schemaName: string;
42
+ /**
43
+ * The table type as defined in ``information_schema.tables``.
44
+ */
45
+ tableType: string;
46
+ }
19
47
  export interface SchemaPolicy {
20
48
  /**
21
49
  * Should the specified ROLE have CREATE privileges to the specified SCHEMA.