@upcloud/pulumi-upcloud 0.20.0 → 0.21.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.
|
@@ -14,14 +14,20 @@ import * as outputs from "./types/output";
|
|
|
14
14
|
* const example1 = new upcloud.ManagedDatabaseMysql("example_1", {
|
|
15
15
|
* name: "mysql-1",
|
|
16
16
|
* title: "mysql-1-example-1",
|
|
17
|
-
*
|
|
17
|
+
* planCompute: "rdb.standard.2CPU-8GB",
|
|
18
|
+
* planNodeCount: 2,
|
|
19
|
+
* planStorageGib: 120,
|
|
20
|
+
* planBackups: "regular",
|
|
18
21
|
* zone: "fi-hel1",
|
|
19
22
|
* });
|
|
20
23
|
* // Shutdown instance after creation
|
|
21
24
|
* const example2 = new upcloud.ManagedDatabaseMysql("example_2", {
|
|
22
25
|
* name: "mysql-2",
|
|
23
26
|
* title: "mysql-2-example-2",
|
|
24
|
-
*
|
|
27
|
+
* planCompute: "rdb.standard.2CPU-8GB",
|
|
28
|
+
* planNodeCount: 2,
|
|
29
|
+
* planStorageGib: 120,
|
|
30
|
+
* planBackups: "regular",
|
|
25
31
|
* zone: "fi-hel1",
|
|
26
32
|
* powered: false,
|
|
27
33
|
* });
|
|
@@ -30,7 +36,10 @@ import * as outputs from "./types/output";
|
|
|
30
36
|
* const example3 = new upcloud.ManagedDatabaseMysql("example_3", {
|
|
31
37
|
* name: "mysql-3",
|
|
32
38
|
* title: "mysql-3-example-3",
|
|
33
|
-
*
|
|
39
|
+
* planCompute: "rdb.standard.2CPU-8GB",
|
|
40
|
+
* planNodeCount: 2,
|
|
41
|
+
* planStorageGib: 120,
|
|
42
|
+
* planBackups: "regular",
|
|
34
43
|
* zone: "fi-hel1",
|
|
35
44
|
* properties: {
|
|
36
45
|
* sqlMode: "NO_ENGINE_SUBSTITUTION",
|
|
@@ -61,6 +70,8 @@ export declare class ManagedDatabaseMysql extends pulumi.CustomResource {
|
|
|
61
70
|
static isInstance(obj: any): obj is ManagedDatabaseMysql;
|
|
62
71
|
/**
|
|
63
72
|
* Additional disk space in GiB. Note that changes in additional disk space might require disk maintenance. This pending maintenance blocks some operations, such as version upgrades, until the maintenance is completed.
|
|
73
|
+
*
|
|
74
|
+
* @deprecated The additionalDiskSpaceGib attribute is deprecated for PostgreSQL and MySQL. Use planStorageGib to configure total storage per node.
|
|
64
75
|
*/
|
|
65
76
|
readonly additionalDiskSpaceGib: pulumi.Output<number>;
|
|
66
77
|
/**
|
|
@@ -95,8 +106,26 @@ export declare class ManagedDatabaseMysql extends pulumi.CustomResource {
|
|
|
95
106
|
readonly nodeStates: pulumi.Output<outputs.ManagedDatabaseMysqlNodeState[]>;
|
|
96
107
|
/**
|
|
97
108
|
* Service plan to use. This determines how much resources the instance will have. You can list available plans with `upctl database plans mysql`.
|
|
109
|
+
*
|
|
110
|
+
* @deprecated The plan attribute is deprecated for PostgreSQL and MySQL. Use plan_compute, plan_node_count, plan_storage_gib, and planBackups instead.
|
|
98
111
|
*/
|
|
99
112
|
readonly plan: pulumi.Output<string>;
|
|
113
|
+
/**
|
|
114
|
+
* Backup tier for the database plan.
|
|
115
|
+
*/
|
|
116
|
+
readonly planBackups: pulumi.Output<string>;
|
|
117
|
+
/**
|
|
118
|
+
* Compute shape combining family, CPU, and memory, as listed in the database plan catalog.
|
|
119
|
+
*/
|
|
120
|
+
readonly planCompute: pulumi.Output<string>;
|
|
121
|
+
/**
|
|
122
|
+
* Number of nodes in the database plan.
|
|
123
|
+
*/
|
|
124
|
+
readonly planNodeCount: pulumi.Output<number>;
|
|
125
|
+
/**
|
|
126
|
+
* Total storage per node in GiB.
|
|
127
|
+
*/
|
|
128
|
+
readonly planStorageGib: pulumi.Output<number>;
|
|
100
129
|
/**
|
|
101
130
|
* The administrative power state of the service
|
|
102
131
|
*/
|
|
@@ -164,6 +193,8 @@ export declare class ManagedDatabaseMysql extends pulumi.CustomResource {
|
|
|
164
193
|
export interface ManagedDatabaseMysqlState {
|
|
165
194
|
/**
|
|
166
195
|
* Additional disk space in GiB. Note that changes in additional disk space might require disk maintenance. This pending maintenance blocks some operations, such as version upgrades, until the maintenance is completed.
|
|
196
|
+
*
|
|
197
|
+
* @deprecated The additionalDiskSpaceGib attribute is deprecated for PostgreSQL and MySQL. Use planStorageGib to configure total storage per node.
|
|
167
198
|
*/
|
|
168
199
|
additionalDiskSpaceGib?: pulumi.Input<number>;
|
|
169
200
|
/**
|
|
@@ -198,8 +229,26 @@ export interface ManagedDatabaseMysqlState {
|
|
|
198
229
|
nodeStates?: pulumi.Input<pulumi.Input<inputs.ManagedDatabaseMysqlNodeState>[]>;
|
|
199
230
|
/**
|
|
200
231
|
* Service plan to use. This determines how much resources the instance will have. You can list available plans with `upctl database plans mysql`.
|
|
232
|
+
*
|
|
233
|
+
* @deprecated The plan attribute is deprecated for PostgreSQL and MySQL. Use plan_compute, plan_node_count, plan_storage_gib, and planBackups instead.
|
|
201
234
|
*/
|
|
202
235
|
plan?: pulumi.Input<string>;
|
|
236
|
+
/**
|
|
237
|
+
* Backup tier for the database plan.
|
|
238
|
+
*/
|
|
239
|
+
planBackups?: pulumi.Input<string>;
|
|
240
|
+
/**
|
|
241
|
+
* Compute shape combining family, CPU, and memory, as listed in the database plan catalog.
|
|
242
|
+
*/
|
|
243
|
+
planCompute?: pulumi.Input<string>;
|
|
244
|
+
/**
|
|
245
|
+
* Number of nodes in the database plan.
|
|
246
|
+
*/
|
|
247
|
+
planNodeCount?: pulumi.Input<number>;
|
|
248
|
+
/**
|
|
249
|
+
* Total storage per node in GiB.
|
|
250
|
+
*/
|
|
251
|
+
planStorageGib?: pulumi.Input<number>;
|
|
203
252
|
/**
|
|
204
253
|
* The administrative power state of the service
|
|
205
254
|
*/
|
|
@@ -259,6 +308,8 @@ export interface ManagedDatabaseMysqlState {
|
|
|
259
308
|
export interface ManagedDatabaseMysqlArgs {
|
|
260
309
|
/**
|
|
261
310
|
* Additional disk space in GiB. Note that changes in additional disk space might require disk maintenance. This pending maintenance blocks some operations, such as version upgrades, until the maintenance is completed.
|
|
311
|
+
*
|
|
312
|
+
* @deprecated The additionalDiskSpaceGib attribute is deprecated for PostgreSQL and MySQL. Use planStorageGib to configure total storage per node.
|
|
262
313
|
*/
|
|
263
314
|
additionalDiskSpaceGib?: pulumi.Input<number>;
|
|
264
315
|
/**
|
|
@@ -285,8 +336,26 @@ export interface ManagedDatabaseMysqlArgs {
|
|
|
285
336
|
networks?: pulumi.Input<pulumi.Input<inputs.ManagedDatabaseMysqlNetwork>[]>;
|
|
286
337
|
/**
|
|
287
338
|
* Service plan to use. This determines how much resources the instance will have. You can list available plans with `upctl database plans mysql`.
|
|
339
|
+
*
|
|
340
|
+
* @deprecated The plan attribute is deprecated for PostgreSQL and MySQL. Use plan_compute, plan_node_count, plan_storage_gib, and planBackups instead.
|
|
341
|
+
*/
|
|
342
|
+
plan?: pulumi.Input<string>;
|
|
343
|
+
/**
|
|
344
|
+
* Backup tier for the database plan.
|
|
345
|
+
*/
|
|
346
|
+
planBackups?: pulumi.Input<string>;
|
|
347
|
+
/**
|
|
348
|
+
* Compute shape combining family, CPU, and memory, as listed in the database plan catalog.
|
|
349
|
+
*/
|
|
350
|
+
planCompute?: pulumi.Input<string>;
|
|
351
|
+
/**
|
|
352
|
+
* Number of nodes in the database plan.
|
|
353
|
+
*/
|
|
354
|
+
planNodeCount?: pulumi.Input<number>;
|
|
355
|
+
/**
|
|
356
|
+
* Total storage per node in GiB.
|
|
288
357
|
*/
|
|
289
|
-
|
|
358
|
+
planStorageGib?: pulumi.Input<number>;
|
|
290
359
|
/**
|
|
291
360
|
* The administrative power state of the service
|
|
292
361
|
*/
|
package/managedDatabaseMysql.js
CHANGED
|
@@ -18,14 +18,20 @@ const utilities = require("./utilities");
|
|
|
18
18
|
* const example1 = new upcloud.ManagedDatabaseMysql("example_1", {
|
|
19
19
|
* name: "mysql-1",
|
|
20
20
|
* title: "mysql-1-example-1",
|
|
21
|
-
*
|
|
21
|
+
* planCompute: "rdb.standard.2CPU-8GB",
|
|
22
|
+
* planNodeCount: 2,
|
|
23
|
+
* planStorageGib: 120,
|
|
24
|
+
* planBackups: "regular",
|
|
22
25
|
* zone: "fi-hel1",
|
|
23
26
|
* });
|
|
24
27
|
* // Shutdown instance after creation
|
|
25
28
|
* const example2 = new upcloud.ManagedDatabaseMysql("example_2", {
|
|
26
29
|
* name: "mysql-2",
|
|
27
30
|
* title: "mysql-2-example-2",
|
|
28
|
-
*
|
|
31
|
+
* planCompute: "rdb.standard.2CPU-8GB",
|
|
32
|
+
* planNodeCount: 2,
|
|
33
|
+
* planStorageGib: 120,
|
|
34
|
+
* planBackups: "regular",
|
|
29
35
|
* zone: "fi-hel1",
|
|
30
36
|
* powered: false,
|
|
31
37
|
* });
|
|
@@ -34,7 +40,10 @@ const utilities = require("./utilities");
|
|
|
34
40
|
* const example3 = new upcloud.ManagedDatabaseMysql("example_3", {
|
|
35
41
|
* name: "mysql-3",
|
|
36
42
|
* title: "mysql-3-example-3",
|
|
37
|
-
*
|
|
43
|
+
* planCompute: "rdb.standard.2CPU-8GB",
|
|
44
|
+
* planNodeCount: 2,
|
|
45
|
+
* planStorageGib: 120,
|
|
46
|
+
* planBackups: "regular",
|
|
38
47
|
* zone: "fi-hel1",
|
|
39
48
|
* properties: {
|
|
40
49
|
* sqlMode: "NO_ENGINE_SUBSTITUTION",
|
|
@@ -84,6 +93,10 @@ class ManagedDatabaseMysql extends pulumi.CustomResource {
|
|
|
84
93
|
resourceInputs["networks"] = state?.networks;
|
|
85
94
|
resourceInputs["nodeStates"] = state?.nodeStates;
|
|
86
95
|
resourceInputs["plan"] = state?.plan;
|
|
96
|
+
resourceInputs["planBackups"] = state?.planBackups;
|
|
97
|
+
resourceInputs["planCompute"] = state?.planCompute;
|
|
98
|
+
resourceInputs["planNodeCount"] = state?.planNodeCount;
|
|
99
|
+
resourceInputs["planStorageGib"] = state?.planStorageGib;
|
|
87
100
|
resourceInputs["powered"] = state?.powered;
|
|
88
101
|
resourceInputs["primaryDatabase"] = state?.primaryDatabase;
|
|
89
102
|
resourceInputs["properties"] = state?.properties;
|
|
@@ -100,9 +113,6 @@ class ManagedDatabaseMysql extends pulumi.CustomResource {
|
|
|
100
113
|
}
|
|
101
114
|
else {
|
|
102
115
|
const args = argsOrState;
|
|
103
|
-
if (args?.plan === undefined && !opts.urn) {
|
|
104
|
-
throw new Error("Missing required property 'plan'");
|
|
105
|
-
}
|
|
106
116
|
if (args?.title === undefined && !opts.urn) {
|
|
107
117
|
throw new Error("Missing required property 'title'");
|
|
108
118
|
}
|
|
@@ -116,6 +126,10 @@ class ManagedDatabaseMysql extends pulumi.CustomResource {
|
|
|
116
126
|
resourceInputs["name"] = args?.name;
|
|
117
127
|
resourceInputs["networks"] = args?.networks;
|
|
118
128
|
resourceInputs["plan"] = args?.plan;
|
|
129
|
+
resourceInputs["planBackups"] = args?.planBackups;
|
|
130
|
+
resourceInputs["planCompute"] = args?.planCompute;
|
|
131
|
+
resourceInputs["planNodeCount"] = args?.planNodeCount;
|
|
132
|
+
resourceInputs["planStorageGib"] = args?.planStorageGib;
|
|
119
133
|
resourceInputs["powered"] = args?.powered;
|
|
120
134
|
resourceInputs["properties"] = args?.properties;
|
|
121
135
|
resourceInputs["terminationProtection"] = args?.terminationProtection;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"managedDatabaseMysql.js","sourceRoot":"","sources":["../managedDatabaseMysql.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC
|
|
1
|
+
{"version":3,"file":"managedDatabaseMysql.js","sourceRoot":"","sources":["../managedDatabaseMysql.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkDG;AACH,MAAa,oBAAqB,SAAQ,MAAM,CAAC,cAAc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BAAiB,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YACtD,cAAc,CAAC,aAAa,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAClD,cAAc,CAAC,iBAAiB,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YACtD,cAAc,CAAC,aAAa,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAClD,cAAc,CAAC,YAAY,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YACjD,cAAc,CAAC,iBAAiB,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YACtD,cAAc,CAAC,OAAO,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAC5C,cAAc,CAAC,MAAM,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SAC9C;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,MAAM,UAAU,GAAG,EAAE,uBAAuB,EAAE,CAAC,iBAAiB,EAAE,YAAY,CAAC,EAAE,CAAC;QAClF,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,IAAI,EAAE,UAAU,CAAC,CAAC;QAC7C,KAAK,CAAC,oBAAoB,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACzE,CAAC;;AAvNL,oDAwNC;AA1MG,gBAAgB;AACO,iCAAY,GAAG,yDAAyD,CAAC"}
|
|
@@ -13,14 +13,20 @@ import * as outputs from "./types/output";
|
|
|
13
13
|
* // Minimal config
|
|
14
14
|
* const example1 = new upcloud.ManagedDatabasePostgresql("example_1", {
|
|
15
15
|
* name: "postgres-1",
|
|
16
|
-
*
|
|
16
|
+
* planCompute: "rdb.standard.2CPU-8GB",
|
|
17
|
+
* planNodeCount: 2,
|
|
18
|
+
* planStorageGib: 120,
|
|
19
|
+
* planBackups: "regular",
|
|
17
20
|
* title: "postgres",
|
|
18
21
|
* zone: "fi-hel1",
|
|
19
22
|
* });
|
|
20
23
|
* // Service with custom properties
|
|
21
24
|
* const example2 = new upcloud.ManagedDatabasePostgresql("example_2", {
|
|
22
25
|
* name: "postgres-2",
|
|
23
|
-
*
|
|
26
|
+
* planCompute: "rdb.standard.2CPU-8GB",
|
|
27
|
+
* planNodeCount: 2,
|
|
28
|
+
* planStorageGib: 120,
|
|
29
|
+
* planBackups: "regular",
|
|
24
30
|
* title: "postgres",
|
|
25
31
|
* zone: "fi-hel1",
|
|
26
32
|
* properties: {
|
|
@@ -49,6 +55,8 @@ export declare class ManagedDatabasePostgresql extends pulumi.CustomResource {
|
|
|
49
55
|
static isInstance(obj: any): obj is ManagedDatabasePostgresql;
|
|
50
56
|
/**
|
|
51
57
|
* Additional disk space in GiB. Note that changes in additional disk space might require disk maintenance. This pending maintenance blocks some operations, such as version upgrades, until the maintenance is completed.
|
|
58
|
+
*
|
|
59
|
+
* @deprecated The additionalDiskSpaceGib attribute is deprecated for PostgreSQL and MySQL. Use planStorageGib to configure total storage per node.
|
|
52
60
|
*/
|
|
53
61
|
readonly additionalDiskSpaceGib: pulumi.Output<number>;
|
|
54
62
|
/**
|
|
@@ -83,8 +91,26 @@ export declare class ManagedDatabasePostgresql extends pulumi.CustomResource {
|
|
|
83
91
|
readonly nodeStates: pulumi.Output<outputs.ManagedDatabasePostgresqlNodeState[]>;
|
|
84
92
|
/**
|
|
85
93
|
* Service plan to use. This determines how much resources the instance will have. You can list available plans with `upctl database plans pg`.
|
|
94
|
+
*
|
|
95
|
+
* @deprecated The plan attribute is deprecated for PostgreSQL and MySQL. Use plan_compute, plan_node_count, plan_storage_gib, and planBackups instead.
|
|
86
96
|
*/
|
|
87
97
|
readonly plan: pulumi.Output<string>;
|
|
98
|
+
/**
|
|
99
|
+
* Backup tier for the database plan.
|
|
100
|
+
*/
|
|
101
|
+
readonly planBackups: pulumi.Output<string>;
|
|
102
|
+
/**
|
|
103
|
+
* Compute shape combining family, CPU, and memory, as listed in the database plan catalog.
|
|
104
|
+
*/
|
|
105
|
+
readonly planCompute: pulumi.Output<string>;
|
|
106
|
+
/**
|
|
107
|
+
* Number of nodes in the database plan.
|
|
108
|
+
*/
|
|
109
|
+
readonly planNodeCount: pulumi.Output<number>;
|
|
110
|
+
/**
|
|
111
|
+
* Total storage per node in GiB.
|
|
112
|
+
*/
|
|
113
|
+
readonly planStorageGib: pulumi.Output<number>;
|
|
88
114
|
/**
|
|
89
115
|
* The administrative power state of the service
|
|
90
116
|
*/
|
|
@@ -156,6 +182,8 @@ export declare class ManagedDatabasePostgresql extends pulumi.CustomResource {
|
|
|
156
182
|
export interface ManagedDatabasePostgresqlState {
|
|
157
183
|
/**
|
|
158
184
|
* Additional disk space in GiB. Note that changes in additional disk space might require disk maintenance. This pending maintenance blocks some operations, such as version upgrades, until the maintenance is completed.
|
|
185
|
+
*
|
|
186
|
+
* @deprecated The additionalDiskSpaceGib attribute is deprecated for PostgreSQL and MySQL. Use planStorageGib to configure total storage per node.
|
|
159
187
|
*/
|
|
160
188
|
additionalDiskSpaceGib?: pulumi.Input<number>;
|
|
161
189
|
/**
|
|
@@ -190,8 +218,26 @@ export interface ManagedDatabasePostgresqlState {
|
|
|
190
218
|
nodeStates?: pulumi.Input<pulumi.Input<inputs.ManagedDatabasePostgresqlNodeState>[]>;
|
|
191
219
|
/**
|
|
192
220
|
* Service plan to use. This determines how much resources the instance will have. You can list available plans with `upctl database plans pg`.
|
|
221
|
+
*
|
|
222
|
+
* @deprecated The plan attribute is deprecated for PostgreSQL and MySQL. Use plan_compute, plan_node_count, plan_storage_gib, and planBackups instead.
|
|
193
223
|
*/
|
|
194
224
|
plan?: pulumi.Input<string>;
|
|
225
|
+
/**
|
|
226
|
+
* Backup tier for the database plan.
|
|
227
|
+
*/
|
|
228
|
+
planBackups?: pulumi.Input<string>;
|
|
229
|
+
/**
|
|
230
|
+
* Compute shape combining family, CPU, and memory, as listed in the database plan catalog.
|
|
231
|
+
*/
|
|
232
|
+
planCompute?: pulumi.Input<string>;
|
|
233
|
+
/**
|
|
234
|
+
* Number of nodes in the database plan.
|
|
235
|
+
*/
|
|
236
|
+
planNodeCount?: pulumi.Input<number>;
|
|
237
|
+
/**
|
|
238
|
+
* Total storage per node in GiB.
|
|
239
|
+
*/
|
|
240
|
+
planStorageGib?: pulumi.Input<number>;
|
|
195
241
|
/**
|
|
196
242
|
* The administrative power state of the service
|
|
197
243
|
*/
|
|
@@ -255,6 +301,8 @@ export interface ManagedDatabasePostgresqlState {
|
|
|
255
301
|
export interface ManagedDatabasePostgresqlArgs {
|
|
256
302
|
/**
|
|
257
303
|
* Additional disk space in GiB. Note that changes in additional disk space might require disk maintenance. This pending maintenance blocks some operations, such as version upgrades, until the maintenance is completed.
|
|
304
|
+
*
|
|
305
|
+
* @deprecated The additionalDiskSpaceGib attribute is deprecated for PostgreSQL and MySQL. Use planStorageGib to configure total storage per node.
|
|
258
306
|
*/
|
|
259
307
|
additionalDiskSpaceGib?: pulumi.Input<number>;
|
|
260
308
|
/**
|
|
@@ -281,8 +329,26 @@ export interface ManagedDatabasePostgresqlArgs {
|
|
|
281
329
|
networks?: pulumi.Input<pulumi.Input<inputs.ManagedDatabasePostgresqlNetwork>[]>;
|
|
282
330
|
/**
|
|
283
331
|
* Service plan to use. This determines how much resources the instance will have. You can list available plans with `upctl database plans pg`.
|
|
332
|
+
*
|
|
333
|
+
* @deprecated The plan attribute is deprecated for PostgreSQL and MySQL. Use plan_compute, plan_node_count, plan_storage_gib, and planBackups instead.
|
|
334
|
+
*/
|
|
335
|
+
plan?: pulumi.Input<string>;
|
|
336
|
+
/**
|
|
337
|
+
* Backup tier for the database plan.
|
|
338
|
+
*/
|
|
339
|
+
planBackups?: pulumi.Input<string>;
|
|
340
|
+
/**
|
|
341
|
+
* Compute shape combining family, CPU, and memory, as listed in the database plan catalog.
|
|
342
|
+
*/
|
|
343
|
+
planCompute?: pulumi.Input<string>;
|
|
344
|
+
/**
|
|
345
|
+
* Number of nodes in the database plan.
|
|
346
|
+
*/
|
|
347
|
+
planNodeCount?: pulumi.Input<number>;
|
|
348
|
+
/**
|
|
349
|
+
* Total storage per node in GiB.
|
|
284
350
|
*/
|
|
285
|
-
|
|
351
|
+
planStorageGib?: pulumi.Input<number>;
|
|
286
352
|
/**
|
|
287
353
|
* The administrative power state of the service
|
|
288
354
|
*/
|
|
@@ -17,14 +17,20 @@ const utilities = require("./utilities");
|
|
|
17
17
|
* // Minimal config
|
|
18
18
|
* const example1 = new upcloud.ManagedDatabasePostgresql("example_1", {
|
|
19
19
|
* name: "postgres-1",
|
|
20
|
-
*
|
|
20
|
+
* planCompute: "rdb.standard.2CPU-8GB",
|
|
21
|
+
* planNodeCount: 2,
|
|
22
|
+
* planStorageGib: 120,
|
|
23
|
+
* planBackups: "regular",
|
|
21
24
|
* title: "postgres",
|
|
22
25
|
* zone: "fi-hel1",
|
|
23
26
|
* });
|
|
24
27
|
* // Service with custom properties
|
|
25
28
|
* const example2 = new upcloud.ManagedDatabasePostgresql("example_2", {
|
|
26
29
|
* name: "postgres-2",
|
|
27
|
-
*
|
|
30
|
+
* planCompute: "rdb.standard.2CPU-8GB",
|
|
31
|
+
* planNodeCount: 2,
|
|
32
|
+
* planStorageGib: 120,
|
|
33
|
+
* planBackups: "regular",
|
|
28
34
|
* title: "postgres",
|
|
29
35
|
* zone: "fi-hel1",
|
|
30
36
|
* properties: {
|
|
@@ -72,6 +78,10 @@ class ManagedDatabasePostgresql extends pulumi.CustomResource {
|
|
|
72
78
|
resourceInputs["networks"] = state?.networks;
|
|
73
79
|
resourceInputs["nodeStates"] = state?.nodeStates;
|
|
74
80
|
resourceInputs["plan"] = state?.plan;
|
|
81
|
+
resourceInputs["planBackups"] = state?.planBackups;
|
|
82
|
+
resourceInputs["planCompute"] = state?.planCompute;
|
|
83
|
+
resourceInputs["planNodeCount"] = state?.planNodeCount;
|
|
84
|
+
resourceInputs["planStorageGib"] = state?.planStorageGib;
|
|
75
85
|
resourceInputs["powered"] = state?.powered;
|
|
76
86
|
resourceInputs["primaryDatabase"] = state?.primaryDatabase;
|
|
77
87
|
resourceInputs["properties"] = state?.properties;
|
|
@@ -89,9 +99,6 @@ class ManagedDatabasePostgresql extends pulumi.CustomResource {
|
|
|
89
99
|
}
|
|
90
100
|
else {
|
|
91
101
|
const args = argsOrState;
|
|
92
|
-
if (args?.plan === undefined && !opts.urn) {
|
|
93
|
-
throw new Error("Missing required property 'plan'");
|
|
94
|
-
}
|
|
95
102
|
if (args?.title === undefined && !opts.urn) {
|
|
96
103
|
throw new Error("Missing required property 'title'");
|
|
97
104
|
}
|
|
@@ -105,6 +112,10 @@ class ManagedDatabasePostgresql extends pulumi.CustomResource {
|
|
|
105
112
|
resourceInputs["name"] = args?.name;
|
|
106
113
|
resourceInputs["networks"] = args?.networks;
|
|
107
114
|
resourceInputs["plan"] = args?.plan;
|
|
115
|
+
resourceInputs["planBackups"] = args?.planBackups;
|
|
116
|
+
resourceInputs["planCompute"] = args?.planCompute;
|
|
117
|
+
resourceInputs["planNodeCount"] = args?.planNodeCount;
|
|
118
|
+
resourceInputs["planStorageGib"] = args?.planStorageGib;
|
|
108
119
|
resourceInputs["powered"] = args?.powered;
|
|
109
120
|
resourceInputs["properties"] = args?.properties;
|
|
110
121
|
resourceInputs["terminationProtection"] = args?.terminationProtection;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"managedDatabasePostgresql.js","sourceRoot":"","sources":["../managedDatabasePostgresql.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC
|
|
1
|
+
{"version":3,"file":"managedDatabasePostgresql.js","sourceRoot":"","sources":["../managedDatabasePostgresql.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmCG;AACH,MAAa,yBAA0B,SAAQ,MAAM,CAAC,cAAc;IAChE;;;;;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G,SAAS,CAAC,OAAO,CAAC;YACjD,cAAc,CAAC,iBAAiB,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YACtD,cAAc,CAAC,aAAa,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAClD,cAAc,CAAC,iBAAiB,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YACtD,cAAc,CAAC,aAAa,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAClD,cAAc,CAAC,YAAY,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YACjD,cAAc,CAAC,iBAAiB,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YACtD,cAAc,CAAC,SAAS,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAC9C,cAAc,CAAC,OAAO,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAC5C,cAAc,CAAC,MAAM,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SAC9C;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,MAAM,UAAU,GAAG,EAAE,uBAAuB,EAAE,CAAC,iBAAiB,EAAE,YAAY,CAAC,EAAE,CAAC;QAClF,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,IAAI,EAAE,UAAU,CAAC,CAAC;QAC7C,KAAK,CAAC,yBAAyB,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC9E,CAAC;;AA7NL,8DA8NC;AAhNG,gBAAgB;AACO,sCAAY,GAAG,mEAAmE,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@upcloud/pulumi-upcloud",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.21.0",
|
|
4
4
|
"description": "A Pulumi package for creating and managing UpCloud resources.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"pulumi",
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"pulumi": {
|
|
25
25
|
"resource": true,
|
|
26
26
|
"name": "upcloud",
|
|
27
|
-
"version": "0.
|
|
27
|
+
"version": "0.21.0",
|
|
28
28
|
"server": "github://api.github.com/UpCloudLtd/pulumi-upcloud"
|
|
29
29
|
}
|
|
30
30
|
}
|