@pulumi/digitalocean 4.7.0-alpha.1633346817

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 (240) hide show
  1. package/LICENSE +202 -0
  2. package/README.md +68 -0
  3. package/app.d.ts +203 -0
  4. package/app.js +174 -0
  5. package/app.js.map +1 -0
  6. package/cdn.d.ts +169 -0
  7. package/cdn.js +116 -0
  8. package/cdn.js.map +1 -0
  9. package/certificate.d.ts +225 -0
  10. package/certificate.js +137 -0
  11. package/certificate.js.map +1 -0
  12. package/config/index.d.ts +1 -0
  13. package/config/index.js +10 -0
  14. package/config/index.js.map +1 -0
  15. package/config/vars.d.ts +20 -0
  16. package/config/vars.js +28 -0
  17. package/config/vars.js.map +1 -0
  18. package/containerRegistry.d.ts +88 -0
  19. package/containerRegistry.js +83 -0
  20. package/containerRegistry.js.map +1 -0
  21. package/containerRegistryDockerCredentials.d.ts +108 -0
  22. package/containerRegistryDockerCredentials.js +93 -0
  23. package/containerRegistryDockerCredentials.js.map +1 -0
  24. package/customImage.d.ts +155 -0
  25. package/customImage.js +113 -0
  26. package/customImage.js.map +1 -0
  27. package/databaseCluster.d.ts +306 -0
  28. package/databaseCluster.js +165 -0
  29. package/databaseCluster.js.map +1 -0
  30. package/databaseConnectionPool.d.ts +189 -0
  31. package/databaseConnectionPool.js +120 -0
  32. package/databaseConnectionPool.js.map +1 -0
  33. package/databaseDb.d.ts +87 -0
  34. package/databaseDb.js +82 -0
  35. package/databaseDb.js.map +1 -0
  36. package/databaseFirewall.d.ts +129 -0
  37. package/databaseFirewall.js +126 -0
  38. package/databaseFirewall.js.map +1 -0
  39. package/databaseReplica.d.ts +204 -0
  40. package/databaseReplica.js +110 -0
  41. package/databaseReplica.js.map +1 -0
  42. package/databaseUser.d.ts +117 -0
  43. package/databaseUser.js +90 -0
  44. package/databaseUser.js.map +1 -0
  45. package/dnsRecord.d.ts +200 -0
  46. package/dnsRecord.js +114 -0
  47. package/dnsRecord.js.map +1 -0
  48. package/domain.d.ts +103 -0
  49. package/domain.js +83 -0
  50. package/domain.js.map +1 -0
  51. package/droplet.d.ts +386 -0
  52. package/droplet.js +137 -0
  53. package/droplet.js.map +1 -0
  54. package/dropletSnapshot.d.ts +117 -0
  55. package/dropletSnapshot.js +88 -0
  56. package/dropletSnapshot.js.map +1 -0
  57. package/firewall.d.ts +226 -0
  58. package/firewall.js +150 -0
  59. package/firewall.js.map +1 -0
  60. package/floatingIp.d.ts +112 -0
  61. package/floatingIp.js +91 -0
  62. package/floatingIp.js.map +1 -0
  63. package/floatingIpAssignment.d.ts +85 -0
  64. package/floatingIpAssignment.js +83 -0
  65. package/floatingIpAssignment.js.map +1 -0
  66. package/getAccount.d.ts +32 -0
  67. package/getAccount.js +31 -0
  68. package/getAccount.js.map +1 -0
  69. package/getApp.d.ts +63 -0
  70. package/getApp.js +36 -0
  71. package/getApp.js.map +1 -0
  72. package/getCertificate.d.ts +48 -0
  73. package/getCertificate.js +40 -0
  74. package/getCertificate.js.map +1 -0
  75. package/getContainerRegistry.d.ts +54 -0
  76. package/getContainerRegistry.js +41 -0
  77. package/getContainerRegistry.js.map +1 -0
  78. package/getDatabaseCluster.d.ts +103 -0
  79. package/getDatabaseCluster.js +35 -0
  80. package/getDatabaseCluster.js.map +1 -0
  81. package/getDatabaseReplica.d.ts +87 -0
  82. package/getDatabaseReplica.js +40 -0
  83. package/getDatabaseReplica.js.map +1 -0
  84. package/getDomain.d.ts +37 -0
  85. package/getDomain.js +28 -0
  86. package/getDomain.js.map +1 -0
  87. package/getDomains.d.ts +61 -0
  88. package/getDomains.js +49 -0
  89. package/getDomains.js.map +1 -0
  90. package/getDroplet.d.ts +161 -0
  91. package/getDroplet.js +67 -0
  92. package/getDroplet.js.map +1 -0
  93. package/getDropletSnapshot.d.ts +76 -0
  94. package/getDropletSnapshot.js +43 -0
  95. package/getDropletSnapshot.js.map +1 -0
  96. package/getDroplets.d.ts +85 -0
  97. package/getDroplets.js +73 -0
  98. package/getDroplets.js.map +1 -0
  99. package/getFirewall.d.ts +83 -0
  100. package/getFirewall.js +40 -0
  101. package/getFirewall.js.map +1 -0
  102. package/getFloatingIp.d.ts +48 -0
  103. package/getFloatingIp.js +43 -0
  104. package/getFloatingIp.js.map +1 -0
  105. package/getImage.d.ts +110 -0
  106. package/getImage.js +71 -0
  107. package/getImage.js.map +1 -0
  108. package/getImages.d.ts +90 -0
  109. package/getImages.js +74 -0
  110. package/getImages.js.map +1 -0
  111. package/getKubernetesCluster.d.ts +95 -0
  112. package/getKubernetesCluster.js +23 -0
  113. package/getKubernetesCluster.js.map +1 -0
  114. package/getKubernetesVersions.d.ts +79 -0
  115. package/getKubernetesVersions.js +70 -0
  116. package/getKubernetesVersions.js.map +1 -0
  117. package/getLoadBalancer.d.ts +59 -0
  118. package/getLoadBalancer.js +41 -0
  119. package/getLoadBalancer.js.map +1 -0
  120. package/getProject.d.ts +72 -0
  121. package/getProject.js +37 -0
  122. package/getProject.js.map +1 -0
  123. package/getProjects.d.ts +85 -0
  124. package/getProjects.js +72 -0
  125. package/getProjects.js.map +1 -0
  126. package/getRecord.d.ts +42 -0
  127. package/getRecord.js +28 -0
  128. package/getRecord.js.map +1 -0
  129. package/getRecords.d.ts +39 -0
  130. package/getRecords.js +25 -0
  131. package/getRecords.js.map +1 -0
  132. package/getRegion.d.ts +56 -0
  133. package/getRegion.js +35 -0
  134. package/getRegion.js.map +1 -0
  135. package/getRegions.d.ts +82 -0
  136. package/getRegions.js +70 -0
  137. package/getRegions.js.map +1 -0
  138. package/getSizes.d.ts +35 -0
  139. package/getSizes.js +26 -0
  140. package/getSizes.js.map +1 -0
  141. package/getSpacesBucket.d.ts +59 -0
  142. package/getSpacesBucket.js +39 -0
  143. package/getSpacesBucket.js.map +1 -0
  144. package/getSpacesBucketObject.d.ts +125 -0
  145. package/getSpacesBucketObject.js +53 -0
  146. package/getSpacesBucketObject.js.map +1 -0
  147. package/getSpacesBucketObjects.d.ts +83 -0
  148. package/getSpacesBucketObjects.js +49 -0
  149. package/getSpacesBucketObjects.js.map +1 -0
  150. package/getSpacesBuckets.d.ts +75 -0
  151. package/getSpacesBuckets.js +63 -0
  152. package/getSpacesBuckets.js.map +1 -0
  153. package/getSshKey.d.ts +47 -0
  154. package/getSshKey.js +46 -0
  155. package/getSshKey.js.map +1 -0
  156. package/getSshKeys.d.ts +58 -0
  157. package/getSshKeys.js +46 -0
  158. package/getSshKeys.js.map +1 -0
  159. package/getTag.d.ts +71 -0
  160. package/getTag.js +45 -0
  161. package/getTag.js.map +1 -0
  162. package/getTags.d.ts +50 -0
  163. package/getTags.js +41 -0
  164. package/getTags.js.map +1 -0
  165. package/getVolume.d.ts +98 -0
  166. package/getVolume.js +64 -0
  167. package/getVolume.js.map +1 -0
  168. package/getVolumeSnapshot.d.ts +98 -0
  169. package/getVolumeSnapshot.js +61 -0
  170. package/getVolumeSnapshot.js.map +1 -0
  171. package/getVpc.d.ts +95 -0
  172. package/getVpc.js +61 -0
  173. package/getVpc.js.map +1 -0
  174. package/index.d.ts +74 -0
  175. package/index.js +240 -0
  176. package/index.js.map +1 -0
  177. package/kubernetesCluster.d.ts +220 -0
  178. package/kubernetesCluster.js +102 -0
  179. package/kubernetesCluster.js.map +1 -0
  180. package/kubernetesNodePool.d.ts +242 -0
  181. package/kubernetesNodePool.js +141 -0
  182. package/kubernetesNodePool.js.map +1 -0
  183. package/loadBalancer.d.ts +307 -0
  184. package/loadBalancer.js +161 -0
  185. package/loadBalancer.js.map +1 -0
  186. package/monitorAlert.d.ts +193 -0
  187. package/monitorAlert.js +99 -0
  188. package/monitorAlert.js.map +1 -0
  189. package/package.json +28 -0
  190. package/package.json.bak +27 -0
  191. package/package.json.dev +27 -0
  192. package/project.d.ts +191 -0
  193. package/project.js +129 -0
  194. package/project.js.map +1 -0
  195. package/projectResources.d.ts +100 -0
  196. package/projectResources.js +98 -0
  197. package/projectResources.js.map +1 -0
  198. package/provider.d.ts +67 -0
  199. package/provider.js +51 -0
  200. package/provider.js.map +1 -0
  201. package/scripts/install-pulumi-plugin.js +21 -0
  202. package/spacesBucket.d.ts +210 -0
  203. package/spacesBucket.js +139 -0
  204. package/spacesBucket.js.map +1 -0
  205. package/spacesBucketObject.d.ts +293 -0
  206. package/spacesBucketObject.js +139 -0
  207. package/spacesBucketObject.js.map +1 -0
  208. package/sshKey.d.ts +103 -0
  209. package/sshKey.js +89 -0
  210. package/sshKey.js.map +1 -0
  211. package/tag.d.ts +127 -0
  212. package/tag.js +93 -0
  213. package/tag.js.map +1 -0
  214. package/types/enums/index.d.ts +151 -0
  215. package/types/enums/index.js +148 -0
  216. package/types/enums/index.js.map +1 -0
  217. package/types/index.d.ts +4 -0
  218. package/types/index.js +12 -0
  219. package/types/index.js.map +1 -0
  220. package/types/input.d.ts +1584 -0
  221. package/types/input.js +5 -0
  222. package/types/input.js.map +1 -0
  223. package/types/output.d.ts +2730 -0
  224. package/types/output.js +5 -0
  225. package/types/output.js.map +1 -0
  226. package/utilities.d.ts +4 -0
  227. package/utilities.js +51 -0
  228. package/utilities.js.map +1 -0
  229. package/volume.d.ts +225 -0
  230. package/volume.js +128 -0
  231. package/volume.js.map +1 -0
  232. package/volumeAttachment.d.ts +88 -0
  233. package/volumeAttachment.js +86 -0
  234. package/volumeAttachment.js.map +1 -0
  235. package/volumeSnapshot.d.ts +129 -0
  236. package/volumeSnapshot.js +90 -0
  237. package/volumeSnapshot.js.map +1 -0
  238. package/vpc.d.ts +152 -0
  239. package/vpc.js +109 -0
  240. package/vpc.js.map +1 -0
@@ -0,0 +1,5 @@
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
+ //# sourceMappingURL=output.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"output.js","sourceRoot":"","sources":["../../types/output.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF"}
package/utilities.d.ts ADDED
@@ -0,0 +1,4 @@
1
+ export declare function getEnv(...vars: string[]): string | undefined;
2
+ export declare function getEnvBoolean(...vars: string[]): boolean | undefined;
3
+ export declare function getEnvNumber(...vars: string[]): number | undefined;
4
+ export declare function getVersion(): string;
package/utilities.js ADDED
@@ -0,0 +1,51 @@
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
+ function getEnv(...vars) {
6
+ for (const v of vars) {
7
+ const value = process.env[v];
8
+ if (value) {
9
+ return value;
10
+ }
11
+ }
12
+ return undefined;
13
+ }
14
+ exports.getEnv = getEnv;
15
+ function getEnvBoolean(...vars) {
16
+ const s = getEnv(...vars);
17
+ if (s !== undefined) {
18
+ // NOTE: these values are taken from https://golang.org/src/strconv/atob.go?s=351:391#L1, which is what
19
+ // Terraform uses internally when parsing boolean values.
20
+ if (["1", "t", "T", "true", "TRUE", "True"].find(v => v === s) !== undefined) {
21
+ return true;
22
+ }
23
+ if (["0", "f", "F", "false", "FALSE", "False"].find(v => v === s) !== undefined) {
24
+ return false;
25
+ }
26
+ }
27
+ return undefined;
28
+ }
29
+ exports.getEnvBoolean = getEnvBoolean;
30
+ function getEnvNumber(...vars) {
31
+ const s = getEnv(...vars);
32
+ if (s !== undefined) {
33
+ const f = parseFloat(s);
34
+ if (!isNaN(f)) {
35
+ return f;
36
+ }
37
+ }
38
+ return undefined;
39
+ }
40
+ exports.getEnvNumber = getEnvNumber;
41
+ function getVersion() {
42
+ let version = require('./package.json').version;
43
+ // Node allows for the version to be prefixed by a "v", while semver doesn't.
44
+ // If there is a v, strip it off.
45
+ if (version.indexOf('v') === 0) {
46
+ version = version.slice(1);
47
+ }
48
+ return version;
49
+ }
50
+ exports.getVersion = getVersion;
51
+ //# sourceMappingURL=utilities.js.map
@@ -0,0 +1 @@
1
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SACZ;KACJ;IACD,OAAO,SAAS,CAAC;AACrB,CAAC;AATD,oCASC;AAED,SAAgB,UAAU;IACtB,IAAI,OAAO,GAAG,OAAO,CAAC,gBAAgB,CAAC,CAAC,OAAO,CAAC;IAChD,6EAA6E;IAC7E,iCAAiC;IACjC,IAAI,OAAO,CAAC,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,EAAE;QAC5B,OAAO,GAAG,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;KAC9B;IACD,OAAO,OAAO,CAAC;AACnB,CAAC;AARD,gCAQC"}
package/volume.d.ts ADDED
@@ -0,0 +1,225 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ import { enums } from "./types";
3
+ /**
4
+ * Provides a DigitalOcean Block Storage volume which can be attached to a Droplet in order to provide expanded storage.
5
+ *
6
+ * ## Example Usage
7
+ *
8
+ * ```typescript
9
+ * import * as pulumi from "@pulumi/pulumi";
10
+ * import * as digitalocean from "@pulumi/digitalocean";
11
+ *
12
+ * const foobarVolume = new digitalocean.Volume("foobarVolume", {
13
+ * region: "nyc1",
14
+ * size: 100,
15
+ * initialFilesystemType: "ext4",
16
+ * description: "an example volume",
17
+ * });
18
+ * const foobarDroplet = new digitalocean.Droplet("foobarDroplet", {
19
+ * size: "s-1vcpu-1gb",
20
+ * image: "ubuntu-18-04-x64",
21
+ * region: "nyc1",
22
+ * });
23
+ * const foobarVolumeAttachment = new digitalocean.VolumeAttachment("foobarVolumeAttachment", {
24
+ * dropletId: foobarDroplet.id,
25
+ * volumeId: foobarVolume.id,
26
+ * });
27
+ * ```
28
+ *
29
+ * You can also create a volume from an existing snapshot.
30
+ *
31
+ * ```typescript
32
+ * import * as pulumi from "@pulumi/pulumi";
33
+ * import * as digitalocean from "@pulumi/digitalocean";
34
+ *
35
+ * const foobarVolumeSnapshot = digitalocean.getVolumeSnapshot({
36
+ * name: "baz",
37
+ * });
38
+ * const foobarVolume = new digitalocean.Volume("foobarVolume", {
39
+ * region: "lon1",
40
+ * size: foobarVolumeSnapshot.then(foobarVolumeSnapshot => foobarVolumeSnapshot.minDiskSize),
41
+ * snapshotId: foobarVolumeSnapshot.then(foobarVolumeSnapshot => foobarVolumeSnapshot.id),
42
+ * });
43
+ * ```
44
+ *
45
+ * ## Import
46
+ *
47
+ * Volumes can be imported using the `volume id`, e.g.
48
+ *
49
+ * ```sh
50
+ * $ pulumi import digitalocean:index/volume:Volume volume 506f78a4-e098-11e5-ad9f-000f53306ae1
51
+ * ```
52
+ */
53
+ export declare class Volume extends pulumi.CustomResource {
54
+ /**
55
+ * Get an existing Volume resource's state with the given name, ID, and optional extra
56
+ * properties used to qualify the lookup.
57
+ *
58
+ * @param name The _unique_ name of the resulting resource.
59
+ * @param id The _unique_ provider ID of the resource to lookup.
60
+ * @param state Any extra arguments used during the lookup.
61
+ * @param opts Optional settings to control the behavior of the CustomResource.
62
+ */
63
+ static get(name: string, id: pulumi.Input<pulumi.ID>, state?: VolumeState, opts?: pulumi.CustomResourceOptions): Volume;
64
+ /**
65
+ * Returns true if the given object is an instance of Volume. This is designed to work even
66
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
67
+ */
68
+ static isInstance(obj: any): obj is Volume;
69
+ /**
70
+ * A free-form text field up to a limit of 1024 bytes to describe a block storage volume.
71
+ */
72
+ readonly description: pulumi.Output<string | undefined>;
73
+ /**
74
+ * A list of associated droplet ids.
75
+ */
76
+ readonly dropletIds: pulumi.Output<number[]>;
77
+ /**
78
+ * Filesystem label for the block storage volume.
79
+ */
80
+ readonly filesystemLabel: pulumi.Output<string>;
81
+ /**
82
+ * Filesystem type (`xfs` or `ext4`) for the block storage volume.
83
+ *
84
+ * @deprecated This fields functionality has been replaced by `initial_filesystem_type`. The property will still remain as a computed attribute representing the current volumes filesystem type.
85
+ */
86
+ readonly filesystemType: pulumi.Output<string>;
87
+ /**
88
+ * Initial filesystem label for the block storage volume.
89
+ */
90
+ readonly initialFilesystemLabel: pulumi.Output<string | undefined>;
91
+ /**
92
+ * Initial filesystem type (`xfs` or `ext4`) for the block storage volume.
93
+ */
94
+ readonly initialFilesystemType: pulumi.Output<string | undefined>;
95
+ /**
96
+ * A name for the block storage volume. Must be lowercase and be composed only of numbers, letters and "-", up to a limit of 64 characters.
97
+ */
98
+ readonly name: pulumi.Output<string>;
99
+ /**
100
+ * The region that the block storage volume will be created in.
101
+ */
102
+ readonly region: pulumi.Output<string>;
103
+ /**
104
+ * The size of the block storage volume in GiB. If updated, can only be expanded.
105
+ */
106
+ readonly size: pulumi.Output<number>;
107
+ /**
108
+ * The ID of an existing volume snapshot from which the new volume will be created. If supplied, the region and size will be limitied on creation to that of the referenced snapshot
109
+ */
110
+ readonly snapshotId: pulumi.Output<string | undefined>;
111
+ /**
112
+ * A list of the tags to be applied to this Volume.
113
+ */
114
+ readonly tags: pulumi.Output<string[] | undefined>;
115
+ /**
116
+ * The uniform resource name for the volume.
117
+ */
118
+ readonly volumeUrn: pulumi.Output<string>;
119
+ /**
120
+ * Create a Volume resource with the given unique name, arguments, and options.
121
+ *
122
+ * @param name The _unique_ name of the resource.
123
+ * @param args The arguments to use to populate this resource's properties.
124
+ * @param opts A bag of options that control this resource's behavior.
125
+ */
126
+ constructor(name: string, args: VolumeArgs, opts?: pulumi.CustomResourceOptions);
127
+ }
128
+ /**
129
+ * Input properties used for looking up and filtering Volume resources.
130
+ */
131
+ export interface VolumeState {
132
+ /**
133
+ * A free-form text field up to a limit of 1024 bytes to describe a block storage volume.
134
+ */
135
+ description?: pulumi.Input<string>;
136
+ /**
137
+ * A list of associated droplet ids.
138
+ */
139
+ dropletIds?: pulumi.Input<pulumi.Input<number>[]>;
140
+ /**
141
+ * Filesystem label for the block storage volume.
142
+ */
143
+ filesystemLabel?: pulumi.Input<string>;
144
+ /**
145
+ * Filesystem type (`xfs` or `ext4`) for the block storage volume.
146
+ *
147
+ * @deprecated This fields functionality has been replaced by `initial_filesystem_type`. The property will still remain as a computed attribute representing the current volumes filesystem type.
148
+ */
149
+ filesystemType?: pulumi.Input<string>;
150
+ /**
151
+ * Initial filesystem label for the block storage volume.
152
+ */
153
+ initialFilesystemLabel?: pulumi.Input<string>;
154
+ /**
155
+ * Initial filesystem type (`xfs` or `ext4`) for the block storage volume.
156
+ */
157
+ initialFilesystemType?: pulumi.Input<string | enums.FileSystemType>;
158
+ /**
159
+ * A name for the block storage volume. Must be lowercase and be composed only of numbers, letters and "-", up to a limit of 64 characters.
160
+ */
161
+ name?: pulumi.Input<string>;
162
+ /**
163
+ * The region that the block storage volume will be created in.
164
+ */
165
+ region?: pulumi.Input<string | enums.Region>;
166
+ /**
167
+ * The size of the block storage volume in GiB. If updated, can only be expanded.
168
+ */
169
+ size?: pulumi.Input<number>;
170
+ /**
171
+ * The ID of an existing volume snapshot from which the new volume will be created. If supplied, the region and size will be limitied on creation to that of the referenced snapshot
172
+ */
173
+ snapshotId?: pulumi.Input<string>;
174
+ /**
175
+ * A list of the tags to be applied to this Volume.
176
+ */
177
+ tags?: pulumi.Input<pulumi.Input<string>[]>;
178
+ /**
179
+ * The uniform resource name for the volume.
180
+ */
181
+ volumeUrn?: pulumi.Input<string>;
182
+ }
183
+ /**
184
+ * The set of arguments for constructing a Volume resource.
185
+ */
186
+ export interface VolumeArgs {
187
+ /**
188
+ * A free-form text field up to a limit of 1024 bytes to describe a block storage volume.
189
+ */
190
+ description?: pulumi.Input<string>;
191
+ /**
192
+ * Filesystem type (`xfs` or `ext4`) for the block storage volume.
193
+ *
194
+ * @deprecated This fields functionality has been replaced by `initial_filesystem_type`. The property will still remain as a computed attribute representing the current volumes filesystem type.
195
+ */
196
+ filesystemType?: pulumi.Input<string>;
197
+ /**
198
+ * Initial filesystem label for the block storage volume.
199
+ */
200
+ initialFilesystemLabel?: pulumi.Input<string>;
201
+ /**
202
+ * Initial filesystem type (`xfs` or `ext4`) for the block storage volume.
203
+ */
204
+ initialFilesystemType?: pulumi.Input<string | enums.FileSystemType>;
205
+ /**
206
+ * A name for the block storage volume. Must be lowercase and be composed only of numbers, letters and "-", up to a limit of 64 characters.
207
+ */
208
+ name?: pulumi.Input<string>;
209
+ /**
210
+ * The region that the block storage volume will be created in.
211
+ */
212
+ region: pulumi.Input<string | enums.Region>;
213
+ /**
214
+ * The size of the block storage volume in GiB. If updated, can only be expanded.
215
+ */
216
+ size: pulumi.Input<number>;
217
+ /**
218
+ * The ID of an existing volume snapshot from which the new volume will be created. If supplied, the region and size will be limitied on creation to that of the referenced snapshot
219
+ */
220
+ snapshotId?: pulumi.Input<string>;
221
+ /**
222
+ * A list of the tags to be applied to this Volume.
223
+ */
224
+ tags?: pulumi.Input<pulumi.Input<string>[]>;
225
+ }
package/volume.js ADDED
@@ -0,0 +1,128 @@
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
+ const pulumi = require("@pulumi/pulumi");
6
+ const utilities = require("./utilities");
7
+ /**
8
+ * Provides a DigitalOcean Block Storage volume which can be attached to a Droplet in order to provide expanded storage.
9
+ *
10
+ * ## Example Usage
11
+ *
12
+ * ```typescript
13
+ * import * as pulumi from "@pulumi/pulumi";
14
+ * import * as digitalocean from "@pulumi/digitalocean";
15
+ *
16
+ * const foobarVolume = new digitalocean.Volume("foobarVolume", {
17
+ * region: "nyc1",
18
+ * size: 100,
19
+ * initialFilesystemType: "ext4",
20
+ * description: "an example volume",
21
+ * });
22
+ * const foobarDroplet = new digitalocean.Droplet("foobarDroplet", {
23
+ * size: "s-1vcpu-1gb",
24
+ * image: "ubuntu-18-04-x64",
25
+ * region: "nyc1",
26
+ * });
27
+ * const foobarVolumeAttachment = new digitalocean.VolumeAttachment("foobarVolumeAttachment", {
28
+ * dropletId: foobarDroplet.id,
29
+ * volumeId: foobarVolume.id,
30
+ * });
31
+ * ```
32
+ *
33
+ * You can also create a volume from an existing snapshot.
34
+ *
35
+ * ```typescript
36
+ * import * as pulumi from "@pulumi/pulumi";
37
+ * import * as digitalocean from "@pulumi/digitalocean";
38
+ *
39
+ * const foobarVolumeSnapshot = digitalocean.getVolumeSnapshot({
40
+ * name: "baz",
41
+ * });
42
+ * const foobarVolume = new digitalocean.Volume("foobarVolume", {
43
+ * region: "lon1",
44
+ * size: foobarVolumeSnapshot.then(foobarVolumeSnapshot => foobarVolumeSnapshot.minDiskSize),
45
+ * snapshotId: foobarVolumeSnapshot.then(foobarVolumeSnapshot => foobarVolumeSnapshot.id),
46
+ * });
47
+ * ```
48
+ *
49
+ * ## Import
50
+ *
51
+ * Volumes can be imported using the `volume id`, e.g.
52
+ *
53
+ * ```sh
54
+ * $ pulumi import digitalocean:index/volume:Volume volume 506f78a4-e098-11e5-ad9f-000f53306ae1
55
+ * ```
56
+ */
57
+ class Volume extends pulumi.CustomResource {
58
+ constructor(name, argsOrState, opts) {
59
+ let inputs = {};
60
+ opts = opts || {};
61
+ if (opts.id) {
62
+ const state = argsOrState;
63
+ inputs["description"] = state ? state.description : undefined;
64
+ inputs["dropletIds"] = state ? state.dropletIds : undefined;
65
+ inputs["filesystemLabel"] = state ? state.filesystemLabel : undefined;
66
+ inputs["filesystemType"] = state ? state.filesystemType : undefined;
67
+ inputs["initialFilesystemLabel"] = state ? state.initialFilesystemLabel : undefined;
68
+ inputs["initialFilesystemType"] = state ? state.initialFilesystemType : undefined;
69
+ inputs["name"] = state ? state.name : undefined;
70
+ inputs["region"] = state ? state.region : undefined;
71
+ inputs["size"] = state ? state.size : undefined;
72
+ inputs["snapshotId"] = state ? state.snapshotId : undefined;
73
+ inputs["tags"] = state ? state.tags : undefined;
74
+ inputs["volumeUrn"] = state ? state.volumeUrn : undefined;
75
+ }
76
+ else {
77
+ const args = argsOrState;
78
+ if ((!args || args.region === undefined) && !opts.urn) {
79
+ throw new Error("Missing required property 'region'");
80
+ }
81
+ if ((!args || args.size === undefined) && !opts.urn) {
82
+ throw new Error("Missing required property 'size'");
83
+ }
84
+ inputs["description"] = args ? args.description : undefined;
85
+ inputs["filesystemType"] = args ? args.filesystemType : undefined;
86
+ inputs["initialFilesystemLabel"] = args ? args.initialFilesystemLabel : undefined;
87
+ inputs["initialFilesystemType"] = args ? args.initialFilesystemType : undefined;
88
+ inputs["name"] = args ? args.name : undefined;
89
+ inputs["region"] = args ? args.region : undefined;
90
+ inputs["size"] = args ? args.size : undefined;
91
+ inputs["snapshotId"] = args ? args.snapshotId : undefined;
92
+ inputs["tags"] = args ? args.tags : undefined;
93
+ inputs["dropletIds"] = undefined /*out*/;
94
+ inputs["filesystemLabel"] = undefined /*out*/;
95
+ inputs["volumeUrn"] = undefined /*out*/;
96
+ }
97
+ if (!opts.version) {
98
+ opts = pulumi.mergeOptions(opts, { version: utilities.getVersion() });
99
+ }
100
+ super(Volume.__pulumiType, name, inputs, opts);
101
+ }
102
+ /**
103
+ * Get an existing Volume resource's state with the given name, ID, and optional extra
104
+ * properties used to qualify the lookup.
105
+ *
106
+ * @param name The _unique_ name of the resulting resource.
107
+ * @param id The _unique_ provider ID of the resource to lookup.
108
+ * @param state Any extra arguments used during the lookup.
109
+ * @param opts Optional settings to control the behavior of the CustomResource.
110
+ */
111
+ static get(name, id, state, opts) {
112
+ return new Volume(name, state, Object.assign(Object.assign({}, opts), { id: id }));
113
+ }
114
+ /**
115
+ * Returns true if the given object is an instance of Volume. This is designed to work even
116
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
117
+ */
118
+ static isInstance(obj) {
119
+ if (obj === undefined || obj === null) {
120
+ return false;
121
+ }
122
+ return obj['__pulumiType'] === Volume.__pulumiType;
123
+ }
124
+ }
125
+ exports.Volume = Volume;
126
+ /** @internal */
127
+ Volume.__pulumiType = 'digitalocean:index/volume:Volume';
128
+ //# sourceMappingURL=volume.js.map
package/volume.js.map ADDED
@@ -0,0 +1 @@
1
+ {"version":3,"file":"volume.js","sourceRoot":"","sources":["../volume.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;AAEjF,yCAAyC;A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,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,MAAM,CAAC,YAAY,CAAC;IACvD,CAAC;;AA1BL,wBAkIC;AApHG,gBAAgB;AACO,mBAAY,GAAG,kCAAkC,CAAC"}
@@ -0,0 +1,88 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ /**
3
+ * Manages attaching a Volume to a Droplet.
4
+ *
5
+ * > **NOTE:** Volumes can be attached either directly on the `digitalocean.Droplet` resource, or using the `digitalocean.VolumeAttachment` resource - but the two cannot be used together. If both are used against the same Droplet, the volume attachments will constantly drift.
6
+ *
7
+ * ## Example Usage
8
+ *
9
+ * ```typescript
10
+ * import * as pulumi from "@pulumi/pulumi";
11
+ * import * as digitalocean from "@pulumi/digitalocean";
12
+ *
13
+ * const foobarVolume = new digitalocean.Volume("foobarVolume", {
14
+ * region: "nyc1",
15
+ * size: 100,
16
+ * initialFilesystemType: "ext4",
17
+ * description: "an example volume",
18
+ * });
19
+ * const foobarDroplet = new digitalocean.Droplet("foobarDroplet", {
20
+ * size: "s-1vcpu-1gb",
21
+ * image: "ubuntu-18-04-x64",
22
+ * region: "nyc1",
23
+ * });
24
+ * const foobarVolumeAttachment = new digitalocean.VolumeAttachment("foobarVolumeAttachment", {
25
+ * dropletId: foobarDroplet.id,
26
+ * volumeId: foobarVolume.id,
27
+ * });
28
+ * ```
29
+ */
30
+ export declare class VolumeAttachment extends pulumi.CustomResource {
31
+ /**
32
+ * Get an existing VolumeAttachment resource's state with the given name, ID, and optional extra
33
+ * properties used to qualify the lookup.
34
+ *
35
+ * @param name The _unique_ name of the resulting resource.
36
+ * @param id The _unique_ provider ID of the resource to lookup.
37
+ * @param state Any extra arguments used during the lookup.
38
+ * @param opts Optional settings to control the behavior of the CustomResource.
39
+ */
40
+ static get(name: string, id: pulumi.Input<pulumi.ID>, state?: VolumeAttachmentState, opts?: pulumi.CustomResourceOptions): VolumeAttachment;
41
+ /**
42
+ * Returns true if the given object is an instance of VolumeAttachment. This is designed to work even
43
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
44
+ */
45
+ static isInstance(obj: any): obj is VolumeAttachment;
46
+ /**
47
+ * ID of the Droplet to attach the volume to.
48
+ */
49
+ readonly dropletId: pulumi.Output<number>;
50
+ /**
51
+ * ID of the Volume to be attached to the Droplet.
52
+ */
53
+ readonly volumeId: pulumi.Output<string>;
54
+ /**
55
+ * Create a VolumeAttachment 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: VolumeAttachmentArgs, opts?: pulumi.CustomResourceOptions);
62
+ }
63
+ /**
64
+ * Input properties used for looking up and filtering VolumeAttachment resources.
65
+ */
66
+ export interface VolumeAttachmentState {
67
+ /**
68
+ * ID of the Droplet to attach the volume to.
69
+ */
70
+ dropletId?: pulumi.Input<number>;
71
+ /**
72
+ * ID of the Volume to be attached to the Droplet.
73
+ */
74
+ volumeId?: pulumi.Input<string>;
75
+ }
76
+ /**
77
+ * The set of arguments for constructing a VolumeAttachment resource.
78
+ */
79
+ export interface VolumeAttachmentArgs {
80
+ /**
81
+ * ID of the Droplet to attach the volume to.
82
+ */
83
+ dropletId: pulumi.Input<number>;
84
+ /**
85
+ * ID of the Volume to be attached to the Droplet.
86
+ */
87
+ volumeId: pulumi.Input<string>;
88
+ }
@@ -0,0 +1,86 @@
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
+ const pulumi = require("@pulumi/pulumi");
6
+ const utilities = require("./utilities");
7
+ /**
8
+ * Manages attaching a Volume to a Droplet.
9
+ *
10
+ * > **NOTE:** Volumes can be attached either directly on the `digitalocean.Droplet` resource, or using the `digitalocean.VolumeAttachment` resource - but the two cannot be used together. If both are used against the same Droplet, the volume attachments will constantly drift.
11
+ *
12
+ * ## Example Usage
13
+ *
14
+ * ```typescript
15
+ * import * as pulumi from "@pulumi/pulumi";
16
+ * import * as digitalocean from "@pulumi/digitalocean";
17
+ *
18
+ * const foobarVolume = new digitalocean.Volume("foobarVolume", {
19
+ * region: "nyc1",
20
+ * size: 100,
21
+ * initialFilesystemType: "ext4",
22
+ * description: "an example volume",
23
+ * });
24
+ * const foobarDroplet = new digitalocean.Droplet("foobarDroplet", {
25
+ * size: "s-1vcpu-1gb",
26
+ * image: "ubuntu-18-04-x64",
27
+ * region: "nyc1",
28
+ * });
29
+ * const foobarVolumeAttachment = new digitalocean.VolumeAttachment("foobarVolumeAttachment", {
30
+ * dropletId: foobarDroplet.id,
31
+ * volumeId: foobarVolume.id,
32
+ * });
33
+ * ```
34
+ */
35
+ class VolumeAttachment extends pulumi.CustomResource {
36
+ constructor(name, argsOrState, opts) {
37
+ let inputs = {};
38
+ opts = opts || {};
39
+ if (opts.id) {
40
+ const state = argsOrState;
41
+ inputs["dropletId"] = state ? state.dropletId : undefined;
42
+ inputs["volumeId"] = state ? state.volumeId : undefined;
43
+ }
44
+ else {
45
+ const args = argsOrState;
46
+ if ((!args || args.dropletId === undefined) && !opts.urn) {
47
+ throw new Error("Missing required property 'dropletId'");
48
+ }
49
+ if ((!args || args.volumeId === undefined) && !opts.urn) {
50
+ throw new Error("Missing required property 'volumeId'");
51
+ }
52
+ inputs["dropletId"] = args ? args.dropletId : undefined;
53
+ inputs["volumeId"] = args ? args.volumeId : undefined;
54
+ }
55
+ if (!opts.version) {
56
+ opts = pulumi.mergeOptions(opts, { version: utilities.getVersion() });
57
+ }
58
+ super(VolumeAttachment.__pulumiType, name, inputs, opts);
59
+ }
60
+ /**
61
+ * Get an existing VolumeAttachment resource's state with the given name, ID, and optional extra
62
+ * properties used to qualify the lookup.
63
+ *
64
+ * @param name The _unique_ name of the resulting resource.
65
+ * @param id The _unique_ provider ID of the resource to lookup.
66
+ * @param state Any extra arguments used during the lookup.
67
+ * @param opts Optional settings to control the behavior of the CustomResource.
68
+ */
69
+ static get(name, id, state, opts) {
70
+ return new VolumeAttachment(name, state, Object.assign(Object.assign({}, opts), { id: id }));
71
+ }
72
+ /**
73
+ * Returns true if the given object is an instance of VolumeAttachment. This is designed to work even
74
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
75
+ */
76
+ static isInstance(obj) {
77
+ if (obj === undefined || obj === null) {
78
+ return false;
79
+ }
80
+ return obj['__pulumiType'] === VolumeAttachment.__pulumiType;
81
+ }
82
+ }
83
+ exports.VolumeAttachment = VolumeAttachment;
84
+ /** @internal */
85
+ VolumeAttachment.__pulumiType = 'digitalocean:index/volumeAttachment:VolumeAttachment';
86
+ //# sourceMappingURL=volumeAttachment.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"volumeAttachment.js","sourceRoot":"","sources":["../volumeAttachment.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,MAAa,gBAAiB,SAAQ,MAAM,CAAC,cAAc;IA6CvD,YAAY,IAAY,EAAE,WAA0D,EAAE,IAAmC;QACrH,IAAI,MAAM,GAAkB,EAAE,CAAC;QAC/B,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAAgD,CAAC;YAC/D,MAAM,CAAC,WAAW,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC;YAC1D,MAAM,CAAC,UAAU,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC,CA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