@pulumi/linode 3.8.0 → 3.9.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.
Files changed (59) hide show
  1. package/databaseAccessControls.d.ts +102 -0
  2. package/databaseAccessControls.js +92 -0
  3. package/databaseAccessControls.js.map +1 -0
  4. package/databaseMongodb.d.ts +377 -0
  5. package/databaseMongodb.js +209 -0
  6. package/databaseMongodb.js.map +1 -0
  7. package/databaseMysql.d.ts +38 -6
  8. package/databaseMysql.js +23 -2
  9. package/databaseMysql.js.map +1 -1
  10. package/databasePostgresql.d.ts +353 -0
  11. package/databasePostgresql.js +199 -0
  12. package/databasePostgresql.js.map +1 -0
  13. package/firewall.d.ts +2 -1
  14. package/firewall.js +2 -1
  15. package/firewall.js.map +1 -1
  16. package/getDatabaseBackups.d.ts +116 -0
  17. package/getDatabaseBackups.js +71 -0
  18. package/getDatabaseBackups.js.map +1 -0
  19. package/getDatabaseEngines.d.ts +0 -2
  20. package/getDatabaseEngines.js +0 -2
  21. package/getDatabaseEngines.js.map +1 -1
  22. package/getDatabaseMongodb.d.ts +137 -0
  23. package/getDatabaseMongodb.js +103 -0
  24. package/getDatabaseMongodb.js.map +1 -0
  25. package/getDatabaseMysql.d.ts +125 -0
  26. package/getDatabaseMysql.js +95 -0
  27. package/getDatabaseMysql.js.map +1 -0
  28. package/getDatabaseMysqlBackups.d.ts +1 -1
  29. package/getDatabaseMysqlBackups.js +1 -1
  30. package/getDatabasePostgresql.d.ts +129 -0
  31. package/getDatabasePostgresql.js +97 -0
  32. package/getDatabasePostgresql.js.map +1 -0
  33. package/getDatabases.d.ts +0 -2
  34. package/getDatabases.js +0 -2
  35. package/getDatabases.js.map +1 -1
  36. package/getIpv6Range.d.ts +62 -0
  37. package/getIpv6Range.js +49 -0
  38. package/getIpv6Range.js.map +1 -0
  39. package/index.d.ts +9 -0
  40. package/index.js +25 -0
  41. package/index.js.map +1 -1
  42. package/instance.d.ts +15 -3
  43. package/instance.js +2 -0
  44. package/instance.js.map +1 -1
  45. package/instanceIp.d.ts +2 -1
  46. package/instanceIp.js +2 -1
  47. package/instanceIp.js.map +1 -1
  48. package/instanceSharedIps.d.ts +60 -0
  49. package/instanceSharedIps.js +57 -0
  50. package/instanceSharedIps.js.map +1 -0
  51. package/ipv6Range.d.ts +3 -3
  52. package/lkeCluster.d.ts +6 -6
  53. package/lkeCluster.js +6 -6
  54. package/package.json +2 -2
  55. package/package.json.dev +2 -2
  56. package/stackScript.d.ts +1 -1
  57. package/stackScript.js +1 -1
  58. package/types/input.d.ts +69 -17
  59. package/types/output.d.ts +65 -0
@@ -0,0 +1,116 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ import { input as inputs, output as outputs } from "./types";
3
+ /**
4
+ * Provides information about Linode Database Backups that match a set of filters.
5
+ *
6
+ * ## Example Usage
7
+ *
8
+ * Get information about all backups for a MySQL database:
9
+ *
10
+ * ```typescript
11
+ * import * as pulumi from "@pulumi/pulumi";
12
+ * import * as linode from "@pulumi/linode";
13
+ *
14
+ * const all_backups = pulumi.output(linode.getDatabaseBackups({
15
+ * databaseId: 12345,
16
+ * databaseType: "mysql",
17
+ * }));
18
+ * ```
19
+ *
20
+ * Get information about all automatic MongoDB Database Backups:
21
+ *
22
+ * ```typescript
23
+ * import * as pulumi from "@pulumi/pulumi";
24
+ * import * as linode from "@pulumi/linode";
25
+ *
26
+ * const auto_backups = pulumi.output(linode.getDatabaseBackups({
27
+ * databaseId: 12345,
28
+ * databaseType: "mongodb",
29
+ * filters: [{
30
+ * name: "type",
31
+ * values: ["auto"],
32
+ * }],
33
+ * }));
34
+ * ```
35
+ * ## Attributes
36
+ *
37
+ * Each backup will be stored in the `backups` attribute and will export the following attributes:
38
+ *
39
+ * * `created` - A time value given in a combined date and time format that represents when the database backup was created.
40
+ *
41
+ * * `id` - The ID of the database backup object.
42
+ *
43
+ * * `label` - The database backup’s label, for display purposes only.
44
+ *
45
+ * * `type` - The type of database backup, determined by how the backup was created.
46
+ */
47
+ export declare function getDatabaseBackups(args: GetDatabaseBackupsArgs, opts?: pulumi.InvokeOptions): Promise<GetDatabaseBackupsResult>;
48
+ /**
49
+ * A collection of arguments for invoking getDatabaseBackups.
50
+ */
51
+ export interface GetDatabaseBackupsArgs {
52
+ /**
53
+ * The ID of the database to retrieve backups for.
54
+ */
55
+ databaseId: number;
56
+ /**
57
+ * The type of the database to retrieve backups for. (`mysql`, `mongodb`, `postgresql`)
58
+ */
59
+ databaseType: string;
60
+ filters?: inputs.GetDatabaseBackupsFilter[];
61
+ /**
62
+ * If true, only the latest backup will be returned.
63
+ */
64
+ latest?: boolean;
65
+ /**
66
+ * The order in which results should be returned. (`asc`, `desc`; default `asc`)
67
+ */
68
+ order?: string;
69
+ /**
70
+ * The attribute to order the results by. (`created`)
71
+ */
72
+ orderBy?: string;
73
+ }
74
+ /**
75
+ * A collection of values returned by getDatabaseBackups.
76
+ */
77
+ export interface GetDatabaseBackupsResult {
78
+ readonly backups: outputs.GetDatabaseBackupsBackup[];
79
+ readonly databaseId: number;
80
+ readonly databaseType: string;
81
+ readonly filters?: outputs.GetDatabaseBackupsFilter[];
82
+ /**
83
+ * The provider-assigned unique ID for this managed resource.
84
+ */
85
+ readonly id: string;
86
+ readonly latest?: boolean;
87
+ readonly order?: string;
88
+ readonly orderBy?: string;
89
+ }
90
+ export declare function getDatabaseBackupsOutput(args: GetDatabaseBackupsOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetDatabaseBackupsResult>;
91
+ /**
92
+ * A collection of arguments for invoking getDatabaseBackups.
93
+ */
94
+ export interface GetDatabaseBackupsOutputArgs {
95
+ /**
96
+ * The ID of the database to retrieve backups for.
97
+ */
98
+ databaseId: pulumi.Input<number>;
99
+ /**
100
+ * The type of the database to retrieve backups for. (`mysql`, `mongodb`, `postgresql`)
101
+ */
102
+ databaseType: pulumi.Input<string>;
103
+ filters?: pulumi.Input<pulumi.Input<inputs.GetDatabaseBackupsFilterArgs>[]>;
104
+ /**
105
+ * If true, only the latest backup will be returned.
106
+ */
107
+ latest?: pulumi.Input<boolean>;
108
+ /**
109
+ * The order in which results should be returned. (`asc`, `desc`; default `asc`)
110
+ */
111
+ order?: pulumi.Input<string>;
112
+ /**
113
+ * The attribute to order the results by. (`created`)
114
+ */
115
+ orderBy?: pulumi.Input<string>;
116
+ }
@@ -0,0 +1,71 @@
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.getDatabaseBackupsOutput = exports.getDatabaseBackups = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("./utilities");
8
+ /**
9
+ * Provides information about Linode Database Backups that match a set of filters.
10
+ *
11
+ * ## Example Usage
12
+ *
13
+ * Get information about all backups for a MySQL database:
14
+ *
15
+ * ```typescript
16
+ * import * as pulumi from "@pulumi/pulumi";
17
+ * import * as linode from "@pulumi/linode";
18
+ *
19
+ * const all_backups = pulumi.output(linode.getDatabaseBackups({
20
+ * databaseId: 12345,
21
+ * databaseType: "mysql",
22
+ * }));
23
+ * ```
24
+ *
25
+ * Get information about all automatic MongoDB Database Backups:
26
+ *
27
+ * ```typescript
28
+ * import * as pulumi from "@pulumi/pulumi";
29
+ * import * as linode from "@pulumi/linode";
30
+ *
31
+ * const auto_backups = pulumi.output(linode.getDatabaseBackups({
32
+ * databaseId: 12345,
33
+ * databaseType: "mongodb",
34
+ * filters: [{
35
+ * name: "type",
36
+ * values: ["auto"],
37
+ * }],
38
+ * }));
39
+ * ```
40
+ * ## Attributes
41
+ *
42
+ * Each backup will be stored in the `backups` attribute and will export the following attributes:
43
+ *
44
+ * * `created` - A time value given in a combined date and time format that represents when the database backup was created.
45
+ *
46
+ * * `id` - The ID of the database backup object.
47
+ *
48
+ * * `label` - The database backup’s label, for display purposes only.
49
+ *
50
+ * * `type` - The type of database backup, determined by how the backup was created.
51
+ */
52
+ function getDatabaseBackups(args, opts) {
53
+ if (!opts) {
54
+ opts = {};
55
+ }
56
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
57
+ return pulumi.runtime.invoke("linode:index/getDatabaseBackups:getDatabaseBackups", {
58
+ "databaseId": args.databaseId,
59
+ "databaseType": args.databaseType,
60
+ "filters": args.filters,
61
+ "latest": args.latest,
62
+ "order": args.order,
63
+ "orderBy": args.orderBy,
64
+ }, opts);
65
+ }
66
+ exports.getDatabaseBackups = getDatabaseBackups;
67
+ function getDatabaseBackupsOutput(args, opts) {
68
+ return pulumi.output(args).apply(a => getDatabaseBackups(a, opts));
69
+ }
70
+ exports.getDatabaseBackupsOutput = getDatabaseBackupsOutput;
71
+ //# sourceMappingURL=getDatabaseBackups.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getDatabaseBackups.js","sourceRoot":"","sources":["../getDatabaseBackups.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAEzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2CG;AACH,SAAgB,kBAAkB,CAAC,IAA4B,EAAE,IAA2B;IACxF,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,YAAY,EAAE,IAAI,CAAC,UAAU;QAC7B,cAAc,EAAE,IAAI,CAAC,YAAY;QACjC,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;AAdD,gDAcC;AA8CD,SAAgB,wBAAwB,CAAC,IAAkC,EAAE,IAA2B;IACpG,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"}
@@ -1,8 +1,6 @@
1
1
  import * as pulumi from "@pulumi/pulumi";
2
2
  import { input as inputs, output as outputs } from "./types";
3
3
  /**
4
- * **NOTICE:** Managed Databases are currently in beta. Ensure `apiVersion` is set to `v4beta` in order to use this data source.
5
- *
6
4
  * Provides information about Linode Managed Database engines that match a set of filters.
7
5
  *
8
6
  * ## Example Usage
@@ -6,8 +6,6 @@ exports.getDatabaseEnginesOutput = exports.getDatabaseEngines = void 0;
6
6
  const pulumi = require("@pulumi/pulumi");
7
7
  const utilities = require("./utilities");
8
8
  /**
9
- * **NOTICE:** Managed Databases are currently in beta. Ensure `apiVersion` is set to `v4beta` in order to use this data source.
10
- *
11
9
  * Provides information about Linode Managed Database engines that match a set of filters.
12
10
  *
13
11
  * ## Example Usage
@@ -1 +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"}
1
+ {"version":3,"file":"getDatabaseEngines.js","sourceRoot":"","sources":["../getDatabaseEngines.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAEzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyDG;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"}
@@ -0,0 +1,137 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ import { output as outputs } from "./types";
3
+ /**
4
+ * Provides information about a Linode MongoDB Database.
5
+ *
6
+ * ## Example Usage
7
+ *
8
+ * Get information about a MongoDB database:
9
+ *
10
+ * ```typescript
11
+ * import * as pulumi from "@pulumi/pulumi";
12
+ * import * as linode from "@pulumi/linode";
13
+ *
14
+ * const my_db = pulumi.output(linode.getDatabaseMongodb({
15
+ * databaseId: 12345,
16
+ * }));
17
+ * ```
18
+ * ## Attributes
19
+ *
20
+ * The `linode.DatabaseMongodb` data source exports the following attributes:
21
+ *
22
+ * * `allowList` - 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.
23
+ *
24
+ * * `caCert` - The base64-encoded SSL CA certificate for the Managed Database instance.
25
+ *
26
+ * * `clusterSize` - The number of Linode Instance nodes deployed to the Managed Database.
27
+ *
28
+ * * `compressionType` - The type of data compression for this Database. (`none`, `snappy`, `zlib`)
29
+ *
30
+ * * `created` - When this Managed Database was created.
31
+ *
32
+ * * `encrypted` - Whether the Managed Databases is encrypted.
33
+ *
34
+ * * `engine` - The Managed Database engine. (e.g. `mongodb`)
35
+ *
36
+ * * `engineId` - The Managed Database engine in engine/version format. (e.g. `mongodb/4.4.10`)
37
+ *
38
+ * * `hostPrimary` - The primary host for the Managed Database.
39
+ *
40
+ * * `hostSecondary` - The secondary/private network host for the Managed Database.
41
+ *
42
+ * * `label` - A unique, user-defined string referring to the Managed Database.
43
+ *
44
+ * * `peers` - A set of peer addresses for this Database.
45
+ *
46
+ * * `port` - The access port for this Managed Database.
47
+ *
48
+ * * `replicaSet` - Label for configuring a MongoDB replica set. Choose the same label on multiple Databases to include them in the same replica set.
49
+ *
50
+ * * `region` - The region that hosts this Linode Managed Database.
51
+ *
52
+ * * `rootPassword` - The randomly-generated root password for the Managed Database instance.
53
+ *
54
+ * * `rootUsername` - The root username for the Managed Database instance.
55
+ *
56
+ * * `sslConnection` - Whether to require SSL credentials to establish a connection to the Managed Database.
57
+ *
58
+ * * `storageEngine` - The type of storage engine for this Database. (`mmapv1`, `wiredtiger`)
59
+ *
60
+ * * `status` - The operating status of the Managed Database.
61
+ *
62
+ * * `type` - The Linode Instance type used for the nodes of the Managed Database instance.
63
+ *
64
+ * * `updated` - When this Managed Database was last updated.
65
+ *
66
+ * * `updates` - (Optional) Configuration settings for automated patch update maintenance for the Managed Database.
67
+ *
68
+ * * `version` - The Managed Database engine version. (e.g. `v8.0.26`)
69
+ *
70
+ * ## updates
71
+ *
72
+ * The following arguments are exported by the `updates` specification block:
73
+ *
74
+ * * `dayOfWeek` - The day to perform maintenance. (`monday`, `tuesday`, ...)
75
+ *
76
+ * * `duration` - The maximum maintenance window time in hours. (`1`..`3`)
77
+ *
78
+ * * `frequency` - Whether maintenance occurs on a weekly or monthly basis. (`weekly`, `monthly`)
79
+ *
80
+ * * `hourOfDay` - The hour to begin maintenance based in UTC time. (`0`..`23`)
81
+ *
82
+ * * `weekOfMonth` - The week of the month to perform monthly frequency updates. Required for `monthly` frequency updates. (`1`..`4`)
83
+ */
84
+ export declare function getDatabaseMongodb(args: GetDatabaseMongodbArgs, opts?: pulumi.InvokeOptions): Promise<GetDatabaseMongodbResult>;
85
+ /**
86
+ * A collection of arguments for invoking getDatabaseMongodb.
87
+ */
88
+ export interface GetDatabaseMongodbArgs {
89
+ /**
90
+ * The ID of the MongoDB database.
91
+ */
92
+ databaseId: number;
93
+ }
94
+ /**
95
+ * A collection of values returned by getDatabaseMongodb.
96
+ */
97
+ export interface GetDatabaseMongodbResult {
98
+ readonly allowLists: string[];
99
+ readonly caCert: string;
100
+ readonly clusterSize: number;
101
+ readonly compressionType: string;
102
+ readonly created: string;
103
+ readonly databaseId: number;
104
+ readonly encrypted: boolean;
105
+ readonly engine: string;
106
+ readonly engineId: string;
107
+ readonly hostPrimary: string;
108
+ readonly hostSecondary: string;
109
+ /**
110
+ * The provider-assigned unique ID for this managed resource.
111
+ */
112
+ readonly id: string;
113
+ readonly label: string;
114
+ readonly peers: string[];
115
+ readonly port: number;
116
+ readonly region: string;
117
+ readonly replicaSet: string;
118
+ readonly rootPassword: string;
119
+ readonly rootUsername: string;
120
+ readonly sslConnection: boolean;
121
+ readonly status: string;
122
+ readonly storageEngine: string;
123
+ readonly type: string;
124
+ readonly updated: string;
125
+ readonly updates: outputs.GetDatabaseMongodbUpdate[];
126
+ readonly version: string;
127
+ }
128
+ export declare function getDatabaseMongodbOutput(args: GetDatabaseMongodbOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetDatabaseMongodbResult>;
129
+ /**
130
+ * A collection of arguments for invoking getDatabaseMongodb.
131
+ */
132
+ export interface GetDatabaseMongodbOutputArgs {
133
+ /**
134
+ * The ID of the MongoDB database.
135
+ */
136
+ databaseId: pulumi.Input<number>;
137
+ }
@@ -0,0 +1,103 @@
1
+ "use strict";
2
+ // *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
3
+ // *** Do not edit by hand unless you're certain you know what you are doing! ***
4
+ Object.defineProperty(exports, "__esModule", { value: true });
5
+ exports.getDatabaseMongodbOutput = exports.getDatabaseMongodb = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("./utilities");
8
+ /**
9
+ * Provides information about a Linode MongoDB Database.
10
+ *
11
+ * ## Example Usage
12
+ *
13
+ * Get information about a MongoDB database:
14
+ *
15
+ * ```typescript
16
+ * import * as pulumi from "@pulumi/pulumi";
17
+ * import * as linode from "@pulumi/linode";
18
+ *
19
+ * const my_db = pulumi.output(linode.getDatabaseMongodb({
20
+ * databaseId: 12345,
21
+ * }));
22
+ * ```
23
+ * ## Attributes
24
+ *
25
+ * The `linode.DatabaseMongodb` data source exports the following attributes:
26
+ *
27
+ * * `allowList` - 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.
28
+ *
29
+ * * `caCert` - The base64-encoded SSL CA certificate for the Managed Database instance.
30
+ *
31
+ * * `clusterSize` - The number of Linode Instance nodes deployed to the Managed Database.
32
+ *
33
+ * * `compressionType` - The type of data compression for this Database. (`none`, `snappy`, `zlib`)
34
+ *
35
+ * * `created` - When this Managed Database was created.
36
+ *
37
+ * * `encrypted` - Whether the Managed Databases is encrypted.
38
+ *
39
+ * * `engine` - The Managed Database engine. (e.g. `mongodb`)
40
+ *
41
+ * * `engineId` - The Managed Database engine in engine/version format. (e.g. `mongodb/4.4.10`)
42
+ *
43
+ * * `hostPrimary` - The primary host for the Managed Database.
44
+ *
45
+ * * `hostSecondary` - The secondary/private network host for the Managed Database.
46
+ *
47
+ * * `label` - A unique, user-defined string referring to the Managed Database.
48
+ *
49
+ * * `peers` - A set of peer addresses for this Database.
50
+ *
51
+ * * `port` - The access port for this Managed Database.
52
+ *
53
+ * * `replicaSet` - Label for configuring a MongoDB replica set. Choose the same label on multiple Databases to include them in the same replica set.
54
+ *
55
+ * * `region` - The region that hosts this Linode Managed Database.
56
+ *
57
+ * * `rootPassword` - The randomly-generated root password for the Managed Database instance.
58
+ *
59
+ * * `rootUsername` - The root username for the Managed Database instance.
60
+ *
61
+ * * `sslConnection` - Whether to require SSL credentials to establish a connection to the Managed Database.
62
+ *
63
+ * * `storageEngine` - The type of storage engine for this Database. (`mmapv1`, `wiredtiger`)
64
+ *
65
+ * * `status` - The operating status of the Managed Database.
66
+ *
67
+ * * `type` - The Linode Instance type used for the nodes of the Managed Database instance.
68
+ *
69
+ * * `updated` - When this Managed Database was last updated.
70
+ *
71
+ * * `updates` - (Optional) Configuration settings for automated patch update maintenance for the Managed Database.
72
+ *
73
+ * * `version` - The Managed Database engine version. (e.g. `v8.0.26`)
74
+ *
75
+ * ## updates
76
+ *
77
+ * The following arguments are exported by the `updates` specification block:
78
+ *
79
+ * * `dayOfWeek` - The day to perform maintenance. (`monday`, `tuesday`, ...)
80
+ *
81
+ * * `duration` - The maximum maintenance window time in hours. (`1`..`3`)
82
+ *
83
+ * * `frequency` - Whether maintenance occurs on a weekly or monthly basis. (`weekly`, `monthly`)
84
+ *
85
+ * * `hourOfDay` - The hour to begin maintenance based in UTC time. (`0`..`23`)
86
+ *
87
+ * * `weekOfMonth` - The week of the month to perform monthly frequency updates. Required for `monthly` frequency updates. (`1`..`4`)
88
+ */
89
+ function getDatabaseMongodb(args, opts) {
90
+ if (!opts) {
91
+ opts = {};
92
+ }
93
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
94
+ return pulumi.runtime.invoke("linode:index/getDatabaseMongodb:getDatabaseMongodb", {
95
+ "databaseId": args.databaseId,
96
+ }, opts);
97
+ }
98
+ exports.getDatabaseMongodb = getDatabaseMongodb;
99
+ function getDatabaseMongodbOutput(args, opts) {
100
+ return pulumi.output(args).apply(a => getDatabaseMongodb(a, opts));
101
+ }
102
+ exports.getDatabaseMongodbOutput = getDatabaseMongodbOutput;
103
+ //# sourceMappingURL=getDatabaseMongodb.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getDatabaseMongodb.js","sourceRoot":"","sources":["../getDatabaseMongodb.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAEzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgFG;AACH,SAAgB,kBAAkB,CAAC,IAA4B,EAAE,IAA2B;IACxF,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,YAAY,EAAE,IAAI,CAAC,UAAU;KAChC,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AATD,gDASC;AA+CD,SAAgB,wBAAwB,CAAC,IAAkC,EAAE,IAA2B;IACpG,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"}
@@ -0,0 +1,125 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ import { output as outputs } from "./types";
3
+ /**
4
+ * Provides information about a Linode MySQL Database.
5
+ *
6
+ * ## Example Usage
7
+ *
8
+ * Get information about a MySQL database:
9
+ *
10
+ * ```typescript
11
+ * import * as pulumi from "@pulumi/pulumi";
12
+ * import * as linode from "@pulumi/linode";
13
+ *
14
+ * const my_db = pulumi.output(linode.getDatabaseMysql({
15
+ * databaseId: 12345,
16
+ * }));
17
+ * ```
18
+ * ## Attributes
19
+ *
20
+ * The `linode.DatabaseMysql` data source exports the following attributes:
21
+ *
22
+ * * `allowList` - 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.
23
+ *
24
+ * * `caCert` - The base64-encoded SSL CA certificate for the Managed Database instance.
25
+ *
26
+ * * `clusterSize` - The number of Linode Instance nodes deployed to the Managed Database.
27
+ *
28
+ * * `created` - When this Managed Database was created.
29
+ *
30
+ * * `encrypted` - Whether the Managed Databases is encrypted.
31
+ *
32
+ * * `engine` - The Managed Database engine. (e.g. `mysql`)
33
+ *
34
+ * * `engineId` - The Managed Database engine in engine/version format. (e.g. `mysql/8.0.26`)
35
+ *
36
+ * * `hostPrimary` - The primary host for the Managed Database.
37
+ *
38
+ * * `hostSecondary` - The secondary/private network host for the Managed Database.
39
+ *
40
+ * * `label` - A unique, user-defined string referring to the Managed Database.
41
+ *
42
+ * * `region` - The region that hosts this Linode Managed Database.
43
+ *
44
+ * * `rootPassword` - The randomly-generated root password for the Managed Database instance.
45
+ *
46
+ * * `rootUsername` - The root username for the Managed Database instance.
47
+ *
48
+ * * `replicationType` - The replication method used for the Managed Database. (`none`, `asynch`, `semiSynch`)
49
+ *
50
+ * * `sslConnection` - Whether to require SSL credentials to establish a connection to the Managed Database.
51
+ *
52
+ * * `status` - The operating status of the Managed Database.
53
+ *
54
+ * * `type` - The Linode Instance type used for the nodes of the Managed Database instance.
55
+ *
56
+ * * `updated` - When this Managed Database was last updated.
57
+ *
58
+ * * `updates` - (Optional) Configuration settings for automated patch update maintenance for the Managed Database.
59
+ *
60
+ * * `version` - The Managed Database engine version. (e.g. `v8.0.26`)
61
+ *
62
+ * ## updates
63
+ *
64
+ * The following arguments are exported by the `updates` specification block:
65
+ *
66
+ * * `dayOfWeek` - The day to perform maintenance. (`monday`, `tuesday`, ...)
67
+ *
68
+ * * `duration` - The maximum maintenance window time in hours. (`1`..`3`)
69
+ *
70
+ * * `frequency` - Whether maintenance occurs on a weekly or monthly basis. (`weekly`, `monthly`)
71
+ *
72
+ * * `hourOfDay` - The hour to begin maintenance based in UTC time. (`0`..`23`)
73
+ *
74
+ * * `weekOfMonth` - The week of the month to perform monthly frequency updates. Required for `monthly` frequency updates. (`1`..`4`)
75
+ */
76
+ export declare function getDatabaseMysql(args: GetDatabaseMysqlArgs, opts?: pulumi.InvokeOptions): Promise<GetDatabaseMysqlResult>;
77
+ /**
78
+ * A collection of arguments for invoking getDatabaseMysql.
79
+ */
80
+ export interface GetDatabaseMysqlArgs {
81
+ /**
82
+ * The ID of the MySQL database.
83
+ */
84
+ databaseId: number;
85
+ }
86
+ /**
87
+ * A collection of values returned by getDatabaseMysql.
88
+ */
89
+ export interface GetDatabaseMysqlResult {
90
+ readonly allowLists: string[];
91
+ readonly caCert: string;
92
+ readonly clusterSize: number;
93
+ readonly created: string;
94
+ readonly databaseId: number;
95
+ readonly encrypted: boolean;
96
+ readonly engine: string;
97
+ readonly engineId: string;
98
+ readonly hostPrimary: string;
99
+ readonly hostSecondary: string;
100
+ /**
101
+ * The provider-assigned unique ID for this managed resource.
102
+ */
103
+ readonly id: string;
104
+ readonly label: string;
105
+ readonly region: string;
106
+ readonly replicationType: string;
107
+ readonly rootPassword: string;
108
+ readonly rootUsername: string;
109
+ readonly sslConnection: boolean;
110
+ readonly status: string;
111
+ readonly type: string;
112
+ readonly updated: string;
113
+ readonly updates: outputs.GetDatabaseMysqlUpdate[];
114
+ readonly version: string;
115
+ }
116
+ export declare function getDatabaseMysqlOutput(args: GetDatabaseMysqlOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetDatabaseMysqlResult>;
117
+ /**
118
+ * A collection of arguments for invoking getDatabaseMysql.
119
+ */
120
+ export interface GetDatabaseMysqlOutputArgs {
121
+ /**
122
+ * The ID of the MySQL database.
123
+ */
124
+ databaseId: pulumi.Input<number>;
125
+ }
@@ -0,0 +1,95 @@
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.getDatabaseMysqlOutput = exports.getDatabaseMysql = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("./utilities");
8
+ /**
9
+ * Provides information about a Linode MySQL Database.
10
+ *
11
+ * ## Example Usage
12
+ *
13
+ * Get information about a MySQL database:
14
+ *
15
+ * ```typescript
16
+ * import * as pulumi from "@pulumi/pulumi";
17
+ * import * as linode from "@pulumi/linode";
18
+ *
19
+ * const my_db = pulumi.output(linode.getDatabaseMysql({
20
+ * databaseId: 12345,
21
+ * }));
22
+ * ```
23
+ * ## Attributes
24
+ *
25
+ * The `linode.DatabaseMysql` data source exports the following attributes:
26
+ *
27
+ * * `allowList` - 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.
28
+ *
29
+ * * `caCert` - The base64-encoded SSL CA certificate for the Managed Database instance.
30
+ *
31
+ * * `clusterSize` - The number of Linode Instance nodes deployed to the Managed Database.
32
+ *
33
+ * * `created` - When this Managed Database was created.
34
+ *
35
+ * * `encrypted` - Whether the Managed Databases is encrypted.
36
+ *
37
+ * * `engine` - The Managed Database engine. (e.g. `mysql`)
38
+ *
39
+ * * `engineId` - The Managed Database engine in engine/version format. (e.g. `mysql/8.0.26`)
40
+ *
41
+ * * `hostPrimary` - The primary host for the Managed Database.
42
+ *
43
+ * * `hostSecondary` - The secondary/private network host for the Managed Database.
44
+ *
45
+ * * `label` - A unique, user-defined string referring to the Managed Database.
46
+ *
47
+ * * `region` - The region that hosts this Linode Managed Database.
48
+ *
49
+ * * `rootPassword` - The randomly-generated root password for the Managed Database instance.
50
+ *
51
+ * * `rootUsername` - The root username for the Managed Database instance.
52
+ *
53
+ * * `replicationType` - The replication method used for the Managed Database. (`none`, `asynch`, `semiSynch`)
54
+ *
55
+ * * `sslConnection` - Whether to require SSL credentials to establish a connection to the Managed Database.
56
+ *
57
+ * * `status` - The operating status of the Managed Database.
58
+ *
59
+ * * `type` - The Linode Instance type used for the nodes of the Managed Database instance.
60
+ *
61
+ * * `updated` - When this Managed Database was last updated.
62
+ *
63
+ * * `updates` - (Optional) Configuration settings for automated patch update maintenance for the Managed Database.
64
+ *
65
+ * * `version` - The Managed Database engine version. (e.g. `v8.0.26`)
66
+ *
67
+ * ## updates
68
+ *
69
+ * The following arguments are exported by the `updates` specification block:
70
+ *
71
+ * * `dayOfWeek` - The day to perform maintenance. (`monday`, `tuesday`, ...)
72
+ *
73
+ * * `duration` - The maximum maintenance window time in hours. (`1`..`3`)
74
+ *
75
+ * * `frequency` - Whether maintenance occurs on a weekly or monthly basis. (`weekly`, `monthly`)
76
+ *
77
+ * * `hourOfDay` - The hour to begin maintenance based in UTC time. (`0`..`23`)
78
+ *
79
+ * * `weekOfMonth` - The week of the month to perform monthly frequency updates. Required for `monthly` frequency updates. (`1`..`4`)
80
+ */
81
+ function getDatabaseMysql(args, opts) {
82
+ if (!opts) {
83
+ opts = {};
84
+ }
85
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
86
+ return pulumi.runtime.invoke("linode:index/getDatabaseMysql:getDatabaseMysql", {
87
+ "databaseId": args.databaseId,
88
+ }, opts);
89
+ }
90
+ exports.getDatabaseMysql = getDatabaseMysql;
91
+ function getDatabaseMysqlOutput(args, opts) {
92
+ return pulumi.output(args).apply(a => getDatabaseMysql(a, opts));
93
+ }
94
+ exports.getDatabaseMysqlOutput = getDatabaseMysqlOutput;
95
+ //# sourceMappingURL=getDatabaseMysql.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getDatabaseMysql.js","sourceRoot":"","sources":["../getDatabaseMysql.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAEzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwEG;AACH,SAAgB,gBAAgB,CAAC,IAA0B,EAAE,IAA2B;IACpF,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,gDAAgD,EAAE;QAC3E,YAAY,EAAE,IAAI,CAAC,UAAU;KAChC,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AATD,4CASC;AA2CD,SAAgB,sBAAsB,CAAC,IAAgC,EAAE,IAA2B;IAChG,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC,gBAAgB,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AACpE,CAAC;AAFD,wDAEC"}