@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,125 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ /**
3
+ * The Spaces object data source allows access to the metadata and
4
+ * _optionally_ (see below) content of an object stored inside a Spaces bucket.
5
+ *
6
+ * > **Note:** The content of an object (`body` field) is available only for objects which have a human-readable
7
+ * `Content-Type` (`text/*` and `application/json`). This is to prevent printing unsafe characters and potentially
8
+ * downloading large amount of data which would be thrown away in favor of metadata.
9
+ *
10
+ * ## Example Usage
11
+ *
12
+ * The following example retrieves a text object (which must have a `Content-Type`
13
+ * value starting with `text/`) and uses it as the `userData` for a Droplet:
14
+ *
15
+ * ```typescript
16
+ * import * as pulumi from "@pulumi/pulumi";
17
+ * import * as digitalocean from "@pulumi/digitalocean";
18
+ *
19
+ * const bootstrapScript = digitalocean.getSpacesBucketObject({
20
+ * bucket: "ourcorp-deploy-config",
21
+ * region: "nyc3",
22
+ * key: "droplet-bootstrap-script.sh",
23
+ * });
24
+ * const web = new digitalocean.Droplet("web", {
25
+ * image: "ubuntu-18-04-x64",
26
+ * region: "nyc2",
27
+ * size: "s-1vcpu-1gb",
28
+ * userData: bootstrapScript.then(bootstrapScript => bootstrapScript.body),
29
+ * });
30
+ * ```
31
+ */
32
+ export declare function getSpacesBucketObject(args: GetSpacesBucketObjectArgs, opts?: pulumi.InvokeOptions): Promise<GetSpacesBucketObjectResult>;
33
+ /**
34
+ * A collection of arguments for invoking getSpacesBucketObject.
35
+ */
36
+ export interface GetSpacesBucketObjectArgs {
37
+ /**
38
+ * The name of the bucket to read the object from.
39
+ */
40
+ bucket: string;
41
+ /**
42
+ * The full path to the object inside the bucket
43
+ */
44
+ key: string;
45
+ range?: string;
46
+ /**
47
+ * The slug of the region where the bucket is stored.
48
+ */
49
+ region: string;
50
+ /**
51
+ * Specific version ID of the object returned (defaults to latest version)
52
+ */
53
+ versionId?: string;
54
+ }
55
+ /**
56
+ * A collection of values returned by getSpacesBucketObject.
57
+ */
58
+ export interface GetSpacesBucketObjectResult {
59
+ /**
60
+ * Object data (see **limitations above** to understand cases in which this field is actually available)
61
+ */
62
+ readonly body: string;
63
+ readonly bucket: string;
64
+ /**
65
+ * Specifies caching behavior along the request/reply chain.
66
+ */
67
+ readonly cacheControl: string;
68
+ /**
69
+ * Specifies presentational information for the object.
70
+ */
71
+ readonly contentDisposition: string;
72
+ /**
73
+ * Specifies what content encodings have been applied to the object and thus what decoding mechanisms must be applied to obtain the media-type referenced by the Content-Type header field.
74
+ */
75
+ readonly contentEncoding: string;
76
+ /**
77
+ * The language the content is in.
78
+ */
79
+ readonly contentLanguage: string;
80
+ /**
81
+ * Size of the body in bytes.
82
+ */
83
+ readonly contentLength: number;
84
+ /**
85
+ * A standard MIME type describing the format of the object data.
86
+ */
87
+ readonly contentType: string;
88
+ /**
89
+ * [ETag](https://en.wikipedia.org/wiki/HTTP_ETag) generated for the object (an MD5 sum of the object content in case it's not encrypted)
90
+ */
91
+ readonly etag: string;
92
+ /**
93
+ * If the object expiration is configured (see [object lifecycle management](http://docs.aws.amazon.com/AmazonS3/latest/dev/object-lifecycle-mgmt.html)), the field includes this header. It includes the expiry-date and rule-id key value pairs providing object expiration information. The value of the rule-id is URL encoded.
94
+ */
95
+ readonly expiration: string;
96
+ /**
97
+ * The date and time at which the object is no longer cacheable.
98
+ */
99
+ readonly expires: string;
100
+ /**
101
+ * The provider-assigned unique ID for this managed resource.
102
+ */
103
+ readonly id: string;
104
+ readonly key: string;
105
+ /**
106
+ * Last modified date of the object in RFC1123 format (e.g. `Mon, 02 Jan 2006 15:04:05 MST`)
107
+ */
108
+ readonly lastModified: string;
109
+ /**
110
+ * A map of metadata stored with the object in Spaces
111
+ */
112
+ readonly metadata: {
113
+ [key: string]: any;
114
+ };
115
+ readonly range?: string;
116
+ readonly region: string;
117
+ /**
118
+ * The latest version ID of the object returned.
119
+ */
120
+ readonly versionId: string;
121
+ /**
122
+ * If the bucket is configured as a website, redirects requests for this object to another object in the same bucket or to an external URL. Spaces stores the value of this header in the object metadata.
123
+ */
124
+ readonly websiteRedirectLocation: string;
125
+ }
@@ -0,0 +1,53 @@
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
+ * The Spaces object data source allows access to the metadata and
9
+ * _optionally_ (see below) content of an object stored inside a Spaces bucket.
10
+ *
11
+ * > **Note:** The content of an object (`body` field) is available only for objects which have a human-readable
12
+ * `Content-Type` (`text/*` and `application/json`). This is to prevent printing unsafe characters and potentially
13
+ * downloading large amount of data which would be thrown away in favor of metadata.
14
+ *
15
+ * ## Example Usage
16
+ *
17
+ * The following example retrieves a text object (which must have a `Content-Type`
18
+ * value starting with `text/`) and uses it as the `userData` for a Droplet:
19
+ *
20
+ * ```typescript
21
+ * import * as pulumi from "@pulumi/pulumi";
22
+ * import * as digitalocean from "@pulumi/digitalocean";
23
+ *
24
+ * const bootstrapScript = digitalocean.getSpacesBucketObject({
25
+ * bucket: "ourcorp-deploy-config",
26
+ * region: "nyc3",
27
+ * key: "droplet-bootstrap-script.sh",
28
+ * });
29
+ * const web = new digitalocean.Droplet("web", {
30
+ * image: "ubuntu-18-04-x64",
31
+ * region: "nyc2",
32
+ * size: "s-1vcpu-1gb",
33
+ * userData: bootstrapScript.then(bootstrapScript => bootstrapScript.body),
34
+ * });
35
+ * ```
36
+ */
37
+ function getSpacesBucketObject(args, opts) {
38
+ if (!opts) {
39
+ opts = {};
40
+ }
41
+ if (!opts.version) {
42
+ opts.version = utilities.getVersion();
43
+ }
44
+ return pulumi.runtime.invoke("digitalocean:index/getSpacesBucketObject:getSpacesBucketObject", {
45
+ "bucket": args.bucket,
46
+ "key": args.key,
47
+ "range": args.range,
48
+ "region": args.region,
49
+ "versionId": args.versionId,
50
+ }, opts);
51
+ }
52
+ exports.getSpacesBucketObject = getSpacesBucketObject;
53
+ //# sourceMappingURL=getSpacesBucketObject.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getSpacesBucketObject.js","sourceRoot":"","sources":["../getSpacesBucketObject.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;AAEjF,yCAAyC;AAEzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,SAAgB,qBAAqB,CAAC,IAA+B,EAAE,IAA2B;IAC9F,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,gEAAgE,EAAE;QAC3F,QAAQ,EAAE,IAAI,CAAC,MAAM;QACrB,KAAK,EAAE,IAAI,CAAC,GAAG;QACf,OAAO,EAAE,IAAI,CAAC,KAAK;QACnB,QAAQ,EAAE,IAAI,CAAC,MAAM;QACrB,WAAW,EAAE,IAAI,CAAC,SAAS;KAC9B,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAfD,sDAeC"}
@@ -0,0 +1,83 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ /**
3
+ * > **NOTE on `maxKeys`:** Retrieving very large numbers of keys can adversely affect the provider's performance.
4
+ *
5
+ * The bucket-objects data source returns keys (i.e., file names) and other metadata about objects in a Spaces bucket.
6
+ *
7
+ * ## Example Usage
8
+ *
9
+ * The following example retrieves a list of all object keys in a Spaces bucket and creates corresponding object
10
+ * data sources:
11
+ *
12
+ * ```typescript
13
+ * import * as pulumi from "@pulumi/pulumi";
14
+ * import * as digitalocean from "@pulumi/digitalocean";
15
+ *
16
+ * const myObjects = digitalocean.getSpacesBucketObjects({
17
+ * bucket: "ourcorp",
18
+ * region: "nyc3",
19
+ * });
20
+ * const objectInfo = .map(__index => digitalocean.getSpacesBucketObject({
21
+ * key: _arg0_,
22
+ * bucket: _arg1_.bucket,
23
+ * region: _arg2_.region,
24
+ * }));
25
+ * ```
26
+ */
27
+ export declare function getSpacesBucketObjects(args: GetSpacesBucketObjectsArgs, opts?: pulumi.InvokeOptions): Promise<GetSpacesBucketObjectsResult>;
28
+ /**
29
+ * A collection of arguments for invoking getSpacesBucketObjects.
30
+ */
31
+ export interface GetSpacesBucketObjectsArgs {
32
+ /**
33
+ * Lists object keys in this Spaces bucket
34
+ */
35
+ bucket: string;
36
+ /**
37
+ * A character used to group keys (Default: none)
38
+ */
39
+ delimiter?: string;
40
+ /**
41
+ * Encodes keys using this method (Default: none; besides none, only "url" can be used)
42
+ */
43
+ encodingType?: string;
44
+ /**
45
+ * Maximum object keys to return (Default: 1000)
46
+ */
47
+ maxKeys?: number;
48
+ /**
49
+ * Limits results to object keys with this prefix (Default: none)
50
+ */
51
+ prefix?: string;
52
+ /**
53
+ * The slug of the region where the bucket is stored.
54
+ */
55
+ region: string;
56
+ }
57
+ /**
58
+ * A collection of values returned by getSpacesBucketObjects.
59
+ */
60
+ export interface GetSpacesBucketObjectsResult {
61
+ readonly bucket: string;
62
+ /**
63
+ * List of any keys between `prefix` and the next occurrence of `delimiter` (i.e., similar to subdirectories of the `prefix` "directory"); the list is only returned when you specify `delimiter`
64
+ */
65
+ readonly commonPrefixes: string[];
66
+ readonly delimiter?: string;
67
+ readonly encodingType?: string;
68
+ /**
69
+ * The provider-assigned unique ID for this managed resource.
70
+ */
71
+ readonly id: string;
72
+ /**
73
+ * List of strings representing object keys
74
+ */
75
+ readonly keys: string[];
76
+ readonly maxKeys?: number;
77
+ /**
78
+ * List of strings representing object owner IDs
79
+ */
80
+ readonly owners: string[];
81
+ readonly prefix?: string;
82
+ readonly region: string;
83
+ }
@@ -0,0 +1,49 @@
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
+ * > **NOTE on `maxKeys`:** Retrieving very large numbers of keys can adversely affect the provider's performance.
9
+ *
10
+ * The bucket-objects data source returns keys (i.e., file names) and other metadata about objects in a Spaces bucket.
11
+ *
12
+ * ## Example Usage
13
+ *
14
+ * The following example retrieves a list of all object keys in a Spaces bucket and creates corresponding object
15
+ * data sources:
16
+ *
17
+ * ```typescript
18
+ * import * as pulumi from "@pulumi/pulumi";
19
+ * import * as digitalocean from "@pulumi/digitalocean";
20
+ *
21
+ * const myObjects = digitalocean.getSpacesBucketObjects({
22
+ * bucket: "ourcorp",
23
+ * region: "nyc3",
24
+ * });
25
+ * const objectInfo = .map(__index => digitalocean.getSpacesBucketObject({
26
+ * key: _arg0_,
27
+ * bucket: _arg1_.bucket,
28
+ * region: _arg2_.region,
29
+ * }));
30
+ * ```
31
+ */
32
+ function getSpacesBucketObjects(args, opts) {
33
+ if (!opts) {
34
+ opts = {};
35
+ }
36
+ if (!opts.version) {
37
+ opts.version = utilities.getVersion();
38
+ }
39
+ return pulumi.runtime.invoke("digitalocean:index/getSpacesBucketObjects:getSpacesBucketObjects", {
40
+ "bucket": args.bucket,
41
+ "delimiter": args.delimiter,
42
+ "encodingType": args.encodingType,
43
+ "maxKeys": args.maxKeys,
44
+ "prefix": args.prefix,
45
+ "region": args.region,
46
+ }, opts);
47
+ }
48
+ exports.getSpacesBucketObjects = getSpacesBucketObjects;
49
+ //# sourceMappingURL=getSpacesBucketObjects.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getSpacesBucketObjects.js","sourceRoot":"","sources":["../getSpacesBucketObjects.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;AAEjF,yCAAyC;AAEzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,SAAgB,sBAAsB,CAAC,IAAgC,EAAE,IAA2B;IAChG,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,kEAAkE,EAAE;QAC7F,QAAQ,EAAE,IAAI,CAAC,MAAM;QACrB,WAAW,EAAE,IAAI,CAAC,SAAS;QAC3B,cAAc,EAAE,IAAI,CAAC,YAAY;QACjC,SAAS,EAAE,IAAI,CAAC,OAAO;QACvB,QAAQ,EAAE,IAAI,CAAC,MAAM;QACrB,QAAQ,EAAE,IAAI,CAAC,MAAM;KACxB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAhBD,wDAgBC"}
@@ -0,0 +1,75 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ import { input as inputs, output as outputs } from "./types";
3
+ /**
4
+ * Get information on Spaces buckets for use in other resources, with the ability to filter and sort the results.
5
+ * If no filters are specified, all Spaces buckets will be returned.
6
+ *
7
+ * Note: You can use the `digitalocean.SpacesBucket` data source to
8
+ * obtain metadata about a single bucket if you already know its `name` and `region`.
9
+ *
10
+ * ## Example Usage
11
+ *
12
+ * Use the `filter` block with a `key` string and `values` list to filter buckets.
13
+ *
14
+ * Get all buckets in a region:
15
+ *
16
+ * ```typescript
17
+ * import * as pulumi from "@pulumi/pulumi";
18
+ * import * as digitalocean from "@pulumi/digitalocean";
19
+ *
20
+ * const nyc3 = pulumi.output(digitalocean.getSpacesBuckets({
21
+ * filters: [{
22
+ * key: "region",
23
+ * values: ["nyc3"],
24
+ * }],
25
+ * }));
26
+ * ```
27
+ * You can sort the results as well:
28
+ *
29
+ * ```typescript
30
+ * import * as pulumi from "@pulumi/pulumi";
31
+ * import * as digitalocean from "@pulumi/digitalocean";
32
+ *
33
+ * const nyc3 = pulumi.output(digitalocean.getSpacesBuckets({
34
+ * filters: [{
35
+ * key: "region",
36
+ * values: ["nyc3"],
37
+ * }],
38
+ * sorts: [{
39
+ * direction: "desc",
40
+ * key: "name",
41
+ * }],
42
+ * }));
43
+ * ```
44
+ */
45
+ export declare function getSpacesBuckets(args?: GetSpacesBucketsArgs, opts?: pulumi.InvokeOptions): Promise<GetSpacesBucketsResult>;
46
+ /**
47
+ * A collection of arguments for invoking getSpacesBuckets.
48
+ */
49
+ export interface GetSpacesBucketsArgs {
50
+ /**
51
+ * Filter the results.
52
+ * The `filter` block is documented below.
53
+ */
54
+ filters?: inputs.GetSpacesBucketsFilter[];
55
+ /**
56
+ * Sort the results.
57
+ * The `sort` block is documented below.
58
+ */
59
+ sorts?: inputs.GetSpacesBucketsSort[];
60
+ }
61
+ /**
62
+ * A collection of values returned by getSpacesBuckets.
63
+ */
64
+ export interface GetSpacesBucketsResult {
65
+ /**
66
+ * A list of Spaces buckets satisfying any `filter` and `sort` criteria. Each bucket has the following attributes:
67
+ */
68
+ readonly buckets: outputs.GetSpacesBucketsBucket[];
69
+ readonly filters?: outputs.GetSpacesBucketsFilter[];
70
+ /**
71
+ * The provider-assigned unique ID for this managed resource.
72
+ */
73
+ readonly id: string;
74
+ readonly sorts?: outputs.GetSpacesBucketsSort[];
75
+ }
@@ -0,0 +1,63 @@
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 Spaces buckets for use in other resources, with the ability to filter and sort the results.
9
+ * If no filters are specified, all Spaces buckets will be returned.
10
+ *
11
+ * Note: You can use the `digitalocean.SpacesBucket` data source to
12
+ * obtain metadata about a single bucket if you already know its `name` and `region`.
13
+ *
14
+ * ## Example Usage
15
+ *
16
+ * Use the `filter` block with a `key` string and `values` list to filter buckets.
17
+ *
18
+ * Get all buckets in a region:
19
+ *
20
+ * ```typescript
21
+ * import * as pulumi from "@pulumi/pulumi";
22
+ * import * as digitalocean from "@pulumi/digitalocean";
23
+ *
24
+ * const nyc3 = pulumi.output(digitalocean.getSpacesBuckets({
25
+ * filters: [{
26
+ * key: "region",
27
+ * values: ["nyc3"],
28
+ * }],
29
+ * }));
30
+ * ```
31
+ * You can sort the results as well:
32
+ *
33
+ * ```typescript
34
+ * import * as pulumi from "@pulumi/pulumi";
35
+ * import * as digitalocean from "@pulumi/digitalocean";
36
+ *
37
+ * const nyc3 = pulumi.output(digitalocean.getSpacesBuckets({
38
+ * filters: [{
39
+ * key: "region",
40
+ * values: ["nyc3"],
41
+ * }],
42
+ * sorts: [{
43
+ * direction: "desc",
44
+ * key: "name",
45
+ * }],
46
+ * }));
47
+ * ```
48
+ */
49
+ function getSpacesBuckets(args, opts) {
50
+ args = args || {};
51
+ if (!opts) {
52
+ opts = {};
53
+ }
54
+ if (!opts.version) {
55
+ opts.version = utilities.getVersion();
56
+ }
57
+ return pulumi.runtime.invoke("digitalocean:index/getSpacesBuckets:getSpacesBuckets", {
58
+ "filters": args.filters,
59
+ "sorts": args.sorts,
60
+ }, opts);
61
+ }
62
+ exports.getSpacesBuckets = getSpacesBuckets;
63
+ //# sourceMappingURL=getSpacesBuckets.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getSpacesBuckets.js","sourceRoot":"","sources":["../getSpacesBuckets.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;AAEjF,yCAAyC;AAEzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyCG;AACH,SAAgB,gBAAgB,CAAC,IAA2B,EAAE,IAA2B;IACrF,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,sDAAsD,EAAE;QACjF,SAAS,EAAE,IAAI,CAAC,OAAO;QACvB,OAAO,EAAE,IAAI,CAAC,KAAK;KACtB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAbD,4CAaC"}
package/getSshKey.d.ts ADDED
@@ -0,0 +1,47 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ /**
3
+ * Get information on a ssh key. This data source provides the name, public key,
4
+ * and fingerprint as configured on your DigitalOcean account. This is useful if
5
+ * the ssh key in question is not managed by the provider or you need to utilize any
6
+ * of the keys data.
7
+ *
8
+ * An error is triggered if the provided ssh key name does not exist.
9
+ *
10
+ * ## Example Usage
11
+ *
12
+ * Get the ssh key:
13
+ *
14
+ * ```typescript
15
+ * import * as pulumi from "@pulumi/pulumi";
16
+ * import * as digitalocean from "@pulumi/digitalocean";
17
+ *
18
+ * const exampleSshKey = digitalocean.getSshKey({
19
+ * name: "example",
20
+ * });
21
+ * const exampleDroplet = new digitalocean.Droplet("exampleDroplet", {
22
+ * image: "ubuntu-18-04-x64",
23
+ * region: "nyc2",
24
+ * size: "s-1vcpu-1gb",
25
+ * sshKeys: [exampleSshKey.then(exampleSshKey => exampleSshKey.id)],
26
+ * });
27
+ * ```
28
+ */
29
+ export declare function getSshKey(args: GetSshKeyArgs, opts?: pulumi.InvokeOptions): Promise<GetSshKeyResult>;
30
+ /**
31
+ * A collection of arguments for invoking getSshKey.
32
+ */
33
+ export interface GetSshKeyArgs {
34
+ /**
35
+ * The name of the ssh key.
36
+ */
37
+ name: string;
38
+ }
39
+ /**
40
+ * A collection of values returned by getSshKey.
41
+ */
42
+ export interface GetSshKeyResult {
43
+ readonly fingerprint: string;
44
+ readonly id: number;
45
+ readonly name: string;
46
+ readonly publicKey: string;
47
+ }
package/getSshKey.js ADDED
@@ -0,0 +1,46 @@
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 ssh key. This data source provides the name, public key,
9
+ * and fingerprint as configured on your DigitalOcean account. This is useful if
10
+ * the ssh key in question is not managed by the provider or you need to utilize any
11
+ * of the keys data.
12
+ *
13
+ * An error is triggered if the provided ssh key name does not exist.
14
+ *
15
+ * ## Example Usage
16
+ *
17
+ * Get the ssh key:
18
+ *
19
+ * ```typescript
20
+ * import * as pulumi from "@pulumi/pulumi";
21
+ * import * as digitalocean from "@pulumi/digitalocean";
22
+ *
23
+ * const exampleSshKey = digitalocean.getSshKey({
24
+ * name: "example",
25
+ * });
26
+ * const exampleDroplet = new digitalocean.Droplet("exampleDroplet", {
27
+ * image: "ubuntu-18-04-x64",
28
+ * region: "nyc2",
29
+ * size: "s-1vcpu-1gb",
30
+ * sshKeys: [exampleSshKey.then(exampleSshKey => exampleSshKey.id)],
31
+ * });
32
+ * ```
33
+ */
34
+ function getSshKey(args, opts) {
35
+ if (!opts) {
36
+ opts = {};
37
+ }
38
+ if (!opts.version) {
39
+ opts.version = utilities.getVersion();
40
+ }
41
+ return pulumi.runtime.invoke("digitalocean:index/getSshKey:getSshKey", {
42
+ "name": args.name,
43
+ }, opts);
44
+ }
45
+ exports.getSshKey = getSshKey;
46
+ //# sourceMappingURL=getSshKey.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getSshKey.js","sourceRoot":"","sources":["../getSshKey.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;AAEjF,yCAAyC;AAEzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;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,MAAM,EAAE,IAAI,CAAC,IAAI;KACpB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAXD,8BAWC"}
@@ -0,0 +1,58 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ import { input as inputs, output as outputs } from "./types";
3
+ /**
4
+ * Get information on SSH Keys for use in other resources.
5
+ *
6
+ * This data source is useful if the SSH Keys in question are not managed by the provider or you need to
7
+ * utilize any of the SSH Keys' data.
8
+ *
9
+ * Note: You can use the `digitalocean.SshKey` data source to obtain metadata
10
+ * about a single SSH Key if you already know the unique `name` to retrieve.
11
+ *
12
+ * ## Example Usage
13
+ *
14
+ * For example to find all SSH Keys:
15
+ *
16
+ * ```typescript
17
+ * import * as pulumi from "@pulumi/pulumi";
18
+ * import * as digitalocean from "@pulumi/digitalocean";
19
+ *
20
+ * const keys = pulumi.output(digitalocean.getSshKeys({
21
+ * sorts: [{
22
+ * direction: "asc",
23
+ * key: "name",
24
+ * }],
25
+ * }));
26
+ * ```
27
+ */
28
+ export declare function getSshKeys(args?: GetSshKeysArgs, opts?: pulumi.InvokeOptions): Promise<GetSshKeysResult>;
29
+ /**
30
+ * A collection of arguments for invoking getSshKeys.
31
+ */
32
+ export interface GetSshKeysArgs {
33
+ /**
34
+ * Filter the results.
35
+ * The `filter` block is documented below.
36
+ */
37
+ filters?: inputs.GetSshKeysFilter[];
38
+ /**
39
+ * Sort the results.
40
+ * The `sort` block is documented below.
41
+ */
42
+ sorts?: inputs.GetSshKeysSort[];
43
+ }
44
+ /**
45
+ * A collection of values returned by getSshKeys.
46
+ */
47
+ export interface GetSshKeysResult {
48
+ readonly filters?: outputs.GetSshKeysFilter[];
49
+ /**
50
+ * The provider-assigned unique ID for this managed resource.
51
+ */
52
+ readonly id: string;
53
+ readonly sorts?: outputs.GetSshKeysSort[];
54
+ /**
55
+ * A list of SSH Keys. Each SSH Key has the following attributes:
56
+ */
57
+ readonly sshKeys: outputs.GetSshKeysSshKey[];
58
+ }
package/getSshKeys.js ADDED
@@ -0,0 +1,46 @@
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 SSH Keys for use in other resources.
9
+ *
10
+ * This data source is useful if the SSH Keys in question are not managed by the provider or you need to
11
+ * utilize any of the SSH Keys' data.
12
+ *
13
+ * Note: You can use the `digitalocean.SshKey` data source to obtain metadata
14
+ * about a single SSH Key if you already know the unique `name` to retrieve.
15
+ *
16
+ * ## Example Usage
17
+ *
18
+ * For example to find all SSH Keys:
19
+ *
20
+ * ```typescript
21
+ * import * as pulumi from "@pulumi/pulumi";
22
+ * import * as digitalocean from "@pulumi/digitalocean";
23
+ *
24
+ * const keys = pulumi.output(digitalocean.getSshKeys({
25
+ * sorts: [{
26
+ * direction: "asc",
27
+ * key: "name",
28
+ * }],
29
+ * }));
30
+ * ```
31
+ */
32
+ function getSshKeys(args, opts) {
33
+ args = args || {};
34
+ if (!opts) {
35
+ opts = {};
36
+ }
37
+ if (!opts.version) {
38
+ opts.version = utilities.getVersion();
39
+ }
40
+ return pulumi.runtime.invoke("digitalocean:index/getSshKeys:getSshKeys", {
41
+ "filters": args.filters,
42
+ "sorts": args.sorts,
43
+ }, opts);
44
+ }
45
+ exports.getSshKeys = getSshKeys;
46
+ //# sourceMappingURL=getSshKeys.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getSshKeys.js","sourceRoot":"","sources":["../getSshKeys.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;AAEjF,yCAAyC;AAEzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,SAAgB,UAAU,CAAC,IAAqB,EAAE,IAA2B;IACzE,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,0CAA0C,EAAE;QACrE,SAAS,EAAE,IAAI,CAAC,OAAO;QACvB,OAAO,EAAE,IAAI,CAAC,KAAK;KACtB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAbD,gCAaC"}