@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,85 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ /**
3
+ * Provides a resource for assigning an existing DigitalOcean Floating IP to a Droplet. This
4
+ * makes it easy to provision floating IP addresses that are not tied to the lifecycle of your
5
+ * Droplet.
6
+ *
7
+ * ## Example Usage
8
+ *
9
+ * ```typescript
10
+ * import * as pulumi from "@pulumi/pulumi";
11
+ * import * as digitalocean from "@pulumi/digitalocean";
12
+ *
13
+ * const foobarFloatingIp = new digitalocean.FloatingIp("foobarFloatingIp", {region: "sgp1"});
14
+ * const foobarDroplet = new digitalocean.Droplet("foobarDroplet", {
15
+ * size: "s-1vcpu-1gb",
16
+ * image: "ubuntu-18-04-x64",
17
+ * region: "sgp1",
18
+ * ipv6: true,
19
+ * privateNetworking: true,
20
+ * });
21
+ * const foobarFloatingIpAssignment = new digitalocean.FloatingIpAssignment("foobarFloatingIpAssignment", {
22
+ * ipAddress: foobarFloatingIp.ipAddress,
23
+ * dropletId: foobarDroplet.id,
24
+ * });
25
+ * ```
26
+ */
27
+ export declare class FloatingIpAssignment extends pulumi.CustomResource {
28
+ /**
29
+ * Get an existing FloatingIpAssignment resource's state with the given name, ID, and optional extra
30
+ * properties used to qualify the lookup.
31
+ *
32
+ * @param name The _unique_ name of the resulting resource.
33
+ * @param id The _unique_ provider ID of the resource to lookup.
34
+ * @param state Any extra arguments used during the lookup.
35
+ * @param opts Optional settings to control the behavior of the CustomResource.
36
+ */
37
+ static get(name: string, id: pulumi.Input<pulumi.ID>, state?: FloatingIpAssignmentState, opts?: pulumi.CustomResourceOptions): FloatingIpAssignment;
38
+ /**
39
+ * Returns true if the given object is an instance of FloatingIpAssignment. This is designed to work even
40
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
41
+ */
42
+ static isInstance(obj: any): obj is FloatingIpAssignment;
43
+ /**
44
+ * The ID of Droplet that the Floating IP will be assigned to.
45
+ */
46
+ readonly dropletId: pulumi.Output<number>;
47
+ /**
48
+ * The Floating IP to assign to the Droplet.
49
+ */
50
+ readonly ipAddress: pulumi.Output<string>;
51
+ /**
52
+ * Create a FloatingIpAssignment resource with the given unique name, arguments, and options.
53
+ *
54
+ * @param name The _unique_ name of the resource.
55
+ * @param args The arguments to use to populate this resource's properties.
56
+ * @param opts A bag of options that control this resource's behavior.
57
+ */
58
+ constructor(name: string, args: FloatingIpAssignmentArgs, opts?: pulumi.CustomResourceOptions);
59
+ }
60
+ /**
61
+ * Input properties used for looking up and filtering FloatingIpAssignment resources.
62
+ */
63
+ export interface FloatingIpAssignmentState {
64
+ /**
65
+ * The ID of Droplet that the Floating IP will be assigned to.
66
+ */
67
+ dropletId?: pulumi.Input<number>;
68
+ /**
69
+ * The Floating IP to assign to the Droplet.
70
+ */
71
+ ipAddress?: pulumi.Input<string>;
72
+ }
73
+ /**
74
+ * The set of arguments for constructing a FloatingIpAssignment resource.
75
+ */
76
+ export interface FloatingIpAssignmentArgs {
77
+ /**
78
+ * The ID of Droplet that the Floating IP will be assigned to.
79
+ */
80
+ dropletId: pulumi.Input<number>;
81
+ /**
82
+ * The Floating IP to assign to the Droplet.
83
+ */
84
+ ipAddress: pulumi.Input<string>;
85
+ }
@@ -0,0 +1,83 @@
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 resource for assigning an existing DigitalOcean Floating IP to a Droplet. This
9
+ * makes it easy to provision floating IP addresses that are not tied to the lifecycle of your
10
+ * Droplet.
11
+ *
12
+ * ## Example Usage
13
+ *
14
+ * ```typescript
15
+ * import * as pulumi from "@pulumi/pulumi";
16
+ * import * as digitalocean from "@pulumi/digitalocean";
17
+ *
18
+ * const foobarFloatingIp = new digitalocean.FloatingIp("foobarFloatingIp", {region: "sgp1"});
19
+ * const foobarDroplet = new digitalocean.Droplet("foobarDroplet", {
20
+ * size: "s-1vcpu-1gb",
21
+ * image: "ubuntu-18-04-x64",
22
+ * region: "sgp1",
23
+ * ipv6: true,
24
+ * privateNetworking: true,
25
+ * });
26
+ * const foobarFloatingIpAssignment = new digitalocean.FloatingIpAssignment("foobarFloatingIpAssignment", {
27
+ * ipAddress: foobarFloatingIp.ipAddress,
28
+ * dropletId: foobarDroplet.id,
29
+ * });
30
+ * ```
31
+ */
32
+ class FloatingIpAssignment extends pulumi.CustomResource {
33
+ constructor(name, argsOrState, opts) {
34
+ let inputs = {};
35
+ opts = opts || {};
36
+ if (opts.id) {
37
+ const state = argsOrState;
38
+ inputs["dropletId"] = state ? state.dropletId : undefined;
39
+ inputs["ipAddress"] = state ? state.ipAddress : undefined;
40
+ }
41
+ else {
42
+ const args = argsOrState;
43
+ if ((!args || args.dropletId === undefined) && !opts.urn) {
44
+ throw new Error("Missing required property 'dropletId'");
45
+ }
46
+ if ((!args || args.ipAddress === undefined) && !opts.urn) {
47
+ throw new Error("Missing required property 'ipAddress'");
48
+ }
49
+ inputs["dropletId"] = args ? args.dropletId : undefined;
50
+ inputs["ipAddress"] = args ? args.ipAddress : undefined;
51
+ }
52
+ if (!opts.version) {
53
+ opts = pulumi.mergeOptions(opts, { version: utilities.getVersion() });
54
+ }
55
+ super(FloatingIpAssignment.__pulumiType, name, inputs, opts);
56
+ }
57
+ /**
58
+ * Get an existing FloatingIpAssignment resource's state with the given name, ID, and optional extra
59
+ * properties used to qualify the lookup.
60
+ *
61
+ * @param name The _unique_ name of the resulting resource.
62
+ * @param id The _unique_ provider ID of the resource to lookup.
63
+ * @param state Any extra arguments used during the lookup.
64
+ * @param opts Optional settings to control the behavior of the CustomResource.
65
+ */
66
+ static get(name, id, state, opts) {
67
+ return new FloatingIpAssignment(name, state, Object.assign(Object.assign({}, opts), { id: id }));
68
+ }
69
+ /**
70
+ * Returns true if the given object is an instance of FloatingIpAssignment. This is designed to work even
71
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
72
+ */
73
+ static isInstance(obj) {
74
+ if (obj === undefined || obj === null) {
75
+ return false;
76
+ }
77
+ return obj['__pulumiType'] === FloatingIpAssignment.__pulumiType;
78
+ }
79
+ }
80
+ exports.FloatingIpAssignment = FloatingIpAssignment;
81
+ /** @internal */
82
+ FloatingIpAssignment.__pulumiType = 'digitalocean:index/floatingIpAssignment:FloatingIpAssignment';
83
+ //# sourceMappingURL=floatingIpAssignment.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"floatingIpAssignment.js","sourceRoot":"","sources":["../floatingIpAssignment.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,MAAa,oBAAqB,SAAQ,MAAM,CAAC,cAAc;IA6C3D,YAAY,IAAY,EAAE,WAAkE,EAAE,IAAmC;QAC7H,IAAI,MAAM,GAAkB,EAAE,CAAC;QAC/B,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAAoD,CAAC;YACnE,MAAM,CAAC,WAAW,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC;YAC1D,MAAM,CAAC,WAAW,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC;SAC7D;aAAM;YACH,MAAM,IAAI,GAAG,WAAmD,CAAC;YACjE,IAAI,CAAC,CAAC,IAAI,IAAI,IAAI,CAAC,SAAS,KAAK,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBACtD,MAAM,IAAI,KAAK,CAAC,uCAAuC,CAAC,CAAC;aAC5D;YACD,IAAI,CAAC,CAAC,IAAI,IAAI,IAAI,CAAC,SAAS,KAAK,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBACtD,MAAM,IAAI,KAAK,CAAC,uCAAuC,CAAC,CAAC;aAC5D;YACD,MAAM,CAAC,WAAW,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC;YACxD,MAAM,CAAC,WAAW,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC;SAC3D;QACD,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE;YACf,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,IAAI,EAAE,EAAE,OAAO,EAAE,SAAS,CAAC,UAAU,EAAE,EAAC,CAAC,CAAC;SACxE;QACD,KAAK,CAAC,oBAAoB,CAAC,YAAY,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,CAAC,CAAC;IACjE,CAAC;IAlED;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAiC,EAAE,IAAmC;QAC/H,OAAO,IAAI,oBAAoB,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IAC3E,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,oBAAoB,CAAC,YAAY,CAAC;IACrE,CAAC;;AA1BL,oDAoEC;AAtDG,gBAAgB;AACO,iCAAY,GAAG,8DAA8D,CAAC"}
@@ -0,0 +1,32 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ /**
3
+ * Get information on your DigitalOcean account.
4
+ *
5
+ * ## Example Usage
6
+ *
7
+ * Get the account:
8
+ *
9
+ * ```typescript
10
+ * import * as pulumi from "@pulumi/pulumi";
11
+ * import * as digitalocean from "@pulumi/digitalocean";
12
+ *
13
+ * const example = pulumi.output(digitalocean.getAccount());
14
+ * ```
15
+ */
16
+ export declare function getAccount(opts?: pulumi.InvokeOptions): Promise<GetAccountResult>;
17
+ /**
18
+ * A collection of values returned by getAccount.
19
+ */
20
+ export interface GetAccountResult {
21
+ readonly dropletLimit: number;
22
+ readonly email: string;
23
+ readonly emailVerified: boolean;
24
+ readonly floatingIpLimit: number;
25
+ /**
26
+ * The provider-assigned unique ID for this managed resource.
27
+ */
28
+ readonly id: string;
29
+ readonly status: string;
30
+ readonly statusMessage: string;
31
+ readonly uuid: string;
32
+ }
package/getAccount.js ADDED
@@ -0,0 +1,31 @@
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 your DigitalOcean account.
9
+ *
10
+ * ## Example Usage
11
+ *
12
+ * Get the account:
13
+ *
14
+ * ```typescript
15
+ * import * as pulumi from "@pulumi/pulumi";
16
+ * import * as digitalocean from "@pulumi/digitalocean";
17
+ *
18
+ * const example = pulumi.output(digitalocean.getAccount());
19
+ * ```
20
+ */
21
+ function getAccount(opts) {
22
+ if (!opts) {
23
+ opts = {};
24
+ }
25
+ if (!opts.version) {
26
+ opts.version = utilities.getVersion();
27
+ }
28
+ return pulumi.runtime.invoke("digitalocean:index/getAccount:getAccount", {}, opts);
29
+ }
30
+ exports.getAccount = getAccount;
31
+ //# sourceMappingURL=getAccount.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getAccount.js","sourceRoot":"","sources":["../getAccount.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;AAEjF,yCAAyC;AAEzC,yCAAyC;AAEzC;;;;;;;;;;;;;GAaG;AACH,SAAgB,UAAU,CAAC,IAA2B;IAClD,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,0CAA0C,EAAE,EACxE,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAVD,gCAUC"}
package/getApp.d.ts ADDED
@@ -0,0 +1,63 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ import { output as outputs } from "./types";
3
+ /**
4
+ * Get information on a DigitalOcean App.
5
+ *
6
+ * ## Example Usage
7
+ *
8
+ * Get the account:
9
+ *
10
+ * ```typescript
11
+ * import * as pulumi from "@pulumi/pulumi";
12
+ * import * as digitalocean from "@pulumi/digitalocean";
13
+ *
14
+ * const example = digitalocean.getApp({
15
+ * appId: "e665d18d-7b56-44a9-92ce-31979174d544",
16
+ * });
17
+ * export const defaultIngress = example.then(example => example.defaultIngress);
18
+ * ```
19
+ */
20
+ export declare function getApp(args: GetAppArgs, opts?: pulumi.InvokeOptions): Promise<GetAppResult>;
21
+ /**
22
+ * A collection of arguments for invoking getApp.
23
+ */
24
+ export interface GetAppArgs {
25
+ /**
26
+ * The ID of the app to retrieve information about.
27
+ */
28
+ appId: string;
29
+ }
30
+ /**
31
+ * A collection of values returned by getApp.
32
+ */
33
+ export interface GetAppResult {
34
+ /**
35
+ * The ID the app's currently active deployment.
36
+ */
37
+ readonly activeDeploymentId: string;
38
+ readonly appId: string;
39
+ /**
40
+ * The date and time of when the app was created.
41
+ */
42
+ readonly createdAt: string;
43
+ /**
44
+ * The default URL to access the app.
45
+ */
46
+ readonly defaultIngress: string;
47
+ /**
48
+ * The provider-assigned unique ID for this managed resource.
49
+ */
50
+ readonly id: string;
51
+ /**
52
+ * The live URL of the app.
53
+ */
54
+ readonly liveUrl: string;
55
+ /**
56
+ * A DigitalOcean App spec describing the app.
57
+ */
58
+ readonly specs: outputs.GetAppSpec[];
59
+ /**
60
+ * The date and time of when the app was last updated.
61
+ */
62
+ readonly updatedAt: string;
63
+ }
package/getApp.js ADDED
@@ -0,0 +1,36 @@
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 DigitalOcean App.
9
+ *
10
+ * ## Example Usage
11
+ *
12
+ * Get the account:
13
+ *
14
+ * ```typescript
15
+ * import * as pulumi from "@pulumi/pulumi";
16
+ * import * as digitalocean from "@pulumi/digitalocean";
17
+ *
18
+ * const example = digitalocean.getApp({
19
+ * appId: "e665d18d-7b56-44a9-92ce-31979174d544",
20
+ * });
21
+ * export const defaultIngress = example.then(example => example.defaultIngress);
22
+ * ```
23
+ */
24
+ function getApp(args, opts) {
25
+ if (!opts) {
26
+ opts = {};
27
+ }
28
+ if (!opts.version) {
29
+ opts.version = utilities.getVersion();
30
+ }
31
+ return pulumi.runtime.invoke("digitalocean:index/getApp:getApp", {
32
+ "appId": args.appId,
33
+ }, opts);
34
+ }
35
+ exports.getApp = getApp;
36
+ //# sourceMappingURL=getApp.js.map
package/getApp.js.map ADDED
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getApp.js","sourceRoot":"","sources":["../getApp.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;AAEjF,yCAAyC;AAEzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;GAgBG;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,OAAO,EAAE,IAAI,CAAC,KAAK;KACtB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAXD,wBAWC"}
@@ -0,0 +1,48 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ /**
3
+ * Get information on a certificate. This data source provides the name, type, state,
4
+ * domains, expiry date, and the sha1 fingerprint as configured on your DigitalOcean account.
5
+ * This is useful if the certificate in question is not managed by this provider or you need to utilize
6
+ * any of the certificates data.
7
+ *
8
+ * An error is triggered if the provided certificate name does not exist.
9
+ *
10
+ * ## Example Usage
11
+ *
12
+ * Get the certificate:
13
+ *
14
+ * ```typescript
15
+ * import * as pulumi from "@pulumi/pulumi";
16
+ * import * as digitalocean from "@pulumi/digitalocean";
17
+ *
18
+ * const example = pulumi.output(digitalocean.getCertificate({
19
+ * name: "example",
20
+ * }));
21
+ * ```
22
+ */
23
+ export declare function getCertificate(args: GetCertificateArgs, opts?: pulumi.InvokeOptions): Promise<GetCertificateResult>;
24
+ /**
25
+ * A collection of arguments for invoking getCertificate.
26
+ */
27
+ export interface GetCertificateArgs {
28
+ /**
29
+ * The name of certificate.
30
+ */
31
+ name: string;
32
+ }
33
+ /**
34
+ * A collection of values returned by getCertificate.
35
+ */
36
+ export interface GetCertificateResult {
37
+ readonly domains: string[];
38
+ /**
39
+ * The provider-assigned unique ID for this managed resource.
40
+ */
41
+ readonly id: string;
42
+ readonly name: string;
43
+ readonly notAfter: string;
44
+ readonly sha1Fingerprint: string;
45
+ readonly state: string;
46
+ readonly type: string;
47
+ readonly uuid: string;
48
+ }
@@ -0,0 +1,40 @@
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 certificate. This data source provides the name, type, state,
9
+ * domains, expiry date, and the sha1 fingerprint as configured on your DigitalOcean account.
10
+ * This is useful if the certificate in question is not managed by this provider or you need to utilize
11
+ * any of the certificates data.
12
+ *
13
+ * An error is triggered if the provided certificate name does not exist.
14
+ *
15
+ * ## Example Usage
16
+ *
17
+ * Get the certificate:
18
+ *
19
+ * ```typescript
20
+ * import * as pulumi from "@pulumi/pulumi";
21
+ * import * as digitalocean from "@pulumi/digitalocean";
22
+ *
23
+ * const example = pulumi.output(digitalocean.getCertificate({
24
+ * name: "example",
25
+ * }));
26
+ * ```
27
+ */
28
+ function getCertificate(args, opts) {
29
+ if (!opts) {
30
+ opts = {};
31
+ }
32
+ if (!opts.version) {
33
+ opts.version = utilities.getVersion();
34
+ }
35
+ return pulumi.runtime.invoke("digitalocean:index/getCertificate:getCertificate", {
36
+ "name": args.name,
37
+ }, opts);
38
+ }
39
+ exports.getCertificate = getCertificate;
40
+ //# sourceMappingURL=getCertificate.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getCertificate.js","sourceRoot":"","sources":["../getCertificate.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;AAEjF,yCAAyC;AAEzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,SAAgB,cAAc,CAAC,IAAwB,EAAE,IAA2B;IAChF,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,kDAAkD,EAAE;QAC7E,MAAM,EAAE,IAAI,CAAC,IAAI;KACpB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAXD,wCAWC"}
@@ -0,0 +1,54 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ /**
3
+ * Get information on a container registry. This data source provides the name as
4
+ * configured on your DigitalOcean account. This is useful if the container
5
+ * registry name in question is not managed by this provider or you need validate if
6
+ * the container registry exists in the account.
7
+ *
8
+ * An error is triggered if the provided container registry name does not exist.
9
+ *
10
+ * ## Example Usage
11
+ * ### Basic Example
12
+ *
13
+ * Get the container registry:
14
+ *
15
+ * ```typescript
16
+ * import * as pulumi from "@pulumi/pulumi";
17
+ * import * as digitalocean from "@pulumi/digitalocean";
18
+ *
19
+ * const example = pulumi.output(digitalocean.getContainerRegistry({
20
+ * name: "example",
21
+ * }));
22
+ * ```
23
+ */
24
+ export declare function getContainerRegistry(args: GetContainerRegistryArgs, opts?: pulumi.InvokeOptions): Promise<GetContainerRegistryResult>;
25
+ /**
26
+ * A collection of arguments for invoking getContainerRegistry.
27
+ */
28
+ export interface GetContainerRegistryArgs {
29
+ /**
30
+ * The name of the container registry.
31
+ */
32
+ name: string;
33
+ }
34
+ /**
35
+ * A collection of values returned by getContainerRegistry.
36
+ */
37
+ export interface GetContainerRegistryResult {
38
+ readonly endpoint: string;
39
+ /**
40
+ * The provider-assigned unique ID for this managed resource.
41
+ */
42
+ readonly id: string;
43
+ /**
44
+ * The name of the container registry
45
+ */
46
+ readonly name: string;
47
+ readonly serverUrl: string;
48
+ /**
49
+ * The slug identifier for the subscription tier
50
+ * * `endpoint`: The URL endpoint of the container registry. Ex: `registry.digitalocean.com/my_registry`
51
+ * * `serverUrl`: The domain of the container registry. Ex: `registry.digitalocean.com`
52
+ */
53
+ readonly subscriptionTierSlug: string;
54
+ }
@@ -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
+ * Get information on a container registry. This data source provides the name as
9
+ * configured on your DigitalOcean account. This is useful if the container
10
+ * registry name in question is not managed by this provider or you need validate if
11
+ * the container registry exists in the account.
12
+ *
13
+ * An error is triggered if the provided container registry name does not exist.
14
+ *
15
+ * ## Example Usage
16
+ * ### Basic Example
17
+ *
18
+ * Get the container registry:
19
+ *
20
+ * ```typescript
21
+ * import * as pulumi from "@pulumi/pulumi";
22
+ * import * as digitalocean from "@pulumi/digitalocean";
23
+ *
24
+ * const example = pulumi.output(digitalocean.getContainerRegistry({
25
+ * name: "example",
26
+ * }));
27
+ * ```
28
+ */
29
+ function getContainerRegistry(args, opts) {
30
+ if (!opts) {
31
+ opts = {};
32
+ }
33
+ if (!opts.version) {
34
+ opts.version = utilities.getVersion();
35
+ }
36
+ return pulumi.runtime.invoke("digitalocean:index/getContainerRegistry:getContainerRegistry", {
37
+ "name": args.name,
38
+ }, opts);
39
+ }
40
+ exports.getContainerRegistry = getContainerRegistry;
41
+ //# sourceMappingURL=getContainerRegistry.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getContainerRegistry.js","sourceRoot":"","sources":["../getContainerRegistry.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;AAEjF,yCAAyC;AAEzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,SAAgB,oBAAoB,CAAC,IAA8B,EAAE,IAA2B;IAC5F,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,8DAA8D,EAAE;QACzF,MAAM,EAAE,IAAI,CAAC,IAAI;KACpB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAXD,oDAWC"}
@@ -0,0 +1,103 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ import { output as outputs } from "./types";
3
+ /**
4
+ * Provides information on a DigitalOcean database cluster resource.
5
+ *
6
+ * ## Example Usage
7
+ *
8
+ * ```typescript
9
+ * import * as pulumi from "@pulumi/pulumi";
10
+ * import * as digitalocean from "@pulumi/digitalocean";
11
+ *
12
+ * const example = digitalocean.getDatabaseCluster({
13
+ * name: "example-cluster",
14
+ * });
15
+ * export const databaseOutput = example.then(example => example.uri);
16
+ * ```
17
+ */
18
+ export declare function getDatabaseCluster(args: GetDatabaseClusterArgs, opts?: pulumi.InvokeOptions): Promise<GetDatabaseClusterResult>;
19
+ /**
20
+ * A collection of arguments for invoking getDatabaseCluster.
21
+ */
22
+ export interface GetDatabaseClusterArgs {
23
+ /**
24
+ * The name of the database cluster.
25
+ */
26
+ name: string;
27
+ tags?: string[];
28
+ }
29
+ /**
30
+ * A collection of values returned by getDatabaseCluster.
31
+ */
32
+ export interface GetDatabaseClusterResult {
33
+ /**
34
+ * Name of the cluster's default database.
35
+ */
36
+ readonly database: string;
37
+ /**
38
+ * Database engine used by the cluster (ex. `pg` for PostreSQL).
39
+ */
40
+ readonly engine: string;
41
+ /**
42
+ * Database cluster's hostname.
43
+ */
44
+ readonly host: string;
45
+ /**
46
+ * The provider-assigned unique ID for this managed resource.
47
+ */
48
+ readonly id: string;
49
+ /**
50
+ * Defines when the automatic maintenance should be performed for the database cluster.
51
+ */
52
+ readonly maintenanceWindows: outputs.GetDatabaseClusterMaintenanceWindow[];
53
+ readonly name: string;
54
+ /**
55
+ * Number of nodes that will be included in the cluster.
56
+ */
57
+ readonly nodeCount: number;
58
+ /**
59
+ * Password for the cluster's default user.
60
+ */
61
+ readonly password: string;
62
+ /**
63
+ * Network port that the database cluster is listening on.
64
+ */
65
+ readonly port: number;
66
+ /**
67
+ * Same as `host`, but only accessible from resources within the account and in the same region.
68
+ */
69
+ readonly privateHost: string;
70
+ /**
71
+ * The ID of the VPC where the database cluster is located.
72
+ */
73
+ readonly privateNetworkUuid: string;
74
+ /**
75
+ * Same as `uri`, but only accessible from resources within the account and in the same region.
76
+ */
77
+ readonly privateUri: string;
78
+ /**
79
+ * DigitalOcean region where the cluster will reside.
80
+ */
81
+ readonly region: string;
82
+ /**
83
+ * Database droplet size associated with the cluster (ex. `db-s-1vcpu-1gb`).
84
+ */
85
+ readonly size: string;
86
+ readonly tags?: string[];
87
+ /**
88
+ * The full URI for connecting to the database cluster.
89
+ */
90
+ readonly uri: string;
91
+ /**
92
+ * The uniform resource name of the database cluster.
93
+ */
94
+ readonly urn: string;
95
+ /**
96
+ * Username for the cluster's default user.
97
+ */
98
+ readonly user: string;
99
+ /**
100
+ * Engine version used by the cluster (ex. `11` for PostgreSQL 11).
101
+ */
102
+ readonly version: string;
103
+ }
@@ -0,0 +1,35 @@
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 information on a DigitalOcean database cluster resource.
9
+ *
10
+ * ## Example Usage
11
+ *
12
+ * ```typescript
13
+ * import * as pulumi from "@pulumi/pulumi";
14
+ * import * as digitalocean from "@pulumi/digitalocean";
15
+ *
16
+ * const example = digitalocean.getDatabaseCluster({
17
+ * name: "example-cluster",
18
+ * });
19
+ * export const databaseOutput = example.then(example => example.uri);
20
+ * ```
21
+ */
22
+ function getDatabaseCluster(args, opts) {
23
+ if (!opts) {
24
+ opts = {};
25
+ }
26
+ if (!opts.version) {
27
+ opts.version = utilities.getVersion();
28
+ }
29
+ return pulumi.runtime.invoke("digitalocean:index/getDatabaseCluster:getDatabaseCluster", {
30
+ "name": args.name,
31
+ "tags": args.tags,
32
+ }, opts);
33
+ }
34
+ exports.getDatabaseCluster = getDatabaseCluster;
35
+ //# sourceMappingURL=getDatabaseCluster.js.map