@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,128 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ export declare class InstanceSnapshot extends pulumi.CustomResource {
3
+ /**
4
+ * Get an existing InstanceSnapshot 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?: InstanceSnapshotState, opts?: pulumi.CustomResourceOptions): InstanceSnapshot;
13
+ /**
14
+ * Returns true if the given object is an instance of InstanceSnapshot. 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 InstanceSnapshot;
18
+ /**
19
+ * The date and time of the creation of the snapshot
20
+ */
21
+ readonly createdAt: pulumi.Output<string>;
22
+ /**
23
+ * The name of the snapshot
24
+ */
25
+ readonly name: pulumi.Output<string>;
26
+ /**
27
+ * The organization_id you want to attach the resource to
28
+ */
29
+ readonly organizationId: pulumi.Output<string>;
30
+ /**
31
+ * The project_id you want to attach the resource to
32
+ */
33
+ readonly projectId: pulumi.Output<string>;
34
+ /**
35
+ * The size of the snapshot in gigabyte
36
+ */
37
+ readonly sizeInGb: pulumi.Output<number>;
38
+ /**
39
+ * The tags associated with the snapshot
40
+ */
41
+ readonly tags: pulumi.Output<string[] | undefined>;
42
+ /**
43
+ * The volume type of the snapshot
44
+ */
45
+ readonly type: pulumi.Output<string>;
46
+ /**
47
+ * ID of the volume to take a snapshot from
48
+ */
49
+ readonly volumeId: pulumi.Output<string>;
50
+ /**
51
+ * The zone you want to attach the resource to
52
+ */
53
+ readonly zone: pulumi.Output<string>;
54
+ /**
55
+ * Create a InstanceSnapshot resource with the given unique name, arguments, and options.
56
+ *
57
+ * @param name The _unique_ name of the resource.
58
+ * @param args The arguments to use to populate this resource's properties.
59
+ * @param opts A bag of options that control this resource's behavior.
60
+ */
61
+ constructor(name: string, args: InstanceSnapshotArgs, opts?: pulumi.CustomResourceOptions);
62
+ }
63
+ /**
64
+ * Input properties used for looking up and filtering InstanceSnapshot resources.
65
+ */
66
+ export interface InstanceSnapshotState {
67
+ /**
68
+ * The date and time of the creation of the snapshot
69
+ */
70
+ createdAt?: pulumi.Input<string>;
71
+ /**
72
+ * The name of the snapshot
73
+ */
74
+ name?: pulumi.Input<string>;
75
+ /**
76
+ * The organization_id you want to attach the resource to
77
+ */
78
+ organizationId?: pulumi.Input<string>;
79
+ /**
80
+ * The project_id you want to attach the resource to
81
+ */
82
+ projectId?: pulumi.Input<string>;
83
+ /**
84
+ * The size of the snapshot in gigabyte
85
+ */
86
+ sizeInGb?: pulumi.Input<number>;
87
+ /**
88
+ * The tags associated with the snapshot
89
+ */
90
+ tags?: pulumi.Input<pulumi.Input<string>[]>;
91
+ /**
92
+ * The volume type of the snapshot
93
+ */
94
+ type?: pulumi.Input<string>;
95
+ /**
96
+ * ID of the volume to take a snapshot from
97
+ */
98
+ volumeId?: pulumi.Input<string>;
99
+ /**
100
+ * The zone you want to attach the resource to
101
+ */
102
+ zone?: pulumi.Input<string>;
103
+ }
104
+ /**
105
+ * The set of arguments for constructing a InstanceSnapshot resource.
106
+ */
107
+ export interface InstanceSnapshotArgs {
108
+ /**
109
+ * The name of the snapshot
110
+ */
111
+ name?: pulumi.Input<string>;
112
+ /**
113
+ * The project_id you want to attach the resource to
114
+ */
115
+ projectId?: pulumi.Input<string>;
116
+ /**
117
+ * The tags associated with the snapshot
118
+ */
119
+ tags?: pulumi.Input<pulumi.Input<string>[]>;
120
+ /**
121
+ * ID of the volume to take a snapshot from
122
+ */
123
+ volumeId: pulumi.Input<string>;
124
+ /**
125
+ * The zone you want to attach the resource to
126
+ */
127
+ zone?: pulumi.Input<string>;
128
+ }
@@ -0,0 +1,68 @@
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.InstanceSnapshot = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("./utilities");
8
+ class InstanceSnapshot extends pulumi.CustomResource {
9
+ constructor(name, argsOrState, opts) {
10
+ let resourceInputs = {};
11
+ opts = opts || {};
12
+ if (opts.id) {
13
+ const state = argsOrState;
14
+ resourceInputs["createdAt"] = state ? state.createdAt : undefined;
15
+ resourceInputs["name"] = state ? state.name : undefined;
16
+ resourceInputs["organizationId"] = state ? state.organizationId : undefined;
17
+ resourceInputs["projectId"] = state ? state.projectId : undefined;
18
+ resourceInputs["sizeInGb"] = state ? state.sizeInGb : undefined;
19
+ resourceInputs["tags"] = state ? state.tags : undefined;
20
+ resourceInputs["type"] = state ? state.type : undefined;
21
+ resourceInputs["volumeId"] = state ? state.volumeId : undefined;
22
+ resourceInputs["zone"] = state ? state.zone : undefined;
23
+ }
24
+ else {
25
+ const args = argsOrState;
26
+ if ((!args || args.volumeId === undefined) && !opts.urn) {
27
+ throw new Error("Missing required property 'volumeId'");
28
+ }
29
+ resourceInputs["name"] = args ? args.name : undefined;
30
+ resourceInputs["projectId"] = args ? args.projectId : undefined;
31
+ resourceInputs["tags"] = args ? args.tags : undefined;
32
+ resourceInputs["volumeId"] = args ? args.volumeId : undefined;
33
+ resourceInputs["zone"] = args ? args.zone : undefined;
34
+ resourceInputs["createdAt"] = undefined /*out*/;
35
+ resourceInputs["organizationId"] = undefined /*out*/;
36
+ resourceInputs["sizeInGb"] = undefined /*out*/;
37
+ resourceInputs["type"] = undefined /*out*/;
38
+ }
39
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
40
+ super(InstanceSnapshot.__pulumiType, name, resourceInputs, opts);
41
+ }
42
+ /**
43
+ * Get an existing InstanceSnapshot resource's state with the given name, ID, and optional extra
44
+ * properties used to qualify the lookup.
45
+ *
46
+ * @param name The _unique_ name of the resulting resource.
47
+ * @param id The _unique_ provider ID of the resource to lookup.
48
+ * @param state Any extra arguments used during the lookup.
49
+ * @param opts Optional settings to control the behavior of the CustomResource.
50
+ */
51
+ static get(name, id, state, opts) {
52
+ return new InstanceSnapshot(name, state, Object.assign(Object.assign({}, opts), { id: id }));
53
+ }
54
+ /**
55
+ * Returns true if the given object is an instance of InstanceSnapshot. This is designed to work even
56
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
57
+ */
58
+ static isInstance(obj) {
59
+ if (obj === undefined || obj === null) {
60
+ return false;
61
+ }
62
+ return obj['__pulumiType'] === InstanceSnapshot.__pulumiType;
63
+ }
64
+ }
65
+ exports.InstanceSnapshot = InstanceSnapshot;
66
+ /** @internal */
67
+ InstanceSnapshot.__pulumiType = 'scaleway:index/instanceSnapshot:InstanceSnapshot';
68
+ //# sourceMappingURL=instanceSnapshot.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"instanceSnapshot.js","sourceRoot":"","sources":["../instanceSnapshot.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC,MAAa,gBAAiB,SAAQ,MAAM,CAAC,cAAc;IAyEvD,YAAY,IAAY,EAAE,WAA0D,EAAE,IAAmC;QACrH,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAAgD,CAAC;YAC/D,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,CAAC,gBAAgB,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,cAAc,CAAC,CAAC,CAAC,SAAS,CAAC;YAC5E,cAAc,CAAC,WAAW,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC;YAClE,cAAc,CAAC,UAAU,CAAC,GAAG,KA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AAI,CAAC,CAAC,CAAC,SAAS,CAAC;YACtD,cAAc,CAAC,WAAW,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAChD,cAAc,CAAC,gBAAgB,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YACrD,cAAc,CAAC,UAAU,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAC/C,cAAc,CAAC,MAAM,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SAC9C;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;IAvGD;;;;;;;;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,4CAyGC;AA3FG,gBAAgB;AACO,6BAAY,GAAG,kDAAkD,CAAC"}
@@ -0,0 +1,148 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ export declare class InstanceVolume extends pulumi.CustomResource {
3
+ /**
4
+ * Get an existing InstanceVolume 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?: InstanceVolumeState, opts?: pulumi.CustomResourceOptions): InstanceVolume;
13
+ /**
14
+ * Returns true if the given object is an instance of InstanceVolume. 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 InstanceVolume;
18
+ /**
19
+ * Create a volume based on a image
20
+ */
21
+ readonly fromSnapshotId: pulumi.Output<string | undefined>;
22
+ /**
23
+ * Create a copy of an existing volume
24
+ */
25
+ readonly fromVolumeId: pulumi.Output<string | undefined>;
26
+ /**
27
+ * The name of the volume
28
+ */
29
+ readonly name: pulumi.Output<string>;
30
+ /**
31
+ * The organization_id you want to attach the resource to
32
+ */
33
+ readonly organizationId: pulumi.Output<string>;
34
+ /**
35
+ * The project_id you want to attach the resource to
36
+ */
37
+ readonly projectId: pulumi.Output<string>;
38
+ /**
39
+ * The server associated with this volume
40
+ */
41
+ readonly serverId: pulumi.Output<string>;
42
+ /**
43
+ * The size of the volume in gigabyte
44
+ */
45
+ readonly sizeInGb: pulumi.Output<number | undefined>;
46
+ /**
47
+ * The tags associated with the volume
48
+ */
49
+ readonly tags: pulumi.Output<string[] | undefined>;
50
+ /**
51
+ * The volume type
52
+ */
53
+ readonly type: pulumi.Output<string>;
54
+ /**
55
+ * The zone you want to attach the resource to
56
+ */
57
+ readonly zone: pulumi.Output<string>;
58
+ /**
59
+ * Create a InstanceVolume resource with the given unique name, arguments, and options.
60
+ *
61
+ * @param name The _unique_ name of the resource.
62
+ * @param args The arguments to use to populate this resource's properties.
63
+ * @param opts A bag of options that control this resource's behavior.
64
+ */
65
+ constructor(name: string, args: InstanceVolumeArgs, opts?: pulumi.CustomResourceOptions);
66
+ }
67
+ /**
68
+ * Input properties used for looking up and filtering InstanceVolume resources.
69
+ */
70
+ export interface InstanceVolumeState {
71
+ /**
72
+ * Create a volume based on a image
73
+ */
74
+ fromSnapshotId?: pulumi.Input<string>;
75
+ /**
76
+ * Create a copy of an existing volume
77
+ */
78
+ fromVolumeId?: pulumi.Input<string>;
79
+ /**
80
+ * The name of the volume
81
+ */
82
+ name?: pulumi.Input<string>;
83
+ /**
84
+ * The organization_id you want to attach the resource to
85
+ */
86
+ organizationId?: pulumi.Input<string>;
87
+ /**
88
+ * The project_id you want to attach the resource to
89
+ */
90
+ projectId?: pulumi.Input<string>;
91
+ /**
92
+ * The server associated with this volume
93
+ */
94
+ serverId?: pulumi.Input<string>;
95
+ /**
96
+ * The size of the volume in gigabyte
97
+ */
98
+ sizeInGb?: pulumi.Input<number>;
99
+ /**
100
+ * The tags associated with the volume
101
+ */
102
+ tags?: pulumi.Input<pulumi.Input<string>[]>;
103
+ /**
104
+ * The volume type
105
+ */
106
+ type?: pulumi.Input<string>;
107
+ /**
108
+ * The zone you want to attach the resource to
109
+ */
110
+ zone?: pulumi.Input<string>;
111
+ }
112
+ /**
113
+ * The set of arguments for constructing a InstanceVolume resource.
114
+ */
115
+ export interface InstanceVolumeArgs {
116
+ /**
117
+ * Create a volume based on a image
118
+ */
119
+ fromSnapshotId?: pulumi.Input<string>;
120
+ /**
121
+ * Create a copy of an existing volume
122
+ */
123
+ fromVolumeId?: pulumi.Input<string>;
124
+ /**
125
+ * The name of the volume
126
+ */
127
+ name?: pulumi.Input<string>;
128
+ /**
129
+ * The project_id you want to attach the resource to
130
+ */
131
+ projectId?: pulumi.Input<string>;
132
+ /**
133
+ * The size of the volume in gigabyte
134
+ */
135
+ sizeInGb?: pulumi.Input<number>;
136
+ /**
137
+ * The tags associated with the volume
138
+ */
139
+ tags?: pulumi.Input<pulumi.Input<string>[]>;
140
+ /**
141
+ * The volume type
142
+ */
143
+ type: pulumi.Input<string>;
144
+ /**
145
+ * The zone you want to attach the resource to
146
+ */
147
+ zone?: pulumi.Input<string>;
148
+ }
@@ -0,0 +1,70 @@
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.InstanceVolume = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("./utilities");
8
+ class InstanceVolume extends pulumi.CustomResource {
9
+ constructor(name, argsOrState, opts) {
10
+ let resourceInputs = {};
11
+ opts = opts || {};
12
+ if (opts.id) {
13
+ const state = argsOrState;
14
+ resourceInputs["fromSnapshotId"] = state ? state.fromSnapshotId : undefined;
15
+ resourceInputs["fromVolumeId"] = state ? state.fromVolumeId : undefined;
16
+ resourceInputs["name"] = state ? state.name : undefined;
17
+ resourceInputs["organizationId"] = state ? state.organizationId : undefined;
18
+ resourceInputs["projectId"] = state ? state.projectId : undefined;
19
+ resourceInputs["serverId"] = state ? state.serverId : undefined;
20
+ resourceInputs["sizeInGb"] = state ? state.sizeInGb : undefined;
21
+ resourceInputs["tags"] = state ? state.tags : undefined;
22
+ resourceInputs["type"] = state ? state.type : undefined;
23
+ resourceInputs["zone"] = state ? state.zone : undefined;
24
+ }
25
+ else {
26
+ const args = argsOrState;
27
+ if ((!args || args.type === undefined) && !opts.urn) {
28
+ throw new Error("Missing required property 'type'");
29
+ }
30
+ resourceInputs["fromSnapshotId"] = args ? args.fromSnapshotId : undefined;
31
+ resourceInputs["fromVolumeId"] = args ? args.fromVolumeId : undefined;
32
+ resourceInputs["name"] = args ? args.name : undefined;
33
+ resourceInputs["projectId"] = args ? args.projectId : undefined;
34
+ resourceInputs["sizeInGb"] = args ? args.sizeInGb : undefined;
35
+ resourceInputs["tags"] = args ? args.tags : undefined;
36
+ resourceInputs["type"] = args ? args.type : undefined;
37
+ resourceInputs["zone"] = args ? args.zone : undefined;
38
+ resourceInputs["organizationId"] = undefined /*out*/;
39
+ resourceInputs["serverId"] = undefined /*out*/;
40
+ }
41
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
42
+ super(InstanceVolume.__pulumiType, name, resourceInputs, opts);
43
+ }
44
+ /**
45
+ * Get an existing InstanceVolume resource's state with the given name, ID, and optional extra
46
+ * properties used to qualify the lookup.
47
+ *
48
+ * @param name The _unique_ name of the resulting resource.
49
+ * @param id The _unique_ provider ID of the resource to lookup.
50
+ * @param state Any extra arguments used during the lookup.
51
+ * @param opts Optional settings to control the behavior of the CustomResource.
52
+ */
53
+ static get(name, id, state, opts) {
54
+ return new InstanceVolume(name, state, Object.assign(Object.assign({}, opts), { id: id }));
55
+ }
56
+ /**
57
+ * Returns true if the given object is an instance of InstanceVolume. This is designed to work even
58
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
59
+ */
60
+ static isInstance(obj) {
61
+ if (obj === undefined || obj === null) {
62
+ return false;
63
+ }
64
+ return obj['__pulumiType'] === InstanceVolume.__pulumiType;
65
+ }
66
+ }
67
+ exports.InstanceVolume = InstanceVolume;
68
+ /** @internal */
69
+ InstanceVolume.__pulumiType = 'scaleway:index/instanceVolume:InstanceVolume';
70
+ //# sourceMappingURL=instanceVolume.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"instanceVolume.js","sourceRoot":"","sources":["../instanceVolume.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC,MAAa,cAAe,SAAQ,MAAM,CAAC,cAAc;IA6ErD,YAAY,IAAY,EAAE,WAAsD,EAAE,IAAmC;QACjH,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAA8C,CAAC;YAC7D,cAAc,CAAC,gBAAgB,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,cAAc,CAAC,CAAC,CAAC,SAAS,CAAC;YAC5E,cAAc,CAAC,cAAc,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,YAAY,CAAC,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EAAE,EAAE,EAAE,IAAG,CAAC;IACrE,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,cAAc,CAAC,YAAY,CAAC;IAC/D,CAAC;;AA1BL,wCA+GC;AAjGG,gBAAgB;AACO,2BAAY,GAAG,8CAA8C,CAAC"}
package/iotDevice.d.ts ADDED
@@ -0,0 +1,173 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ import { input as inputs, output as outputs } from "./types";
3
+ export declare class IotDevice extends pulumi.CustomResource {
4
+ /**
5
+ * Get an existing IotDevice 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?: IotDeviceState, opts?: pulumi.CustomResourceOptions): IotDevice;
14
+ /**
15
+ * Returns true if the given object is an instance of IotDevice. 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 IotDevice;
19
+ /**
20
+ * Allow plain and server-authenticated SSL connections in addition to mutually-authenticated ones
21
+ */
22
+ readonly allowInsecure: pulumi.Output<boolean | undefined>;
23
+ /**
24
+ * Allow multiple connections
25
+ */
26
+ readonly allowMultipleConnections: pulumi.Output<boolean | undefined>;
27
+ /**
28
+ * Certificate section of the device
29
+ */
30
+ readonly certificate: pulumi.Output<outputs.IotDeviceCertificate>;
31
+ /**
32
+ * The date and time of the creation of the device
33
+ */
34
+ readonly createdAt: pulumi.Output<string>;
35
+ /**
36
+ * The description of the device
37
+ */
38
+ readonly description: pulumi.Output<string | undefined>;
39
+ /**
40
+ * The ID of the hub on which this device will be created
41
+ */
42
+ readonly hubId: pulumi.Output<string>;
43
+ /**
44
+ * The MQTT connection status of the device
45
+ */
46
+ readonly isConnected: pulumi.Output<boolean>;
47
+ /**
48
+ * The date and time of last MQTT activity of the device
49
+ */
50
+ readonly lastActivityAt: pulumi.Output<string>;
51
+ /**
52
+ * Rules to authorize or deny the device to publish/subscribe to specific topics
53
+ */
54
+ readonly messageFilters: pulumi.Output<outputs.IotDeviceMessageFilters | undefined>;
55
+ /**
56
+ * The name of the device
57
+ */
58
+ readonly name: pulumi.Output<string>;
59
+ /**
60
+ * The region you want to attach the resource to
61
+ */
62
+ readonly region: pulumi.Output<string>;
63
+ /**
64
+ * The status of the device
65
+ */
66
+ readonly status: pulumi.Output<string>;
67
+ /**
68
+ * The date and time of the last update of the device
69
+ */
70
+ readonly updatedAt: pulumi.Output<string>;
71
+ /**
72
+ * Create a IotDevice resource with the given unique name, arguments, and options.
73
+ *
74
+ * @param name The _unique_ name of the resource.
75
+ * @param args The arguments to use to populate this resource's properties.
76
+ * @param opts A bag of options that control this resource's behavior.
77
+ */
78
+ constructor(name: string, args: IotDeviceArgs, opts?: pulumi.CustomResourceOptions);
79
+ }
80
+ /**
81
+ * Input properties used for looking up and filtering IotDevice resources.
82
+ */
83
+ export interface IotDeviceState {
84
+ /**
85
+ * Allow plain and server-authenticated SSL connections in addition to mutually-authenticated ones
86
+ */
87
+ allowInsecure?: pulumi.Input<boolean>;
88
+ /**
89
+ * Allow multiple connections
90
+ */
91
+ allowMultipleConnections?: pulumi.Input<boolean>;
92
+ /**
93
+ * Certificate section of the device
94
+ */
95
+ certificate?: pulumi.Input<inputs.IotDeviceCertificate>;
96
+ /**
97
+ * The date and time of the creation of the device
98
+ */
99
+ createdAt?: pulumi.Input<string>;
100
+ /**
101
+ * The description of the device
102
+ */
103
+ description?: pulumi.Input<string>;
104
+ /**
105
+ * The ID of the hub on which this device will be created
106
+ */
107
+ hubId?: pulumi.Input<string>;
108
+ /**
109
+ * The MQTT connection status of the device
110
+ */
111
+ isConnected?: pulumi.Input<boolean>;
112
+ /**
113
+ * The date and time of last MQTT activity of the device
114
+ */
115
+ lastActivityAt?: pulumi.Input<string>;
116
+ /**
117
+ * Rules to authorize or deny the device to publish/subscribe to specific topics
118
+ */
119
+ messageFilters?: pulumi.Input<inputs.IotDeviceMessageFilters>;
120
+ /**
121
+ * The name of the device
122
+ */
123
+ name?: pulumi.Input<string>;
124
+ /**
125
+ * The region you want to attach the resource to
126
+ */
127
+ region?: pulumi.Input<string>;
128
+ /**
129
+ * The status of the device
130
+ */
131
+ status?: pulumi.Input<string>;
132
+ /**
133
+ * The date and time of the last update of the device
134
+ */
135
+ updatedAt?: pulumi.Input<string>;
136
+ }
137
+ /**
138
+ * The set of arguments for constructing a IotDevice resource.
139
+ */
140
+ export interface IotDeviceArgs {
141
+ /**
142
+ * Allow plain and server-authenticated SSL connections in addition to mutually-authenticated ones
143
+ */
144
+ allowInsecure?: pulumi.Input<boolean>;
145
+ /**
146
+ * Allow multiple connections
147
+ */
148
+ allowMultipleConnections?: pulumi.Input<boolean>;
149
+ /**
150
+ * Certificate section of the device
151
+ */
152
+ certificate?: pulumi.Input<inputs.IotDeviceCertificate>;
153
+ /**
154
+ * The description of the device
155
+ */
156
+ description?: pulumi.Input<string>;
157
+ /**
158
+ * The ID of the hub on which this device will be created
159
+ */
160
+ hubId: pulumi.Input<string>;
161
+ /**
162
+ * Rules to authorize or deny the device to publish/subscribe to specific topics
163
+ */
164
+ messageFilters?: pulumi.Input<inputs.IotDeviceMessageFilters>;
165
+ /**
166
+ * The name of the device
167
+ */
168
+ name?: pulumi.Input<string>;
169
+ /**
170
+ * The region you want to attach the resource to
171
+ */
172
+ region?: pulumi.Input<string>;
173
+ }
package/iotDevice.js ADDED
@@ -0,0 +1,76 @@
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.IotDevice = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("./utilities");
8
+ class IotDevice extends pulumi.CustomResource {
9
+ constructor(name, argsOrState, opts) {
10
+ let resourceInputs = {};
11
+ opts = opts || {};
12
+ if (opts.id) {
13
+ const state = argsOrState;
14
+ resourceInputs["allowInsecure"] = state ? state.allowInsecure : undefined;
15
+ resourceInputs["allowMultipleConnections"] = state ? state.allowMultipleConnections : undefined;
16
+ resourceInputs["certificate"] = state ? state.certificate : undefined;
17
+ resourceInputs["createdAt"] = state ? state.createdAt : undefined;
18
+ resourceInputs["description"] = state ? state.description : undefined;
19
+ resourceInputs["hubId"] = state ? state.hubId : undefined;
20
+ resourceInputs["isConnected"] = state ? state.isConnected : undefined;
21
+ resourceInputs["lastActivityAt"] = state ? state.lastActivityAt : undefined;
22
+ resourceInputs["messageFilters"] = state ? state.messageFilters : undefined;
23
+ resourceInputs["name"] = state ? state.name : undefined;
24
+ resourceInputs["region"] = state ? state.region : undefined;
25
+ resourceInputs["status"] = state ? state.status : undefined;
26
+ resourceInputs["updatedAt"] = state ? state.updatedAt : undefined;
27
+ }
28
+ else {
29
+ const args = argsOrState;
30
+ if ((!args || args.hubId === undefined) && !opts.urn) {
31
+ throw new Error("Missing required property 'hubId'");
32
+ }
33
+ resourceInputs["allowInsecure"] = args ? args.allowInsecure : undefined;
34
+ resourceInputs["allowMultipleConnections"] = args ? args.allowMultipleConnections : undefined;
35
+ resourceInputs["certificate"] = args ? args.certificate : undefined;
36
+ resourceInputs["description"] = args ? args.description : undefined;
37
+ resourceInputs["hubId"] = args ? args.hubId : undefined;
38
+ resourceInputs["messageFilters"] = args ? args.messageFilters : undefined;
39
+ resourceInputs["name"] = args ? args.name : undefined;
40
+ resourceInputs["region"] = args ? args.region : undefined;
41
+ resourceInputs["createdAt"] = undefined /*out*/;
42
+ resourceInputs["isConnected"] = undefined /*out*/;
43
+ resourceInputs["lastActivityAt"] = undefined /*out*/;
44
+ resourceInputs["status"] = undefined /*out*/;
45
+ resourceInputs["updatedAt"] = undefined /*out*/;
46
+ }
47
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
48
+ super(IotDevice.__pulumiType, name, resourceInputs, opts);
49
+ }
50
+ /**
51
+ * Get an existing IotDevice resource's state with the given name, ID, and optional extra
52
+ * properties used to qualify the lookup.
53
+ *
54
+ * @param name The _unique_ name of the resulting resource.
55
+ * @param id The _unique_ provider ID of the resource to lookup.
56
+ * @param state Any extra arguments used during the lookup.
57
+ * @param opts Optional settings to control the behavior of the CustomResource.
58
+ */
59
+ static get(name, id, state, opts) {
60
+ return new IotDevice(name, state, Object.assign(Object.assign({}, opts), { id: id }));
61
+ }
62
+ /**
63
+ * Returns true if the given object is an instance of IotDevice. This is designed to work even
64
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
65
+ */
66
+ static isInstance(obj) {
67
+ if (obj === undefined || obj === null) {
68
+ return false;
69
+ }
70
+ return obj['__pulumiType'] === IotDevice.__pulumiType;
71
+ }
72
+ }
73
+ exports.IotDevice = IotDevice;
74
+ /** @internal */
75
+ IotDevice.__pulumiType = 'scaleway:index/iotDevice:IotDevice';
76
+ //# sourceMappingURL=iotDevice.js.map