@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/dnsRecord.d.ts ADDED
@@ -0,0 +1,200 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ import { enums } from "./types";
3
+ /**
4
+ * Provides a DigitalOcean DNS record 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 _default = new digitalocean.Domain("default", {name: "example.com"});
13
+ * // Add an A record to the domain for www.example.com.
14
+ * const www = new digitalocean.DnsRecord("www", {
15
+ * domain: _default.name,
16
+ * type: "A",
17
+ * value: "192.168.0.11",
18
+ * });
19
+ * // Add a MX record for the example.com domain itself.
20
+ * const mx = new digitalocean.DnsRecord("mx", {
21
+ * domain: _default.name,
22
+ * type: "MX",
23
+ * priority: 10,
24
+ * value: "mail.example.com.",
25
+ * });
26
+ * export const wwwFqdn = www.fqdn;
27
+ * export const mxFqdn = mx.fqdn;
28
+ * ```
29
+ *
30
+ * ## Import
31
+ *
32
+ * Records can be imported using the domain name and record `id` when joined with a comma. See the following example
33
+ *
34
+ * ```sh
35
+ * $ pulumi import digitalocean:index/dnsRecord:DnsRecord example_record example.com,12345678
36
+ * ```
37
+ */
38
+ export declare class DnsRecord extends pulumi.CustomResource {
39
+ /**
40
+ * Get an existing DnsRecord resource's state with the given name, ID, and optional extra
41
+ * properties used to qualify the lookup.
42
+ *
43
+ * @param name The _unique_ name of the resulting resource.
44
+ * @param id The _unique_ provider ID of the resource to lookup.
45
+ * @param state Any extra arguments used during the lookup.
46
+ * @param opts Optional settings to control the behavior of the CustomResource.
47
+ */
48
+ static get(name: string, id: pulumi.Input<pulumi.ID>, state?: DnsRecordState, opts?: pulumi.CustomResourceOptions): DnsRecord;
49
+ /**
50
+ * Returns true if the given object is an instance of DnsRecord. This is designed to work even
51
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
52
+ */
53
+ static isInstance(obj: any): obj is DnsRecord;
54
+ /**
55
+ * The domain to add the record to.
56
+ */
57
+ readonly domain: pulumi.Output<string>;
58
+ /**
59
+ * The flags of the record. Only valid when type is `CAA`. Must be between 0 and 255.
60
+ */
61
+ readonly flags: pulumi.Output<number | undefined>;
62
+ /**
63
+ * The FQDN of the record
64
+ */
65
+ readonly fqdn: pulumi.Output<string>;
66
+ /**
67
+ * The hostname of the record. Use `@` for records on domain's name itself.
68
+ */
69
+ readonly name: pulumi.Output<string>;
70
+ /**
71
+ * The port of the record. Only valid when type is `SRV`. Must be between 1 and 65535.
72
+ */
73
+ readonly port: pulumi.Output<number | undefined>;
74
+ /**
75
+ * The priority of the record. Only valid when type is `MX` or `SRV`. Must be between 0 and 65535.
76
+ */
77
+ readonly priority: pulumi.Output<number | undefined>;
78
+ /**
79
+ * The tag of the record. Only valid when type is `CAA`. Must be one of `issue`, `issuewild`, or `iodef`.
80
+ */
81
+ readonly tag: pulumi.Output<string | undefined>;
82
+ /**
83
+ * The time to live for the record, in seconds. Must be at least 0.
84
+ */
85
+ readonly ttl: pulumi.Output<number>;
86
+ /**
87
+ * The type of record. Must be one of `A`, `AAAA`, `CAA`, `CNAME`, `MX`, `NS`, `TXT`, or `SRV`.
88
+ */
89
+ readonly type: pulumi.Output<string>;
90
+ /**
91
+ * The value of the record.
92
+ */
93
+ readonly value: pulumi.Output<string>;
94
+ /**
95
+ * The weight of the record. Only valid when type is `SRV`. Must be between 0 and 65535.
96
+ */
97
+ readonly weight: pulumi.Output<number | undefined>;
98
+ /**
99
+ * Create a DnsRecord resource with the given unique name, arguments, and options.
100
+ *
101
+ * @param name The _unique_ name of the resource.
102
+ * @param args The arguments to use to populate this resource's properties.
103
+ * @param opts A bag of options that control this resource's behavior.
104
+ */
105
+ constructor(name: string, args: DnsRecordArgs, opts?: pulumi.CustomResourceOptions);
106
+ }
107
+ /**
108
+ * Input properties used for looking up and filtering DnsRecord resources.
109
+ */
110
+ export interface DnsRecordState {
111
+ /**
112
+ * The domain to add the record to.
113
+ */
114
+ domain?: pulumi.Input<string>;
115
+ /**
116
+ * The flags of the record. Only valid when type is `CAA`. Must be between 0 and 255.
117
+ */
118
+ flags?: pulumi.Input<number>;
119
+ /**
120
+ * The FQDN of the record
121
+ */
122
+ fqdn?: pulumi.Input<string>;
123
+ /**
124
+ * The hostname of the record. Use `@` for records on domain's name itself.
125
+ */
126
+ name?: pulumi.Input<string>;
127
+ /**
128
+ * The port of the record. Only valid when type is `SRV`. Must be between 1 and 65535.
129
+ */
130
+ port?: pulumi.Input<number>;
131
+ /**
132
+ * The priority of the record. Only valid when type is `MX` or `SRV`. Must be between 0 and 65535.
133
+ */
134
+ priority?: pulumi.Input<number>;
135
+ /**
136
+ * The tag of the record. Only valid when type is `CAA`. Must be one of `issue`, `issuewild`, or `iodef`.
137
+ */
138
+ tag?: pulumi.Input<string>;
139
+ /**
140
+ * The time to live for the record, in seconds. Must be at least 0.
141
+ */
142
+ ttl?: pulumi.Input<number>;
143
+ /**
144
+ * The type of record. Must be one of `A`, `AAAA`, `CAA`, `CNAME`, `MX`, `NS`, `TXT`, or `SRV`.
145
+ */
146
+ type?: pulumi.Input<string | enums.RecordType>;
147
+ /**
148
+ * The value of the record.
149
+ */
150
+ value?: pulumi.Input<string>;
151
+ /**
152
+ * The weight of the record. Only valid when type is `SRV`. Must be between 0 and 65535.
153
+ */
154
+ weight?: pulumi.Input<number>;
155
+ }
156
+ /**
157
+ * The set of arguments for constructing a DnsRecord resource.
158
+ */
159
+ export interface DnsRecordArgs {
160
+ /**
161
+ * The domain to add the record to.
162
+ */
163
+ domain: pulumi.Input<string>;
164
+ /**
165
+ * The flags of the record. Only valid when type is `CAA`. Must be between 0 and 255.
166
+ */
167
+ flags?: pulumi.Input<number>;
168
+ /**
169
+ * The hostname of the record. Use `@` for records on domain's name itself.
170
+ */
171
+ name?: pulumi.Input<string>;
172
+ /**
173
+ * The port of the record. Only valid when type is `SRV`. Must be between 1 and 65535.
174
+ */
175
+ port?: pulumi.Input<number>;
176
+ /**
177
+ * The priority of the record. Only valid when type is `MX` or `SRV`. Must be between 0 and 65535.
178
+ */
179
+ priority?: pulumi.Input<number>;
180
+ /**
181
+ * The tag of the record. Only valid when type is `CAA`. Must be one of `issue`, `issuewild`, or `iodef`.
182
+ */
183
+ tag?: pulumi.Input<string>;
184
+ /**
185
+ * The time to live for the record, in seconds. Must be at least 0.
186
+ */
187
+ ttl?: pulumi.Input<number>;
188
+ /**
189
+ * The type of record. Must be one of `A`, `AAAA`, `CAA`, `CNAME`, `MX`, `NS`, `TXT`, or `SRV`.
190
+ */
191
+ type: pulumi.Input<string | enums.RecordType>;
192
+ /**
193
+ * The value of the record.
194
+ */
195
+ value: pulumi.Input<string>;
196
+ /**
197
+ * The weight of the record. Only valid when type is `SRV`. Must be between 0 and 65535.
198
+ */
199
+ weight?: pulumi.Input<number>;
200
+ }
package/dnsRecord.js ADDED
@@ -0,0 +1,114 @@
1
+ "use strict";
2
+ // *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
3
+ // *** Do not edit by hand unless you're certain you know what you are doing! ***
4
+ Object.defineProperty(exports, "__esModule", { value: true });
5
+ const pulumi = require("@pulumi/pulumi");
6
+ const utilities = require("./utilities");
7
+ /**
8
+ * Provides a DigitalOcean DNS record 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 _default = new digitalocean.Domain("default", {name: "example.com"});
17
+ * // Add an A record to the domain for www.example.com.
18
+ * const www = new digitalocean.DnsRecord("www", {
19
+ * domain: _default.name,
20
+ * type: "A",
21
+ * value: "192.168.0.11",
22
+ * });
23
+ * // Add a MX record for the example.com domain itself.
24
+ * const mx = new digitalocean.DnsRecord("mx", {
25
+ * domain: _default.name,
26
+ * type: "MX",
27
+ * priority: 10,
28
+ * value: "mail.example.com.",
29
+ * });
30
+ * export const wwwFqdn = www.fqdn;
31
+ * export const mxFqdn = mx.fqdn;
32
+ * ```
33
+ *
34
+ * ## Import
35
+ *
36
+ * Records can be imported using the domain name and record `id` when joined with a comma. See the following example
37
+ *
38
+ * ```sh
39
+ * $ pulumi import digitalocean:index/dnsRecord:DnsRecord example_record example.com,12345678
40
+ * ```
41
+ */
42
+ class DnsRecord extends pulumi.CustomResource {
43
+ constructor(name, argsOrState, opts) {
44
+ let inputs = {};
45
+ opts = opts || {};
46
+ if (opts.id) {
47
+ const state = argsOrState;
48
+ inputs["domain"] = state ? state.domain : undefined;
49
+ inputs["flags"] = state ? state.flags : undefined;
50
+ inputs["fqdn"] = state ? state.fqdn : undefined;
51
+ inputs["name"] = state ? state.name : undefined;
52
+ inputs["port"] = state ? state.port : undefined;
53
+ inputs["priority"] = state ? state.priority : undefined;
54
+ inputs["tag"] = state ? state.tag : undefined;
55
+ inputs["ttl"] = state ? state.ttl : undefined;
56
+ inputs["type"] = state ? state.type : undefined;
57
+ inputs["value"] = state ? state.value : undefined;
58
+ inputs["weight"] = state ? state.weight : undefined;
59
+ }
60
+ else {
61
+ const args = argsOrState;
62
+ if ((!args || args.domain === undefined) && !opts.urn) {
63
+ throw new Error("Missing required property 'domain'");
64
+ }
65
+ if ((!args || args.type === undefined) && !opts.urn) {
66
+ throw new Error("Missing required property 'type'");
67
+ }
68
+ if ((!args || args.value === undefined) && !opts.urn) {
69
+ throw new Error("Missing required property 'value'");
70
+ }
71
+ inputs["domain"] = args ? args.domain : undefined;
72
+ inputs["flags"] = args ? args.flags : undefined;
73
+ inputs["name"] = args ? args.name : undefined;
74
+ inputs["port"] = args ? args.port : undefined;
75
+ inputs["priority"] = args ? args.priority : undefined;
76
+ inputs["tag"] = args ? args.tag : undefined;
77
+ inputs["ttl"] = args ? args.ttl : undefined;
78
+ inputs["type"] = args ? args.type : undefined;
79
+ inputs["value"] = args ? args.value : undefined;
80
+ inputs["weight"] = args ? args.weight : undefined;
81
+ inputs["fqdn"] = undefined /*out*/;
82
+ }
83
+ if (!opts.version) {
84
+ opts = pulumi.mergeOptions(opts, { version: utilities.getVersion() });
85
+ }
86
+ super(DnsRecord.__pulumiType, name, inputs, opts);
87
+ }
88
+ /**
89
+ * Get an existing DnsRecord resource's state with the given name, ID, and optional extra
90
+ * properties used to qualify the lookup.
91
+ *
92
+ * @param name The _unique_ name of the resulting resource.
93
+ * @param id The _unique_ provider ID of the resource to lookup.
94
+ * @param state Any extra arguments used during the lookup.
95
+ * @param opts Optional settings to control the behavior of the CustomResource.
96
+ */
97
+ static get(name, id, state, opts) {
98
+ return new DnsRecord(name, state, Object.assign(Object.assign({}, opts), { id: id }));
99
+ }
100
+ /**
101
+ * Returns true if the given object is an instance of DnsRecord. This is designed to work even
102
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
103
+ */
104
+ static isInstance(obj) {
105
+ if (obj === undefined || obj === null) {
106
+ return false;
107
+ }
108
+ return obj['__pulumiType'] === DnsRecord.__pulumiType;
109
+ }
110
+ }
111
+ exports.DnsRecord = DnsRecord;
112
+ /** @internal */
113
+ DnsRecord.__pulumiType = 'digitalocean:index/dnsRecord:DnsRecord';
114
+ //# sourceMappingURL=dnsRecord.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dnsRecord.js","sourceRoot":"","sources":["../dnsRecord.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;AAEjF,yCAAyC;AAEzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AACH,MAAa,SAAU,SAAQ,MAAM,CAAC,cAAc;IAiFhD,YAAY,IAAY,EAAE,WAA4C,EAAE,IAAmC;QACvG,IAAI,MAAM,GAAkB,EAAE,CAAC;QAC/B,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAAyC,CAAC;YACxD,MAAM,CAAC,QAAQ,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC;YACpD,MAAM,CAAC,OAAO,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS,CAAC;YAClD,MAAM,CAAC,MAAM,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC;YAChD,MAAM,CAAC,MAAM,CAAC,GAAG,KAAK,CAAC,C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AAM,CAAC,MAAM,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SACtC;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,SAAS,CAAC,YAAY,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,CAAC,CAAC;IACtD,CAAC;IA3HD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAsB,EAAE,IAAmC;QACpH,OAAO,IAAI,SAAS,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IAChE,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,SAAS,CAAC,YAAY,CAAC;IAC1D,CAAC;;AA1BL,8BA6HC;AA/GG,gBAAgB;AACO,sBAAY,GAAG,wCAAwC,CAAC"}
package/domain.d.ts ADDED
@@ -0,0 +1,103 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ /**
3
+ * Provides a DigitalOcean domain resource.
4
+ *
5
+ * ## Example Usage
6
+ *
7
+ * ```typescript
8
+ * import * as pulumi from "@pulumi/pulumi";
9
+ * import * as digitalocean from "@pulumi/digitalocean";
10
+ *
11
+ * // Create a new domain
12
+ * const _default = new digitalocean.Domain("default", {
13
+ * name: "example.com",
14
+ * ipAddress: digitalocean_droplet.foo.ipv4_address,
15
+ * });
16
+ * ```
17
+ *
18
+ * ## Import
19
+ *
20
+ * Domains can be imported using the `domain name`, e.g.
21
+ *
22
+ * ```sh
23
+ * $ pulumi import digitalocean:index/domain:Domain mydomain mytestdomain.com
24
+ * ```
25
+ */
26
+ export declare class Domain extends pulumi.CustomResource {
27
+ /**
28
+ * Get an existing Domain resource's state with the given name, ID, and optional extra
29
+ * properties used to qualify the lookup.
30
+ *
31
+ * @param name The _unique_ name of the resulting resource.
32
+ * @param id The _unique_ provider ID of the resource to lookup.
33
+ * @param state Any extra arguments used during the lookup.
34
+ * @param opts Optional settings to control the behavior of the CustomResource.
35
+ */
36
+ static get(name: string, id: pulumi.Input<pulumi.ID>, state?: DomainState, opts?: pulumi.CustomResourceOptions): Domain;
37
+ /**
38
+ * Returns true if the given object is an instance of Domain. This is designed to work even
39
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
40
+ */
41
+ static isInstance(obj: any): obj is Domain;
42
+ /**
43
+ * The uniform resource name of the domain
44
+ */
45
+ readonly domainUrn: pulumi.Output<string>;
46
+ /**
47
+ * The IP address of the domain. If specified, this IP
48
+ * is used to created an initial A record for the domain.
49
+ */
50
+ readonly ipAddress: pulumi.Output<string | undefined>;
51
+ /**
52
+ * The name of the domain
53
+ */
54
+ readonly name: pulumi.Output<string>;
55
+ /**
56
+ * The TTL value of the domain
57
+ */
58
+ readonly ttl: pulumi.Output<number>;
59
+ /**
60
+ * Create a Domain resource with the given unique name, arguments, and options.
61
+ *
62
+ * @param name The _unique_ name of the resource.
63
+ * @param args The arguments to use to populate this resource's properties.
64
+ * @param opts A bag of options that control this resource's behavior.
65
+ */
66
+ constructor(name: string, args: DomainArgs, opts?: pulumi.CustomResourceOptions);
67
+ }
68
+ /**
69
+ * Input properties used for looking up and filtering Domain resources.
70
+ */
71
+ export interface DomainState {
72
+ /**
73
+ * The uniform resource name of the domain
74
+ */
75
+ domainUrn?: pulumi.Input<string>;
76
+ /**
77
+ * The IP address of the domain. If specified, this IP
78
+ * is used to created an initial A record for the domain.
79
+ */
80
+ ipAddress?: pulumi.Input<string>;
81
+ /**
82
+ * The name of the domain
83
+ */
84
+ name?: pulumi.Input<string>;
85
+ /**
86
+ * The TTL value of the domain
87
+ */
88
+ ttl?: pulumi.Input<number>;
89
+ }
90
+ /**
91
+ * The set of arguments for constructing a Domain resource.
92
+ */
93
+ export interface DomainArgs {
94
+ /**
95
+ * The IP address of the domain. If specified, this IP
96
+ * is used to created an initial A record for the domain.
97
+ */
98
+ ipAddress?: pulumi.Input<string>;
99
+ /**
100
+ * The name of the domain
101
+ */
102
+ name: pulumi.Input<string>;
103
+ }
package/domain.js ADDED
@@ -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 DigitalOcean domain resource.
9
+ *
10
+ * ## Example Usage
11
+ *
12
+ * ```typescript
13
+ * import * as pulumi from "@pulumi/pulumi";
14
+ * import * as digitalocean from "@pulumi/digitalocean";
15
+ *
16
+ * // Create a new domain
17
+ * const _default = new digitalocean.Domain("default", {
18
+ * name: "example.com",
19
+ * ipAddress: digitalocean_droplet.foo.ipv4_address,
20
+ * });
21
+ * ```
22
+ *
23
+ * ## Import
24
+ *
25
+ * Domains can be imported using the `domain name`, e.g.
26
+ *
27
+ * ```sh
28
+ * $ pulumi import digitalocean:index/domain:Domain mydomain mytestdomain.com
29
+ * ```
30
+ */
31
+ class Domain extends pulumi.CustomResource {
32
+ constructor(name, argsOrState, opts) {
33
+ let inputs = {};
34
+ opts = opts || {};
35
+ if (opts.id) {
36
+ const state = argsOrState;
37
+ inputs["domainUrn"] = state ? state.domainUrn : undefined;
38
+ inputs["ipAddress"] = state ? state.ipAddress : undefined;
39
+ inputs["name"] = state ? state.name : undefined;
40
+ inputs["ttl"] = state ? state.ttl : undefined;
41
+ }
42
+ else {
43
+ const args = argsOrState;
44
+ if ((!args || args.name === undefined) && !opts.urn) {
45
+ throw new Error("Missing required property 'name'");
46
+ }
47
+ inputs["ipAddress"] = args ? args.ipAddress : undefined;
48
+ inputs["name"] = args ? args.name : undefined;
49
+ inputs["domainUrn"] = undefined /*out*/;
50
+ inputs["ttl"] = undefined /*out*/;
51
+ }
52
+ if (!opts.version) {
53
+ opts = pulumi.mergeOptions(opts, { version: utilities.getVersion() });
54
+ }
55
+ super(Domain.__pulumiType, name, inputs, opts);
56
+ }
57
+ /**
58
+ * Get an existing Domain 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 Domain(name, state, Object.assign(Object.assign({}, opts), { id: id }));
68
+ }
69
+ /**
70
+ * Returns true if the given object is an instance of Domain. 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'] === Domain.__pulumiType;
78
+ }
79
+ }
80
+ exports.Domain = Domain;
81
+ /** @internal */
82
+ Domain.__pulumiType = 'digitalocean:index/domain:Domain';
83
+ //# sourceMappingURL=domain.js.map
package/domain.js.map ADDED
@@ -0,0 +1 @@
1
+ {"version":3,"file":"domain.js","sourceRoot":"","sources":["../domain.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,MAAa,MAAO,SAAQ,MAAM,CAAC,cAAc;IAsD7C,YAAY,IAAY,EAAE,WAAsC,EAAE,IAAmC;QACjG,IAAI,MAAM,GAAkB,EAAE,CAAC;QAC/B,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,C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