@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
package/getTag.d.ts ADDED
@@ -0,0 +1,71 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ /**
3
+ * Get information on a tag. This data source provides the name as configured on
4
+ * your DigitalOcean account. This is useful if the tag name in question is not
5
+ * managed by the provider or you need validate if the tag exists in the account.
6
+ *
7
+ * An error is triggered if the provided tag name does not exist.
8
+ *
9
+ * ## Example Usage
10
+ *
11
+ * Get the tag:
12
+ *
13
+ * ```typescript
14
+ * import * as pulumi from "@pulumi/pulumi";
15
+ * import * as digitalocean from "@pulumi/digitalocean";
16
+ *
17
+ * const exampleTag = digitalocean.getTag({
18
+ * name: "example",
19
+ * });
20
+ * const exampleDroplet = new digitalocean.Droplet("exampleDroplet", {
21
+ * image: "ubuntu-18-04-x64",
22
+ * region: "nyc2",
23
+ * size: "s-1vcpu-1gb",
24
+ * tags: [exampleTag.then(exampleTag => exampleTag.name)],
25
+ * });
26
+ * ```
27
+ */
28
+ export declare function getTag(args: GetTagArgs, opts?: pulumi.InvokeOptions): Promise<GetTagResult>;
29
+ /**
30
+ * A collection of arguments for invoking getTag.
31
+ */
32
+ export interface GetTagArgs {
33
+ /**
34
+ * The name of the tag.
35
+ */
36
+ name: string;
37
+ }
38
+ /**
39
+ * A collection of values returned by getTag.
40
+ */
41
+ export interface GetTagResult {
42
+ /**
43
+ * A count of the database clusters that the tag is applied to.
44
+ */
45
+ readonly databasesCount: number;
46
+ /**
47
+ * A count of the Droplets the tag is applied to.
48
+ */
49
+ readonly dropletsCount: number;
50
+ /**
51
+ * The provider-assigned unique ID for this managed resource.
52
+ */
53
+ readonly id: string;
54
+ /**
55
+ * A count of the images that the tag is applied to.
56
+ */
57
+ readonly imagesCount: number;
58
+ readonly name: string;
59
+ /**
60
+ * A count of the total number of resources that the tag is applied to.
61
+ */
62
+ readonly totalResourceCount: number;
63
+ /**
64
+ * A count of the volume snapshots that the tag is applied to.
65
+ */
66
+ readonly volumeSnapshotsCount: number;
67
+ /**
68
+ * A count of the volumes that the tag is applied to.
69
+ */
70
+ readonly volumesCount: number;
71
+ }
package/getTag.js ADDED
@@ -0,0 +1,45 @@
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
+ * Get information on a tag. This data source provides the name as configured on
9
+ * your DigitalOcean account. This is useful if the tag name in question is not
10
+ * managed by the provider or you need validate if the tag exists in the account.
11
+ *
12
+ * An error is triggered if the provided tag name does not exist.
13
+ *
14
+ * ## Example Usage
15
+ *
16
+ * Get the tag:
17
+ *
18
+ * ```typescript
19
+ * import * as pulumi from "@pulumi/pulumi";
20
+ * import * as digitalocean from "@pulumi/digitalocean";
21
+ *
22
+ * const exampleTag = digitalocean.getTag({
23
+ * name: "example",
24
+ * });
25
+ * const exampleDroplet = new digitalocean.Droplet("exampleDroplet", {
26
+ * image: "ubuntu-18-04-x64",
27
+ * region: "nyc2",
28
+ * size: "s-1vcpu-1gb",
29
+ * tags: [exampleTag.then(exampleTag => exampleTag.name)],
30
+ * });
31
+ * ```
32
+ */
33
+ function getTag(args, opts) {
34
+ if (!opts) {
35
+ opts = {};
36
+ }
37
+ if (!opts.version) {
38
+ opts.version = utilities.getVersion();
39
+ }
40
+ return pulumi.runtime.invoke("digitalocean:index/getTag:getTag", {
41
+ "name": args.name,
42
+ }, opts);
43
+ }
44
+ exports.getTag = getTag;
45
+ //# sourceMappingURL=getTag.js.map
package/getTag.js.map ADDED
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getTag.js","sourceRoot":"","sources":["../getTag.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;AAEjF,yCAAyC;AAEzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,SAAgB,MAAM,CAAC,IAAgB,EAAE,IAA2B;IAChE,IAAI,CAAC,IAAI,EAAE;QACP,IAAI,GAAG,EAAE,CAAA;KACZ;IAED,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE;QACf,IAAI,CAAC,OAAO,GAAG,SAAS,CAAC,UAAU,EAAE,CAAC;KACzC;IACD,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,kCAAkC,EAAE;QAC7D,MAAM,EAAE,IAAI,CAAC,IAAI;KACpB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAXD,wBAWC"}
package/getTags.d.ts ADDED
@@ -0,0 +1,50 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ import { input as inputs, output as outputs } from "./types";
3
+ /**
4
+ * Returns a list of tags in your DigitalOcean account, with the ability to
5
+ * filter and sort the results. If no filters are specified, all tags will be
6
+ * returned.
7
+ *
8
+ * ## Example Usage
9
+ *
10
+ * ```typescript
11
+ * import * as pulumi from "@pulumi/pulumi";
12
+ * import * as digitalocean from "@pulumi/digitalocean";
13
+ *
14
+ * const list = digitalocean.getTags({
15
+ * sorts: [{
16
+ * key: "total_resource_count",
17
+ * direction: "asc",
18
+ * }],
19
+ * });
20
+ * export const sortedTags = list.then(list => list.tags);
21
+ * ```
22
+ */
23
+ export declare function getTags(args?: GetTagsArgs, opts?: pulumi.InvokeOptions): Promise<GetTagsResult>;
24
+ /**
25
+ * A collection of arguments for invoking getTags.
26
+ */
27
+ export interface GetTagsArgs {
28
+ /**
29
+ * Filter the results.
30
+ * The `filter` block is documented below.
31
+ */
32
+ filters?: inputs.GetTagsFilter[];
33
+ /**
34
+ * Sort the results.
35
+ * The `sort` block is documented below.
36
+ */
37
+ sorts?: inputs.GetTagsSort[];
38
+ }
39
+ /**
40
+ * A collection of values returned by getTags.
41
+ */
42
+ export interface GetTagsResult {
43
+ readonly filters?: outputs.GetTagsFilter[];
44
+ /**
45
+ * The provider-assigned unique ID for this managed resource.
46
+ */
47
+ readonly id: string;
48
+ readonly sorts?: outputs.GetTagsSort[];
49
+ readonly tags: outputs.GetTagsTag[];
50
+ }
package/getTags.js ADDED
@@ -0,0 +1,41 @@
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
+ * Returns a list of tags in your DigitalOcean account, with the ability to
9
+ * filter and sort the results. If no filters are specified, all tags will be
10
+ * returned.
11
+ *
12
+ * ## Example Usage
13
+ *
14
+ * ```typescript
15
+ * import * as pulumi from "@pulumi/pulumi";
16
+ * import * as digitalocean from "@pulumi/digitalocean";
17
+ *
18
+ * const list = digitalocean.getTags({
19
+ * sorts: [{
20
+ * key: "total_resource_count",
21
+ * direction: "asc",
22
+ * }],
23
+ * });
24
+ * export const sortedTags = list.then(list => list.tags);
25
+ * ```
26
+ */
27
+ function getTags(args, opts) {
28
+ args = args || {};
29
+ if (!opts) {
30
+ opts = {};
31
+ }
32
+ if (!opts.version) {
33
+ opts.version = utilities.getVersion();
34
+ }
35
+ return pulumi.runtime.invoke("digitalocean:index/getTags:getTags", {
36
+ "filters": args.filters,
37
+ "sorts": args.sorts,
38
+ }, opts);
39
+ }
40
+ exports.getTags = getTags;
41
+ //# sourceMappingURL=getTags.js.map
package/getTags.js.map ADDED
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getTags.js","sourceRoot":"","sources":["../getTags.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;AAEjF,yCAAyC;AAEzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;GAmBG;AACH,SAAgB,OAAO,CAAC,IAAkB,EAAE,IAA2B;IACnE,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;IAClB,IAAI,CAAC,IAAI,EAAE;QACP,IAAI,GAAG,EAAE,CAAA;KACZ;IAED,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE;QACf,IAAI,CAAC,OAAO,GAAG,SAAS,CAAC,UAAU,EAAE,CAAC;KACzC;IACD,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,oCAAoC,EAAE;QAC/D,SAAS,EAAE,IAAI,CAAC,OAAO;QACvB,OAAO,EAAE,IAAI,CAAC,KAAK;KACtB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAbD,0BAaC"}
package/getVolume.d.ts ADDED
@@ -0,0 +1,98 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ /**
3
+ * Get information on a volume for use in other resources. This data source provides
4
+ * all of the volumes properties as configured on your DigitalOcean account. This is
5
+ * useful if the volume in question is not managed by the provider or you need to utilize
6
+ * any of the volumes data.
7
+ *
8
+ * An error is triggered if the provided volume name does not exist.
9
+ *
10
+ * ## Example Usage
11
+ *
12
+ * Get the volume:
13
+ *
14
+ * ```typescript
15
+ * import * as pulumi from "@pulumi/pulumi";
16
+ * import * as digitalocean from "@pulumi/digitalocean";
17
+ *
18
+ * const example = pulumi.output(digitalocean.getVolume({
19
+ * name: "app-data",
20
+ * region: "nyc3",
21
+ * }));
22
+ * ```
23
+ *
24
+ * Reuse the data about a volume to attach it to a Droplet:
25
+ *
26
+ * ```typescript
27
+ * import * as pulumi from "@pulumi/pulumi";
28
+ * import * as digitalocean from "@pulumi/digitalocean";
29
+ *
30
+ * const exampleVolume = digitalocean.getVolume({
31
+ * name: "app-data",
32
+ * region: "nyc3",
33
+ * });
34
+ * const exampleDroplet = new digitalocean.Droplet("exampleDroplet", {
35
+ * size: "s-1vcpu-1gb",
36
+ * image: "ubuntu-18-04-x64",
37
+ * region: "nyc3",
38
+ * });
39
+ * const foobar = new digitalocean.VolumeAttachment("foobar", {
40
+ * dropletId: exampleDroplet.id,
41
+ * volumeId: exampleVolume.then(exampleVolume => exampleVolume.id),
42
+ * });
43
+ * ```
44
+ */
45
+ export declare function getVolume(args: GetVolumeArgs, opts?: pulumi.InvokeOptions): Promise<GetVolumeResult>;
46
+ /**
47
+ * A collection of arguments for invoking getVolume.
48
+ */
49
+ export interface GetVolumeArgs {
50
+ /**
51
+ * Text describing a block storage volume.
52
+ */
53
+ description?: string;
54
+ /**
55
+ * The name of block storage volume.
56
+ */
57
+ name: string;
58
+ /**
59
+ * The region the block storage volume is provisioned in.
60
+ */
61
+ region?: string;
62
+ }
63
+ /**
64
+ * A collection of values returned by getVolume.
65
+ */
66
+ export interface GetVolumeResult {
67
+ /**
68
+ * Text describing a block storage volume.
69
+ */
70
+ readonly description?: string;
71
+ /**
72
+ * A list of associated Droplet ids.
73
+ */
74
+ readonly dropletIds: number[];
75
+ /**
76
+ * Filesystem label currently in-use on the block storage volume.
77
+ */
78
+ readonly filesystemLabel: string;
79
+ /**
80
+ * Filesystem type currently in-use on the block storage volume.
81
+ */
82
+ readonly filesystemType: string;
83
+ /**
84
+ * The provider-assigned unique ID for this managed resource.
85
+ */
86
+ readonly id: string;
87
+ readonly name: string;
88
+ readonly region?: string;
89
+ /**
90
+ * The size of the block storage volume in GiB.
91
+ */
92
+ readonly size: number;
93
+ /**
94
+ * A list of the tags associated to the Volume.
95
+ */
96
+ readonly tags: string[];
97
+ readonly urn: string;
98
+ }
package/getVolume.js ADDED
@@ -0,0 +1,64 @@
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
+ * Get information on a volume for use in other resources. This data source provides
9
+ * all of the volumes properties as configured on your DigitalOcean account. This is
10
+ * useful if the volume in question is not managed by the provider or you need to utilize
11
+ * any of the volumes data.
12
+ *
13
+ * An error is triggered if the provided volume name does not exist.
14
+ *
15
+ * ## Example Usage
16
+ *
17
+ * Get the volume:
18
+ *
19
+ * ```typescript
20
+ * import * as pulumi from "@pulumi/pulumi";
21
+ * import * as digitalocean from "@pulumi/digitalocean";
22
+ *
23
+ * const example = pulumi.output(digitalocean.getVolume({
24
+ * name: "app-data",
25
+ * region: "nyc3",
26
+ * }));
27
+ * ```
28
+ *
29
+ * Reuse the data about a volume to attach it to a Droplet:
30
+ *
31
+ * ```typescript
32
+ * import * as pulumi from "@pulumi/pulumi";
33
+ * import * as digitalocean from "@pulumi/digitalocean";
34
+ *
35
+ * const exampleVolume = digitalocean.getVolume({
36
+ * name: "app-data",
37
+ * region: "nyc3",
38
+ * });
39
+ * const exampleDroplet = new digitalocean.Droplet("exampleDroplet", {
40
+ * size: "s-1vcpu-1gb",
41
+ * image: "ubuntu-18-04-x64",
42
+ * region: "nyc3",
43
+ * });
44
+ * const foobar = new digitalocean.VolumeAttachment("foobar", {
45
+ * dropletId: exampleDroplet.id,
46
+ * volumeId: exampleVolume.then(exampleVolume => exampleVolume.id),
47
+ * });
48
+ * ```
49
+ */
50
+ function getVolume(args, opts) {
51
+ if (!opts) {
52
+ opts = {};
53
+ }
54
+ if (!opts.version) {
55
+ opts.version = utilities.getVersion();
56
+ }
57
+ return pulumi.runtime.invoke("digitalocean:index/getVolume:getVolume", {
58
+ "description": args.description,
59
+ "name": args.name,
60
+ "region": args.region,
61
+ }, opts);
62
+ }
63
+ exports.getVolume = getVolume;
64
+ //# sourceMappingURL=getVolume.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getVolume.js","sourceRoot":"","sources":["../getVolume.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;AAEjF,yCAAyC;AAEzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0CG;AACH,SAAgB,SAAS,CAAC,IAAmB,EAAE,IAA2B;IACtE,IAAI,CAAC,IAAI,EAAE;QACP,IAAI,GAAG,EAAE,CAAA;KACZ;IAED,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE;QACf,IAAI,CAAC,OAAO,GAAG,SAAS,CAAC,UAAU,EAAE,CAAC;KACzC;IACD,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,wCAAwC,EAAE;QACnE,aAAa,EAAE,IAAI,CAAC,WAAW;QAC/B,MAAM,EAAE,IAAI,CAAC,IAAI;QACjB,QAAQ,EAAE,IAAI,CAAC,MAAM;KACxB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAbD,8BAaC"}
@@ -0,0 +1,98 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ /**
3
+ * Volume snapshots are saved instances of a block storage volume. Use this data
4
+ * source to retrieve the ID of a DigitalOcean volume snapshot for use in other
5
+ * resources.
6
+ *
7
+ * ## Example Usage
8
+ *
9
+ * Get the volume snapshot:
10
+ *
11
+ * ```typescript
12
+ * import * as pulumi from "@pulumi/pulumi";
13
+ * import * as digitalocean from "@pulumi/digitalocean";
14
+ *
15
+ * const snapshot = pulumi.output(digitalocean.getVolumeSnapshot({
16
+ * mostRecent: true,
17
+ * nameRegex: "^web",
18
+ * region: "nyc3",
19
+ * }));
20
+ * ```
21
+ *
22
+ * Reuse the data about a volume snapshot to create a new volume based on it:
23
+ *
24
+ * ```typescript
25
+ * import * as pulumi from "@pulumi/pulumi";
26
+ * import * as digitalocean from "@pulumi/digitalocean";
27
+ *
28
+ * const snapshot = digitalocean.getVolumeSnapshot({
29
+ * nameRegex: "^web",
30
+ * region: "nyc3",
31
+ * mostRecent: true,
32
+ * });
33
+ * const foobar = new digitalocean.Volume("foobar", {
34
+ * region: "nyc3",
35
+ * size: 100,
36
+ * snapshotId: snapshot.then(snapshot => snapshot.id),
37
+ * });
38
+ * ```
39
+ */
40
+ export declare function getVolumeSnapshot(args?: GetVolumeSnapshotArgs, opts?: pulumi.InvokeOptions): Promise<GetVolumeSnapshotResult>;
41
+ /**
42
+ * A collection of arguments for invoking getVolumeSnapshot.
43
+ */
44
+ export interface GetVolumeSnapshotArgs {
45
+ /**
46
+ * If more than one result is returned, use the most recent volume snapshot.
47
+ */
48
+ mostRecent?: boolean;
49
+ /**
50
+ * The name of the volume snapshot.
51
+ */
52
+ name?: string;
53
+ /**
54
+ * A regex string to apply to the volume snapshot list returned by DigitalOcean. This allows more advanced filtering not supported from the DigitalOcean API. This filtering is done locally on what DigitalOcean returns.
55
+ */
56
+ nameRegex?: string;
57
+ /**
58
+ * A "slug" representing a DigitalOcean region (e.g. `nyc1`). If set, only volume snapshots available in the region will be returned.
59
+ */
60
+ region?: string;
61
+ }
62
+ /**
63
+ * A collection of values returned by getVolumeSnapshot.
64
+ */
65
+ export interface GetVolumeSnapshotResult {
66
+ /**
67
+ * The date and time the volume snapshot was created.
68
+ */
69
+ readonly createdAt: string;
70
+ /**
71
+ * The provider-assigned unique ID for this managed resource.
72
+ */
73
+ readonly id: string;
74
+ /**
75
+ * The minimum size in gigabytes required for a volume to be created based on this volume snapshot.
76
+ */
77
+ readonly minDiskSize: number;
78
+ readonly mostRecent?: boolean;
79
+ readonly name?: string;
80
+ readonly nameRegex?: string;
81
+ readonly region?: string;
82
+ /**
83
+ * A list of DigitalOcean region "slugs" indicating where the volume snapshot is available.
84
+ */
85
+ readonly regions: string[];
86
+ /**
87
+ * The billable size of the volume snapshot in gigabytes.
88
+ */
89
+ readonly size: number;
90
+ /**
91
+ * A list of the tags associated to the volume snapshot.
92
+ */
93
+ readonly tags: string[];
94
+ /**
95
+ * The ID of the volume from which the volume snapshot originated.
96
+ */
97
+ readonly volumeId: string;
98
+ }
@@ -0,0 +1,61 @@
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
+ * Volume snapshots are saved instances of a block storage volume. Use this data
9
+ * source to retrieve the ID of a DigitalOcean volume snapshot for use in other
10
+ * resources.
11
+ *
12
+ * ## Example Usage
13
+ *
14
+ * Get the volume snapshot:
15
+ *
16
+ * ```typescript
17
+ * import * as pulumi from "@pulumi/pulumi";
18
+ * import * as digitalocean from "@pulumi/digitalocean";
19
+ *
20
+ * const snapshot = pulumi.output(digitalocean.getVolumeSnapshot({
21
+ * mostRecent: true,
22
+ * nameRegex: "^web",
23
+ * region: "nyc3",
24
+ * }));
25
+ * ```
26
+ *
27
+ * Reuse the data about a volume snapshot to create a new volume based on it:
28
+ *
29
+ * ```typescript
30
+ * import * as pulumi from "@pulumi/pulumi";
31
+ * import * as digitalocean from "@pulumi/digitalocean";
32
+ *
33
+ * const snapshot = digitalocean.getVolumeSnapshot({
34
+ * nameRegex: "^web",
35
+ * region: "nyc3",
36
+ * mostRecent: true,
37
+ * });
38
+ * const foobar = new digitalocean.Volume("foobar", {
39
+ * region: "nyc3",
40
+ * size: 100,
41
+ * snapshotId: snapshot.then(snapshot => snapshot.id),
42
+ * });
43
+ * ```
44
+ */
45
+ function getVolumeSnapshot(args, opts) {
46
+ args = args || {};
47
+ if (!opts) {
48
+ opts = {};
49
+ }
50
+ if (!opts.version) {
51
+ opts.version = utilities.getVersion();
52
+ }
53
+ return pulumi.runtime.invoke("digitalocean:index/getVolumeSnapshot:getVolumeSnapshot", {
54
+ "mostRecent": args.mostRecent,
55
+ "name": args.name,
56
+ "nameRegex": args.nameRegex,
57
+ "region": args.region,
58
+ }, opts);
59
+ }
60
+ exports.getVolumeSnapshot = getVolumeSnapshot;
61
+ //# sourceMappingURL=getVolumeSnapshot.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getVolumeSnapshot.js","sourceRoot":"","sources":["../getVolumeSnapshot.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;AAEjF,yCAAyC;AAEzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqCG;AACH,SAAgB,iBAAiB,CAAC,IAA4B,EAAE,IAA2B;IACvF,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;IAClB,IAAI,CAAC,IAAI,EAAE;QACP,IAAI,GAAG,EAAE,CAAA;KACZ;IAED,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE;QACf,IAAI,CAAC,OAAO,GAAG,SAAS,CAAC,UAAU,EAAE,CAAC;KACzC;IACD,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,wDAAwD,EAAE;QACnF,YAAY,EAAE,IAAI,CAAC,UAAU;QAC7B,MAAM,EAAE,IAAI,CAAC,IAAI;QACjB,WAAW,EAAE,IAAI,CAAC,SAAS;QAC3B,QAAQ,EAAE,IAAI,CAAC,MAAM;KACxB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAfD,8CAeC"}
package/getVpc.d.ts ADDED
@@ -0,0 +1,95 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ /**
3
+ * Retrieve information about a VPC for use in other resources.
4
+ *
5
+ * This data source provides all of the VPC's properties as configured on your
6
+ * DigitalOcean account. This is useful if the VPC in question is not managed by
7
+ * the provider or you need to utilize any of the VPC's data.
8
+ *
9
+ * VPCs may be looked up by `id` or `name`. Specifying a `region` will
10
+ * return that that region's default VPC.
11
+ *
12
+ * ## Example Usage
13
+ * ### VPC By Name
14
+ *
15
+ * ```typescript
16
+ * import * as pulumi from "@pulumi/pulumi";
17
+ * import * as digitalocean from "@pulumi/digitalocean";
18
+ *
19
+ * const example = pulumi.output(digitalocean.getVpc({
20
+ * name: "example-network",
21
+ * }));
22
+ * ```
23
+ *
24
+ * Reuse the data about a VPC to assign a Droplet to it:
25
+ *
26
+ * ```typescript
27
+ * import * as pulumi from "@pulumi/pulumi";
28
+ * import * as digitalocean from "@pulumi/digitalocean";
29
+ *
30
+ * const exampleVpc = digitalocean.getVpc({
31
+ * name: "example-network",
32
+ * });
33
+ * const exampleDroplet = new digitalocean.Droplet("exampleDroplet", {
34
+ * size: "s-1vcpu-1gb",
35
+ * image: "ubuntu-18-04-x64",
36
+ * region: "nyc3",
37
+ * vpcUuid: exampleVpc.then(exampleVpc => exampleVpc.id),
38
+ * });
39
+ * ```
40
+ */
41
+ export declare function getVpc(args?: GetVpcArgs, opts?: pulumi.InvokeOptions): Promise<GetVpcResult>;
42
+ /**
43
+ * A collection of arguments for invoking getVpc.
44
+ */
45
+ export interface GetVpcArgs {
46
+ /**
47
+ * The unique identifier of an existing VPC.
48
+ */
49
+ id?: string;
50
+ /**
51
+ * The name of an existing VPC.
52
+ */
53
+ name?: string;
54
+ /**
55
+ * The DigitalOcean region slug for the VPC's location.
56
+ */
57
+ region?: string;
58
+ }
59
+ /**
60
+ * A collection of values returned by getVpc.
61
+ */
62
+ export interface GetVpcResult {
63
+ /**
64
+ * The date and time of when the VPC was created.
65
+ */
66
+ readonly createdAt: string;
67
+ /**
68
+ * A boolean indicating whether or not the VPC is the default one for the region.
69
+ */
70
+ readonly default: boolean;
71
+ /**
72
+ * A free-form text field describing the VPC.
73
+ */
74
+ readonly description: string;
75
+ /**
76
+ * The unique identifier for the VPC.
77
+ */
78
+ readonly id: string;
79
+ /**
80
+ * The range of IP addresses for the VPC in CIDR notation.
81
+ */
82
+ readonly ipRange: string;
83
+ /**
84
+ * The name of the VPC.
85
+ */
86
+ readonly name: string;
87
+ /**
88
+ * The DigitalOcean region slug for the VPC's location.
89
+ */
90
+ readonly region: string;
91
+ /**
92
+ * The uniform resource name (URN) for the VPC.
93
+ */
94
+ readonly urn: string;
95
+ }