@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,299 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ import { input as inputs, output as outputs } from "./types";
3
+ export declare class DatabaseInstance extends pulumi.CustomResource {
4
+ /**
5
+ * Get an existing DatabaseInstance 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?: DatabaseInstanceState, opts?: pulumi.CustomResourceOptions): DatabaseInstance;
14
+ /**
15
+ * Returns true if the given object is an instance of DatabaseInstance. 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 DatabaseInstance;
19
+ /**
20
+ * Boolean to store logical backups in the same region as the database instance
21
+ */
22
+ readonly backupSameRegion: pulumi.Output<boolean>;
23
+ /**
24
+ * Backup schedule frequency in hours
25
+ */
26
+ readonly backupScheduleFrequency: pulumi.Output<number>;
27
+ /**
28
+ * Backup schedule retention in days
29
+ */
30
+ readonly backupScheduleRetention: pulumi.Output<number>;
31
+ /**
32
+ * Certificate of the database instance
33
+ */
34
+ readonly certificate: pulumi.Output<string>;
35
+ /**
36
+ * Disable automated backup for the database instance
37
+ */
38
+ readonly disableBackup: pulumi.Output<boolean | undefined>;
39
+ /**
40
+ * Endpoint IP of the database instance
41
+ *
42
+ * @deprecated Please use the private_network or the load_balancer attribute
43
+ */
44
+ readonly endpointIp: pulumi.Output<string>;
45
+ /**
46
+ * Endpoint port of the database instance
47
+ */
48
+ readonly endpointPort: pulumi.Output<number>;
49
+ /**
50
+ * Database's engine version id
51
+ */
52
+ readonly engine: pulumi.Output<string>;
53
+ /**
54
+ * Enable or disable high availability for the database instance
55
+ */
56
+ readonly isHaCluster: pulumi.Output<boolean | undefined>;
57
+ /**
58
+ * Load balancer of the database instance
59
+ */
60
+ readonly loadBalancers: pulumi.Output<outputs.DatabaseInstanceLoadBalancer[]>;
61
+ /**
62
+ * Name of the database instance
63
+ */
64
+ readonly name: pulumi.Output<string>;
65
+ /**
66
+ * The type of database instance you want to create
67
+ */
68
+ readonly nodeType: pulumi.Output<string>;
69
+ /**
70
+ * The organization_id you want to attach the resource to
71
+ */
72
+ readonly organizationId: pulumi.Output<string>;
73
+ /**
74
+ * Password for the first user of the database instance
75
+ */
76
+ readonly password: pulumi.Output<string | undefined>;
77
+ /**
78
+ * List of private network to expose your database instance
79
+ */
80
+ readonly privateNetwork: pulumi.Output<outputs.DatabaseInstancePrivateNetwork | undefined>;
81
+ /**
82
+ * The project_id you want to attach the resource to
83
+ */
84
+ readonly projectId: pulumi.Output<string>;
85
+ /**
86
+ * Read replicas of the database instance
87
+ */
88
+ readonly readReplicas: pulumi.Output<outputs.DatabaseInstanceReadReplica[]>;
89
+ /**
90
+ * The region you want to attach the resource to
91
+ */
92
+ readonly region: pulumi.Output<string>;
93
+ /**
94
+ * Map of engine settings to be set.
95
+ */
96
+ readonly settings: pulumi.Output<{
97
+ [key: string]: string;
98
+ }>;
99
+ /**
100
+ * List of tags ["tag1", "tag2", ...] attached to a database instance
101
+ */
102
+ readonly tags: pulumi.Output<string[] | undefined>;
103
+ /**
104
+ * Identifier for the first user of the database instance
105
+ */
106
+ readonly userName: pulumi.Output<string | undefined>;
107
+ /**
108
+ * Volume size (in GB) when volume_type is not lssd
109
+ */
110
+ readonly volumeSizeInGb: pulumi.Output<number>;
111
+ /**
112
+ * Type of volume where data are stored
113
+ */
114
+ readonly volumeType: pulumi.Output<string | undefined>;
115
+ /**
116
+ * Create a DatabaseInstance resource with the given unique name, arguments, and options.
117
+ *
118
+ * @param name The _unique_ name of the resource.
119
+ * @param args The arguments to use to populate this resource's properties.
120
+ * @param opts A bag of options that control this resource's behavior.
121
+ */
122
+ constructor(name: string, args: DatabaseInstanceArgs, opts?: pulumi.CustomResourceOptions);
123
+ }
124
+ /**
125
+ * Input properties used for looking up and filtering DatabaseInstance resources.
126
+ */
127
+ export interface DatabaseInstanceState {
128
+ /**
129
+ * Boolean to store logical backups in the same region as the database instance
130
+ */
131
+ backupSameRegion?: pulumi.Input<boolean>;
132
+ /**
133
+ * Backup schedule frequency in hours
134
+ */
135
+ backupScheduleFrequency?: pulumi.Input<number>;
136
+ /**
137
+ * Backup schedule retention in days
138
+ */
139
+ backupScheduleRetention?: pulumi.Input<number>;
140
+ /**
141
+ * Certificate of the database instance
142
+ */
143
+ certificate?: pulumi.Input<string>;
144
+ /**
145
+ * Disable automated backup for the database instance
146
+ */
147
+ disableBackup?: pulumi.Input<boolean>;
148
+ /**
149
+ * Endpoint IP of the database instance
150
+ *
151
+ * @deprecated Please use the private_network or the load_balancer attribute
152
+ */
153
+ endpointIp?: pulumi.Input<string>;
154
+ /**
155
+ * Endpoint port of the database instance
156
+ */
157
+ endpointPort?: pulumi.Input<number>;
158
+ /**
159
+ * Database's engine version id
160
+ */
161
+ engine?: pulumi.Input<string>;
162
+ /**
163
+ * Enable or disable high availability for the database instance
164
+ */
165
+ isHaCluster?: pulumi.Input<boolean>;
166
+ /**
167
+ * Load balancer of the database instance
168
+ */
169
+ loadBalancers?: pulumi.Input<pulumi.Input<inputs.DatabaseInstanceLoadBalancer>[]>;
170
+ /**
171
+ * Name of the database instance
172
+ */
173
+ name?: pulumi.Input<string>;
174
+ /**
175
+ * The type of database instance you want to create
176
+ */
177
+ nodeType?: pulumi.Input<string>;
178
+ /**
179
+ * The organization_id you want to attach the resource to
180
+ */
181
+ organizationId?: pulumi.Input<string>;
182
+ /**
183
+ * Password for the first user of the database instance
184
+ */
185
+ password?: pulumi.Input<string>;
186
+ /**
187
+ * List of private network to expose your database instance
188
+ */
189
+ privateNetwork?: pulumi.Input<inputs.DatabaseInstancePrivateNetwork>;
190
+ /**
191
+ * The project_id you want to attach the resource to
192
+ */
193
+ projectId?: pulumi.Input<string>;
194
+ /**
195
+ * Read replicas of the database instance
196
+ */
197
+ readReplicas?: pulumi.Input<pulumi.Input<inputs.DatabaseInstanceReadReplica>[]>;
198
+ /**
199
+ * The region you want to attach the resource to
200
+ */
201
+ region?: pulumi.Input<string>;
202
+ /**
203
+ * Map of engine settings to be set.
204
+ */
205
+ settings?: pulumi.Input<{
206
+ [key: string]: pulumi.Input<string>;
207
+ }>;
208
+ /**
209
+ * List of tags ["tag1", "tag2", ...] attached to a database instance
210
+ */
211
+ tags?: pulumi.Input<pulumi.Input<string>[]>;
212
+ /**
213
+ * Identifier for the first user of the database instance
214
+ */
215
+ userName?: pulumi.Input<string>;
216
+ /**
217
+ * Volume size (in GB) when volume_type is not lssd
218
+ */
219
+ volumeSizeInGb?: pulumi.Input<number>;
220
+ /**
221
+ * Type of volume where data are stored
222
+ */
223
+ volumeType?: pulumi.Input<string>;
224
+ }
225
+ /**
226
+ * The set of arguments for constructing a DatabaseInstance resource.
227
+ */
228
+ export interface DatabaseInstanceArgs {
229
+ /**
230
+ * Boolean to store logical backups in the same region as the database instance
231
+ */
232
+ backupSameRegion?: pulumi.Input<boolean>;
233
+ /**
234
+ * Backup schedule frequency in hours
235
+ */
236
+ backupScheduleFrequency?: pulumi.Input<number>;
237
+ /**
238
+ * Backup schedule retention in days
239
+ */
240
+ backupScheduleRetention?: pulumi.Input<number>;
241
+ /**
242
+ * Disable automated backup for the database instance
243
+ */
244
+ disableBackup?: pulumi.Input<boolean>;
245
+ /**
246
+ * Database's engine version id
247
+ */
248
+ engine: pulumi.Input<string>;
249
+ /**
250
+ * Enable or disable high availability for the database instance
251
+ */
252
+ isHaCluster?: pulumi.Input<boolean>;
253
+ /**
254
+ * Name of the database instance
255
+ */
256
+ name?: pulumi.Input<string>;
257
+ /**
258
+ * The type of database instance you want to create
259
+ */
260
+ nodeType: pulumi.Input<string>;
261
+ /**
262
+ * Password for the first user of the database instance
263
+ */
264
+ password?: pulumi.Input<string>;
265
+ /**
266
+ * List of private network to expose your database instance
267
+ */
268
+ privateNetwork?: pulumi.Input<inputs.DatabaseInstancePrivateNetwork>;
269
+ /**
270
+ * The project_id you want to attach the resource to
271
+ */
272
+ projectId?: pulumi.Input<string>;
273
+ /**
274
+ * The region you want to attach the resource to
275
+ */
276
+ region?: pulumi.Input<string>;
277
+ /**
278
+ * Map of engine settings to be set.
279
+ */
280
+ settings?: pulumi.Input<{
281
+ [key: string]: pulumi.Input<string>;
282
+ }>;
283
+ /**
284
+ * List of tags ["tag1", "tag2", ...] attached to a database instance
285
+ */
286
+ tags?: pulumi.Input<pulumi.Input<string>[]>;
287
+ /**
288
+ * Identifier for the first user of the database instance
289
+ */
290
+ userName?: pulumi.Input<string>;
291
+ /**
292
+ * Volume size (in GB) when volume_type is not lssd
293
+ */
294
+ volumeSizeInGb?: pulumi.Input<number>;
295
+ /**
296
+ * Type of volume where data are stored
297
+ */
298
+ volumeType?: pulumi.Input<string>;
299
+ }
@@ -0,0 +1,99 @@
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.DatabaseInstance = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("./utilities");
8
+ class DatabaseInstance extends pulumi.CustomResource {
9
+ constructor(name, argsOrState, opts) {
10
+ let resourceInputs = {};
11
+ opts = opts || {};
12
+ if (opts.id) {
13
+ const state = argsOrState;
14
+ resourceInputs["backupSameRegion"] = state ? state.backupSameRegion : undefined;
15
+ resourceInputs["backupScheduleFrequency"] = state ? state.backupScheduleFrequency : undefined;
16
+ resourceInputs["backupScheduleRetention"] = state ? state.backupScheduleRetention : undefined;
17
+ resourceInputs["certificate"] = state ? state.certificate : undefined;
18
+ resourceInputs["disableBackup"] = state ? state.disableBackup : undefined;
19
+ resourceInputs["endpointIp"] = state ? state.endpointIp : undefined;
20
+ resourceInputs["endpointPort"] = state ? state.endpointPort : undefined;
21
+ resourceInputs["engine"] = state ? state.engine : undefined;
22
+ resourceInputs["isHaCluster"] = state ? state.isHaCluster : undefined;
23
+ resourceInputs["loadBalancers"] = state ? state.loadBalancers : undefined;
24
+ resourceInputs["name"] = state ? state.name : undefined;
25
+ resourceInputs["nodeType"] = state ? state.nodeType : undefined;
26
+ resourceInputs["organizationId"] = state ? state.organizationId : undefined;
27
+ resourceInputs["password"] = state ? state.password : undefined;
28
+ resourceInputs["privateNetwork"] = state ? state.privateNetwork : undefined;
29
+ resourceInputs["projectId"] = state ? state.projectId : undefined;
30
+ resourceInputs["readReplicas"] = state ? state.readReplicas : undefined;
31
+ resourceInputs["region"] = state ? state.region : undefined;
32
+ resourceInputs["settings"] = state ? state.settings : undefined;
33
+ resourceInputs["tags"] = state ? state.tags : undefined;
34
+ resourceInputs["userName"] = state ? state.userName : undefined;
35
+ resourceInputs["volumeSizeInGb"] = state ? state.volumeSizeInGb : undefined;
36
+ resourceInputs["volumeType"] = state ? state.volumeType : undefined;
37
+ }
38
+ else {
39
+ const args = argsOrState;
40
+ if ((!args || args.engine === undefined) && !opts.urn) {
41
+ throw new Error("Missing required property 'engine'");
42
+ }
43
+ if ((!args || args.nodeType === undefined) && !opts.urn) {
44
+ throw new Error("Missing required property 'nodeType'");
45
+ }
46
+ resourceInputs["backupSameRegion"] = args ? args.backupSameRegion : undefined;
47
+ resourceInputs["backupScheduleFrequency"] = args ? args.backupScheduleFrequency : undefined;
48
+ resourceInputs["backupScheduleRetention"] = args ? args.backupScheduleRetention : undefined;
49
+ resourceInputs["disableBackup"] = args ? args.disableBackup : undefined;
50
+ resourceInputs["engine"] = args ? args.engine : undefined;
51
+ resourceInputs["isHaCluster"] = args ? args.isHaCluster : undefined;
52
+ resourceInputs["name"] = args ? args.name : undefined;
53
+ resourceInputs["nodeType"] = args ? args.nodeType : undefined;
54
+ resourceInputs["password"] = args ? args.password : undefined;
55
+ resourceInputs["privateNetwork"] = args ? args.privateNetwork : undefined;
56
+ resourceInputs["projectId"] = args ? args.projectId : undefined;
57
+ resourceInputs["region"] = args ? args.region : undefined;
58
+ resourceInputs["settings"] = args ? args.settings : undefined;
59
+ resourceInputs["tags"] = args ? args.tags : undefined;
60
+ resourceInputs["userName"] = args ? args.userName : undefined;
61
+ resourceInputs["volumeSizeInGb"] = args ? args.volumeSizeInGb : undefined;
62
+ resourceInputs["volumeType"] = args ? args.volumeType : undefined;
63
+ resourceInputs["certificate"] = undefined /*out*/;
64
+ resourceInputs["endpointIp"] = undefined /*out*/;
65
+ resourceInputs["endpointPort"] = undefined /*out*/;
66
+ resourceInputs["loadBalancers"] = undefined /*out*/;
67
+ resourceInputs["organizationId"] = undefined /*out*/;
68
+ resourceInputs["readReplicas"] = undefined /*out*/;
69
+ }
70
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
71
+ super(DatabaseInstance.__pulumiType, name, resourceInputs, opts);
72
+ }
73
+ /**
74
+ * Get an existing DatabaseInstance resource's state with the given name, ID, and optional extra
75
+ * properties used to qualify the lookup.
76
+ *
77
+ * @param name The _unique_ name of the resulting resource.
78
+ * @param id The _unique_ provider ID of the resource to lookup.
79
+ * @param state Any extra arguments used during the lookup.
80
+ * @param opts Optional settings to control the behavior of the CustomResource.
81
+ */
82
+ static get(name, id, state, opts) {
83
+ return new DatabaseInstance(name, state, Object.assign(Object.assign({}, opts), { id: id }));
84
+ }
85
+ /**
86
+ * Returns true if the given object is an instance of DatabaseInstance. This is designed to work even
87
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
88
+ */
89
+ static isInstance(obj) {
90
+ if (obj === undefined || obj === null) {
91
+ return false;
92
+ }
93
+ return obj['__pulumiType'] === DatabaseInstance.__pulumiType;
94
+ }
95
+ }
96
+ exports.DatabaseInstance = DatabaseInstance;
97
+ /** @internal */
98
+ DatabaseInstance.__pulumiType = 'scaleway:index/databaseInstance:DatabaseInstance';
99
+ //# sourceMappingURL=databaseInstance.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"databaseInstance.js","sourceRoot":"","sources":["../databaseInstance.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAEzC,yCAAyC;AAEzC,MAAa,gBAAiB,SAAQ,MAAM,CAAC,cAAc;IAmIvD,YAAY,IAAY,EAAE,WAA0D,EAAE,IA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AC,CAAC,SAAS,CAAC;YAClE,cAAc,CAAC,aAAa,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAClD,cAAc,CAAC,YAAY,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YACjD,cAAc,CAAC,cAAc,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YACnD,cAAc,CAAC,eAAe,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YACpD,cAAc,CAAC,gBAAgB,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YACrD,cAAc,CAAC,cAAc,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SACtD;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,gBAAgB,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACrE,CAAC;IAhMD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAA6B,EAAE,IAAmC;QAC3H,OAAO,IAAI,gBAAgB,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IACvE,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,gBAAgB,CAAC,YAAY,CAAC;IACjE,CAAC;;AA1BL,4CAkMC;AApLG,gBAAgB;AACO,6BAAY,GAAG,kDAAkD,CAAC"}
@@ -0,0 +1,84 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ export declare class DatabasePrivilege extends pulumi.CustomResource {
3
+ /**
4
+ * Get an existing DatabasePrivilege resource's state with the given name, ID, and optional extra
5
+ * properties used to qualify the lookup.
6
+ *
7
+ * @param name The _unique_ name of the resulting resource.
8
+ * @param id The _unique_ provider ID of the resource to lookup.
9
+ * @param state Any extra arguments used during the lookup.
10
+ * @param opts Optional settings to control the behavior of the CustomResource.
11
+ */
12
+ static get(name: string, id: pulumi.Input<pulumi.ID>, state?: DatabasePrivilegeState, opts?: pulumi.CustomResourceOptions): DatabasePrivilege;
13
+ /**
14
+ * Returns true if the given object is an instance of DatabasePrivilege. This is designed to work even
15
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
16
+ */
17
+ static isInstance(obj: any): obj is DatabasePrivilege;
18
+ /**
19
+ * Database name
20
+ */
21
+ readonly databaseName: pulumi.Output<string>;
22
+ /**
23
+ * Instance on which the database is created
24
+ */
25
+ readonly instanceId: pulumi.Output<string>;
26
+ /**
27
+ * Privilege
28
+ */
29
+ readonly permission: pulumi.Output<string>;
30
+ /**
31
+ * User name
32
+ */
33
+ readonly userName: pulumi.Output<string>;
34
+ /**
35
+ * Create a DatabasePrivilege resource with the given unique name, arguments, and options.
36
+ *
37
+ * @param name The _unique_ name of the resource.
38
+ * @param args The arguments to use to populate this resource's properties.
39
+ * @param opts A bag of options that control this resource's behavior.
40
+ */
41
+ constructor(name: string, args: DatabasePrivilegeArgs, opts?: pulumi.CustomResourceOptions);
42
+ }
43
+ /**
44
+ * Input properties used for looking up and filtering DatabasePrivilege resources.
45
+ */
46
+ export interface DatabasePrivilegeState {
47
+ /**
48
+ * Database name
49
+ */
50
+ databaseName?: pulumi.Input<string>;
51
+ /**
52
+ * Instance on which the database is created
53
+ */
54
+ instanceId?: pulumi.Input<string>;
55
+ /**
56
+ * Privilege
57
+ */
58
+ permission?: pulumi.Input<string>;
59
+ /**
60
+ * User name
61
+ */
62
+ userName?: pulumi.Input<string>;
63
+ }
64
+ /**
65
+ * The set of arguments for constructing a DatabasePrivilege resource.
66
+ */
67
+ export interface DatabasePrivilegeArgs {
68
+ /**
69
+ * Database name
70
+ */
71
+ databaseName: pulumi.Input<string>;
72
+ /**
73
+ * Instance on which the database is created
74
+ */
75
+ instanceId: pulumi.Input<string>;
76
+ /**
77
+ * Privilege
78
+ */
79
+ permission: pulumi.Input<string>;
80
+ /**
81
+ * User name
82
+ */
83
+ userName: pulumi.Input<string>;
84
+ }
@@ -0,0 +1,67 @@
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.DatabasePrivilege = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("./utilities");
8
+ class DatabasePrivilege extends pulumi.CustomResource {
9
+ constructor(name, argsOrState, opts) {
10
+ let resourceInputs = {};
11
+ opts = opts || {};
12
+ if (opts.id) {
13
+ const state = argsOrState;
14
+ resourceInputs["databaseName"] = state ? state.databaseName : undefined;
15
+ resourceInputs["instanceId"] = state ? state.instanceId : undefined;
16
+ resourceInputs["permission"] = state ? state.permission : undefined;
17
+ resourceInputs["userName"] = state ? state.userName : undefined;
18
+ }
19
+ else {
20
+ const args = argsOrState;
21
+ if ((!args || args.databaseName === undefined) && !opts.urn) {
22
+ throw new Error("Missing required property 'databaseName'");
23
+ }
24
+ if ((!args || args.instanceId === undefined) && !opts.urn) {
25
+ throw new Error("Missing required property 'instanceId'");
26
+ }
27
+ if ((!args || args.permission === undefined) && !opts.urn) {
28
+ throw new Error("Missing required property 'permission'");
29
+ }
30
+ if ((!args || args.userName === undefined) && !opts.urn) {
31
+ throw new Error("Missing required property 'userName'");
32
+ }
33
+ resourceInputs["databaseName"] = args ? args.databaseName : undefined;
34
+ resourceInputs["instanceId"] = args ? args.instanceId : undefined;
35
+ resourceInputs["permission"] = args ? args.permission : undefined;
36
+ resourceInputs["userName"] = args ? args.userName : undefined;
37
+ }
38
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
39
+ super(DatabasePrivilege.__pulumiType, name, resourceInputs, opts);
40
+ }
41
+ /**
42
+ * Get an existing DatabasePrivilege resource's state with the given name, ID, and optional extra
43
+ * properties used to qualify the lookup.
44
+ *
45
+ * @param name The _unique_ name of the resulting resource.
46
+ * @param id The _unique_ provider ID of the resource to lookup.
47
+ * @param state Any extra arguments used during the lookup.
48
+ * @param opts Optional settings to control the behavior of the CustomResource.
49
+ */
50
+ static get(name, id, state, opts) {
51
+ return new DatabasePrivilege(name, state, Object.assign(Object.assign({}, opts), { id: id }));
52
+ }
53
+ /**
54
+ * Returns true if the given object is an instance of DatabasePrivilege. This is designed to work even
55
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
56
+ */
57
+ static isInstance(obj) {
58
+ if (obj === undefined || obj === null) {
59
+ return false;
60
+ }
61
+ return obj['__pulumiType'] === DatabasePrivilege.__pulumiType;
62
+ }
63
+ }
64
+ exports.DatabasePrivilege = DatabasePrivilege;
65
+ /** @internal */
66
+ DatabasePrivilege.__pulumiType = 'scaleway:index/databasePrivilege:DatabasePrivilege';
67
+ //# sourceMappingURL=databasePrivilege.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"databasePrivilege.js","sourceRoot":"","sources":["../databasePrivilege.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC,MAAa,iBAAkB,SAAQ,MAAM,CAAC,cAAc;IAqDxD,YAAY,IAAY,EAAE,WAA4D,EAAE,IAAmC;QACvH,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAAiD,CAAC;YAChE,cAAc,CAAC,cAAc,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,YAAY,CAAC,CAAC,CAAC,SAAS,CAAC;YACxE,cAAc,CAAC,YAAY,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,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,CAAC,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,SAAS,CAAC;YAClE,cAAc,CAAC,UAAU,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC;SACjE;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,iBAAiB,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACtE,CAAC;IAlFD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAA8B,EAAE,IAAmC;QAC5H,OAAO,IAAI,iBAAiB,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IACxE,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,iBAAiB,CAAC,YAAY,CAAC;IAClE,CAAC;;AA1BL,8CAoFC;AAtEG,gBAAgB;AACO,8BAAY,GAAG,oDAAoD,CAAC"}
@@ -0,0 +1,96 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ export declare class DatabaseUser extends pulumi.CustomResource {
3
+ /**
4
+ * Get an existing DatabaseUser resource's state with the given name, ID, and optional extra
5
+ * properties used to qualify the lookup.
6
+ *
7
+ * @param name The _unique_ name of the resulting resource.
8
+ * @param id The _unique_ provider ID of the resource to lookup.
9
+ * @param state Any extra arguments used during the lookup.
10
+ * @param opts Optional settings to control the behavior of the CustomResource.
11
+ */
12
+ static get(name: string, id: pulumi.Input<pulumi.ID>, state?: DatabaseUserState, opts?: pulumi.CustomResourceOptions): DatabaseUser;
13
+ /**
14
+ * Returns true if the given object is an instance of DatabaseUser. This is designed to work even
15
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
16
+ */
17
+ static isInstance(obj: any): obj is DatabaseUser;
18
+ /**
19
+ * Instance on which the user is created
20
+ */
21
+ readonly instanceId: pulumi.Output<string>;
22
+ /**
23
+ * Grant admin permissions to database user
24
+ */
25
+ readonly isAdmin: pulumi.Output<boolean | undefined>;
26
+ /**
27
+ * Database user name
28
+ */
29
+ readonly name: pulumi.Output<string>;
30
+ /**
31
+ * Database user password
32
+ */
33
+ readonly password: pulumi.Output<string>;
34
+ /**
35
+ * The region you want to attach the resource to
36
+ */
37
+ readonly region: pulumi.Output<string>;
38
+ /**
39
+ * Create a DatabaseUser resource with the given unique name, arguments, and options.
40
+ *
41
+ * @param name The _unique_ name of the resource.
42
+ * @param args The arguments to use to populate this resource's properties.
43
+ * @param opts A bag of options that control this resource's behavior.
44
+ */
45
+ constructor(name: string, args: DatabaseUserArgs, opts?: pulumi.CustomResourceOptions);
46
+ }
47
+ /**
48
+ * Input properties used for looking up and filtering DatabaseUser resources.
49
+ */
50
+ export interface DatabaseUserState {
51
+ /**
52
+ * Instance on which the user is created
53
+ */
54
+ instanceId?: pulumi.Input<string>;
55
+ /**
56
+ * Grant admin permissions to database user
57
+ */
58
+ isAdmin?: pulumi.Input<boolean>;
59
+ /**
60
+ * Database user name
61
+ */
62
+ name?: pulumi.Input<string>;
63
+ /**
64
+ * Database user password
65
+ */
66
+ password?: pulumi.Input<string>;
67
+ /**
68
+ * The region you want to attach the resource to
69
+ */
70
+ region?: pulumi.Input<string>;
71
+ }
72
+ /**
73
+ * The set of arguments for constructing a DatabaseUser resource.
74
+ */
75
+ export interface DatabaseUserArgs {
76
+ /**
77
+ * Instance on which the user is created
78
+ */
79
+ instanceId: pulumi.Input<string>;
80
+ /**
81
+ * Grant admin permissions to database user
82
+ */
83
+ isAdmin?: pulumi.Input<boolean>;
84
+ /**
85
+ * Database user name
86
+ */
87
+ name?: pulumi.Input<string>;
88
+ /**
89
+ * Database user password
90
+ */
91
+ password: pulumi.Input<string>;
92
+ /**
93
+ * The region you want to attach the resource to
94
+ */
95
+ region?: pulumi.Input<string>;
96
+ }