@pulumi/linode 3.8.0-alpha.1650645510 → 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/databaseMysql.d.ts +300 -0
- package/databaseMysql.js +173 -0
- package/databaseMysql.js.map +1 -0
- package/getDatabaseEngines.d.ts +114 -0
- package/getDatabaseEngines.js +86 -0
- package/getDatabaseEngines.js.map +1 -0
- package/getDatabaseMysqlBackups.d.ts +107 -0
- package/getDatabaseMysqlBackups.js +70 -0
- package/getDatabaseMysqlBackups.js.map +1 -0
- package/getDatabases.d.ts +119 -0
- package/getDatabases.js +91 -0
- package/getDatabases.js.map +1 -0
- package/getImages.d.ts +8 -0
- package/getImages.js +8 -0
- package/getImages.js.map +1 -1
- package/getLkeCluster.d.ts +4 -0
- package/getLkeCluster.js.map +1 -1
- package/getStackScripts.d.ts +8 -0
- package/getStackScripts.js +8 -0
- package/getStackScripts.js.map +1 -1
- package/index.d.ts +5 -0
- package/index.js +13 -0
- package/index.js.map +1 -1
- package/instance.d.ts +27 -3
- package/instance.js +4 -0
- package/instance.js.map +1 -1
- package/ipv6Range.d.ts +125 -0
- package/ipv6Range.js +85 -0
- package/ipv6Range.js.map +1 -0
- package/lkeCluster.d.ts +11 -3
- package/lkeCluster.js +2 -0
- package/lkeCluster.js.map +1 -1
- package/objectStorageBucket.d.ts +25 -2
- package/objectStorageBucket.js +25 -2
- package/objectStorageBucket.js.map +1 -1
- package/package.json +2 -2
- package/package.json.dev +2 -2
- package/types/input.d.ts +100 -16
- package/types/output.d.ts +73 -1
|
@@ -0,0 +1,300 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
/**
|
|
3
|
+
* **NOTICE:** Managed Databases are currently in beta. Ensure `apiVersion` is set to `v4beta` in order to use this resource.
|
|
4
|
+
*
|
|
5
|
+
* Provides a Linode MySQL Database resource. This can be used to create, modify, and delete Linode MySQL Databases.
|
|
6
|
+
* For more information, see the [Linode APIv4 docs](https://www.linode.com/docs/api/databases/).
|
|
7
|
+
*
|
|
8
|
+
* Please keep in mind that Managed Databases can take up to an hour to provision.
|
|
9
|
+
*
|
|
10
|
+
* ## Example Usage
|
|
11
|
+
*
|
|
12
|
+
* Creating a simple MySQL database instance:
|
|
13
|
+
*
|
|
14
|
+
* ```typescript
|
|
15
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
16
|
+
* import * as linode from "@pulumi/linode";
|
|
17
|
+
*
|
|
18
|
+
* const foobar = new linode.DatabaseMysql("foobar", {
|
|
19
|
+
* engineId: "mysql/8.0.26",
|
|
20
|
+
* label: "mydatabase",
|
|
21
|
+
* region: "us-southeast",
|
|
22
|
+
* type: "g6-nanode-1",
|
|
23
|
+
* });
|
|
24
|
+
* ```
|
|
25
|
+
*
|
|
26
|
+
* Creating a complex MySQL database instance:
|
|
27
|
+
*
|
|
28
|
+
* ```typescript
|
|
29
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
30
|
+
* import * as linode from "@pulumi/linode";
|
|
31
|
+
*
|
|
32
|
+
* const foobar = new linode.DatabaseMysql("foobar", {
|
|
33
|
+
* allowLists: ["0.0.0.0/0"],
|
|
34
|
+
* clusterSize: 3,
|
|
35
|
+
* encrypted: true,
|
|
36
|
+
* engineId: "mysql/8.0.26",
|
|
37
|
+
* label: "mydatabase",
|
|
38
|
+
* region: "us-southeast",
|
|
39
|
+
* replicationType: "asynch",
|
|
40
|
+
* sslConnection: true,
|
|
41
|
+
* type: "g6-nanode-1",
|
|
42
|
+
* });
|
|
43
|
+
* ```
|
|
44
|
+
* ## Attributes
|
|
45
|
+
*
|
|
46
|
+
* In addition to all arguments above, the following attributes are exported:
|
|
47
|
+
*
|
|
48
|
+
* * `id` - The ID of the Managed Database.
|
|
49
|
+
*
|
|
50
|
+
* * `caCert` - The base64-encoded SSL CA certificate for the Managed Database instance.
|
|
51
|
+
*
|
|
52
|
+
* * `created` - When this Managed Database was created.
|
|
53
|
+
*
|
|
54
|
+
* * `engine` - The Managed Database engine. (e.g. `mysql`)
|
|
55
|
+
*
|
|
56
|
+
* * `hostPrimary` - The primary host for the Managed Database.
|
|
57
|
+
*
|
|
58
|
+
* * `hostSecondary` - The secondary/private network host for the Managed Database.
|
|
59
|
+
*
|
|
60
|
+
* * `rootPassword` - The randomly-generated root password for the Managed Database instance.
|
|
61
|
+
*
|
|
62
|
+
* * `rootUsername` - The root username for the Managed Database instance.
|
|
63
|
+
*
|
|
64
|
+
* * `status` - The operating status of the Managed Database.
|
|
65
|
+
*
|
|
66
|
+
* * `updated` - When this Managed Database was last updated.
|
|
67
|
+
*
|
|
68
|
+
* * `version` - The Managed Database engine version. (e.g. `v8.0.26`)
|
|
69
|
+
*
|
|
70
|
+
* ## Import
|
|
71
|
+
*
|
|
72
|
+
* Linode MySQL Databases can be imported using the `id`, e.g.
|
|
73
|
+
*
|
|
74
|
+
* ```sh
|
|
75
|
+
* $ pulumi import linode:index/databaseMysql:DatabaseMysql foobar 1234567
|
|
76
|
+
* ```
|
|
77
|
+
*/
|
|
78
|
+
export declare class DatabaseMysql extends pulumi.CustomResource {
|
|
79
|
+
/**
|
|
80
|
+
* Get an existing DatabaseMysql resource's state with the given name, ID, and optional extra
|
|
81
|
+
* properties used to qualify the lookup.
|
|
82
|
+
*
|
|
83
|
+
* @param name The _unique_ name of the resulting resource.
|
|
84
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
85
|
+
* @param state Any extra arguments used during the lookup.
|
|
86
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
87
|
+
*/
|
|
88
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: DatabaseMysqlState, opts?: pulumi.CustomResourceOptions): DatabaseMysql;
|
|
89
|
+
/**
|
|
90
|
+
* Returns true if the given object is an instance of DatabaseMysql. This is designed to work even
|
|
91
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
92
|
+
*/
|
|
93
|
+
static isInstance(obj: any): obj is DatabaseMysql;
|
|
94
|
+
/**
|
|
95
|
+
* A list of IP addresses that can access the Managed Database. Each item can be a single IP address or a range in CIDR format.
|
|
96
|
+
*/
|
|
97
|
+
readonly allowLists: pulumi.Output<string[] | undefined>;
|
|
98
|
+
/**
|
|
99
|
+
* The base64-encoded SSL CA certificate for the Managed Database instance.
|
|
100
|
+
*/
|
|
101
|
+
readonly caCert: pulumi.Output<string>;
|
|
102
|
+
/**
|
|
103
|
+
* The number of Linode Instance nodes deployed to the Managed Database. (default `1`)
|
|
104
|
+
*/
|
|
105
|
+
readonly clusterSize: pulumi.Output<number | undefined>;
|
|
106
|
+
/**
|
|
107
|
+
* When this Managed Database was created.
|
|
108
|
+
*/
|
|
109
|
+
readonly created: pulumi.Output<string>;
|
|
110
|
+
/**
|
|
111
|
+
* Whether the Managed Databases is encrypted. (default `false`)
|
|
112
|
+
*/
|
|
113
|
+
readonly encrypted: pulumi.Output<boolean | undefined>;
|
|
114
|
+
/**
|
|
115
|
+
* The Managed Database engine.
|
|
116
|
+
*/
|
|
117
|
+
readonly engine: pulumi.Output<string>;
|
|
118
|
+
/**
|
|
119
|
+
* The Managed Database engine in engine/version format. (e.g. `mysql/8.0.26`)
|
|
120
|
+
*/
|
|
121
|
+
readonly engineId: pulumi.Output<string>;
|
|
122
|
+
/**
|
|
123
|
+
* The primary host for the Managed Database.
|
|
124
|
+
*/
|
|
125
|
+
readonly hostPrimary: pulumi.Output<string>;
|
|
126
|
+
/**
|
|
127
|
+
* The secondary host for the Managed Database.
|
|
128
|
+
*/
|
|
129
|
+
readonly hostSecondary: pulumi.Output<string>;
|
|
130
|
+
/**
|
|
131
|
+
* A unique, user-defined string referring to the Managed Database.
|
|
132
|
+
*/
|
|
133
|
+
readonly label: pulumi.Output<string>;
|
|
134
|
+
/**
|
|
135
|
+
* The region to use for the Managed Database.
|
|
136
|
+
*/
|
|
137
|
+
readonly region: pulumi.Output<string>;
|
|
138
|
+
/**
|
|
139
|
+
* The replication method used for the Managed Database. (`none`, `asynch`, `semiSynch`; default `none`)
|
|
140
|
+
*/
|
|
141
|
+
readonly replicationType: pulumi.Output<string | undefined>;
|
|
142
|
+
/**
|
|
143
|
+
* The randomly-generated root password for the Managed Database instance.
|
|
144
|
+
*/
|
|
145
|
+
readonly rootPassword: pulumi.Output<string>;
|
|
146
|
+
/**
|
|
147
|
+
* The root username for the Managed Database instance.
|
|
148
|
+
*/
|
|
149
|
+
readonly rootUsername: pulumi.Output<string>;
|
|
150
|
+
/**
|
|
151
|
+
* Whether to require SSL credentials to establish a connection to the Managed Database. (default `false`)
|
|
152
|
+
*/
|
|
153
|
+
readonly sslConnection: pulumi.Output<boolean | undefined>;
|
|
154
|
+
/**
|
|
155
|
+
* The operating status of the Managed Database.
|
|
156
|
+
*/
|
|
157
|
+
readonly status: pulumi.Output<string>;
|
|
158
|
+
/**
|
|
159
|
+
* The Linode Instance type used for the nodes of the Managed Database instance.
|
|
160
|
+
*/
|
|
161
|
+
readonly type: pulumi.Output<string>;
|
|
162
|
+
/**
|
|
163
|
+
* When this Managed Database was last updated.
|
|
164
|
+
*/
|
|
165
|
+
readonly updated: pulumi.Output<string>;
|
|
166
|
+
/**
|
|
167
|
+
* The Managed Database engine version.
|
|
168
|
+
*/
|
|
169
|
+
readonly version: pulumi.Output<string>;
|
|
170
|
+
/**
|
|
171
|
+
* Create a DatabaseMysql resource with the given unique name, arguments, and options.
|
|
172
|
+
*
|
|
173
|
+
* @param name The _unique_ name of the resource.
|
|
174
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
175
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
176
|
+
*/
|
|
177
|
+
constructor(name: string, args: DatabaseMysqlArgs, opts?: pulumi.CustomResourceOptions);
|
|
178
|
+
}
|
|
179
|
+
/**
|
|
180
|
+
* Input properties used for looking up and filtering DatabaseMysql resources.
|
|
181
|
+
*/
|
|
182
|
+
export interface DatabaseMysqlState {
|
|
183
|
+
/**
|
|
184
|
+
* A list of IP addresses that can access the Managed Database. Each item can be a single IP address or a range in CIDR format.
|
|
185
|
+
*/
|
|
186
|
+
allowLists?: pulumi.Input<pulumi.Input<string>[]>;
|
|
187
|
+
/**
|
|
188
|
+
* The base64-encoded SSL CA certificate for the Managed Database instance.
|
|
189
|
+
*/
|
|
190
|
+
caCert?: pulumi.Input<string>;
|
|
191
|
+
/**
|
|
192
|
+
* The number of Linode Instance nodes deployed to the Managed Database. (default `1`)
|
|
193
|
+
*/
|
|
194
|
+
clusterSize?: pulumi.Input<number>;
|
|
195
|
+
/**
|
|
196
|
+
* When this Managed Database was created.
|
|
197
|
+
*/
|
|
198
|
+
created?: pulumi.Input<string>;
|
|
199
|
+
/**
|
|
200
|
+
* Whether the Managed Databases is encrypted. (default `false`)
|
|
201
|
+
*/
|
|
202
|
+
encrypted?: pulumi.Input<boolean>;
|
|
203
|
+
/**
|
|
204
|
+
* The Managed Database engine.
|
|
205
|
+
*/
|
|
206
|
+
engine?: pulumi.Input<string>;
|
|
207
|
+
/**
|
|
208
|
+
* The Managed Database engine in engine/version format. (e.g. `mysql/8.0.26`)
|
|
209
|
+
*/
|
|
210
|
+
engineId?: pulumi.Input<string>;
|
|
211
|
+
/**
|
|
212
|
+
* The primary host for the Managed Database.
|
|
213
|
+
*/
|
|
214
|
+
hostPrimary?: pulumi.Input<string>;
|
|
215
|
+
/**
|
|
216
|
+
* The secondary host for the Managed Database.
|
|
217
|
+
*/
|
|
218
|
+
hostSecondary?: pulumi.Input<string>;
|
|
219
|
+
/**
|
|
220
|
+
* A unique, user-defined string referring to the Managed Database.
|
|
221
|
+
*/
|
|
222
|
+
label?: pulumi.Input<string>;
|
|
223
|
+
/**
|
|
224
|
+
* The region to use for the Managed Database.
|
|
225
|
+
*/
|
|
226
|
+
region?: pulumi.Input<string>;
|
|
227
|
+
/**
|
|
228
|
+
* The replication method used for the Managed Database. (`none`, `asynch`, `semiSynch`; default `none`)
|
|
229
|
+
*/
|
|
230
|
+
replicationType?: pulumi.Input<string>;
|
|
231
|
+
/**
|
|
232
|
+
* The randomly-generated root password for the Managed Database instance.
|
|
233
|
+
*/
|
|
234
|
+
rootPassword?: pulumi.Input<string>;
|
|
235
|
+
/**
|
|
236
|
+
* The root username for the Managed Database instance.
|
|
237
|
+
*/
|
|
238
|
+
rootUsername?: pulumi.Input<string>;
|
|
239
|
+
/**
|
|
240
|
+
* Whether to require SSL credentials to establish a connection to the Managed Database. (default `false`)
|
|
241
|
+
*/
|
|
242
|
+
sslConnection?: pulumi.Input<boolean>;
|
|
243
|
+
/**
|
|
244
|
+
* The operating status of the Managed Database.
|
|
245
|
+
*/
|
|
246
|
+
status?: pulumi.Input<string>;
|
|
247
|
+
/**
|
|
248
|
+
* The Linode Instance type used for the nodes of the Managed Database instance.
|
|
249
|
+
*/
|
|
250
|
+
type?: pulumi.Input<string>;
|
|
251
|
+
/**
|
|
252
|
+
* When this Managed Database was last updated.
|
|
253
|
+
*/
|
|
254
|
+
updated?: pulumi.Input<string>;
|
|
255
|
+
/**
|
|
256
|
+
* The Managed Database engine version.
|
|
257
|
+
*/
|
|
258
|
+
version?: pulumi.Input<string>;
|
|
259
|
+
}
|
|
260
|
+
/**
|
|
261
|
+
* The set of arguments for constructing a DatabaseMysql resource.
|
|
262
|
+
*/
|
|
263
|
+
export interface DatabaseMysqlArgs {
|
|
264
|
+
/**
|
|
265
|
+
* A list of IP addresses that can access the Managed Database. Each item can be a single IP address or a range in CIDR format.
|
|
266
|
+
*/
|
|
267
|
+
allowLists?: pulumi.Input<pulumi.Input<string>[]>;
|
|
268
|
+
/**
|
|
269
|
+
* The number of Linode Instance nodes deployed to the Managed Database. (default `1`)
|
|
270
|
+
*/
|
|
271
|
+
clusterSize?: pulumi.Input<number>;
|
|
272
|
+
/**
|
|
273
|
+
* Whether the Managed Databases is encrypted. (default `false`)
|
|
274
|
+
*/
|
|
275
|
+
encrypted?: pulumi.Input<boolean>;
|
|
276
|
+
/**
|
|
277
|
+
* The Managed Database engine in engine/version format. (e.g. `mysql/8.0.26`)
|
|
278
|
+
*/
|
|
279
|
+
engineId: pulumi.Input<string>;
|
|
280
|
+
/**
|
|
281
|
+
* A unique, user-defined string referring to the Managed Database.
|
|
282
|
+
*/
|
|
283
|
+
label: pulumi.Input<string>;
|
|
284
|
+
/**
|
|
285
|
+
* The region to use for the Managed Database.
|
|
286
|
+
*/
|
|
287
|
+
region: pulumi.Input<string>;
|
|
288
|
+
/**
|
|
289
|
+
* The replication method used for the Managed Database. (`none`, `asynch`, `semiSynch`; default `none`)
|
|
290
|
+
*/
|
|
291
|
+
replicationType?: pulumi.Input<string>;
|
|
292
|
+
/**
|
|
293
|
+
* Whether to require SSL credentials to establish a connection to the Managed Database. (default `false`)
|
|
294
|
+
*/
|
|
295
|
+
sslConnection?: pulumi.Input<boolean>;
|
|
296
|
+
/**
|
|
297
|
+
* The Linode Instance type used for the nodes of the Managed Database instance.
|
|
298
|
+
*/
|
|
299
|
+
type: pulumi.Input<string>;
|
|
300
|
+
}
|
package/databaseMysql.js
ADDED
|
@@ -0,0 +1,173 @@
|
|
|
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.DatabaseMysql = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("./utilities");
|
|
8
|
+
/**
|
|
9
|
+
* **NOTICE:** Managed Databases are currently in beta. Ensure `apiVersion` is set to `v4beta` in order to use this resource.
|
|
10
|
+
*
|
|
11
|
+
* Provides a Linode MySQL Database resource. This can be used to create, modify, and delete Linode MySQL Databases.
|
|
12
|
+
* For more information, see the [Linode APIv4 docs](https://www.linode.com/docs/api/databases/).
|
|
13
|
+
*
|
|
14
|
+
* Please keep in mind that Managed Databases can take up to an hour to provision.
|
|
15
|
+
*
|
|
16
|
+
* ## Example Usage
|
|
17
|
+
*
|
|
18
|
+
* Creating a simple MySQL database instance:
|
|
19
|
+
*
|
|
20
|
+
* ```typescript
|
|
21
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
22
|
+
* import * as linode from "@pulumi/linode";
|
|
23
|
+
*
|
|
24
|
+
* const foobar = new linode.DatabaseMysql("foobar", {
|
|
25
|
+
* engineId: "mysql/8.0.26",
|
|
26
|
+
* label: "mydatabase",
|
|
27
|
+
* region: "us-southeast",
|
|
28
|
+
* type: "g6-nanode-1",
|
|
29
|
+
* });
|
|
30
|
+
* ```
|
|
31
|
+
*
|
|
32
|
+
* Creating a complex MySQL database instance:
|
|
33
|
+
*
|
|
34
|
+
* ```typescript
|
|
35
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
36
|
+
* import * as linode from "@pulumi/linode";
|
|
37
|
+
*
|
|
38
|
+
* const foobar = new linode.DatabaseMysql("foobar", {
|
|
39
|
+
* allowLists: ["0.0.0.0/0"],
|
|
40
|
+
* clusterSize: 3,
|
|
41
|
+
* encrypted: true,
|
|
42
|
+
* engineId: "mysql/8.0.26",
|
|
43
|
+
* label: "mydatabase",
|
|
44
|
+
* region: "us-southeast",
|
|
45
|
+
* replicationType: "asynch",
|
|
46
|
+
* sslConnection: true,
|
|
47
|
+
* type: "g6-nanode-1",
|
|
48
|
+
* });
|
|
49
|
+
* ```
|
|
50
|
+
* ## Attributes
|
|
51
|
+
*
|
|
52
|
+
* In addition to all arguments above, the following attributes are exported:
|
|
53
|
+
*
|
|
54
|
+
* * `id` - The ID of the Managed Database.
|
|
55
|
+
*
|
|
56
|
+
* * `caCert` - The base64-encoded SSL CA certificate for the Managed Database instance.
|
|
57
|
+
*
|
|
58
|
+
* * `created` - When this Managed Database was created.
|
|
59
|
+
*
|
|
60
|
+
* * `engine` - The Managed Database engine. (e.g. `mysql`)
|
|
61
|
+
*
|
|
62
|
+
* * `hostPrimary` - The primary host for the Managed Database.
|
|
63
|
+
*
|
|
64
|
+
* * `hostSecondary` - The secondary/private network host for the Managed Database.
|
|
65
|
+
*
|
|
66
|
+
* * `rootPassword` - The randomly-generated root password for the Managed Database instance.
|
|
67
|
+
*
|
|
68
|
+
* * `rootUsername` - The root username for the Managed Database instance.
|
|
69
|
+
*
|
|
70
|
+
* * `status` - The operating status of the Managed Database.
|
|
71
|
+
*
|
|
72
|
+
* * `updated` - When this Managed Database was last updated.
|
|
73
|
+
*
|
|
74
|
+
* * `version` - The Managed Database engine version. (e.g. `v8.0.26`)
|
|
75
|
+
*
|
|
76
|
+
* ## Import
|
|
77
|
+
*
|
|
78
|
+
* Linode MySQL Databases can be imported using the `id`, e.g.
|
|
79
|
+
*
|
|
80
|
+
* ```sh
|
|
81
|
+
* $ pulumi import linode:index/databaseMysql:DatabaseMysql foobar 1234567
|
|
82
|
+
* ```
|
|
83
|
+
*/
|
|
84
|
+
class DatabaseMysql extends pulumi.CustomResource {
|
|
85
|
+
constructor(name, argsOrState, opts) {
|
|
86
|
+
let resourceInputs = {};
|
|
87
|
+
opts = opts || {};
|
|
88
|
+
if (opts.id) {
|
|
89
|
+
const state = argsOrState;
|
|
90
|
+
resourceInputs["allowLists"] = state ? state.allowLists : undefined;
|
|
91
|
+
resourceInputs["caCert"] = state ? state.caCert : undefined;
|
|
92
|
+
resourceInputs["clusterSize"] = state ? state.clusterSize : undefined;
|
|
93
|
+
resourceInputs["created"] = state ? state.created : undefined;
|
|
94
|
+
resourceInputs["encrypted"] = state ? state.encrypted : undefined;
|
|
95
|
+
resourceInputs["engine"] = state ? state.engine : undefined;
|
|
96
|
+
resourceInputs["engineId"] = state ? state.engineId : undefined;
|
|
97
|
+
resourceInputs["hostPrimary"] = state ? state.hostPrimary : undefined;
|
|
98
|
+
resourceInputs["hostSecondary"] = state ? state.hostSecondary : undefined;
|
|
99
|
+
resourceInputs["label"] = state ? state.label : undefined;
|
|
100
|
+
resourceInputs["region"] = state ? state.region : undefined;
|
|
101
|
+
resourceInputs["replicationType"] = state ? state.replicationType : undefined;
|
|
102
|
+
resourceInputs["rootPassword"] = state ? state.rootPassword : undefined;
|
|
103
|
+
resourceInputs["rootUsername"] = state ? state.rootUsername : undefined;
|
|
104
|
+
resourceInputs["sslConnection"] = state ? state.sslConnection : undefined;
|
|
105
|
+
resourceInputs["status"] = state ? state.status : undefined;
|
|
106
|
+
resourceInputs["type"] = state ? state.type : undefined;
|
|
107
|
+
resourceInputs["updated"] = state ? state.updated : undefined;
|
|
108
|
+
resourceInputs["version"] = state ? state.version : undefined;
|
|
109
|
+
}
|
|
110
|
+
else {
|
|
111
|
+
const args = argsOrState;
|
|
112
|
+
if ((!args || args.engineId === undefined) && !opts.urn) {
|
|
113
|
+
throw new Error("Missing required property 'engineId'");
|
|
114
|
+
}
|
|
115
|
+
if ((!args || args.label === undefined) && !opts.urn) {
|
|
116
|
+
throw new Error("Missing required property 'label'");
|
|
117
|
+
}
|
|
118
|
+
if ((!args || args.region === undefined) && !opts.urn) {
|
|
119
|
+
throw new Error("Missing required property 'region'");
|
|
120
|
+
}
|
|
121
|
+
if ((!args || args.type === undefined) && !opts.urn) {
|
|
122
|
+
throw new Error("Missing required property 'type'");
|
|
123
|
+
}
|
|
124
|
+
resourceInputs["allowLists"] = args ? args.allowLists : undefined;
|
|
125
|
+
resourceInputs["clusterSize"] = args ? args.clusterSize : undefined;
|
|
126
|
+
resourceInputs["encrypted"] = args ? args.encrypted : undefined;
|
|
127
|
+
resourceInputs["engineId"] = args ? args.engineId : undefined;
|
|
128
|
+
resourceInputs["label"] = args ? args.label : undefined;
|
|
129
|
+
resourceInputs["region"] = args ? args.region : undefined;
|
|
130
|
+
resourceInputs["replicationType"] = args ? args.replicationType : undefined;
|
|
131
|
+
resourceInputs["sslConnection"] = args ? args.sslConnection : undefined;
|
|
132
|
+
resourceInputs["type"] = args ? args.type : undefined;
|
|
133
|
+
resourceInputs["caCert"] = undefined /*out*/;
|
|
134
|
+
resourceInputs["created"] = undefined /*out*/;
|
|
135
|
+
resourceInputs["engine"] = undefined /*out*/;
|
|
136
|
+
resourceInputs["hostPrimary"] = undefined /*out*/;
|
|
137
|
+
resourceInputs["hostSecondary"] = undefined /*out*/;
|
|
138
|
+
resourceInputs["rootPassword"] = undefined /*out*/;
|
|
139
|
+
resourceInputs["rootUsername"] = undefined /*out*/;
|
|
140
|
+
resourceInputs["status"] = undefined /*out*/;
|
|
141
|
+
resourceInputs["updated"] = undefined /*out*/;
|
|
142
|
+
resourceInputs["version"] = undefined /*out*/;
|
|
143
|
+
}
|
|
144
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
145
|
+
super(DatabaseMysql.__pulumiType, name, resourceInputs, opts);
|
|
146
|
+
}
|
|
147
|
+
/**
|
|
148
|
+
* Get an existing DatabaseMysql resource's state with the given name, ID, and optional extra
|
|
149
|
+
* properties used to qualify the lookup.
|
|
150
|
+
*
|
|
151
|
+
* @param name The _unique_ name of the resulting resource.
|
|
152
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
153
|
+
* @param state Any extra arguments used during the lookup.
|
|
154
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
155
|
+
*/
|
|
156
|
+
static get(name, id, state, opts) {
|
|
157
|
+
return new DatabaseMysql(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
158
|
+
}
|
|
159
|
+
/**
|
|
160
|
+
* Returns true if the given object is an instance of DatabaseMysql. This is designed to work even
|
|
161
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
162
|
+
*/
|
|
163
|
+
static isInstance(obj) {
|
|
164
|
+
if (obj === undefined || obj === null) {
|
|
165
|
+
return false;
|
|
166
|
+
}
|
|
167
|
+
return obj['__pulumiType'] === DatabaseMysql.__pulumiType;
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
exports.DatabaseMysql = DatabaseMysql;
|
|
171
|
+
/** @internal */
|
|
172
|
+
DatabaseMysql.__pulumiType = 'linode:index/databaseMysql:DatabaseMysql';
|
|
173
|
+
//# sourceMappingURL=databaseMysql.js.map
|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AAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,aAAa,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAClE,CAAC;IA5KD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAA0B,EAAE,IAAmC;QACxH,OAAO,IAAI,aAAa,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IACpE,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,aAAa,CAAC,YAAY,CAAC;IAC9D,CAAC;;AA1BL,sCA8KC;AAhKG,gBAAgB;AACO,0BAAY,GAAG,0CAA0C,CAAC"}
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
import { input as inputs, output as outputs } from "./types";
|
|
3
|
+
/**
|
|
4
|
+
* **NOTICE:** Managed Databases are currently in beta. Ensure `apiVersion` is set to `v4beta` in order to use this data source.
|
|
5
|
+
*
|
|
6
|
+
* Provides information about Linode Managed Database engines that match a set of filters.
|
|
7
|
+
*
|
|
8
|
+
* ## Example Usage
|
|
9
|
+
*
|
|
10
|
+
* Get information about all Linode Managed Database engines:
|
|
11
|
+
*
|
|
12
|
+
* ```typescript
|
|
13
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
14
|
+
* import * as linode from "@pulumi/linode";
|
|
15
|
+
*
|
|
16
|
+
* const all = pulumi.output(linode.getDatabaseEngines());
|
|
17
|
+
* ```
|
|
18
|
+
*
|
|
19
|
+
* Get information about all Linode MySQL Database engines:
|
|
20
|
+
*
|
|
21
|
+
* ```typescript
|
|
22
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
23
|
+
* import * as linode from "@pulumi/linode";
|
|
24
|
+
*
|
|
25
|
+
* const mysql = pulumi.output(linode.getDatabaseEngines({
|
|
26
|
+
* filters: [{
|
|
27
|
+
* name: "engine",
|
|
28
|
+
* values: ["mysql"],
|
|
29
|
+
* }],
|
|
30
|
+
* }));
|
|
31
|
+
* ```
|
|
32
|
+
*
|
|
33
|
+
* Create a Linode MySQL Database using the latest support MySQL version:
|
|
34
|
+
*
|
|
35
|
+
* ```typescript
|
|
36
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
37
|
+
* import * as linode from "@pulumi/linode";
|
|
38
|
+
*
|
|
39
|
+
* const mysql = linode.getDatabaseEngines({
|
|
40
|
+
* latest: true,
|
|
41
|
+
* filters: [{
|
|
42
|
+
* name: "engine",
|
|
43
|
+
* values: ["mysql"],
|
|
44
|
+
* }],
|
|
45
|
+
* });
|
|
46
|
+
* const myDb = new linode.DatabaseMysql("myDb", {
|
|
47
|
+
* label: "mydb",
|
|
48
|
+
* engineId: mysql.then(mysql => mysql.engines?[0]?.id),
|
|
49
|
+
* region: "us-southeast",
|
|
50
|
+
* type: "g6-nanode-1",
|
|
51
|
+
* });
|
|
52
|
+
* ```
|
|
53
|
+
* ## Attributes
|
|
54
|
+
*
|
|
55
|
+
* Each engine will be stored in the `engines` attribute and will export the following attributes:
|
|
56
|
+
*
|
|
57
|
+
* * `engine` - The Managed Database engine type.
|
|
58
|
+
*
|
|
59
|
+
* * `id` - The Managed Database engine ID in engine/version format.
|
|
60
|
+
*
|
|
61
|
+
* * `version` - The Managed Database engine version.
|
|
62
|
+
*/
|
|
63
|
+
export declare function getDatabaseEngines(args?: GetDatabaseEnginesArgs, opts?: pulumi.InvokeOptions): Promise<GetDatabaseEnginesResult>;
|
|
64
|
+
/**
|
|
65
|
+
* A collection of arguments for invoking getDatabaseEngines.
|
|
66
|
+
*/
|
|
67
|
+
export interface GetDatabaseEnginesArgs {
|
|
68
|
+
filters?: inputs.GetDatabaseEnginesFilter[];
|
|
69
|
+
/**
|
|
70
|
+
* If true, only the latest engine version will be returned.
|
|
71
|
+
*/
|
|
72
|
+
latest?: boolean;
|
|
73
|
+
/**
|
|
74
|
+
* The order in which results should be returned. (`asc`, `desc`; default `asc`)
|
|
75
|
+
*/
|
|
76
|
+
order?: string;
|
|
77
|
+
/**
|
|
78
|
+
* The attribute to order the results by. (`version`)
|
|
79
|
+
*/
|
|
80
|
+
orderBy?: string;
|
|
81
|
+
}
|
|
82
|
+
/**
|
|
83
|
+
* A collection of values returned by getDatabaseEngines.
|
|
84
|
+
*/
|
|
85
|
+
export interface GetDatabaseEnginesResult {
|
|
86
|
+
readonly engines: outputs.GetDatabaseEnginesEngine[];
|
|
87
|
+
readonly filters?: outputs.GetDatabaseEnginesFilter[];
|
|
88
|
+
/**
|
|
89
|
+
* The provider-assigned unique ID for this managed resource.
|
|
90
|
+
*/
|
|
91
|
+
readonly id: string;
|
|
92
|
+
readonly latest?: boolean;
|
|
93
|
+
readonly order?: string;
|
|
94
|
+
readonly orderBy?: string;
|
|
95
|
+
}
|
|
96
|
+
export declare function getDatabaseEnginesOutput(args?: GetDatabaseEnginesOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetDatabaseEnginesResult>;
|
|
97
|
+
/**
|
|
98
|
+
* A collection of arguments for invoking getDatabaseEngines.
|
|
99
|
+
*/
|
|
100
|
+
export interface GetDatabaseEnginesOutputArgs {
|
|
101
|
+
filters?: pulumi.Input<pulumi.Input<inputs.GetDatabaseEnginesFilterArgs>[]>;
|
|
102
|
+
/**
|
|
103
|
+
* If true, only the latest engine version will be returned.
|
|
104
|
+
*/
|
|
105
|
+
latest?: pulumi.Input<boolean>;
|
|
106
|
+
/**
|
|
107
|
+
* The order in which results should be returned. (`asc`, `desc`; default `asc`)
|
|
108
|
+
*/
|
|
109
|
+
order?: pulumi.Input<string>;
|
|
110
|
+
/**
|
|
111
|
+
* The attribute to order the results by. (`version`)
|
|
112
|
+
*/
|
|
113
|
+
orderBy?: pulumi.Input<string>;
|
|
114
|
+
}
|
|
@@ -0,0 +1,86 @@
|
|
|
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.getDatabaseEnginesOutput = exports.getDatabaseEngines = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("./utilities");
|
|
8
|
+
/**
|
|
9
|
+
* **NOTICE:** Managed Databases are currently in beta. Ensure `apiVersion` is set to `v4beta` in order to use this data source.
|
|
10
|
+
*
|
|
11
|
+
* Provides information about Linode Managed Database engines that match a set of filters.
|
|
12
|
+
*
|
|
13
|
+
* ## Example Usage
|
|
14
|
+
*
|
|
15
|
+
* Get information about all Linode Managed Database engines:
|
|
16
|
+
*
|
|
17
|
+
* ```typescript
|
|
18
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
19
|
+
* import * as linode from "@pulumi/linode";
|
|
20
|
+
*
|
|
21
|
+
* const all = pulumi.output(linode.getDatabaseEngines());
|
|
22
|
+
* ```
|
|
23
|
+
*
|
|
24
|
+
* Get information about all Linode MySQL Database engines:
|
|
25
|
+
*
|
|
26
|
+
* ```typescript
|
|
27
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
28
|
+
* import * as linode from "@pulumi/linode";
|
|
29
|
+
*
|
|
30
|
+
* const mysql = pulumi.output(linode.getDatabaseEngines({
|
|
31
|
+
* filters: [{
|
|
32
|
+
* name: "engine",
|
|
33
|
+
* values: ["mysql"],
|
|
34
|
+
* }],
|
|
35
|
+
* }));
|
|
36
|
+
* ```
|
|
37
|
+
*
|
|
38
|
+
* Create a Linode MySQL Database using the latest support MySQL version:
|
|
39
|
+
*
|
|
40
|
+
* ```typescript
|
|
41
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
42
|
+
* import * as linode from "@pulumi/linode";
|
|
43
|
+
*
|
|
44
|
+
* const mysql = linode.getDatabaseEngines({
|
|
45
|
+
* latest: true,
|
|
46
|
+
* filters: [{
|
|
47
|
+
* name: "engine",
|
|
48
|
+
* values: ["mysql"],
|
|
49
|
+
* }],
|
|
50
|
+
* });
|
|
51
|
+
* const myDb = new linode.DatabaseMysql("myDb", {
|
|
52
|
+
* label: "mydb",
|
|
53
|
+
* engineId: mysql.then(mysql => mysql.engines?[0]?.id),
|
|
54
|
+
* region: "us-southeast",
|
|
55
|
+
* type: "g6-nanode-1",
|
|
56
|
+
* });
|
|
57
|
+
* ```
|
|
58
|
+
* ## Attributes
|
|
59
|
+
*
|
|
60
|
+
* Each engine will be stored in the `engines` attribute and will export the following attributes:
|
|
61
|
+
*
|
|
62
|
+
* * `engine` - The Managed Database engine type.
|
|
63
|
+
*
|
|
64
|
+
* * `id` - The Managed Database engine ID in engine/version format.
|
|
65
|
+
*
|
|
66
|
+
* * `version` - The Managed Database engine version.
|
|
67
|
+
*/
|
|
68
|
+
function getDatabaseEngines(args, opts) {
|
|
69
|
+
args = args || {};
|
|
70
|
+
if (!opts) {
|
|
71
|
+
opts = {};
|
|
72
|
+
}
|
|
73
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
74
|
+
return pulumi.runtime.invoke("linode:index/getDatabaseEngines:getDatabaseEngines", {
|
|
75
|
+
"filters": args.filters,
|
|
76
|
+
"latest": args.latest,
|
|
77
|
+
"order": args.order,
|
|
78
|
+
"orderBy": args.orderBy,
|
|
79
|
+
}, opts);
|
|
80
|
+
}
|
|
81
|
+
exports.getDatabaseEngines = getDatabaseEngines;
|
|
82
|
+
function getDatabaseEnginesOutput(args, opts) {
|
|
83
|
+
return pulumi.output(args).apply(a => getDatabaseEngines(a, opts));
|
|
84
|
+
}
|
|
85
|
+
exports.getDatabaseEnginesOutput = getDatabaseEnginesOutput;
|
|
86
|
+
//# sourceMappingURL=getDatabaseEngines.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getDatabaseEngines.js","sourceRoot":"","sources":["../getDatabaseEngines.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAEzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2DG;AACH,SAAgB,kBAAkB,CAAC,IAA6B,EAAE,IAA2B;IACzF,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;IAClB,IAAI,CAAC,IAAI,EAAE;QACP,IAAI,GAAG,EAAE,CAAA;KACZ;IAED,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;IACnE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,oDAAoD,EAAE;QAC/E,SAAS,EAAE,IAAI,CAAC,OAAO;QACvB,QAAQ,EAAE,IAAI,CAAC,MAAM;QACrB,OAAO,EAAE,IAAI,CAAC,KAAK;QACnB,SAAS,EAAE,IAAI,CAAC,OAAO;KAC1B,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAbD,gDAaC;AAoCD,SAAgB,wBAAwB,CAAC,IAAmC,EAAE,IAA2B;IACrG,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC,kBAAkB,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AACtE,CAAC;AAFD,4DAEC"}
|