@pulumi/linode 4.32.0-alpha.1737525368 → 4.32.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 (56) hide show
  1. package/databaseMysql.d.ts +2 -0
  2. package/databaseMysql.js +2 -0
  3. package/databaseMysql.js.map +1 -1
  4. package/databaseMysqlV2.d.ts +333 -0
  5. package/databaseMysqlV2.js +147 -0
  6. package/databaseMysqlV2.js.map +1 -0
  7. package/databasePostgresql.d.ts +2 -0
  8. package/databasePostgresql.js +2 -0
  9. package/databasePostgresql.js.map +1 -1
  10. package/databasePostgresqlV2.d.ts +333 -0
  11. package/databasePostgresqlV2.js +147 -0
  12. package/databasePostgresqlV2.js.map +1 -0
  13. package/getDatabaseBackups.d.ts +4 -0
  14. package/getDatabaseBackups.js +4 -0
  15. package/getDatabaseBackups.js.map +1 -1
  16. package/getDatabaseMysql.d.ts +4 -0
  17. package/getDatabaseMysql.js +4 -0
  18. package/getDatabaseMysql.js.map +1 -1
  19. package/getDatabaseMysqlBackups.d.ts +4 -4
  20. package/getDatabaseMysqlBackups.js +4 -4
  21. package/getDatabaseMysqlV2.d.ts +204 -0
  22. package/getDatabaseMysqlV2.js +104 -0
  23. package/getDatabaseMysqlV2.js.map +1 -0
  24. package/getDatabasePostgresql.d.ts +4 -0
  25. package/getDatabasePostgresql.js +4 -0
  26. package/getDatabasePostgresql.js.map +1 -1
  27. package/getDatabasePostgresqlV2.d.ts +204 -0
  28. package/getDatabasePostgresqlV2.js +104 -0
  29. package/getDatabasePostgresqlV2.js.map +1 -0
  30. package/getInstanceType.d.ts +4 -0
  31. package/getInstanceType.js.map +1 -1
  32. package/getNetworkingIp.d.ts +3 -0
  33. package/getNetworkingIp.js.map +1 -1
  34. package/getNetworkingIps.d.ts +112 -0
  35. package/getNetworkingIps.js +100 -0
  36. package/getNetworkingIps.js.map +1 -1
  37. package/getPlacementGroup.d.ts +12 -0
  38. package/getPlacementGroup.js +2 -0
  39. package/getPlacementGroup.js.map +1 -1
  40. package/index.d.ts +12 -0
  41. package/index.js +20 -4
  42. package/index.js.map +1 -1
  43. package/instance.d.ts +9 -3
  44. package/instance.js.map +1 -1
  45. package/networkingIp.d.ts +37 -11
  46. package/networkingIp.js +26 -0
  47. package/networkingIp.js.map +1 -1
  48. package/networkingIpAssignment.d.ts +17 -3
  49. package/networkingIpAssignment.js +5 -0
  50. package/networkingIpAssignment.js.map +1 -1
  51. package/objectStorageKey.d.ts +23 -0
  52. package/objectStorageKey.js +23 -0
  53. package/objectStorageKey.js.map +1 -1
  54. package/package.json +2 -2
  55. package/types/input.d.ts +183 -13
  56. package/types/output.d.ts +155 -7
@@ -0,0 +1,204 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ import * as outputs from "./types/output";
3
+ /**
4
+ * Provides information about a Linode MySQL Database.
5
+ * For more information, see the [Linode APIv4 docs](https://techdocs.akamai.com/linode-api/reference/get-databases-mysql-instance).
6
+ *
7
+ * ## Example Usage
8
+ *
9
+ * Get information about a MySQL database:
10
+ *
11
+ * ```typescript
12
+ * import * as pulumi from "@pulumi/pulumi";
13
+ * import * as linode from "@pulumi/linode";
14
+ *
15
+ * const my-db = linode.getDatabaseMysqlV2({
16
+ * id: "12345",
17
+ * });
18
+ * ```
19
+ *
20
+ * ## pendingUpdates
21
+ *
22
+ * The following arguments are exposed by each entry in the `pendingUpdates` attribute:
23
+ *
24
+ * * `deadline` - The time when a mandatory update needs to be applied.
25
+ *
26
+ * * `description` - A description of the update.
27
+ *
28
+ * * `plannedFor` - The date and time a maintenance update will be applied.
29
+ *
30
+ * ## updates
31
+ *
32
+ * The following arguments are supported in the `updates` specification block:
33
+ *
34
+ * * `dayOfWeek` - The day to perform maintenance. (`monday`, `tuesday`, ...)
35
+ *
36
+ * * `duration` - The maximum maintenance window time in hours. (`1`..`3`)
37
+ *
38
+ * * `frequency` - Whether maintenance occurs on a weekly or monthly basis. (`weekly`, `monthly`)
39
+ *
40
+ * * `hourOfDay` - The hour to begin maintenance based in UTC time. (`0`..`23`)
41
+ *
42
+ * * `weekOfMonth` - The week of the month to perform monthly frequency updates. Required for `monthly` frequency updates. (`1`..`4`)
43
+ */
44
+ export declare function getDatabaseMysqlV2(args: GetDatabaseMysqlV2Args, opts?: pulumi.InvokeOptions): Promise<GetDatabaseMysqlV2Result>;
45
+ /**
46
+ * A collection of arguments for invoking getDatabaseMysqlV2.
47
+ */
48
+ export interface GetDatabaseMysqlV2Args {
49
+ /**
50
+ * The ID of the MySQL database.
51
+ */
52
+ id: string;
53
+ }
54
+ /**
55
+ * A collection of values returned by getDatabaseMysqlV2.
56
+ */
57
+ export interface GetDatabaseMysqlV2Result {
58
+ /**
59
+ * 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. Use `linode.DatabaseAccessControls` to manage your allow list separately.
60
+ */
61
+ readonly allowLists: string[];
62
+ /**
63
+ * The base64-encoded SSL CA certificate for the Managed Database.
64
+ */
65
+ readonly caCert: string;
66
+ /**
67
+ * The number of Linode Instance nodes deployed to the Managed Database. (default `1`)
68
+ */
69
+ readonly clusterSize: number;
70
+ /**
71
+ * When this Managed Database was created.
72
+ */
73
+ readonly created: string;
74
+ /**
75
+ * Whether the Managed Databases is encrypted.
76
+ */
77
+ readonly encrypted: boolean;
78
+ /**
79
+ * The Managed Database engine. (e.g. `mysql`)
80
+ */
81
+ readonly engine: string;
82
+ /**
83
+ * The Managed Database engine in engine/version format. (e.g. `mysql`)
84
+ */
85
+ readonly engineId: string;
86
+ /**
87
+ * The database timestamp from which it was restored.
88
+ */
89
+ readonly forkRestoreTime: string;
90
+ /**
91
+ * The ID of the database that was forked from.
92
+ */
93
+ readonly forkSource: number;
94
+ /**
95
+ * The primary host for the Managed Database.
96
+ */
97
+ readonly hostPrimary: string;
98
+ /**
99
+ * The secondary/private host for the managed database.
100
+ */
101
+ readonly hostSecondary: string;
102
+ readonly id: string;
103
+ /**
104
+ * A unique, user-defined string referring to the Managed Database.
105
+ */
106
+ readonly label: string;
107
+ readonly members: {
108
+ [key: string]: string;
109
+ };
110
+ readonly oldestRestoreTime: string;
111
+ readonly pendingUpdates: outputs.GetDatabaseMysqlV2PendingUpdate[];
112
+ /**
113
+ * The back-end platform for relational databases used by the service.
114
+ */
115
+ readonly platform: string;
116
+ /**
117
+ * The access port for this Managed Database.
118
+ */
119
+ readonly port: number;
120
+ /**
121
+ * The region to use for the Managed Database.
122
+ */
123
+ readonly region: string;
124
+ /**
125
+ * The randomly-generated root password for the Managed Database instance.
126
+ */
127
+ readonly rootPassword: string;
128
+ /**
129
+ * The root username for the Managed Database instance.
130
+ */
131
+ readonly rootUsername: string;
132
+ /**
133
+ * Whether to require SSL credentials to establish a connection to the Managed Database.
134
+ */
135
+ readonly sslConnection: boolean;
136
+ /**
137
+ * The operating status of the Managed Database.
138
+ */
139
+ readonly status: string;
140
+ /**
141
+ * The Linode Instance type used for the nodes of the Managed Database.
142
+ */
143
+ readonly type: string;
144
+ /**
145
+ * When this Managed Database was last updated.
146
+ */
147
+ readonly updated: string;
148
+ readonly updates: outputs.GetDatabaseMysqlV2Updates;
149
+ /**
150
+ * The Managed Database engine version. (e.g. `13.2`)
151
+ */
152
+ readonly version: string;
153
+ }
154
+ /**
155
+ * Provides information about a Linode MySQL Database.
156
+ * For more information, see the [Linode APIv4 docs](https://techdocs.akamai.com/linode-api/reference/get-databases-mysql-instance).
157
+ *
158
+ * ## Example Usage
159
+ *
160
+ * Get information about a MySQL database:
161
+ *
162
+ * ```typescript
163
+ * import * as pulumi from "@pulumi/pulumi";
164
+ * import * as linode from "@pulumi/linode";
165
+ *
166
+ * const my-db = linode.getDatabaseMysqlV2({
167
+ * id: "12345",
168
+ * });
169
+ * ```
170
+ *
171
+ * ## pendingUpdates
172
+ *
173
+ * The following arguments are exposed by each entry in the `pendingUpdates` attribute:
174
+ *
175
+ * * `deadline` - The time when a mandatory update needs to be applied.
176
+ *
177
+ * * `description` - A description of the update.
178
+ *
179
+ * * `plannedFor` - The date and time a maintenance update will be applied.
180
+ *
181
+ * ## updates
182
+ *
183
+ * The following arguments are supported in the `updates` specification block:
184
+ *
185
+ * * `dayOfWeek` - The day to perform maintenance. (`monday`, `tuesday`, ...)
186
+ *
187
+ * * `duration` - The maximum maintenance window time in hours. (`1`..`3`)
188
+ *
189
+ * * `frequency` - Whether maintenance occurs on a weekly or monthly basis. (`weekly`, `monthly`)
190
+ *
191
+ * * `hourOfDay` - The hour to begin maintenance based in UTC time. (`0`..`23`)
192
+ *
193
+ * * `weekOfMonth` - The week of the month to perform monthly frequency updates. Required for `monthly` frequency updates. (`1`..`4`)
194
+ */
195
+ export declare function getDatabaseMysqlV2Output(args: GetDatabaseMysqlV2OutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetDatabaseMysqlV2Result>;
196
+ /**
197
+ * A collection of arguments for invoking getDatabaseMysqlV2.
198
+ */
199
+ export interface GetDatabaseMysqlV2OutputArgs {
200
+ /**
201
+ * The ID of the MySQL database.
202
+ */
203
+ id: pulumi.Input<string>;
204
+ }
@@ -0,0 +1,104 @@
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.getDatabaseMysqlV2Output = exports.getDatabaseMysqlV2 = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("./utilities");
8
+ /**
9
+ * Provides information about a Linode MySQL Database.
10
+ * For more information, see the [Linode APIv4 docs](https://techdocs.akamai.com/linode-api/reference/get-databases-mysql-instance).
11
+ *
12
+ * ## Example Usage
13
+ *
14
+ * Get information about a MySQL database:
15
+ *
16
+ * ```typescript
17
+ * import * as pulumi from "@pulumi/pulumi";
18
+ * import * as linode from "@pulumi/linode";
19
+ *
20
+ * const my-db = linode.getDatabaseMysqlV2({
21
+ * id: "12345",
22
+ * });
23
+ * ```
24
+ *
25
+ * ## pendingUpdates
26
+ *
27
+ * The following arguments are exposed by each entry in the `pendingUpdates` attribute:
28
+ *
29
+ * * `deadline` - The time when a mandatory update needs to be applied.
30
+ *
31
+ * * `description` - A description of the update.
32
+ *
33
+ * * `plannedFor` - The date and time a maintenance update will be applied.
34
+ *
35
+ * ## updates
36
+ *
37
+ * The following arguments are supported in the `updates` specification block:
38
+ *
39
+ * * `dayOfWeek` - The day to perform maintenance. (`monday`, `tuesday`, ...)
40
+ *
41
+ * * `duration` - The maximum maintenance window time in hours. (`1`..`3`)
42
+ *
43
+ * * `frequency` - Whether maintenance occurs on a weekly or monthly basis. (`weekly`, `monthly`)
44
+ *
45
+ * * `hourOfDay` - The hour to begin maintenance based in UTC time. (`0`..`23`)
46
+ *
47
+ * * `weekOfMonth` - The week of the month to perform monthly frequency updates. Required for `monthly` frequency updates. (`1`..`4`)
48
+ */
49
+ function getDatabaseMysqlV2(args, opts) {
50
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
51
+ return pulumi.runtime.invoke("linode:index/getDatabaseMysqlV2:getDatabaseMysqlV2", {
52
+ "id": args.id,
53
+ }, opts);
54
+ }
55
+ exports.getDatabaseMysqlV2 = getDatabaseMysqlV2;
56
+ /**
57
+ * Provides information about a Linode MySQL Database.
58
+ * For more information, see the [Linode APIv4 docs](https://techdocs.akamai.com/linode-api/reference/get-databases-mysql-instance).
59
+ *
60
+ * ## Example Usage
61
+ *
62
+ * Get information about a MySQL database:
63
+ *
64
+ * ```typescript
65
+ * import * as pulumi from "@pulumi/pulumi";
66
+ * import * as linode from "@pulumi/linode";
67
+ *
68
+ * const my-db = linode.getDatabaseMysqlV2({
69
+ * id: "12345",
70
+ * });
71
+ * ```
72
+ *
73
+ * ## pendingUpdates
74
+ *
75
+ * The following arguments are exposed by each entry in the `pendingUpdates` attribute:
76
+ *
77
+ * * `deadline` - The time when a mandatory update needs to be applied.
78
+ *
79
+ * * `description` - A description of the update.
80
+ *
81
+ * * `plannedFor` - The date and time a maintenance update will be applied.
82
+ *
83
+ * ## updates
84
+ *
85
+ * The following arguments are supported in the `updates` specification block:
86
+ *
87
+ * * `dayOfWeek` - The day to perform maintenance. (`monday`, `tuesday`, ...)
88
+ *
89
+ * * `duration` - The maximum maintenance window time in hours. (`1`..`3`)
90
+ *
91
+ * * `frequency` - Whether maintenance occurs on a weekly or monthly basis. (`weekly`, `monthly`)
92
+ *
93
+ * * `hourOfDay` - The hour to begin maintenance based in UTC time. (`0`..`23`)
94
+ *
95
+ * * `weekOfMonth` - The week of the month to perform monthly frequency updates. Required for `monthly` frequency updates. (`1`..`4`)
96
+ */
97
+ function getDatabaseMysqlV2Output(args, opts) {
98
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
99
+ return pulumi.runtime.invokeOutput("linode:index/getDatabaseMysqlV2:getDatabaseMysqlV2", {
100
+ "id": args.id,
101
+ }, opts);
102
+ }
103
+ exports.getDatabaseMysqlV2Output = getDatabaseMysqlV2Output;
104
+ //# sourceMappingURL=getDatabaseMysqlV2.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getDatabaseMysqlV2.js","sourceRoot":"","sources":["../getDatabaseMysqlV2.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwCG;AACH,SAAgB,kBAAkB,CAAC,IAA4B,EAAE,IAA2B;IACxF,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,oDAAoD,EAAE;QAC/E,IAAI,EAAE,IAAI,CAAC,EAAE;KAChB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AALD,gDAKC;AA8GD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwCG;AACH,SAAgB,wBAAwB,CAAC,IAAkC,EAAE,IAAiC;IAC1G,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,YAAY,CAAC,oDAAoD,EAAE;QACrF,IAAI,EAAE,IAAI,CAAC,EAAE;KAChB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AALD,4DAKC"}
@@ -1,6 +1,8 @@
1
1
  import * as pulumi from "@pulumi/pulumi";
2
2
  import * as outputs from "./types/output";
3
3
  /**
4
+ * > **DEPRECATION NOTICE:** This data source has been deprecated. Please use linode.DatabasePostgresqlV2 for all future implementations.
5
+ *
4
6
  * Provides information about a Linode PostgreSQL Database.
5
7
  * For more information, see the [Linode APIv4 docs](https://techdocs.akamai.com/linode-api/reference/get-databases-postgre-sql-instance-backups).
6
8
  *
@@ -140,6 +142,8 @@ export interface GetDatabasePostgresqlResult {
140
142
  readonly version: string;
141
143
  }
142
144
  /**
145
+ * > **DEPRECATION NOTICE:** This data source has been deprecated. Please use linode.DatabasePostgresqlV2 for all future implementations.
146
+ *
143
147
  * Provides information about a Linode PostgreSQL Database.
144
148
  * For more information, see the [Linode APIv4 docs](https://techdocs.akamai.com/linode-api/reference/get-databases-postgre-sql-instance-backups).
145
149
  *
@@ -6,6 +6,8 @@ exports.getDatabasePostgresqlOutput = exports.getDatabasePostgresql = void 0;
6
6
  const pulumi = require("@pulumi/pulumi");
7
7
  const utilities = require("./utilities");
8
8
  /**
9
+ * > **DEPRECATION NOTICE:** This data source has been deprecated. Please use linode.DatabasePostgresqlV2 for all future implementations.
10
+ *
9
11
  * Provides information about a Linode PostgreSQL Database.
10
12
  * For more information, see the [Linode APIv4 docs](https://techdocs.akamai.com/linode-api/reference/get-databases-postgre-sql-instance-backups).
11
13
  *
@@ -46,6 +48,8 @@ function getDatabasePostgresql(args, opts) {
46
48
  }
47
49
  exports.getDatabasePostgresql = getDatabasePostgresql;
48
50
  /**
51
+ * > **DEPRECATION NOTICE:** This data source has been deprecated. Please use linode.DatabasePostgresqlV2 for all future implementations.
52
+ *
49
53
  * Provides information about a Linode PostgreSQL Database.
50
54
  * For more information, see the [Linode APIv4 docs](https://techdocs.akamai.com/linode-api/reference/get-databases-postgre-sql-instance-backups).
51
55
  *
@@ -1 +1 @@
1
- {"version":3,"file":"getDatabasePostgresql.js","sourceRoot":"","sources":["../getDatabasePostgresql.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AACH,SAAgB,qBAAqB,CAAC,IAAgC,EAAE,IAA2B;IAC/F,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;IAClB,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,0DAA0D,EAAE;QACrF,YAAY,EAAE,IAAI,CAAC,UAAU;QAC7B,IAAI,EAAE,IAAI,CAAC,EAAE;KAChB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAPD,sDAOC;AA8GD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AACH,SAAgB,2BAA2B,CAAC,IAAsC,EAAE,IAAiC;IACjH,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;IAClB,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,YAAY,CAAC,0DAA0D,EAAE;QAC3F,YAAY,EAAE,IAAI,CAAC,UAAU;QAC7B,IAAI,EAAE,IAAI,CAAC,EAAE;KAChB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAPD,kEAOC"}
1
+ {"version":3,"file":"getDatabasePostgresql.js","sourceRoot":"","sources":["../getDatabasePostgresql.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AACH,SAAgB,qBAAqB,CAAC,IAAgC,EAAE,IAA2B;IAC/F,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;IAClB,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,0DAA0D,EAAE;QACrF,YAAY,EAAE,IAAI,CAAC,UAAU;QAC7B,IAAI,EAAE,IAAI,CAAC,EAAE;KAChB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAPD,sDAOC;AA8GD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AACH,SAAgB,2BAA2B,CAAC,IAAsC,EAAE,IAAiC;IACjH,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;IAClB,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,YAAY,CAAC,0DAA0D,EAAE;QAC3F,YAAY,EAAE,IAAI,CAAC,UAAU;QAC7B,IAAI,EAAE,IAAI,CAAC,EAAE;KAChB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAPD,kEAOC"}
@@ -0,0 +1,204 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ import * as outputs from "./types/output";
3
+ /**
4
+ * Provides information about a Linode PostgreSQL Database.
5
+ * For more information, see the [Linode APIv4 docs](https://techdocs.akamai.com/linode-api/reference/get-databases-postgre-sql-instance-backups).
6
+ *
7
+ * ## Example Usage
8
+ *
9
+ * Get information about a PostgreSQL database:
10
+ *
11
+ * ```typescript
12
+ * import * as pulumi from "@pulumi/pulumi";
13
+ * import * as linode from "@pulumi/linode";
14
+ *
15
+ * const my-db = linode.getDatabasePostgresqlV2({
16
+ * id: "12345",
17
+ * });
18
+ * ```
19
+ *
20
+ * ## pendingUpdates
21
+ *
22
+ * The following arguments are exposed by each entry in the `pendingUpdates` attribute:
23
+ *
24
+ * * `deadline` - The time when a mandatory update needs to be applied.
25
+ *
26
+ * * `description` - A description of the update.
27
+ *
28
+ * * `plannedFor` - The date and time a maintenance update will be applied.
29
+ *
30
+ * ## updates
31
+ *
32
+ * The following arguments are supported in the `updates` specification block:
33
+ *
34
+ * * `dayOfWeek` - The day to perform maintenance. (`monday`, `tuesday`, ...)
35
+ *
36
+ * * `duration` - The maximum maintenance window time in hours. (`1`..`3`)
37
+ *
38
+ * * `frequency` - Whether maintenance occurs on a weekly or monthly basis. (`weekly`, `monthly`)
39
+ *
40
+ * * `hourOfDay` - The hour to begin maintenance based in UTC time. (`0`..`23`)
41
+ *
42
+ * * `weekOfMonth` - The week of the month to perform monthly frequency updates. Required for `monthly` frequency updates. (`1`..`4`)
43
+ */
44
+ export declare function getDatabasePostgresqlV2(args: GetDatabasePostgresqlV2Args, opts?: pulumi.InvokeOptions): Promise<GetDatabasePostgresqlV2Result>;
45
+ /**
46
+ * A collection of arguments for invoking getDatabasePostgresqlV2.
47
+ */
48
+ export interface GetDatabasePostgresqlV2Args {
49
+ /**
50
+ * The ID of the PostgreSQL database.
51
+ */
52
+ id: string;
53
+ }
54
+ /**
55
+ * A collection of values returned by getDatabasePostgresqlV2.
56
+ */
57
+ export interface GetDatabasePostgresqlV2Result {
58
+ /**
59
+ * 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. Use `linode.DatabaseAccessControls` to manage your allow list separately.
60
+ */
61
+ readonly allowLists: string[];
62
+ /**
63
+ * The base64-encoded SSL CA certificate for the Managed Database.
64
+ */
65
+ readonly caCert: string;
66
+ /**
67
+ * The number of Linode Instance nodes deployed to the Managed Database. (default `1`)
68
+ */
69
+ readonly clusterSize: number;
70
+ /**
71
+ * When this Managed Database was created.
72
+ */
73
+ readonly created: string;
74
+ /**
75
+ * Whether the Managed Databases is encrypted.
76
+ */
77
+ readonly encrypted: boolean;
78
+ /**
79
+ * The Managed Database engine. (e.g. `postgresql`)
80
+ */
81
+ readonly engine: string;
82
+ /**
83
+ * The Managed Database engine in engine/version format. (e.g. `postgresql/16`)
84
+ */
85
+ readonly engineId: string;
86
+ /**
87
+ * The database timestamp from which it was restored.
88
+ */
89
+ readonly forkRestoreTime: string;
90
+ /**
91
+ * The ID of the database that was forked from.
92
+ */
93
+ readonly forkSource: number;
94
+ /**
95
+ * The primary host for the Managed Database.
96
+ */
97
+ readonly hostPrimary: string;
98
+ /**
99
+ * The secondary/private host for the managed database.
100
+ */
101
+ readonly hostSecondary: string;
102
+ readonly id: string;
103
+ /**
104
+ * A unique, user-defined string referring to the Managed Database.
105
+ */
106
+ readonly label: string;
107
+ readonly members: {
108
+ [key: string]: string;
109
+ };
110
+ readonly oldestRestoreTime: string;
111
+ readonly pendingUpdates: outputs.GetDatabasePostgresqlV2PendingUpdate[];
112
+ /**
113
+ * The back-end platform for relational databases used by the service.
114
+ */
115
+ readonly platform: string;
116
+ /**
117
+ * The access port for this Managed Database.
118
+ */
119
+ readonly port: number;
120
+ /**
121
+ * The region to use for the Managed Database.
122
+ */
123
+ readonly region: string;
124
+ /**
125
+ * The randomly-generated root password for the Managed Database instance.
126
+ */
127
+ readonly rootPassword: string;
128
+ /**
129
+ * The root username for the Managed Database instance.
130
+ */
131
+ readonly rootUsername: string;
132
+ /**
133
+ * Whether to require SSL credentials to establish a connection to the Managed Database.
134
+ */
135
+ readonly sslConnection: boolean;
136
+ /**
137
+ * The operating status of the Managed Database.
138
+ */
139
+ readonly status: string;
140
+ /**
141
+ * The Linode Instance type used for the nodes of the Managed Database.
142
+ */
143
+ readonly type: string;
144
+ /**
145
+ * When this Managed Database was last updated.
146
+ */
147
+ readonly updated: string;
148
+ readonly updates: outputs.GetDatabasePostgresqlV2Updates;
149
+ /**
150
+ * The Managed Database engine version. (e.g. `13.2`)
151
+ */
152
+ readonly version: string;
153
+ }
154
+ /**
155
+ * Provides information about a Linode PostgreSQL Database.
156
+ * For more information, see the [Linode APIv4 docs](https://techdocs.akamai.com/linode-api/reference/get-databases-postgre-sql-instance-backups).
157
+ *
158
+ * ## Example Usage
159
+ *
160
+ * Get information about a PostgreSQL database:
161
+ *
162
+ * ```typescript
163
+ * import * as pulumi from "@pulumi/pulumi";
164
+ * import * as linode from "@pulumi/linode";
165
+ *
166
+ * const my-db = linode.getDatabasePostgresqlV2({
167
+ * id: "12345",
168
+ * });
169
+ * ```
170
+ *
171
+ * ## pendingUpdates
172
+ *
173
+ * The following arguments are exposed by each entry in the `pendingUpdates` attribute:
174
+ *
175
+ * * `deadline` - The time when a mandatory update needs to be applied.
176
+ *
177
+ * * `description` - A description of the update.
178
+ *
179
+ * * `plannedFor` - The date and time a maintenance update will be applied.
180
+ *
181
+ * ## updates
182
+ *
183
+ * The following arguments are supported in the `updates` specification block:
184
+ *
185
+ * * `dayOfWeek` - The day to perform maintenance. (`monday`, `tuesday`, ...)
186
+ *
187
+ * * `duration` - The maximum maintenance window time in hours. (`1`..`3`)
188
+ *
189
+ * * `frequency` - Whether maintenance occurs on a weekly or monthly basis. (`weekly`, `monthly`)
190
+ *
191
+ * * `hourOfDay` - The hour to begin maintenance based in UTC time. (`0`..`23`)
192
+ *
193
+ * * `weekOfMonth` - The week of the month to perform monthly frequency updates. Required for `monthly` frequency updates. (`1`..`4`)
194
+ */
195
+ export declare function getDatabasePostgresqlV2Output(args: GetDatabasePostgresqlV2OutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetDatabasePostgresqlV2Result>;
196
+ /**
197
+ * A collection of arguments for invoking getDatabasePostgresqlV2.
198
+ */
199
+ export interface GetDatabasePostgresqlV2OutputArgs {
200
+ /**
201
+ * The ID of the PostgreSQL database.
202
+ */
203
+ id: pulumi.Input<string>;
204
+ }
@@ -0,0 +1,104 @@
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.getDatabasePostgresqlV2Output = exports.getDatabasePostgresqlV2 = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("./utilities");
8
+ /**
9
+ * Provides information about a Linode PostgreSQL Database.
10
+ * For more information, see the [Linode APIv4 docs](https://techdocs.akamai.com/linode-api/reference/get-databases-postgre-sql-instance-backups).
11
+ *
12
+ * ## Example Usage
13
+ *
14
+ * Get information about a PostgreSQL database:
15
+ *
16
+ * ```typescript
17
+ * import * as pulumi from "@pulumi/pulumi";
18
+ * import * as linode from "@pulumi/linode";
19
+ *
20
+ * const my-db = linode.getDatabasePostgresqlV2({
21
+ * id: "12345",
22
+ * });
23
+ * ```
24
+ *
25
+ * ## pendingUpdates
26
+ *
27
+ * The following arguments are exposed by each entry in the `pendingUpdates` attribute:
28
+ *
29
+ * * `deadline` - The time when a mandatory update needs to be applied.
30
+ *
31
+ * * `description` - A description of the update.
32
+ *
33
+ * * `plannedFor` - The date and time a maintenance update will be applied.
34
+ *
35
+ * ## updates
36
+ *
37
+ * The following arguments are supported in the `updates` specification block:
38
+ *
39
+ * * `dayOfWeek` - The day to perform maintenance. (`monday`, `tuesday`, ...)
40
+ *
41
+ * * `duration` - The maximum maintenance window time in hours. (`1`..`3`)
42
+ *
43
+ * * `frequency` - Whether maintenance occurs on a weekly or monthly basis. (`weekly`, `monthly`)
44
+ *
45
+ * * `hourOfDay` - The hour to begin maintenance based in UTC time. (`0`..`23`)
46
+ *
47
+ * * `weekOfMonth` - The week of the month to perform monthly frequency updates. Required for `monthly` frequency updates. (`1`..`4`)
48
+ */
49
+ function getDatabasePostgresqlV2(args, opts) {
50
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
51
+ return pulumi.runtime.invoke("linode:index/getDatabasePostgresqlV2:getDatabasePostgresqlV2", {
52
+ "id": args.id,
53
+ }, opts);
54
+ }
55
+ exports.getDatabasePostgresqlV2 = getDatabasePostgresqlV2;
56
+ /**
57
+ * Provides information about a Linode PostgreSQL Database.
58
+ * For more information, see the [Linode APIv4 docs](https://techdocs.akamai.com/linode-api/reference/get-databases-postgre-sql-instance-backups).
59
+ *
60
+ * ## Example Usage
61
+ *
62
+ * Get information about a PostgreSQL database:
63
+ *
64
+ * ```typescript
65
+ * import * as pulumi from "@pulumi/pulumi";
66
+ * import * as linode from "@pulumi/linode";
67
+ *
68
+ * const my-db = linode.getDatabasePostgresqlV2({
69
+ * id: "12345",
70
+ * });
71
+ * ```
72
+ *
73
+ * ## pendingUpdates
74
+ *
75
+ * The following arguments are exposed by each entry in the `pendingUpdates` attribute:
76
+ *
77
+ * * `deadline` - The time when a mandatory update needs to be applied.
78
+ *
79
+ * * `description` - A description of the update.
80
+ *
81
+ * * `plannedFor` - The date and time a maintenance update will be applied.
82
+ *
83
+ * ## updates
84
+ *
85
+ * The following arguments are supported in the `updates` specification block:
86
+ *
87
+ * * `dayOfWeek` - The day to perform maintenance. (`monday`, `tuesday`, ...)
88
+ *
89
+ * * `duration` - The maximum maintenance window time in hours. (`1`..`3`)
90
+ *
91
+ * * `frequency` - Whether maintenance occurs on a weekly or monthly basis. (`weekly`, `monthly`)
92
+ *
93
+ * * `hourOfDay` - The hour to begin maintenance based in UTC time. (`0`..`23`)
94
+ *
95
+ * * `weekOfMonth` - The week of the month to perform monthly frequency updates. Required for `monthly` frequency updates. (`1`..`4`)
96
+ */
97
+ function getDatabasePostgresqlV2Output(args, opts) {
98
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
99
+ return pulumi.runtime.invokeOutput("linode:index/getDatabasePostgresqlV2:getDatabasePostgresqlV2", {
100
+ "id": args.id,
101
+ }, opts);
102
+ }
103
+ exports.getDatabasePostgresqlV2Output = getDatabasePostgresqlV2Output;
104
+ //# sourceMappingURL=getDatabasePostgresqlV2.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getDatabasePostgresqlV2.js","sourceRoot":"","sources":["../getDatabasePostgresqlV2.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwCG;AACH,SAAgB,uBAAuB,CAAC,IAAiC,EAAE,IAA2B;IAClG,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,8DAA8D,EAAE;QACzF,IAAI,EAAE,IAAI,CAAC,EAAE;KAChB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AALD,0DAKC;AA8GD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwCG;AACH,SAAgB,6BAA6B,CAAC,IAAuC,EAAE,IAAiC;IACpH,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,YAAY,CAAC,8DAA8D,EAAE;QAC/F,IAAI,EAAE,IAAI,CAAC,EAAE;KAChB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AALD,sEAKC"}
@@ -35,6 +35,10 @@ export interface GetInstanceTypeArgs {
35
35
  * A collection of values returned by getInstanceType.
36
36
  */
37
37
  export interface GetInstanceTypeResult {
38
+ /**
39
+ * The number of VPUs this Linode Type offers.
40
+ */
41
+ readonly acceleratedDevices: number;
38
42
  readonly addons: outputs.GetInstanceTypeAddons;
39
43
  /**
40
44
  * The class of the Linode Type. See all classes [here](https://techdocs.akamai.com/linode-api/reference/get-linode-type).
@@ -1 +1 @@
1
- {"version":3,"file":"getInstanceType.js","sourceRoot":"","sources":["../getInstanceType.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;GAgBG;AACH,SAAgB,eAAe,CAAC,IAAyB,EAAE,IAA2B;IAClF,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,8CAA8C,EAAE;QACzE,IAAI,EAAE,IAAI,CAAC,EAAE;QACb,OAAO,EAAE,IAAI,CAAC,KAAK;KACtB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAND,0CAMC;AAwDD;;;;;;;;;;;;;;;;GAgBG;AACH,SAAgB,qBAAqB,CAAC,IAA+B,EAAE,IAAiC;IACpG,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,YAAY,CAAC,8CAA8C,EAAE;QAC/E,IAAI,EAAE,IAAI,CAAC,EAAE;QACb,OAAO,EAAE,IAAI,CAAC,KAAK;KACtB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAND,sDAMC"}
1
+ {"version":3,"file":"getInstanceType.js","sourceRoot":"","sources":["../getInstanceType.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;GAgBG;AACH,SAAgB,eAAe,CAAC,IAAyB,EAAE,IAA2B;IAClF,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,8CAA8C,EAAE;QACzE,IAAI,EAAE,IAAI,CAAC,EAAE;QACb,OAAO,EAAE,IAAI,CAAC,KAAK;KACtB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAND,0CAMC;AA4DD;;;;;;;;;;;;;;;;GAgBG;AACH,SAAgB,qBAAqB,CAAC,IAA+B,EAAE,IAAiC;IACpG,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,YAAY,CAAC,8CAA8C,EAAE;QAC/E,IAAI,EAAE,IAAI,CAAC,EAAE;QACb,OAAO,EAAE,IAAI,CAAC,KAAK;KACtB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAND,sDAMC"}