@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.
- package/LICENSE +202 -0
- package/README.md +68 -0
- package/app.d.ts +203 -0
- package/app.js +174 -0
- package/app.js.map +1 -0
- package/cdn.d.ts +169 -0
- package/cdn.js +116 -0
- package/cdn.js.map +1 -0
- package/certificate.d.ts +225 -0
- package/certificate.js +137 -0
- package/certificate.js.map +1 -0
- package/config/index.d.ts +1 -0
- package/config/index.js +10 -0
- package/config/index.js.map +1 -0
- package/config/vars.d.ts +20 -0
- package/config/vars.js +28 -0
- package/config/vars.js.map +1 -0
- package/containerRegistry.d.ts +88 -0
- package/containerRegistry.js +83 -0
- package/containerRegistry.js.map +1 -0
- package/containerRegistryDockerCredentials.d.ts +108 -0
- package/containerRegistryDockerCredentials.js +93 -0
- package/containerRegistryDockerCredentials.js.map +1 -0
- package/customImage.d.ts +155 -0
- package/customImage.js +113 -0
- package/customImage.js.map +1 -0
- package/databaseCluster.d.ts +306 -0
- package/databaseCluster.js +165 -0
- package/databaseCluster.js.map +1 -0
- package/databaseConnectionPool.d.ts +189 -0
- package/databaseConnectionPool.js +120 -0
- package/databaseConnectionPool.js.map +1 -0
- package/databaseDb.d.ts +87 -0
- package/databaseDb.js +82 -0
- package/databaseDb.js.map +1 -0
- package/databaseFirewall.d.ts +129 -0
- package/databaseFirewall.js +126 -0
- package/databaseFirewall.js.map +1 -0
- package/databaseReplica.d.ts +204 -0
- package/databaseReplica.js +110 -0
- package/databaseReplica.js.map +1 -0
- package/databaseUser.d.ts +117 -0
- package/databaseUser.js +90 -0
- package/databaseUser.js.map +1 -0
- package/dnsRecord.d.ts +200 -0
- package/dnsRecord.js +114 -0
- package/dnsRecord.js.map +1 -0
- package/domain.d.ts +103 -0
- package/domain.js +83 -0
- package/domain.js.map +1 -0
- package/droplet.d.ts +386 -0
- package/droplet.js +137 -0
- package/droplet.js.map +1 -0
- package/dropletSnapshot.d.ts +117 -0
- package/dropletSnapshot.js +88 -0
- package/dropletSnapshot.js.map +1 -0
- package/firewall.d.ts +226 -0
- package/firewall.js +150 -0
- package/firewall.js.map +1 -0
- package/floatingIp.d.ts +112 -0
- package/floatingIp.js +91 -0
- package/floatingIp.js.map +1 -0
- package/floatingIpAssignment.d.ts +85 -0
- package/floatingIpAssignment.js +83 -0
- package/floatingIpAssignment.js.map +1 -0
- package/getAccount.d.ts +32 -0
- package/getAccount.js +31 -0
- package/getAccount.js.map +1 -0
- package/getApp.d.ts +63 -0
- package/getApp.js +36 -0
- package/getApp.js.map +1 -0
- package/getCertificate.d.ts +48 -0
- package/getCertificate.js +40 -0
- package/getCertificate.js.map +1 -0
- package/getContainerRegistry.d.ts +54 -0
- package/getContainerRegistry.js +41 -0
- package/getContainerRegistry.js.map +1 -0
- package/getDatabaseCluster.d.ts +103 -0
- package/getDatabaseCluster.js +35 -0
- package/getDatabaseCluster.js.map +1 -0
- package/getDatabaseReplica.d.ts +87 -0
- package/getDatabaseReplica.js +40 -0
- package/getDatabaseReplica.js.map +1 -0
- package/getDomain.d.ts +37 -0
- package/getDomain.js +28 -0
- package/getDomain.js.map +1 -0
- package/getDomains.d.ts +61 -0
- package/getDomains.js +49 -0
- package/getDomains.js.map +1 -0
- package/getDroplet.d.ts +161 -0
- package/getDroplet.js +67 -0
- package/getDroplet.js.map +1 -0
- package/getDropletSnapshot.d.ts +76 -0
- package/getDropletSnapshot.js +43 -0
- package/getDropletSnapshot.js.map +1 -0
- package/getDroplets.d.ts +85 -0
- package/getDroplets.js +73 -0
- package/getDroplets.js.map +1 -0
- package/getFirewall.d.ts +83 -0
- package/getFirewall.js +40 -0
- package/getFirewall.js.map +1 -0
- package/getFloatingIp.d.ts +48 -0
- package/getFloatingIp.js +43 -0
- package/getFloatingIp.js.map +1 -0
- package/getImage.d.ts +110 -0
- package/getImage.js +71 -0
- package/getImage.js.map +1 -0
- package/getImages.d.ts +90 -0
- package/getImages.js +74 -0
- package/getImages.js.map +1 -0
- package/getKubernetesCluster.d.ts +95 -0
- package/getKubernetesCluster.js +23 -0
- package/getKubernetesCluster.js.map +1 -0
- package/getKubernetesVersions.d.ts +79 -0
- package/getKubernetesVersions.js +70 -0
- package/getKubernetesVersions.js.map +1 -0
- package/getLoadBalancer.d.ts +59 -0
- package/getLoadBalancer.js +41 -0
- package/getLoadBalancer.js.map +1 -0
- package/getProject.d.ts +72 -0
- package/getProject.js +37 -0
- package/getProject.js.map +1 -0
- package/getProjects.d.ts +85 -0
- package/getProjects.js +72 -0
- package/getProjects.js.map +1 -0
- package/getRecord.d.ts +42 -0
- package/getRecord.js +28 -0
- package/getRecord.js.map +1 -0
- package/getRecords.d.ts +39 -0
- package/getRecords.js +25 -0
- package/getRecords.js.map +1 -0
- package/getRegion.d.ts +56 -0
- package/getRegion.js +35 -0
- package/getRegion.js.map +1 -0
- package/getRegions.d.ts +82 -0
- package/getRegions.js +70 -0
- package/getRegions.js.map +1 -0
- package/getSizes.d.ts +35 -0
- package/getSizes.js +26 -0
- package/getSizes.js.map +1 -0
- package/getSpacesBucket.d.ts +59 -0
- package/getSpacesBucket.js +39 -0
- package/getSpacesBucket.js.map +1 -0
- package/getSpacesBucketObject.d.ts +125 -0
- package/getSpacesBucketObject.js +53 -0
- package/getSpacesBucketObject.js.map +1 -0
- package/getSpacesBucketObjects.d.ts +83 -0
- package/getSpacesBucketObjects.js +49 -0
- package/getSpacesBucketObjects.js.map +1 -0
- package/getSpacesBuckets.d.ts +75 -0
- package/getSpacesBuckets.js +63 -0
- package/getSpacesBuckets.js.map +1 -0
- package/getSshKey.d.ts +47 -0
- package/getSshKey.js +46 -0
- package/getSshKey.js.map +1 -0
- package/getSshKeys.d.ts +58 -0
- package/getSshKeys.js +46 -0
- package/getSshKeys.js.map +1 -0
- package/getTag.d.ts +71 -0
- package/getTag.js +45 -0
- package/getTag.js.map +1 -0
- package/getTags.d.ts +50 -0
- package/getTags.js +41 -0
- package/getTags.js.map +1 -0
- package/getVolume.d.ts +98 -0
- package/getVolume.js +64 -0
- package/getVolume.js.map +1 -0
- package/getVolumeSnapshot.d.ts +98 -0
- package/getVolumeSnapshot.js +61 -0
- package/getVolumeSnapshot.js.map +1 -0
- package/getVpc.d.ts +95 -0
- package/getVpc.js +61 -0
- package/getVpc.js.map +1 -0
- package/index.d.ts +74 -0
- package/index.js +240 -0
- package/index.js.map +1 -0
- package/kubernetesCluster.d.ts +220 -0
- package/kubernetesCluster.js +102 -0
- package/kubernetesCluster.js.map +1 -0
- package/kubernetesNodePool.d.ts +242 -0
- package/kubernetesNodePool.js +141 -0
- package/kubernetesNodePool.js.map +1 -0
- package/loadBalancer.d.ts +307 -0
- package/loadBalancer.js +161 -0
- package/loadBalancer.js.map +1 -0
- package/monitorAlert.d.ts +193 -0
- package/monitorAlert.js +99 -0
- package/monitorAlert.js.map +1 -0
- package/package.json +28 -0
- package/package.json.bak +27 -0
- package/package.json.dev +27 -0
- package/project.d.ts +191 -0
- package/project.js +129 -0
- package/project.js.map +1 -0
- package/projectResources.d.ts +100 -0
- package/projectResources.js +98 -0
- package/projectResources.js.map +1 -0
- package/provider.d.ts +67 -0
- package/provider.js +51 -0
- package/provider.js.map +1 -0
- package/scripts/install-pulumi-plugin.js +21 -0
- package/spacesBucket.d.ts +210 -0
- package/spacesBucket.js +139 -0
- package/spacesBucket.js.map +1 -0
- package/spacesBucketObject.d.ts +293 -0
- package/spacesBucketObject.js +139 -0
- package/spacesBucketObject.js.map +1 -0
- package/sshKey.d.ts +103 -0
- package/sshKey.js +89 -0
- package/sshKey.js.map +1 -0
- package/tag.d.ts +127 -0
- package/tag.js +93 -0
- package/tag.js.map +1 -0
- package/types/enums/index.d.ts +151 -0
- package/types/enums/index.js +148 -0
- package/types/enums/index.js.map +1 -0
- package/types/index.d.ts +4 -0
- package/types/index.js +12 -0
- package/types/index.js.map +1 -0
- package/types/input.d.ts +1584 -0
- package/types/input.js +5 -0
- package/types/input.js.map +1 -0
- package/types/output.d.ts +2730 -0
- package/types/output.js +5 -0
- package/types/output.js.map +1 -0
- package/utilities.d.ts +4 -0
- package/utilities.js +51 -0
- package/utilities.js.map +1 -0
- package/volume.d.ts +225 -0
- package/volume.js +128 -0
- package/volume.js.map +1 -0
- package/volumeAttachment.d.ts +88 -0
- package/volumeAttachment.js +86 -0
- package/volumeAttachment.js.map +1 -0
- package/volumeSnapshot.d.ts +129 -0
- package/volumeSnapshot.js +90 -0
- package/volumeSnapshot.js.map +1 -0
- package/vpc.d.ts +152 -0
- package/vpc.js +109 -0
- package/vpc.js.map +1 -0
package/monitorAlert.js
ADDED
|
@@ -0,0 +1,99 @@
|
|
|
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 Monitoring](https://docs.digitalocean.com/reference/api/api-reference/#tag/Monitoring) resource.
|
|
9
|
+
* Monitor alerts can be configured to alert about, e.g., disk or memory usage exceeding certain threshold, or traffic at certain
|
|
10
|
+
* limits. Notifications can be sent to either an email address or a Slack channel.
|
|
11
|
+
*
|
|
12
|
+
* ## Import
|
|
13
|
+
*
|
|
14
|
+
* Monitor alerts can be imported using the monitor alert `uuid`, e.g.
|
|
15
|
+
*
|
|
16
|
+
* ```sh
|
|
17
|
+
* $ pulumi import digitalocean:index/monitorAlert:MonitorAlert cpu_alert b8ecd2ab-2267-4a5e-8692-cbf1d32583e3
|
|
18
|
+
* ```
|
|
19
|
+
*/
|
|
20
|
+
class MonitorAlert extends pulumi.CustomResource {
|
|
21
|
+
constructor(name, argsOrState, opts) {
|
|
22
|
+
let inputs = {};
|
|
23
|
+
opts = opts || {};
|
|
24
|
+
if (opts.id) {
|
|
25
|
+
const state = argsOrState;
|
|
26
|
+
inputs["alerts"] = state ? state.alerts : undefined;
|
|
27
|
+
inputs["compare"] = state ? state.compare : undefined;
|
|
28
|
+
inputs["description"] = state ? state.description : undefined;
|
|
29
|
+
inputs["enabled"] = state ? state.enabled : undefined;
|
|
30
|
+
inputs["entities"] = state ? state.entities : undefined;
|
|
31
|
+
inputs["tags"] = state ? state.tags : undefined;
|
|
32
|
+
inputs["type"] = state ? state.type : undefined;
|
|
33
|
+
inputs["uuid"] = state ? state.uuid : undefined;
|
|
34
|
+
inputs["value"] = state ? state.value : undefined;
|
|
35
|
+
inputs["window"] = state ? state.window : undefined;
|
|
36
|
+
}
|
|
37
|
+
else {
|
|
38
|
+
const args = argsOrState;
|
|
39
|
+
if ((!args || args.alerts === undefined) && !opts.urn) {
|
|
40
|
+
throw new Error("Missing required property 'alerts'");
|
|
41
|
+
}
|
|
42
|
+
if ((!args || args.compare === undefined) && !opts.urn) {
|
|
43
|
+
throw new Error("Missing required property 'compare'");
|
|
44
|
+
}
|
|
45
|
+
if ((!args || args.description === undefined) && !opts.urn) {
|
|
46
|
+
throw new Error("Missing required property 'description'");
|
|
47
|
+
}
|
|
48
|
+
if ((!args || args.type === undefined) && !opts.urn) {
|
|
49
|
+
throw new Error("Missing required property 'type'");
|
|
50
|
+
}
|
|
51
|
+
if ((!args || args.value === undefined) && !opts.urn) {
|
|
52
|
+
throw new Error("Missing required property 'value'");
|
|
53
|
+
}
|
|
54
|
+
if ((!args || args.window === undefined) && !opts.urn) {
|
|
55
|
+
throw new Error("Missing required property 'window'");
|
|
56
|
+
}
|
|
57
|
+
inputs["alerts"] = args ? args.alerts : undefined;
|
|
58
|
+
inputs["compare"] = args ? args.compare : undefined;
|
|
59
|
+
inputs["description"] = args ? args.description : undefined;
|
|
60
|
+
inputs["enabled"] = args ? args.enabled : undefined;
|
|
61
|
+
inputs["entities"] = args ? args.entities : undefined;
|
|
62
|
+
inputs["tags"] = args ? args.tags : undefined;
|
|
63
|
+
inputs["type"] = args ? args.type : undefined;
|
|
64
|
+
inputs["value"] = args ? args.value : undefined;
|
|
65
|
+
inputs["window"] = args ? args.window : undefined;
|
|
66
|
+
inputs["uuid"] = undefined /*out*/;
|
|
67
|
+
}
|
|
68
|
+
if (!opts.version) {
|
|
69
|
+
opts = pulumi.mergeOptions(opts, { version: utilities.getVersion() });
|
|
70
|
+
}
|
|
71
|
+
super(MonitorAlert.__pulumiType, name, inputs, opts);
|
|
72
|
+
}
|
|
73
|
+
/**
|
|
74
|
+
* Get an existing MonitorAlert resource's state with the given name, ID, and optional extra
|
|
75
|
+
* properties used to qualify the lookup.
|
|
76
|
+
*
|
|
77
|
+
* @param name The _unique_ name of the resulting resource.
|
|
78
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
79
|
+
* @param state Any extra arguments used during the lookup.
|
|
80
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
81
|
+
*/
|
|
82
|
+
static get(name, id, state, opts) {
|
|
83
|
+
return new MonitorAlert(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
84
|
+
}
|
|
85
|
+
/**
|
|
86
|
+
* Returns true if the given object is an instance of MonitorAlert. This is designed to work even
|
|
87
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
88
|
+
*/
|
|
89
|
+
static isInstance(obj) {
|
|
90
|
+
if (obj === undefined || obj === null) {
|
|
91
|
+
return false;
|
|
92
|
+
}
|
|
93
|
+
return obj['__pulumiType'] === MonitorAlert.__pulumiType;
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
exports.MonitorAlert = MonitorAlert;
|
|
97
|
+
/** @internal */
|
|
98
|
+
MonitorAlert.__pulumiType = 'digitalocean:index/monitorAlert:MonitorAlert';
|
|
99
|
+
//# sourceMappingURL=monitorAlert.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"monitorAlert.js","sourceRoot":"","sources":["../monitorAlert.ts"],"names":[],"mappings":";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YAAY,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,CAAC,CAAC;IACzD,CAAC;IAvID;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAyB,EAAE,IAAmC;QACvH,OAAO,IAAI,YAAY,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IACnE,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,YAAY,CAAC,YAAY,CAAC;IAC7D,CAAC;;AA1BL,oCAyIC;AA3HG,gBAAgB;AACO,yBAAY,GAAG,8CAA8C,CAAC"}
|
package/package.json
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@pulumi/digitalocean",
|
|
3
|
+
"version": "v4.7.0-alpha.1633346817+9acd1cd6",
|
|
4
|
+
"description": "A Pulumi package for creating and managing Digital Ocean cloud resources.",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"pulumi",
|
|
7
|
+
"digitalocean"
|
|
8
|
+
],
|
|
9
|
+
"homepage": "https://pulumi.io",
|
|
10
|
+
"repository": "https://github.com/pulumi/pulumi-digitalocean",
|
|
11
|
+
"license": "Apache-2.0",
|
|
12
|
+
"scripts": {
|
|
13
|
+
"build": "tsc",
|
|
14
|
+
"install": "node scripts/install-pulumi-plugin.js resource digitalocean v4.7.0-alpha.1633346817+9acd1cd6"
|
|
15
|
+
},
|
|
16
|
+
"dependencies": {
|
|
17
|
+
"@pulumi/pulumi": "^3.0.0",
|
|
18
|
+
"builtin-modules": "3.0.0",
|
|
19
|
+
"read-package-tree": "^5.2.1",
|
|
20
|
+
"resolve": "^1.7.1"
|
|
21
|
+
},
|
|
22
|
+
"devDependencies": {
|
|
23
|
+
"@types/node": "^10.0.0"
|
|
24
|
+
},
|
|
25
|
+
"pulumi": {
|
|
26
|
+
"resource": true
|
|
27
|
+
}
|
|
28
|
+
}
|
package/package.json.bak
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@pulumi/digitalocean",
|
|
3
|
+
"version": "${VERSION}",
|
|
4
|
+
"description": "A Pulumi package for creating and managing Digital Ocean cloud resources.",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"pulumi",
|
|
7
|
+
"digitalocean"
|
|
8
|
+
],
|
|
9
|
+
"homepage": "https://pulumi.io",
|
|
10
|
+
"repository": "https://github.com/pulumi/pulumi-digitalocean",
|
|
11
|
+
"license": "Apache-2.0",
|
|
12
|
+
"scripts": {
|
|
13
|
+
"build": "tsc"
|
|
14
|
+
},
|
|
15
|
+
"dependencies": {
|
|
16
|
+
"@pulumi/pulumi": "^3.0.0",
|
|
17
|
+
"builtin-modules": "3.0.0",
|
|
18
|
+
"read-package-tree": "^5.2.1",
|
|
19
|
+
"resolve": "^1.7.1"
|
|
20
|
+
},
|
|
21
|
+
"devDependencies": {
|
|
22
|
+
"@types/node": "^10.0.0"
|
|
23
|
+
},
|
|
24
|
+
"pulumi": {
|
|
25
|
+
"resource": true
|
|
26
|
+
}
|
|
27
|
+
}
|
package/package.json.dev
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@pulumi/digitalocean",
|
|
3
|
+
"version": "v4.7.0-alpha.1633346817+9acd1cd6",
|
|
4
|
+
"description": "A Pulumi package for creating and managing Digital Ocean cloud resources.",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"pulumi",
|
|
7
|
+
"digitalocean"
|
|
8
|
+
],
|
|
9
|
+
"homepage": "https://pulumi.io",
|
|
10
|
+
"repository": "https://github.com/pulumi/pulumi-digitalocean",
|
|
11
|
+
"license": "Apache-2.0",
|
|
12
|
+
"scripts": {
|
|
13
|
+
"build": "tsc"
|
|
14
|
+
},
|
|
15
|
+
"dependencies": {
|
|
16
|
+
"@pulumi/pulumi": "^3.0.0",
|
|
17
|
+
"builtin-modules": "3.0.0",
|
|
18
|
+
"read-package-tree": "^5.2.1",
|
|
19
|
+
"resolve": "^1.7.1"
|
|
20
|
+
},
|
|
21
|
+
"devDependencies": {
|
|
22
|
+
"@types/node": "^10.0.0"
|
|
23
|
+
},
|
|
24
|
+
"pulumi": {
|
|
25
|
+
"resource": true
|
|
26
|
+
}
|
|
27
|
+
}
|
package/project.d.ts
ADDED
|
@@ -0,0 +1,191 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
/**
|
|
3
|
+
* Provides a DigitalOcean Project resource.
|
|
4
|
+
*
|
|
5
|
+
* Projects allow you to organize your resources into groups that fit the way you work.
|
|
6
|
+
* You can group resources (like Droplets, Spaces, Load Balancers, domains, and Floating IPs)
|
|
7
|
+
* in ways that align with the applications you host on DigitalOcean.
|
|
8
|
+
*
|
|
9
|
+
* The following resource types can be associated with a project:
|
|
10
|
+
*
|
|
11
|
+
* * Database Clusters
|
|
12
|
+
* * Domains
|
|
13
|
+
* * Droplets
|
|
14
|
+
* * Floating IP
|
|
15
|
+
* * Load Balancers
|
|
16
|
+
* * Spaces Bucket
|
|
17
|
+
* * Volume
|
|
18
|
+
*
|
|
19
|
+
* **Note:** A provider managed project cannot be set as a default project.
|
|
20
|
+
*
|
|
21
|
+
* ## Example Usage
|
|
22
|
+
*
|
|
23
|
+
* The following example demonstrates the creation of an empty project:
|
|
24
|
+
*
|
|
25
|
+
* ```typescript
|
|
26
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
27
|
+
* import * as digitalocean from "@pulumi/digitalocean";
|
|
28
|
+
*
|
|
29
|
+
* const playground = new digitalocean.Project("playground", {
|
|
30
|
+
* description: "A project to represent development resources.",
|
|
31
|
+
* environment: "Development",
|
|
32
|
+
* purpose: "Web Application",
|
|
33
|
+
* });
|
|
34
|
+
* ```
|
|
35
|
+
*
|
|
36
|
+
* The following example demonstrates the creation of a project with a Droplet resource:
|
|
37
|
+
*
|
|
38
|
+
* ```typescript
|
|
39
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
40
|
+
* import * as digitalocean from "@pulumi/digitalocean";
|
|
41
|
+
*
|
|
42
|
+
* const foobar = new digitalocean.Droplet("foobar", {
|
|
43
|
+
* size: "512mb",
|
|
44
|
+
* image: "centos-7-x64",
|
|
45
|
+
* region: "nyc3",
|
|
46
|
+
* });
|
|
47
|
+
* const playground = new digitalocean.Project("playground", {
|
|
48
|
+
* description: "A project to represent development resources.",
|
|
49
|
+
* purpose: "Web Application",
|
|
50
|
+
* environment: "Development",
|
|
51
|
+
* resources: [foobar.dropletUrn],
|
|
52
|
+
* });
|
|
53
|
+
* ```
|
|
54
|
+
*
|
|
55
|
+
* ## Import
|
|
56
|
+
*
|
|
57
|
+
* Projects can be imported using the `id` returned from DigitalOcean, e.g.
|
|
58
|
+
*
|
|
59
|
+
* ```sh
|
|
60
|
+
* $ pulumi import digitalocean:index/project:Project myproject 245bcfd0-7f31-4ce6-a2bc-475a116cca97
|
|
61
|
+
* ```
|
|
62
|
+
*/
|
|
63
|
+
export declare class Project extends pulumi.CustomResource {
|
|
64
|
+
/**
|
|
65
|
+
* Get an existing Project resource's state with the given name, ID, and optional extra
|
|
66
|
+
* properties used to qualify the lookup.
|
|
67
|
+
*
|
|
68
|
+
* @param name The _unique_ name of the resulting resource.
|
|
69
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
70
|
+
* @param state Any extra arguments used during the lookup.
|
|
71
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
72
|
+
*/
|
|
73
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: ProjectState, opts?: pulumi.CustomResourceOptions): Project;
|
|
74
|
+
/**
|
|
75
|
+
* Returns true if the given object is an instance of Project. This is designed to work even
|
|
76
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
77
|
+
*/
|
|
78
|
+
static isInstance(obj: any): obj is Project;
|
|
79
|
+
/**
|
|
80
|
+
* the date and time when the project was created, (ISO8601)
|
|
81
|
+
*/
|
|
82
|
+
readonly createdAt: pulumi.Output<string>;
|
|
83
|
+
/**
|
|
84
|
+
* the description of the project
|
|
85
|
+
*/
|
|
86
|
+
readonly description: pulumi.Output<string | undefined>;
|
|
87
|
+
/**
|
|
88
|
+
* the environment of the project's resources. The possible values are: `Development`, `Staging`, `Production`)
|
|
89
|
+
*/
|
|
90
|
+
readonly environment: pulumi.Output<string | undefined>;
|
|
91
|
+
readonly isDefault: pulumi.Output<boolean>;
|
|
92
|
+
/**
|
|
93
|
+
* The name of the Project
|
|
94
|
+
*/
|
|
95
|
+
readonly name: pulumi.Output<string>;
|
|
96
|
+
/**
|
|
97
|
+
* the id of the project owner.
|
|
98
|
+
*/
|
|
99
|
+
readonly ownerId: pulumi.Output<number>;
|
|
100
|
+
/**
|
|
101
|
+
* the unique universal identifier of the project owner.
|
|
102
|
+
*/
|
|
103
|
+
readonly ownerUuid: pulumi.Output<string>;
|
|
104
|
+
/**
|
|
105
|
+
* the purpose of the project, (Default: "Web Application")
|
|
106
|
+
*/
|
|
107
|
+
readonly purpose: pulumi.Output<string | undefined>;
|
|
108
|
+
/**
|
|
109
|
+
* a list of uniform resource names (URNs) for the resources associated with the project
|
|
110
|
+
*/
|
|
111
|
+
readonly resources: pulumi.Output<string[]>;
|
|
112
|
+
/**
|
|
113
|
+
* the date and time when the project was last updated, (ISO8601)
|
|
114
|
+
*/
|
|
115
|
+
readonly updatedAt: pulumi.Output<string>;
|
|
116
|
+
/**
|
|
117
|
+
* Create a Project resource with the given unique name, arguments, and options.
|
|
118
|
+
*
|
|
119
|
+
* @param name The _unique_ name of the resource.
|
|
120
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
121
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
122
|
+
*/
|
|
123
|
+
constructor(name: string, args?: ProjectArgs, opts?: pulumi.CustomResourceOptions);
|
|
124
|
+
}
|
|
125
|
+
/**
|
|
126
|
+
* Input properties used for looking up and filtering Project resources.
|
|
127
|
+
*/
|
|
128
|
+
export interface ProjectState {
|
|
129
|
+
/**
|
|
130
|
+
* the date and time when the project was created, (ISO8601)
|
|
131
|
+
*/
|
|
132
|
+
createdAt?: pulumi.Input<string>;
|
|
133
|
+
/**
|
|
134
|
+
* the description of the project
|
|
135
|
+
*/
|
|
136
|
+
description?: pulumi.Input<string>;
|
|
137
|
+
/**
|
|
138
|
+
* the environment of the project's resources. The possible values are: `Development`, `Staging`, `Production`)
|
|
139
|
+
*/
|
|
140
|
+
environment?: pulumi.Input<string>;
|
|
141
|
+
isDefault?: pulumi.Input<boolean>;
|
|
142
|
+
/**
|
|
143
|
+
* The name of the Project
|
|
144
|
+
*/
|
|
145
|
+
name?: pulumi.Input<string>;
|
|
146
|
+
/**
|
|
147
|
+
* the id of the project owner.
|
|
148
|
+
*/
|
|
149
|
+
ownerId?: pulumi.Input<number>;
|
|
150
|
+
/**
|
|
151
|
+
* the unique universal identifier of the project owner.
|
|
152
|
+
*/
|
|
153
|
+
ownerUuid?: pulumi.Input<string>;
|
|
154
|
+
/**
|
|
155
|
+
* the purpose of the project, (Default: "Web Application")
|
|
156
|
+
*/
|
|
157
|
+
purpose?: pulumi.Input<string>;
|
|
158
|
+
/**
|
|
159
|
+
* a list of uniform resource names (URNs) for the resources associated with the project
|
|
160
|
+
*/
|
|
161
|
+
resources?: pulumi.Input<pulumi.Input<string>[]>;
|
|
162
|
+
/**
|
|
163
|
+
* the date and time when the project was last updated, (ISO8601)
|
|
164
|
+
*/
|
|
165
|
+
updatedAt?: pulumi.Input<string>;
|
|
166
|
+
}
|
|
167
|
+
/**
|
|
168
|
+
* The set of arguments for constructing a Project resource.
|
|
169
|
+
*/
|
|
170
|
+
export interface ProjectArgs {
|
|
171
|
+
/**
|
|
172
|
+
* the description of the project
|
|
173
|
+
*/
|
|
174
|
+
description?: pulumi.Input<string>;
|
|
175
|
+
/**
|
|
176
|
+
* the environment of the project's resources. The possible values are: `Development`, `Staging`, `Production`)
|
|
177
|
+
*/
|
|
178
|
+
environment?: pulumi.Input<string>;
|
|
179
|
+
/**
|
|
180
|
+
* The name of the Project
|
|
181
|
+
*/
|
|
182
|
+
name?: pulumi.Input<string>;
|
|
183
|
+
/**
|
|
184
|
+
* the purpose of the project, (Default: "Web Application")
|
|
185
|
+
*/
|
|
186
|
+
purpose?: pulumi.Input<string>;
|
|
187
|
+
/**
|
|
188
|
+
* a list of uniform resource names (URNs) for the resources associated with the project
|
|
189
|
+
*/
|
|
190
|
+
resources?: pulumi.Input<pulumi.Input<string>[]>;
|
|
191
|
+
}
|
package/project.js
ADDED
|
@@ -0,0 +1,129 @@
|
|
|
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 Project resource.
|
|
9
|
+
*
|
|
10
|
+
* Projects allow you to organize your resources into groups that fit the way you work.
|
|
11
|
+
* You can group resources (like Droplets, Spaces, Load Balancers, domains, and Floating IPs)
|
|
12
|
+
* in ways that align with the applications you host on DigitalOcean.
|
|
13
|
+
*
|
|
14
|
+
* The following resource types can be associated with a project:
|
|
15
|
+
*
|
|
16
|
+
* * Database Clusters
|
|
17
|
+
* * Domains
|
|
18
|
+
* * Droplets
|
|
19
|
+
* * Floating IP
|
|
20
|
+
* * Load Balancers
|
|
21
|
+
* * Spaces Bucket
|
|
22
|
+
* * Volume
|
|
23
|
+
*
|
|
24
|
+
* **Note:** A provider managed project cannot be set as a default project.
|
|
25
|
+
*
|
|
26
|
+
* ## Example Usage
|
|
27
|
+
*
|
|
28
|
+
* The following example demonstrates the creation of an empty project:
|
|
29
|
+
*
|
|
30
|
+
* ```typescript
|
|
31
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
32
|
+
* import * as digitalocean from "@pulumi/digitalocean";
|
|
33
|
+
*
|
|
34
|
+
* const playground = new digitalocean.Project("playground", {
|
|
35
|
+
* description: "A project to represent development resources.",
|
|
36
|
+
* environment: "Development",
|
|
37
|
+
* purpose: "Web Application",
|
|
38
|
+
* });
|
|
39
|
+
* ```
|
|
40
|
+
*
|
|
41
|
+
* The following example demonstrates the creation of a project with a Droplet resource:
|
|
42
|
+
*
|
|
43
|
+
* ```typescript
|
|
44
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
45
|
+
* import * as digitalocean from "@pulumi/digitalocean";
|
|
46
|
+
*
|
|
47
|
+
* const foobar = new digitalocean.Droplet("foobar", {
|
|
48
|
+
* size: "512mb",
|
|
49
|
+
* image: "centos-7-x64",
|
|
50
|
+
* region: "nyc3",
|
|
51
|
+
* });
|
|
52
|
+
* const playground = new digitalocean.Project("playground", {
|
|
53
|
+
* description: "A project to represent development resources.",
|
|
54
|
+
* purpose: "Web Application",
|
|
55
|
+
* environment: "Development",
|
|
56
|
+
* resources: [foobar.dropletUrn],
|
|
57
|
+
* });
|
|
58
|
+
* ```
|
|
59
|
+
*
|
|
60
|
+
* ## Import
|
|
61
|
+
*
|
|
62
|
+
* Projects can be imported using the `id` returned from DigitalOcean, e.g.
|
|
63
|
+
*
|
|
64
|
+
* ```sh
|
|
65
|
+
* $ pulumi import digitalocean:index/project:Project myproject 245bcfd0-7f31-4ce6-a2bc-475a116cca97
|
|
66
|
+
* ```
|
|
67
|
+
*/
|
|
68
|
+
class Project extends pulumi.CustomResource {
|
|
69
|
+
constructor(name, argsOrState, opts) {
|
|
70
|
+
let inputs = {};
|
|
71
|
+
opts = opts || {};
|
|
72
|
+
if (opts.id) {
|
|
73
|
+
const state = argsOrState;
|
|
74
|
+
inputs["createdAt"] = state ? state.createdAt : undefined;
|
|
75
|
+
inputs["description"] = state ? state.description : undefined;
|
|
76
|
+
inputs["environment"] = state ? state.environment : undefined;
|
|
77
|
+
inputs["isDefault"] = state ? state.isDefault : undefined;
|
|
78
|
+
inputs["name"] = state ? state.name : undefined;
|
|
79
|
+
inputs["ownerId"] = state ? state.ownerId : undefined;
|
|
80
|
+
inputs["ownerUuid"] = state ? state.ownerUuid : undefined;
|
|
81
|
+
inputs["purpose"] = state ? state.purpose : undefined;
|
|
82
|
+
inputs["resources"] = state ? state.resources : undefined;
|
|
83
|
+
inputs["updatedAt"] = state ? state.updatedAt : undefined;
|
|
84
|
+
}
|
|
85
|
+
else {
|
|
86
|
+
const args = argsOrState;
|
|
87
|
+
inputs["description"] = args ? args.description : undefined;
|
|
88
|
+
inputs["environment"] = args ? args.environment : undefined;
|
|
89
|
+
inputs["name"] = args ? args.name : undefined;
|
|
90
|
+
inputs["purpose"] = args ? args.purpose : undefined;
|
|
91
|
+
inputs["resources"] = args ? args.resources : undefined;
|
|
92
|
+
inputs["createdAt"] = undefined /*out*/;
|
|
93
|
+
inputs["isDefault"] = undefined /*out*/;
|
|
94
|
+
inputs["ownerId"] = undefined /*out*/;
|
|
95
|
+
inputs["ownerUuid"] = undefined /*out*/;
|
|
96
|
+
inputs["updatedAt"] = undefined /*out*/;
|
|
97
|
+
}
|
|
98
|
+
if (!opts.version) {
|
|
99
|
+
opts = pulumi.mergeOptions(opts, { version: utilities.getVersion() });
|
|
100
|
+
}
|
|
101
|
+
super(Project.__pulumiType, name, inputs, opts);
|
|
102
|
+
}
|
|
103
|
+
/**
|
|
104
|
+
* Get an existing Project resource's state with the given name, ID, and optional extra
|
|
105
|
+
* properties used to qualify the lookup.
|
|
106
|
+
*
|
|
107
|
+
* @param name The _unique_ name of the resulting resource.
|
|
108
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
109
|
+
* @param state Any extra arguments used during the lookup.
|
|
110
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
111
|
+
*/
|
|
112
|
+
static get(name, id, state, opts) {
|
|
113
|
+
return new Project(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
114
|
+
}
|
|
115
|
+
/**
|
|
116
|
+
* Returns true if the given object is an instance of Project. This is designed to work even
|
|
117
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
118
|
+
*/
|
|
119
|
+
static isInstance(obj) {
|
|
120
|
+
if (obj === undefined || obj === null) {
|
|
121
|
+
return false;
|
|
122
|
+
}
|
|
123
|
+
return obj['__pulumiType'] === Project.__pulumiType;
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
exports.Project = Project;
|
|
127
|
+
/** @internal */
|
|
128
|
+
Project.__pulumiType = 'digitalocean:index/project:Project';
|
|
129
|
+
//# sourceMappingURL=project.js.map
|
package/project.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"project.js","sourceRoot":"","sources":["../project.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4DG;AACH,MAAa,OAAQ,SAAQ,MAAM,CAAC,cAAc;IA0E9C,YAAY,IAAY,EAAE,WAAwC,EAAE,IAAmC;QACnG,IAAI,MAAM,GAAkB,EAAE,CAAC;QAC/B,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAAuC,CAAC;YACtD,MAAM,CAAC,WAAW,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC;YAC1D,MAAM,CAAC,aAAa,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC,CAAC,SAAS,CAAC;YAC9D,MAA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7FG,gBAAgB;AACO,oBAAY,GAAG,oCAAoC,CAAC"}
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
/**
|
|
3
|
+
* Assign resources to a DigitalOcean Project. This is useful if you need to assign resources
|
|
4
|
+
* managed via this provider to a DigitalOcean Project managed outside of the provider.
|
|
5
|
+
*
|
|
6
|
+
* The following resource types can be associated with a project:
|
|
7
|
+
*
|
|
8
|
+
* * Database Clusters
|
|
9
|
+
* * Domains
|
|
10
|
+
* * Droplets
|
|
11
|
+
* * Floating IP
|
|
12
|
+
* * Load Balancers
|
|
13
|
+
* * Spaces Bucket
|
|
14
|
+
* * Volume
|
|
15
|
+
*
|
|
16
|
+
* ## Example Usage
|
|
17
|
+
*
|
|
18
|
+
* The following example assigns a droplet to a Project managed outside of the provider:
|
|
19
|
+
*
|
|
20
|
+
* ```typescript
|
|
21
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
22
|
+
* import * as digitalocean from "@pulumi/digitalocean";
|
|
23
|
+
*
|
|
24
|
+
* const playground = digitalocean.getProject({
|
|
25
|
+
* name: "playground",
|
|
26
|
+
* });
|
|
27
|
+
* const foobar = new digitalocean.Droplet("foobar", {
|
|
28
|
+
* size: "512mb",
|
|
29
|
+
* image: "centos-7-x64",
|
|
30
|
+
* region: "nyc3",
|
|
31
|
+
* });
|
|
32
|
+
* const barfoo = new digitalocean.ProjectResources("barfoo", {
|
|
33
|
+
* project: data.digitalocean_project.foo.id,
|
|
34
|
+
* resources: [foobar.dropletUrn],
|
|
35
|
+
* });
|
|
36
|
+
* ```
|
|
37
|
+
*
|
|
38
|
+
* ## Import
|
|
39
|
+
*
|
|
40
|
+
* Importing this resource is not supported.
|
|
41
|
+
*/
|
|
42
|
+
export declare class ProjectResources extends pulumi.CustomResource {
|
|
43
|
+
/**
|
|
44
|
+
* Get an existing ProjectResources resource's state with the given name, ID, and optional extra
|
|
45
|
+
* properties used to qualify the lookup.
|
|
46
|
+
*
|
|
47
|
+
* @param name The _unique_ name of the resulting resource.
|
|
48
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
49
|
+
* @param state Any extra arguments used during the lookup.
|
|
50
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
51
|
+
*/
|
|
52
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: ProjectResourcesState, opts?: pulumi.CustomResourceOptions): ProjectResources;
|
|
53
|
+
/**
|
|
54
|
+
* Returns true if the given object is an instance of ProjectResources. This is designed to work even
|
|
55
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
56
|
+
*/
|
|
57
|
+
static isInstance(obj: any): obj is ProjectResources;
|
|
58
|
+
/**
|
|
59
|
+
* the ID of the project
|
|
60
|
+
*/
|
|
61
|
+
readonly project: pulumi.Output<string>;
|
|
62
|
+
/**
|
|
63
|
+
* a list of uniform resource names (URNs) for the resources associated with the project
|
|
64
|
+
*/
|
|
65
|
+
readonly resources: pulumi.Output<string[]>;
|
|
66
|
+
/**
|
|
67
|
+
* Create a ProjectResources resource with the given unique name, arguments, and options.
|
|
68
|
+
*
|
|
69
|
+
* @param name The _unique_ name of the resource.
|
|
70
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
71
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
72
|
+
*/
|
|
73
|
+
constructor(name: string, args: ProjectResourcesArgs, opts?: pulumi.CustomResourceOptions);
|
|
74
|
+
}
|
|
75
|
+
/**
|
|
76
|
+
* Input properties used for looking up and filtering ProjectResources resources.
|
|
77
|
+
*/
|
|
78
|
+
export interface ProjectResourcesState {
|
|
79
|
+
/**
|
|
80
|
+
* the ID of the project
|
|
81
|
+
*/
|
|
82
|
+
project?: pulumi.Input<string>;
|
|
83
|
+
/**
|
|
84
|
+
* a list of uniform resource names (URNs) for the resources associated with the project
|
|
85
|
+
*/
|
|
86
|
+
resources?: pulumi.Input<pulumi.Input<string>[]>;
|
|
87
|
+
}
|
|
88
|
+
/**
|
|
89
|
+
* The set of arguments for constructing a ProjectResources resource.
|
|
90
|
+
*/
|
|
91
|
+
export interface ProjectResourcesArgs {
|
|
92
|
+
/**
|
|
93
|
+
* the ID of the project
|
|
94
|
+
*/
|
|
95
|
+
project: pulumi.Input<string>;
|
|
96
|
+
/**
|
|
97
|
+
* a list of uniform resource names (URNs) for the resources associated with the project
|
|
98
|
+
*/
|
|
99
|
+
resources: pulumi.Input<pulumi.Input<string>[]>;
|
|
100
|
+
}
|