@pulumiverse/scaleway 0.3.1-alpha.1660775142

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 (265) hide show
  1. package/LICENSE +202 -0
  2. package/README.md +54 -0
  3. package/accountSshKey.d.ts +80 -0
  4. package/accountSshKey.js +58 -0
  5. package/accountSshKey.js.map +1 -0
  6. package/appleSliconValleyServer.d.ts +140 -0
  7. package/appleSliconValleyServer.js +72 -0
  8. package/appleSliconValleyServer.js.map +1 -0
  9. package/baremetalServer.d.ts +173 -0
  10. package/baremetalServer.js +84 -0
  11. package/baremetalServer.js.map +1 -0
  12. package/config/index.d.ts +1 -0
  13. package/config/index.js +21 -0
  14. package/config/index.js.map +1 -0
  15. package/config/vars.d.ts +28 -0
  16. package/config/vars.js +55 -0
  17. package/config/vars.js.map +1 -0
  18. package/container.d.ts +273 -0
  19. package/container.js +90 -0
  20. package/container.js.map +1 -0
  21. package/containerNamespace.d.ts +126 -0
  22. package/containerNamespace.js +63 -0
  23. package/containerNamespace.js.map +1 -0
  24. package/database.d.ts +84 -0
  25. package/database.js +60 -0
  26. package/database.js.map +1 -0
  27. package/databaseAcl.d.ts +73 -0
  28. package/databaseAcl.js +59 -0
  29. package/databaseAcl.js.map +1 -0
  30. package/databaseInstance.d.ts +299 -0
  31. package/databaseInstance.js +99 -0
  32. package/databaseInstance.js.map +1 -0
  33. package/databasePrivilege.d.ts +84 -0
  34. package/databasePrivilege.js +67 -0
  35. package/databasePrivilege.js.map +1 -0
  36. package/databaseUser.d.ts +96 -0
  37. package/databaseUser.js +63 -0
  38. package/databaseUser.js.map +1 -0
  39. package/domainRecord.d.ts +189 -0
  40. package/domainRecord.js +82 -0
  41. package/domainRecord.js.map +1 -0
  42. package/domainZone.d.ts +120 -0
  43. package/domainZone.js +71 -0
  44. package/domainZone.js.map +1 -0
  45. package/functionNamespace.d.ts +126 -0
  46. package/functionNamespace.js +63 -0
  47. package/functionNamespace.js.map +1 -0
  48. package/getAccountSshKey.d.ts +31 -0
  49. package/getAccountSshKey.js +24 -0
  50. package/getAccountSshKey.js.map +1 -0
  51. package/getBaremetalOffer.d.ts +41 -0
  52. package/getBaremetalOffer.js +26 -0
  53. package/getBaremetalOffer.js.map +1 -0
  54. package/getBaremetalOs.d.ts +34 -0
  55. package/getBaremetalOs.js +26 -0
  56. package/getBaremetalOs.js.map +1 -0
  57. package/getBaremetalServer.d.ts +44 -0
  58. package/getBaremetalServer.js +25 -0
  59. package/getBaremetalServer.js.map +1 -0
  60. package/getContainer.d.ts +53 -0
  61. package/getContainer.js +25 -0
  62. package/getContainer.js.map +1 -0
  63. package/getContainerNamespace.d.ts +39 -0
  64. package/getContainerNamespace.js +25 -0
  65. package/getContainerNamespace.js.map +1 -0
  66. package/getDatabase.d.ts +31 -0
  67. package/getDatabase.js +23 -0
  68. package/getDatabase.js.map +1 -0
  69. package/getDatabaseAcl.d.ts +28 -0
  70. package/getDatabaseAcl.js +22 -0
  71. package/getDatabaseAcl.js.map +1 -0
  72. package/getDatabaseInstance.d.ts +53 -0
  73. package/getDatabaseInstance.js +24 -0
  74. package/getDatabaseInstance.js.map +1 -0
  75. package/getDatabasePrivilege.d.ts +32 -0
  76. package/getDatabasePrivilege.js +24 -0
  77. package/getDatabasePrivilege.js.map +1 -0
  78. package/getDomainRecord.d.ts +47 -0
  79. package/getDomainRecord.js +27 -0
  80. package/getDomainRecord.js.map +1 -0
  81. package/getDomainZone.d.ts +35 -0
  82. package/getDomainZone.js +24 -0
  83. package/getDomainZone.js.map +1 -0
  84. package/getFunctionNamespace.d.ts +39 -0
  85. package/getFunctionNamespace.js +25 -0
  86. package/getFunctionNamespace.js.map +1 -0
  87. package/getInstanceImage.d.ts +49 -0
  88. package/getInstanceImage.js +28 -0
  89. package/getInstanceImage.js.map +1 -0
  90. package/getInstanceIp.d.ts +30 -0
  91. package/getInstanceIp.js +24 -0
  92. package/getInstanceIp.js.map +1 -0
  93. package/getInstanceSecurityGroup.d.ts +43 -0
  94. package/getInstanceSecurityGroup.js +25 -0
  95. package/getInstanceSecurityGroup.js.map +1 -0
  96. package/getInstanceServer.d.ts +58 -0
  97. package/getInstanceServer.js +25 -0
  98. package/getInstanceServer.js.map +1 -0
  99. package/getInstanceVolume.d.ts +39 -0
  100. package/getInstanceVolume.js +25 -0
  101. package/getInstanceVolume.js.map +1 -0
  102. package/getIotDevice.d.ts +45 -0
  103. package/getIotDevice.js +26 -0
  104. package/getIotDevice.js.map +1 -0
  105. package/getIotHub.d.ts +46 -0
  106. package/getIotHub.js +25 -0
  107. package/getIotHub.js.map +1 -0
  108. package/getKubernetesCluster.d.ts +52 -0
  109. package/getKubernetesCluster.js +25 -0
  110. package/getKubernetesCluster.js.map +1 -0
  111. package/getKubernetesNodePool.d.ts +58 -0
  112. package/getKubernetesNodePool.js +27 -0
  113. package/getKubernetesNodePool.js.map +1 -0
  114. package/getLoadbalancer.d.ts +43 -0
  115. package/getLoadbalancer.js +26 -0
  116. package/getLoadbalancer.js.map +1 -0
  117. package/getLoadbalancerCertificate.d.ts +40 -0
  118. package/getLoadbalancerCertificate.js +25 -0
  119. package/getLoadbalancerCertificate.js.map +1 -0
  120. package/getLoadbalancerIp.d.ts +34 -0
  121. package/getLoadbalancerIp.js +24 -0
  122. package/getLoadbalancerIp.js.map +1 -0
  123. package/getMarketplaceImage.d.ts +31 -0
  124. package/getMarketplaceImage.js +24 -0
  125. package/getMarketplaceImage.js.map +1 -0
  126. package/getObjectBucket.d.ts +38 -0
  127. package/getObjectBucket.js +24 -0
  128. package/getObjectBucket.js.map +1 -0
  129. package/getRedisCluster.d.ts +46 -0
  130. package/getRedisCluster.js +25 -0
  131. package/getRedisCluster.js.map +1 -0
  132. package/getRegistryImage.d.ts +43 -0
  133. package/getRegistryImage.js +28 -0
  134. package/getRegistryImage.js.map +1 -0
  135. package/getRegistryNamespace.d.ts +36 -0
  136. package/getRegistryNamespace.js +25 -0
  137. package/getRegistryNamespace.js.map +1 -0
  138. package/getVpcPrivateNetwork.d.ts +34 -0
  139. package/getVpcPrivateNetwork.js +24 -0
  140. package/getVpcPrivateNetwork.js.map +1 -0
  141. package/getVpcPublicGateway.d.ts +37 -0
  142. package/getVpcPublicGateway.js +24 -0
  143. package/getVpcPublicGateway.js.map +1 -0
  144. package/getVpcPublicGatewayDhcp.d.ts +43 -0
  145. package/getVpcPublicGatewayDhcp.js +22 -0
  146. package/getVpcPublicGatewayDhcp.js.map +1 -0
  147. package/getVpcPublicGatewayIp.d.ts +33 -0
  148. package/getVpcPublicGatewayIp.js +23 -0
  149. package/getVpcPublicGatewayIp.js.map +1 -0
  150. package/getVpcPublicPatRule.d.ts +36 -0
  151. package/getVpcPublicPatRule.js +23 -0
  152. package/getVpcPublicPatRule.js.map +1 -0
  153. package/index.d.ts +83 -0
  154. package/index.js +304 -0
  155. package/index.js.map +1 -0
  156. package/instanceIp.d.ts +104 -0
  157. package/instanceIp.js +61 -0
  158. package/instanceIp.js.map +1 -0
  159. package/instanceIpReverseDns.d.ts +72 -0
  160. package/instanceIpReverseDns.js +59 -0
  161. package/instanceIpReverseDns.js.map +1 -0
  162. package/instancePlacementGroup.d.ts +124 -0
  163. package/instancePlacementGroup.js +63 -0
  164. package/instancePlacementGroup.js.map +1 -0
  165. package/instancePrivateNic.d.ts +80 -0
  166. package/instancePrivateNic.js +61 -0
  167. package/instancePrivateNic.js.map +1 -0
  168. package/instanceSecurityGroup.d.ts +180 -0
  169. package/instanceSecurityGroup.js +73 -0
  170. package/instanceSecurityGroup.js.map +1 -0
  171. package/instanceSecurityGroupRules.d.ts +73 -0
  172. package/instanceSecurityGroupRules.js +56 -0
  173. package/instanceSecurityGroupRules.js.map +1 -0
  174. package/instanceServer.d.ts +327 -0
  175. package/instanceServer.js +105 -0
  176. package/instanceServer.js.map +1 -0
  177. package/instanceSnapshot.d.ts +128 -0
  178. package/instanceSnapshot.js +68 -0
  179. package/instanceSnapshot.js.map +1 -0
  180. package/instanceVolume.d.ts +148 -0
  181. package/instanceVolume.js +70 -0
  182. package/instanceVolume.js.map +1 -0
  183. package/iotDevice.d.ts +173 -0
  184. package/iotDevice.js +76 -0
  185. package/iotDevice.js.map +1 -0
  186. package/iotHub.d.ts +212 -0
  187. package/iotHub.js +84 -0
  188. package/iotHub.js.map +1 -0
  189. package/iotNetwork.d.ts +108 -0
  190. package/iotNetwork.js +67 -0
  191. package/iotNetwork.js.map +1 -0
  192. package/iotRoute.d.ts +129 -0
  193. package/iotRoute.js +69 -0
  194. package/iotRoute.js.map +1 -0
  195. package/kubernetesCluster.d.ts +281 -0
  196. package/kubernetesCluster.js +99 -0
  197. package/kubernetesCluster.js.map +1 -0
  198. package/kubernetesNodePool.d.ts +277 -0
  199. package/kubernetesNodePool.js +100 -0
  200. package/kubernetesNodePool.js.map +1 -0
  201. package/loadbalancer.d.ts +163 -0
  202. package/loadbalancer.js +75 -0
  203. package/loadbalancer.js.map +1 -0
  204. package/loadbalancerBackend.d.ts +268 -0
  205. package/loadbalancerBackend.js +98 -0
  206. package/loadbalancerBackend.js.map +1 -0
  207. package/loadbalancerCertificate.d.ts +133 -0
  208. package/loadbalancerCertificate.js +70 -0
  209. package/loadbalancerCertificate.js.map +1 -0
  210. package/loadbalancerFrontend.d.ts +133 -0
  211. package/loadbalancerFrontend.js +72 -0
  212. package/loadbalancerFrontend.js.map +1 -0
  213. package/loadbalancerIp.d.ts +104 -0
  214. package/loadbalancerIp.js +61 -0
  215. package/loadbalancerIp.js.map +1 -0
  216. package/loadbalancerRoute.d.ts +72 -0
  217. package/loadbalancerRoute.js +59 -0
  218. package/loadbalancerRoute.js.map +1 -0
  219. package/objectBucket.d.ts +138 -0
  220. package/objectBucket.js +65 -0
  221. package/objectBucket.js.map +1 -0
  222. package/package.json +30 -0
  223. package/package.json.bak +30 -0
  224. package/provider.d.ts +83 -0
  225. package/provider.js +52 -0
  226. package/provider.js.map +1 -0
  227. package/redisCluster.d.ts +203 -0
  228. package/redisCluster.js +87 -0
  229. package/redisCluster.js.map +1 -0
  230. package/registryNamespace.d.ts +112 -0
  231. package/registryNamespace.js +61 -0
  232. package/registryNamespace.js.map +1 -0
  233. package/types/index.d.ts +3 -0
  234. package/types/index.js +11 -0
  235. package/types/index.js.map +1 -0
  236. package/types/input.d.ts +255 -0
  237. package/types/input.js +5 -0
  238. package/types/input.js.map +1 -0
  239. package/types/output.d.ts +459 -0
  240. package/types/output.js +5 -0
  241. package/types/output.js.map +1 -0
  242. package/utilities.d.ts +4 -0
  243. package/utilities.js +57 -0
  244. package/utilities.js.map +1 -0
  245. package/vpcGatewayNetwork.d.ts +156 -0
  246. package/vpcGatewayNetwork.js +75 -0
  247. package/vpcGatewayNetwork.js.map +1 -0
  248. package/vpcPrivateNetwork.d.ts +108 -0
  249. package/vpcPrivateNetwork.js +61 -0
  250. package/vpcPrivateNetwork.js.map +1 -0
  251. package/vpcPublicGateway.d.ts +144 -0
  252. package/vpcPublicGateway.js +70 -0
  253. package/vpcPublicGateway.js.map +1 -0
  254. package/vpcPublicGatewayDhcp.d.ts +255 -0
  255. package/vpcPublicGatewayDhcp.js +86 -0
  256. package/vpcPublicGatewayDhcp.js.map +1 -0
  257. package/vpcPublicGatewayDhcpReservation.d.ts +118 -0
  258. package/vpcPublicGatewayDhcpReservation.js +72 -0
  259. package/vpcPublicGatewayDhcpReservation.js.map +1 -0
  260. package/vpcPublicGatewayIp.d.ts +116 -0
  261. package/vpcPublicGatewayIp.js +63 -0
  262. package/vpcPublicGatewayIp.js.map +1 -0
  263. package/vpcPublicGatewayPatRule.d.ts +132 -0
  264. package/vpcPublicGatewayPatRule.js +77 -0
  265. package/vpcPublicGatewayPatRule.js.map +1 -0
@@ -0,0 +1,277 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ import { input as inputs, output as outputs } from "./types";
3
+ export declare class KubernetesNodePool extends pulumi.CustomResource {
4
+ /**
5
+ * Get an existing KubernetesNodePool resource's state with the given name, ID, and optional extra
6
+ * properties used to qualify the lookup.
7
+ *
8
+ * @param name The _unique_ name of the resulting resource.
9
+ * @param id The _unique_ provider ID of the resource to lookup.
10
+ * @param state Any extra arguments used during the lookup.
11
+ * @param opts Optional settings to control the behavior of the CustomResource.
12
+ */
13
+ static get(name: string, id: pulumi.Input<pulumi.ID>, state?: KubernetesNodePoolState, opts?: pulumi.CustomResourceOptions): KubernetesNodePool;
14
+ /**
15
+ * Returns true if the given object is an instance of KubernetesNodePool. This is designed to work even
16
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
17
+ */
18
+ static isInstance(obj: any): obj is KubernetesNodePool;
19
+ /**
20
+ * Enable the autohealing on the pool
21
+ */
22
+ readonly autohealing: pulumi.Output<boolean | undefined>;
23
+ /**
24
+ * Enable the autoscaling on the pool
25
+ */
26
+ readonly autoscaling: pulumi.Output<boolean | undefined>;
27
+ /**
28
+ * The ID of the cluster on which this pool will be created
29
+ */
30
+ readonly clusterId: pulumi.Output<string>;
31
+ /**
32
+ * Container runtime for the pool
33
+ */
34
+ readonly containerRuntime: pulumi.Output<string | undefined>;
35
+ /**
36
+ * The date and time of the creation of the pool
37
+ */
38
+ readonly createdAt: pulumi.Output<string>;
39
+ /**
40
+ * The actual size of the pool
41
+ */
42
+ readonly currentSize: pulumi.Output<number>;
43
+ /**
44
+ * The Kubelet arguments to be used by this pool
45
+ */
46
+ readonly kubeletArgs: pulumi.Output<{
47
+ [key: string]: string;
48
+ } | undefined>;
49
+ /**
50
+ * Maximum size of the pool
51
+ */
52
+ readonly maxSize: pulumi.Output<number>;
53
+ /**
54
+ * Minimun size of the pool
55
+ */
56
+ readonly minSize: pulumi.Output<number | undefined>;
57
+ /**
58
+ * The name of the cluster
59
+ */
60
+ readonly name: pulumi.Output<string>;
61
+ /**
62
+ * Server type of the pool servers
63
+ */
64
+ readonly nodeType: pulumi.Output<string>;
65
+ readonly nodes: pulumi.Output<outputs.KubernetesNodePoolNode[]>;
66
+ /**
67
+ * ID of the placement group
68
+ */
69
+ readonly placementGroupId: pulumi.Output<string | undefined>;
70
+ /**
71
+ * The region you want to attach the resource to
72
+ */
73
+ readonly region: pulumi.Output<string>;
74
+ /**
75
+ * Size of the pool
76
+ */
77
+ readonly size: pulumi.Output<number>;
78
+ /**
79
+ * The status of the pool
80
+ */
81
+ readonly status: pulumi.Output<string>;
82
+ /**
83
+ * The tags associated with the pool
84
+ */
85
+ readonly tags: pulumi.Output<string[] | undefined>;
86
+ /**
87
+ * The date and time of the last update of the pool
88
+ */
89
+ readonly updatedAt: pulumi.Output<string>;
90
+ /**
91
+ * The Pool upgrade policy
92
+ */
93
+ readonly upgradePolicy: pulumi.Output<outputs.KubernetesNodePoolUpgradePolicy>;
94
+ /**
95
+ * The Kubernetes version of the pool
96
+ */
97
+ readonly version: pulumi.Output<string>;
98
+ /**
99
+ * Whether to wait for the pool to be ready
100
+ */
101
+ readonly waitForPoolReady: pulumi.Output<boolean | undefined>;
102
+ /**
103
+ * The zone you want to attach the resource to
104
+ */
105
+ readonly zone: pulumi.Output<string>;
106
+ /**
107
+ * Create a KubernetesNodePool resource with the given unique name, arguments, and options.
108
+ *
109
+ * @param name The _unique_ name of the resource.
110
+ * @param args The arguments to use to populate this resource's properties.
111
+ * @param opts A bag of options that control this resource's behavior.
112
+ */
113
+ constructor(name: string, args: KubernetesNodePoolArgs, opts?: pulumi.CustomResourceOptions);
114
+ }
115
+ /**
116
+ * Input properties used for looking up and filtering KubernetesNodePool resources.
117
+ */
118
+ export interface KubernetesNodePoolState {
119
+ /**
120
+ * Enable the autohealing on the pool
121
+ */
122
+ autohealing?: pulumi.Input<boolean>;
123
+ /**
124
+ * Enable the autoscaling on the pool
125
+ */
126
+ autoscaling?: pulumi.Input<boolean>;
127
+ /**
128
+ * The ID of the cluster on which this pool will be created
129
+ */
130
+ clusterId?: pulumi.Input<string>;
131
+ /**
132
+ * Container runtime for the pool
133
+ */
134
+ containerRuntime?: pulumi.Input<string>;
135
+ /**
136
+ * The date and time of the creation of the pool
137
+ */
138
+ createdAt?: pulumi.Input<string>;
139
+ /**
140
+ * The actual size of the pool
141
+ */
142
+ currentSize?: pulumi.Input<number>;
143
+ /**
144
+ * The Kubelet arguments to be used by this pool
145
+ */
146
+ kubeletArgs?: pulumi.Input<{
147
+ [key: string]: pulumi.Input<string>;
148
+ }>;
149
+ /**
150
+ * Maximum size of the pool
151
+ */
152
+ maxSize?: pulumi.Input<number>;
153
+ /**
154
+ * Minimun size of the pool
155
+ */
156
+ minSize?: pulumi.Input<number>;
157
+ /**
158
+ * The name of the cluster
159
+ */
160
+ name?: pulumi.Input<string>;
161
+ /**
162
+ * Server type of the pool servers
163
+ */
164
+ nodeType?: pulumi.Input<string>;
165
+ nodes?: pulumi.Input<pulumi.Input<inputs.KubernetesNodePoolNode>[]>;
166
+ /**
167
+ * ID of the placement group
168
+ */
169
+ placementGroupId?: pulumi.Input<string>;
170
+ /**
171
+ * The region you want to attach the resource to
172
+ */
173
+ region?: pulumi.Input<string>;
174
+ /**
175
+ * Size of the pool
176
+ */
177
+ size?: pulumi.Input<number>;
178
+ /**
179
+ * The status of the pool
180
+ */
181
+ status?: pulumi.Input<string>;
182
+ /**
183
+ * The tags associated with the pool
184
+ */
185
+ tags?: pulumi.Input<pulumi.Input<string>[]>;
186
+ /**
187
+ * The date and time of the last update of the pool
188
+ */
189
+ updatedAt?: pulumi.Input<string>;
190
+ /**
191
+ * The Pool upgrade policy
192
+ */
193
+ upgradePolicy?: pulumi.Input<inputs.KubernetesNodePoolUpgradePolicy>;
194
+ /**
195
+ * The Kubernetes version of the pool
196
+ */
197
+ version?: pulumi.Input<string>;
198
+ /**
199
+ * Whether to wait for the pool to be ready
200
+ */
201
+ waitForPoolReady?: pulumi.Input<boolean>;
202
+ /**
203
+ * The zone you want to attach the resource to
204
+ */
205
+ zone?: pulumi.Input<string>;
206
+ }
207
+ /**
208
+ * The set of arguments for constructing a KubernetesNodePool resource.
209
+ */
210
+ export interface KubernetesNodePoolArgs {
211
+ /**
212
+ * Enable the autohealing on the pool
213
+ */
214
+ autohealing?: pulumi.Input<boolean>;
215
+ /**
216
+ * Enable the autoscaling on the pool
217
+ */
218
+ autoscaling?: pulumi.Input<boolean>;
219
+ /**
220
+ * The ID of the cluster on which this pool will be created
221
+ */
222
+ clusterId: pulumi.Input<string>;
223
+ /**
224
+ * Container runtime for the pool
225
+ */
226
+ containerRuntime?: pulumi.Input<string>;
227
+ /**
228
+ * The Kubelet arguments to be used by this pool
229
+ */
230
+ kubeletArgs?: pulumi.Input<{
231
+ [key: string]: pulumi.Input<string>;
232
+ }>;
233
+ /**
234
+ * Maximum size of the pool
235
+ */
236
+ maxSize?: pulumi.Input<number>;
237
+ /**
238
+ * Minimun size of the pool
239
+ */
240
+ minSize?: pulumi.Input<number>;
241
+ /**
242
+ * The name of the cluster
243
+ */
244
+ name?: pulumi.Input<string>;
245
+ /**
246
+ * Server type of the pool servers
247
+ */
248
+ nodeType: pulumi.Input<string>;
249
+ /**
250
+ * ID of the placement group
251
+ */
252
+ placementGroupId?: pulumi.Input<string>;
253
+ /**
254
+ * The region you want to attach the resource to
255
+ */
256
+ region?: pulumi.Input<string>;
257
+ /**
258
+ * Size of the pool
259
+ */
260
+ size: pulumi.Input<number>;
261
+ /**
262
+ * The tags associated with the pool
263
+ */
264
+ tags?: pulumi.Input<pulumi.Input<string>[]>;
265
+ /**
266
+ * The Pool upgrade policy
267
+ */
268
+ upgradePolicy?: pulumi.Input<inputs.KubernetesNodePoolUpgradePolicy>;
269
+ /**
270
+ * Whether to wait for the pool to be ready
271
+ */
272
+ waitForPoolReady?: pulumi.Input<boolean>;
273
+ /**
274
+ * The zone you want to attach the resource to
275
+ */
276
+ zone?: pulumi.Input<string>;
277
+ }
@@ -0,0 +1,100 @@
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.KubernetesNodePool = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("./utilities");
8
+ class KubernetesNodePool extends pulumi.CustomResource {
9
+ constructor(name, argsOrState, opts) {
10
+ let resourceInputs = {};
11
+ opts = opts || {};
12
+ if (opts.id) {
13
+ const state = argsOrState;
14
+ resourceInputs["autohealing"] = state ? state.autohealing : undefined;
15
+ resourceInputs["autoscaling"] = state ? state.autoscaling : undefined;
16
+ resourceInputs["clusterId"] = state ? state.clusterId : undefined;
17
+ resourceInputs["containerRuntime"] = state ? state.containerRuntime : undefined;
18
+ resourceInputs["createdAt"] = state ? state.createdAt : undefined;
19
+ resourceInputs["currentSize"] = state ? state.currentSize : undefined;
20
+ resourceInputs["kubeletArgs"] = state ? state.kubeletArgs : undefined;
21
+ resourceInputs["maxSize"] = state ? state.maxSize : undefined;
22
+ resourceInputs["minSize"] = state ? state.minSize : undefined;
23
+ resourceInputs["name"] = state ? state.name : undefined;
24
+ resourceInputs["nodeType"] = state ? state.nodeType : undefined;
25
+ resourceInputs["nodes"] = state ? state.nodes : undefined;
26
+ resourceInputs["placementGroupId"] = state ? state.placementGroupId : undefined;
27
+ resourceInputs["region"] = state ? state.region : undefined;
28
+ resourceInputs["size"] = state ? state.size : undefined;
29
+ resourceInputs["status"] = state ? state.status : undefined;
30
+ resourceInputs["tags"] = state ? state.tags : undefined;
31
+ resourceInputs["updatedAt"] = state ? state.updatedAt : undefined;
32
+ resourceInputs["upgradePolicy"] = state ? state.upgradePolicy : undefined;
33
+ resourceInputs["version"] = state ? state.version : undefined;
34
+ resourceInputs["waitForPoolReady"] = state ? state.waitForPoolReady : undefined;
35
+ resourceInputs["zone"] = state ? state.zone : undefined;
36
+ }
37
+ else {
38
+ const args = argsOrState;
39
+ if ((!args || args.clusterId === undefined) && !opts.urn) {
40
+ throw new Error("Missing required property 'clusterId'");
41
+ }
42
+ if ((!args || args.nodeType === undefined) && !opts.urn) {
43
+ throw new Error("Missing required property 'nodeType'");
44
+ }
45
+ if ((!args || args.size === undefined) && !opts.urn) {
46
+ throw new Error("Missing required property 'size'");
47
+ }
48
+ resourceInputs["autohealing"] = args ? args.autohealing : undefined;
49
+ resourceInputs["autoscaling"] = args ? args.autoscaling : undefined;
50
+ resourceInputs["clusterId"] = args ? args.clusterId : undefined;
51
+ resourceInputs["containerRuntime"] = args ? args.containerRuntime : undefined;
52
+ resourceInputs["kubeletArgs"] = args ? args.kubeletArgs : undefined;
53
+ resourceInputs["maxSize"] = args ? args.maxSize : undefined;
54
+ resourceInputs["minSize"] = args ? args.minSize : undefined;
55
+ resourceInputs["name"] = args ? args.name : undefined;
56
+ resourceInputs["nodeType"] = args ? args.nodeType : undefined;
57
+ resourceInputs["placementGroupId"] = args ? args.placementGroupId : undefined;
58
+ resourceInputs["region"] = args ? args.region : undefined;
59
+ resourceInputs["size"] = args ? args.size : undefined;
60
+ resourceInputs["tags"] = args ? args.tags : undefined;
61
+ resourceInputs["upgradePolicy"] = args ? args.upgradePolicy : undefined;
62
+ resourceInputs["waitForPoolReady"] = args ? args.waitForPoolReady : undefined;
63
+ resourceInputs["zone"] = args ? args.zone : undefined;
64
+ resourceInputs["createdAt"] = undefined /*out*/;
65
+ resourceInputs["currentSize"] = undefined /*out*/;
66
+ resourceInputs["nodes"] = undefined /*out*/;
67
+ resourceInputs["status"] = undefined /*out*/;
68
+ resourceInputs["updatedAt"] = undefined /*out*/;
69
+ resourceInputs["version"] = undefined /*out*/;
70
+ }
71
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
72
+ super(KubernetesNodePool.__pulumiType, name, resourceInputs, opts);
73
+ }
74
+ /**
75
+ * Get an existing KubernetesNodePool resource's state with the given name, ID, and optional extra
76
+ * properties used to qualify the lookup.
77
+ *
78
+ * @param name The _unique_ name of the resulting resource.
79
+ * @param id The _unique_ provider ID of the resource to lookup.
80
+ * @param state Any extra arguments used during the lookup.
81
+ * @param opts Optional settings to control the behavior of the CustomResource.
82
+ */
83
+ static get(name, id, state, opts) {
84
+ return new KubernetesNodePool(name, state, Object.assign(Object.assign({}, opts), { id: id }));
85
+ }
86
+ /**
87
+ * Returns true if the given object is an instance of KubernetesNodePool. This is designed to work even
88
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
89
+ */
90
+ static isInstance(obj) {
91
+ if (obj === undefined || obj === null) {
92
+ return false;
93
+ }
94
+ return obj['__pulumiType'] === KubernetesNodePool.__pulumiType;
95
+ }
96
+ }
97
+ exports.KubernetesNodePool = KubernetesNodePool;
98
+ /** @internal */
99
+ KubernetesNodePool.__pulumiType = 'scaleway:index/kubernetesNodePool:KubernetesNodePool';
100
+ //# sourceMappingURL=kubernetesNodePool.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"kubernetesNodePool.js","sourceRoot":"","sources":["../kubernetesNodePool.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAEzC,yCAAyC;AAEzC,MAAa,kBAAmB,SAAQ,MAAM,CAAC,cAAc;IA0HzD,YAAY,IAAY,EAAE,WAA8D,EAAE,IAAmC;QACzH,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAAkD,CAAC;YACjE,cAAc,CAAC,aAAa,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC,CAAC,SAAS,CAAC;YACtE,cAAc,CAAC,aAAa,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC,CAAC,SAAS,CAAC;YACtE,cAAc,CAAC,WAAW,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC;YAClE,cAAc,CAAC,kBAAkB,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,gBAAgB,CAAC,CAAC,CAAC,SAAS,CAAC;YAChF,cAAc,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,OAAO,IAAI,kBAAkB,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IACzE,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,kBAAkB,CAAC,YAAY,CAAC;IACnE,CAAC;;AA1BL,gDA0LC;AA5KG,gBAAgB;AACO,+BAAY,GAAG,sDAAsD,CAAC"}
@@ -0,0 +1,163 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ import { input as inputs, output as outputs } from "./types";
3
+ export declare class Loadbalancer extends pulumi.CustomResource {
4
+ /**
5
+ * Get an existing Loadbalancer resource's state with the given name, ID, and optional extra
6
+ * properties used to qualify the lookup.
7
+ *
8
+ * @param name The _unique_ name of the resulting resource.
9
+ * @param id The _unique_ provider ID of the resource to lookup.
10
+ * @param state Any extra arguments used during the lookup.
11
+ * @param opts Optional settings to control the behavior of the CustomResource.
12
+ */
13
+ static get(name: string, id: pulumi.Input<pulumi.ID>, state?: LoadbalancerState, opts?: pulumi.CustomResourceOptions): Loadbalancer;
14
+ /**
15
+ * Returns true if the given object is an instance of Loadbalancer. This is designed to work even
16
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
17
+ */
18
+ static isInstance(obj: any): obj is Loadbalancer;
19
+ /**
20
+ * The load-balance public IP address
21
+ */
22
+ readonly ipAddress: pulumi.Output<string>;
23
+ /**
24
+ * The load-balance public IP ID
25
+ */
26
+ readonly ipId: pulumi.Output<string>;
27
+ /**
28
+ * Name of the lb
29
+ */
30
+ readonly name: pulumi.Output<string>;
31
+ /**
32
+ * The organization_id you want to attach the resource to
33
+ */
34
+ readonly organizationId: pulumi.Output<string>;
35
+ /**
36
+ * List of private network to connect with your load balancer
37
+ */
38
+ readonly privateNetworks: pulumi.Output<outputs.LoadbalancerPrivateNetwork[] | undefined>;
39
+ /**
40
+ * The project_id you want to attach the resource to
41
+ */
42
+ readonly projectId: pulumi.Output<string>;
43
+ /**
44
+ * The region of the resource
45
+ */
46
+ readonly region: pulumi.Output<string>;
47
+ /**
48
+ * Release the IPs related to this load-balancer
49
+ *
50
+ * @deprecated The resource ip will be destroyed by it's own resource. Please set this to `false`
51
+ */
52
+ readonly releaseIp: pulumi.Output<boolean | undefined>;
53
+ /**
54
+ * Array of tags to associate with the load-balancer
55
+ */
56
+ readonly tags: pulumi.Output<string[] | undefined>;
57
+ /**
58
+ * The type of load-balancer you want to create
59
+ */
60
+ readonly type: pulumi.Output<string>;
61
+ /**
62
+ * The zone you want to attach the resource to
63
+ */
64
+ readonly zone: pulumi.Output<string>;
65
+ /**
66
+ * Create a Loadbalancer resource with the given unique name, arguments, and options.
67
+ *
68
+ * @param name The _unique_ name of the resource.
69
+ * @param args The arguments to use to populate this resource's properties.
70
+ * @param opts A bag of options that control this resource's behavior.
71
+ */
72
+ constructor(name: string, args: LoadbalancerArgs, opts?: pulumi.CustomResourceOptions);
73
+ }
74
+ /**
75
+ * Input properties used for looking up and filtering Loadbalancer resources.
76
+ */
77
+ export interface LoadbalancerState {
78
+ /**
79
+ * The load-balance public IP address
80
+ */
81
+ ipAddress?: pulumi.Input<string>;
82
+ /**
83
+ * The load-balance public IP ID
84
+ */
85
+ ipId?: pulumi.Input<string>;
86
+ /**
87
+ * Name of the lb
88
+ */
89
+ name?: pulumi.Input<string>;
90
+ /**
91
+ * The organization_id you want to attach the resource to
92
+ */
93
+ organizationId?: pulumi.Input<string>;
94
+ /**
95
+ * List of private network to connect with your load balancer
96
+ */
97
+ privateNetworks?: pulumi.Input<pulumi.Input<inputs.LoadbalancerPrivateNetwork>[]>;
98
+ /**
99
+ * The project_id you want to attach the resource to
100
+ */
101
+ projectId?: pulumi.Input<string>;
102
+ /**
103
+ * The region of the resource
104
+ */
105
+ region?: pulumi.Input<string>;
106
+ /**
107
+ * Release the IPs related to this load-balancer
108
+ *
109
+ * @deprecated The resource ip will be destroyed by it's own resource. Please set this to `false`
110
+ */
111
+ releaseIp?: pulumi.Input<boolean>;
112
+ /**
113
+ * Array of tags to associate with the load-balancer
114
+ */
115
+ tags?: pulumi.Input<pulumi.Input<string>[]>;
116
+ /**
117
+ * The type of load-balancer you want to create
118
+ */
119
+ type?: pulumi.Input<string>;
120
+ /**
121
+ * The zone you want to attach the resource to
122
+ */
123
+ zone?: pulumi.Input<string>;
124
+ }
125
+ /**
126
+ * The set of arguments for constructing a Loadbalancer resource.
127
+ */
128
+ export interface LoadbalancerArgs {
129
+ /**
130
+ * The load-balance public IP ID
131
+ */
132
+ ipId: pulumi.Input<string>;
133
+ /**
134
+ * Name of the lb
135
+ */
136
+ name?: pulumi.Input<string>;
137
+ /**
138
+ * List of private network to connect with your load balancer
139
+ */
140
+ privateNetworks?: pulumi.Input<pulumi.Input<inputs.LoadbalancerPrivateNetwork>[]>;
141
+ /**
142
+ * The project_id you want to attach the resource to
143
+ */
144
+ projectId?: pulumi.Input<string>;
145
+ /**
146
+ * Release the IPs related to this load-balancer
147
+ *
148
+ * @deprecated The resource ip will be destroyed by it's own resource. Please set this to `false`
149
+ */
150
+ releaseIp?: pulumi.Input<boolean>;
151
+ /**
152
+ * Array of tags to associate with the load-balancer
153
+ */
154
+ tags?: pulumi.Input<pulumi.Input<string>[]>;
155
+ /**
156
+ * The type of load-balancer you want to create
157
+ */
158
+ type: pulumi.Input<string>;
159
+ /**
160
+ * The zone you want to attach the resource to
161
+ */
162
+ zone?: pulumi.Input<string>;
163
+ }
@@ -0,0 +1,75 @@
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.Loadbalancer = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("./utilities");
8
+ class Loadbalancer extends pulumi.CustomResource {
9
+ constructor(name, argsOrState, opts) {
10
+ let resourceInputs = {};
11
+ opts = opts || {};
12
+ if (opts.id) {
13
+ const state = argsOrState;
14
+ resourceInputs["ipAddress"] = state ? state.ipAddress : undefined;
15
+ resourceInputs["ipId"] = state ? state.ipId : undefined;
16
+ resourceInputs["name"] = state ? state.name : undefined;
17
+ resourceInputs["organizationId"] = state ? state.organizationId : undefined;
18
+ resourceInputs["privateNetworks"] = state ? state.privateNetworks : undefined;
19
+ resourceInputs["projectId"] = state ? state.projectId : undefined;
20
+ resourceInputs["region"] = state ? state.region : undefined;
21
+ resourceInputs["releaseIp"] = state ? state.releaseIp : undefined;
22
+ resourceInputs["tags"] = state ? state.tags : undefined;
23
+ resourceInputs["type"] = state ? state.type : undefined;
24
+ resourceInputs["zone"] = state ? state.zone : undefined;
25
+ }
26
+ else {
27
+ const args = argsOrState;
28
+ if ((!args || args.ipId === undefined) && !opts.urn) {
29
+ throw new Error("Missing required property 'ipId'");
30
+ }
31
+ if ((!args || args.type === undefined) && !opts.urn) {
32
+ throw new Error("Missing required property 'type'");
33
+ }
34
+ resourceInputs["ipId"] = args ? args.ipId : undefined;
35
+ resourceInputs["name"] = args ? args.name : undefined;
36
+ resourceInputs["privateNetworks"] = args ? args.privateNetworks : undefined;
37
+ resourceInputs["projectId"] = args ? args.projectId : undefined;
38
+ resourceInputs["releaseIp"] = args ? args.releaseIp : undefined;
39
+ resourceInputs["tags"] = args ? args.tags : undefined;
40
+ resourceInputs["type"] = args ? args.type : undefined;
41
+ resourceInputs["zone"] = args ? args.zone : undefined;
42
+ resourceInputs["ipAddress"] = undefined /*out*/;
43
+ resourceInputs["organizationId"] = undefined /*out*/;
44
+ resourceInputs["region"] = undefined /*out*/;
45
+ }
46
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
47
+ super(Loadbalancer.__pulumiType, name, resourceInputs, opts);
48
+ }
49
+ /**
50
+ * Get an existing Loadbalancer resource's state with the given name, ID, and optional extra
51
+ * properties used to qualify the lookup.
52
+ *
53
+ * @param name The _unique_ name of the resulting resource.
54
+ * @param id The _unique_ provider ID of the resource to lookup.
55
+ * @param state Any extra arguments used during the lookup.
56
+ * @param opts Optional settings to control the behavior of the CustomResource.
57
+ */
58
+ static get(name, id, state, opts) {
59
+ return new Loadbalancer(name, state, Object.assign(Object.assign({}, opts), { id: id }));
60
+ }
61
+ /**
62
+ * Returns true if the given object is an instance of Loadbalancer. This is designed to work even
63
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
64
+ */
65
+ static isInstance(obj) {
66
+ if (obj === undefined || obj === null) {
67
+ return false;
68
+ }
69
+ return obj['__pulumiType'] === Loadbalancer.__pulumiType;
70
+ }
71
+ }
72
+ exports.Loadbalancer = Loadbalancer;
73
+ /** @internal */
74
+ Loadbalancer.__pulumiType = 'scaleway:index/loadbalancer:Loadbalancer';
75
+ //# sourceMappingURL=loadbalancer.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"loadbalancer.js","sourceRoot":"","sources":["../loadbalancer.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAEzC,yCAAyC;AAEzC,MAAa,YAAa,SAAQ,MAAM,CAAC,cAAc;IAmFnD,YAAY,IAAY,EAAE,WAAkD,EAAE,IAAmC;QAC7G,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAA4C,CAAC;YAC3D,cAAc,CAAC,WAAW,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC;YAClE,cAAc,CAAC,MAAM,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC;YACxD,cAAc,CAA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