@pulumi/linode 5.4.0-alpha.1759904617 → 5.4.0-alpha.1760067007

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 (64) hide show
  1. package/databaseMysqlV2.d.ts +18 -0
  2. package/databaseMysqlV2.js +2 -0
  3. package/databaseMysqlV2.js.map +1 -1
  4. package/databasePostgresqlV2.d.ts +18 -0
  5. package/databasePostgresqlV2.js +2 -0
  6. package/databasePostgresqlV2.js.map +1 -1
  7. package/getDatabaseMysqlV2.d.ts +21 -0
  8. package/getDatabaseMysqlV2.js +20 -0
  9. package/getDatabaseMysqlV2.js.map +1 -1
  10. package/getDatabasePostgresqlV2.d.ts +21 -0
  11. package/getDatabasePostgresqlV2.js +20 -0
  12. package/getDatabasePostgresqlV2.js.map +1 -1
  13. package/getDatabases.d.ts +20 -0
  14. package/getDatabases.js +20 -0
  15. package/getDatabases.js.map +1 -1
  16. package/getNodeBalancer.d.ts +1 -0
  17. package/getNodeBalancer.js.map +1 -1
  18. package/getNodeBalancerNode.d.ts +8 -0
  19. package/getNodeBalancerNode.js.map +1 -1
  20. package/getNodebalancerVpc.d.ts +88 -0
  21. package/getNodebalancerVpc.js +64 -0
  22. package/getNodebalancerVpc.js.map +1 -0
  23. package/getNodebalancerVpcs.d.ts +154 -0
  24. package/getNodebalancerVpcs.js +120 -0
  25. package/getNodebalancerVpcs.js.map +1 -0
  26. package/getUser.d.ts +0 -3
  27. package/getUser.js +0 -2
  28. package/getUser.js.map +1 -1
  29. package/getVpc.d.ts +29 -0
  30. package/getVpc.js +24 -0
  31. package/getVpc.js.map +1 -1
  32. package/getVpcIps.d.ts +25 -6
  33. package/getVpcIps.js +24 -6
  34. package/getVpcIps.js.map +1 -1
  35. package/getVpcSubnet.d.ts +17 -0
  36. package/getVpcSubnet.js +16 -0
  37. package/getVpcSubnet.js.map +1 -1
  38. package/getVpcSubnets.d.ts +16 -0
  39. package/getVpcSubnets.js +16 -0
  40. package/getVpcSubnets.js.map +1 -1
  41. package/getVpcs.d.ts +16 -0
  42. package/getVpcs.js +16 -0
  43. package/getVpcs.js.map +1 -1
  44. package/index.d.ts +6 -0
  45. package/index.js +8 -2
  46. package/index.js.map +1 -1
  47. package/nodeBalancer.d.ts +14 -0
  48. package/nodeBalancer.js +4 -0
  49. package/nodeBalancer.js.map +1 -1
  50. package/nodeBalancerNode.d.ts +20 -0
  51. package/nodeBalancerNode.js +4 -0
  52. package/nodeBalancerNode.js.map +1 -1
  53. package/package.json +2 -2
  54. package/types/input.d.ts +294 -86
  55. package/types/output.d.ts +341 -55
  56. package/user.d.ts +0 -14
  57. package/user.js +0 -4
  58. package/user.js.map +1 -1
  59. package/vpc.d.ts +48 -0
  60. package/vpc.js +30 -0
  61. package/vpc.js.map +1 -1
  62. package/vpcSubnet.d.ts +57 -5
  63. package/vpcSubnet.js +36 -3
  64. package/vpcSubnet.js.map +1 -1
package/vpc.d.ts CHANGED
@@ -1,4 +1,6 @@
1
1
  import * as pulumi from "@pulumi/pulumi";
2
+ import * as inputs from "./types/input";
3
+ import * as outputs from "./types/output";
2
4
  /**
3
5
  * Manages a Linode VPC.
4
6
  * For more information, see the [Linode APIv4 docs](https://techdocs.akamai.com/linode-api/reference/post-vpc).
@@ -19,6 +21,34 @@ import * as pulumi from "@pulumi/pulumi";
19
21
  * description: "My first VPC.",
20
22
  * });
21
23
  * ```
24
+ *
25
+ * Create a VPC with a `/52` IPv6 range prefix:
26
+ *
27
+ * ```typescript
28
+ * import * as pulumi from "@pulumi/pulumi";
29
+ * import * as linode from "@pulumi/linode";
30
+ *
31
+ * // NOTE: IPv6 VPCs may not currently be available to all users.
32
+ * const test = new linode.Vpc("test", {
33
+ * label: "test-vpc",
34
+ * region: "us-iad",
35
+ * ipv6s: [{
36
+ * range: "/52",
37
+ * }],
38
+ * });
39
+ * ```
40
+ *
41
+ * ## IPv6
42
+ *
43
+ * > **Limited Availability** IPv6 VPCs may not currently be available to all users.
44
+ *
45
+ * Configures a single IPv6 range under this VPC.
46
+ *
47
+ * * `range` - (Optional) An existing IPv6 prefix owned by the current account or a forward slash (/) followed by a valid prefix length. If unspecified, a range with the default prefix will be allocated for this VPC.
48
+ *
49
+ * * `allocationClass` - (Optional) Indicates the labeled IPv6 Inventory that the VPC Prefix should be allocated from.
50
+ *
51
+ * * `allocatedRange` - (Read-Only) The value of range computed by the API. This is necessary when needing to access the range for an implicit allocation.
22
52
  */
23
53
  export declare class Vpc extends pulumi.CustomResource {
24
54
  /**
@@ -42,8 +72,14 @@ export declare class Vpc extends pulumi.CustomResource {
42
72
  readonly created: pulumi.Output<string>;
43
73
  /**
44
74
  * The user-defined description of this VPC.
75
+ *
76
+ * * `ipv6` - (Optional) A list of IPv6 allocations under this VPC.
45
77
  */
46
78
  readonly description: pulumi.Output<string>;
79
+ /**
80
+ * The IPv6 configuration of this VPC.
81
+ */
82
+ readonly ipv6s: pulumi.Output<outputs.VpcIpv6[] | undefined>;
47
83
  /**
48
84
  * The label of the VPC. This field can only contain ASCII letters, digits and dashes.
49
85
  */
@@ -75,8 +111,14 @@ export interface VpcState {
75
111
  created?: pulumi.Input<string>;
76
112
  /**
77
113
  * The user-defined description of this VPC.
114
+ *
115
+ * * `ipv6` - (Optional) A list of IPv6 allocations under this VPC.
78
116
  */
79
117
  description?: pulumi.Input<string>;
118
+ /**
119
+ * The IPv6 configuration of this VPC.
120
+ */
121
+ ipv6s?: pulumi.Input<pulumi.Input<inputs.VpcIpv6>[]>;
80
122
  /**
81
123
  * The label of the VPC. This field can only contain ASCII letters, digits and dashes.
82
124
  */
@@ -96,8 +138,14 @@ export interface VpcState {
96
138
  export interface VpcArgs {
97
139
  /**
98
140
  * The user-defined description of this VPC.
141
+ *
142
+ * * `ipv6` - (Optional) A list of IPv6 allocations under this VPC.
99
143
  */
100
144
  description?: pulumi.Input<string>;
145
+ /**
146
+ * The IPv6 configuration of this VPC.
147
+ */
148
+ ipv6s?: pulumi.Input<pulumi.Input<inputs.VpcIpv6>[]>;
101
149
  /**
102
150
  * The label of the VPC. This field can only contain ASCII letters, digits and dashes.
103
151
  */
package/vpc.js CHANGED
@@ -25,6 +25,34 @@ const utilities = require("./utilities");
25
25
  * description: "My first VPC.",
26
26
  * });
27
27
  * ```
28
+ *
29
+ * Create a VPC with a `/52` IPv6 range prefix:
30
+ *
31
+ * ```typescript
32
+ * import * as pulumi from "@pulumi/pulumi";
33
+ * import * as linode from "@pulumi/linode";
34
+ *
35
+ * // NOTE: IPv6 VPCs may not currently be available to all users.
36
+ * const test = new linode.Vpc("test", {
37
+ * label: "test-vpc",
38
+ * region: "us-iad",
39
+ * ipv6s: [{
40
+ * range: "/52",
41
+ * }],
42
+ * });
43
+ * ```
44
+ *
45
+ * ## IPv6
46
+ *
47
+ * > **Limited Availability** IPv6 VPCs may not currently be available to all users.
48
+ *
49
+ * Configures a single IPv6 range under this VPC.
50
+ *
51
+ * * `range` - (Optional) An existing IPv6 prefix owned by the current account or a forward slash (/) followed by a valid prefix length. If unspecified, a range with the default prefix will be allocated for this VPC.
52
+ *
53
+ * * `allocationClass` - (Optional) Indicates the labeled IPv6 Inventory that the VPC Prefix should be allocated from.
54
+ *
55
+ * * `allocatedRange` - (Read-Only) The value of range computed by the API. This is necessary when needing to access the range for an implicit allocation.
28
56
  */
29
57
  class Vpc extends pulumi.CustomResource {
30
58
  /**
@@ -56,6 +84,7 @@ class Vpc extends pulumi.CustomResource {
56
84
  const state = argsOrState;
57
85
  resourceInputs["created"] = state?.created;
58
86
  resourceInputs["description"] = state?.description;
87
+ resourceInputs["ipv6s"] = state?.ipv6s;
59
88
  resourceInputs["label"] = state?.label;
60
89
  resourceInputs["region"] = state?.region;
61
90
  resourceInputs["updated"] = state?.updated;
@@ -69,6 +98,7 @@ class Vpc extends pulumi.CustomResource {
69
98
  throw new Error("Missing required property 'region'");
70
99
  }
71
100
  resourceInputs["description"] = args?.description;
101
+ resourceInputs["ipv6s"] = args?.ipv6s;
72
102
  resourceInputs["label"] = args?.label;
73
103
  resourceInputs["region"] = args?.region;
74
104
  resourceInputs["created"] = undefined /*out*/;
package/vpc.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"vpc.js","sourceRoot":"","sources":["../vpc.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,MAAa,GAAI,SAAQ,MAAM,CAAC,cAAc;IAC1C;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAgB,EAAE,IAAmC;QAC9G,OAAO,IAAI,GAAG,CAAC,IAAI,EAAO,KAAK,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;IAC1D,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,GAAG,CAAC,YAAY,CAAC;IACpD,CAAC;IA+BD,YAAY,IAAY,EAAE,WAAgC,EAAE,IAAmC;QAC3F,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAAmC,CAAC;YAClD,cAAc,CAAC,SAAS,CAAC,GAAG,KAAK,EAAE,OAAO,CAAC;YAC3C,cAAc,CAAC,aAAa,CAAC,GAAG,KAAK,EAAE,WAAW,CAAC;YACnD,cAAc,CAAC,OAAO,CAAC,GAAG,KAAK,EAAE,KAAK,CAAC;YACvC,cAAc,CAAC,QAAQ,CAAC,GAAG,KAAK,EAAE,MAAM,CAAC;YACzC,cAAc,CAAC,SAAS,CAAC,GAAG,KAAK,EAAE,OA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AAc,CAAC,aAAa,CAAC,GAAG,IAAI,EAAE,WAAW,CAAC;YAClD,cAAc,CAAC,OAAO,CAAC,GAAG,IAAI,EAAE,KAAK,CAAC;YACtC,cAAc,CAAC,OAAO,CAAC,GAAG,IAAI,EAAE,KAAK,CAAC;YACtC,cAAc,CAAC,QAAQ,CAAC,GAAG,IAAI,EAAE,MAAM,CAAC;YACxC,cAAc,CAAC,SAAS,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAC9C,cAAc,CAAC,SAAS,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SACjD;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,GAAG,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACxD,CAAC;;AA3FL,kBA4FC;AA9EG,gBAAgB;AACO,gBAAY,GAAG,sBAAsB,CAAC"}
package/vpcSubnet.d.ts CHANGED
@@ -20,6 +20,40 @@ import * as outputs from "./types/output";
20
20
  * });
21
21
  * ```
22
22
  *
23
+ * Create a VPC subnet with an implicitly determined IPv6 range:
24
+ *
25
+ * ```typescript
26
+ * import * as pulumi from "@pulumi/pulumi";
27
+ * import * as linode from "@pulumi/linode";
28
+ *
29
+ * const testVpc = new linode.Vpc("test", {
30
+ * label: "test-vpc",
31
+ * region: "us-mia",
32
+ * ipv6s: [{
33
+ * range: "/52",
34
+ * }],
35
+ * });
36
+ * // NOTE: IPv6 VPCs may not currently be available to all users.
37
+ * const test = new linode.VpcSubnet("test", {
38
+ * vpcId: testVpc.id,
39
+ * label: "test-subnet",
40
+ * ipv4: "10.0.0.0/24",
41
+ * ipv6s: [{
42
+ * range: "auto",
43
+ * }],
44
+ * });
45
+ * ```
46
+ *
47
+ * ## IPv6
48
+ *
49
+ * > **Limited Availability** IPv6 VPCs may not currently be available to all users.
50
+ *
51
+ * The following arguments can be configured for each entry under the `ipv6` field:
52
+ *
53
+ * * `range` - (Optional) An existing IPv6 prefix owned by the current account or a forward slash (/) followed by a valid prefix length. If `auto`, a range with the default prefix will be allocated for this VPC.
54
+ *
55
+ * * `allocatedRange` - (Read-Only) The value of range computed by the API. This is necessary when needing to access the range for an implicit allocation.
56
+ *
23
57
  * ## Import
24
58
  *
25
59
  * Linode Virtual Private Cloud (VPC) Subnet can be imported using the `vpc_id` followed by the subnet `id` separated by a comma, e.g.
@@ -50,8 +84,14 @@ export declare class VpcSubnet extends pulumi.CustomResource {
50
84
  readonly created: pulumi.Output<string>;
51
85
  /**
52
86
  * The IPv4 range of this subnet in CIDR format.
87
+ *
88
+ * * `ipv6` - (Optional) A list of IPv6 ranges under this VPC subnet. NOTE: IPv6 VPCs may not currently be available to all users.
53
89
  */
54
- readonly ipv4: pulumi.Output<string>;
90
+ readonly ipv4: pulumi.Output<string | undefined>;
91
+ /**
92
+ * The IPv6 ranges of this subnet.
93
+ */
94
+ readonly ipv6s: pulumi.Output<outputs.VpcSubnetIpv6[] | undefined>;
55
95
  /**
56
96
  * The label of the VPC. Only contains ASCII letters, digits and dashes.
57
97
  */
@@ -65,7 +105,7 @@ export declare class VpcSubnet extends pulumi.CustomResource {
65
105
  */
66
106
  readonly updated: pulumi.Output<string>;
67
107
  /**
68
- * The id of the parent VPC for this VPC Subnet.
108
+ * The id of the parent VPC for this VPC subnet.
69
109
  */
70
110
  readonly vpcId: pulumi.Output<number>;
71
111
  /**
@@ -87,8 +127,14 @@ export interface VpcSubnetState {
87
127
  created?: pulumi.Input<string>;
88
128
  /**
89
129
  * The IPv4 range of this subnet in CIDR format.
130
+ *
131
+ * * `ipv6` - (Optional) A list of IPv6 ranges under this VPC subnet. NOTE: IPv6 VPCs may not currently be available to all users.
90
132
  */
91
133
  ipv4?: pulumi.Input<string>;
134
+ /**
135
+ * The IPv6 ranges of this subnet.
136
+ */
137
+ ipv6s?: pulumi.Input<pulumi.Input<inputs.VpcSubnetIpv6>[]>;
92
138
  /**
93
139
  * The label of the VPC. Only contains ASCII letters, digits and dashes.
94
140
  */
@@ -102,7 +148,7 @@ export interface VpcSubnetState {
102
148
  */
103
149
  updated?: pulumi.Input<string>;
104
150
  /**
105
- * The id of the parent VPC for this VPC Subnet.
151
+ * The id of the parent VPC for this VPC subnet.
106
152
  */
107
153
  vpcId?: pulumi.Input<number>;
108
154
  }
@@ -112,14 +158,20 @@ export interface VpcSubnetState {
112
158
  export interface VpcSubnetArgs {
113
159
  /**
114
160
  * The IPv4 range of this subnet in CIDR format.
161
+ *
162
+ * * `ipv6` - (Optional) A list of IPv6 ranges under this VPC subnet. NOTE: IPv6 VPCs may not currently be available to all users.
163
+ */
164
+ ipv4?: pulumi.Input<string>;
165
+ /**
166
+ * The IPv6 ranges of this subnet.
115
167
  */
116
- ipv4: pulumi.Input<string>;
168
+ ipv6s?: pulumi.Input<pulumi.Input<inputs.VpcSubnetIpv6>[]>;
117
169
  /**
118
170
  * The label of the VPC. Only contains ASCII letters, digits and dashes.
119
171
  */
120
172
  label: pulumi.Input<string>;
121
173
  /**
122
- * The id of the parent VPC for this VPC Subnet.
174
+ * The id of the parent VPC for this VPC subnet.
123
175
  */
124
176
  vpcId: pulumi.Input<number>;
125
177
  }
package/vpcSubnet.js CHANGED
@@ -24,6 +24,40 @@ const utilities = require("./utilities");
24
24
  * });
25
25
  * ```
26
26
  *
27
+ * Create a VPC subnet with an implicitly determined IPv6 range:
28
+ *
29
+ * ```typescript
30
+ * import * as pulumi from "@pulumi/pulumi";
31
+ * import * as linode from "@pulumi/linode";
32
+ *
33
+ * const testVpc = new linode.Vpc("test", {
34
+ * label: "test-vpc",
35
+ * region: "us-mia",
36
+ * ipv6s: [{
37
+ * range: "/52",
38
+ * }],
39
+ * });
40
+ * // NOTE: IPv6 VPCs may not currently be available to all users.
41
+ * const test = new linode.VpcSubnet("test", {
42
+ * vpcId: testVpc.id,
43
+ * label: "test-subnet",
44
+ * ipv4: "10.0.0.0/24",
45
+ * ipv6s: [{
46
+ * range: "auto",
47
+ * }],
48
+ * });
49
+ * ```
50
+ *
51
+ * ## IPv6
52
+ *
53
+ * > **Limited Availability** IPv6 VPCs may not currently be available to all users.
54
+ *
55
+ * The following arguments can be configured for each entry under the `ipv6` field:
56
+ *
57
+ * * `range` - (Optional) An existing IPv6 prefix owned by the current account or a forward slash (/) followed by a valid prefix length. If `auto`, a range with the default prefix will be allocated for this VPC.
58
+ *
59
+ * * `allocatedRange` - (Read-Only) The value of range computed by the API. This is necessary when needing to access the range for an implicit allocation.
60
+ *
27
61
  * ## Import
28
62
  *
29
63
  * Linode Virtual Private Cloud (VPC) Subnet can be imported using the `vpc_id` followed by the subnet `id` separated by a comma, e.g.
@@ -62,6 +96,7 @@ class VpcSubnet extends pulumi.CustomResource {
62
96
  const state = argsOrState;
63
97
  resourceInputs["created"] = state?.created;
64
98
  resourceInputs["ipv4"] = state?.ipv4;
99
+ resourceInputs["ipv6s"] = state?.ipv6s;
65
100
  resourceInputs["label"] = state?.label;
66
101
  resourceInputs["linodes"] = state?.linodes;
67
102
  resourceInputs["updated"] = state?.updated;
@@ -69,9 +104,6 @@ class VpcSubnet extends pulumi.CustomResource {
69
104
  }
70
105
  else {
71
106
  const args = argsOrState;
72
- if (args?.ipv4 === undefined && !opts.urn) {
73
- throw new Error("Missing required property 'ipv4'");
74
- }
75
107
  if (args?.label === undefined && !opts.urn) {
76
108
  throw new Error("Missing required property 'label'");
77
109
  }
@@ -79,6 +111,7 @@ class VpcSubnet extends pulumi.CustomResource {
79
111
  throw new Error("Missing required property 'vpcId'");
80
112
  }
81
113
  resourceInputs["ipv4"] = args?.ipv4;
114
+ resourceInputs["ipv6s"] = args?.ipv6s;
82
115
  resourceInputs["label"] = args?.label;
83
116
  resourceInputs["vpcId"] = args?.vpcId;
84
117
  resourceInputs["created"] = undefined /*out*/;
package/vpcSubnet.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"vpcSubnet.js","sourceRoot":"","sources":["../vpcSubnet.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