@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/getVpc.js
ADDED
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
|
|
3
|
+
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
const pulumi = require("@pulumi/pulumi");
|
|
6
|
+
const utilities = require("./utilities");
|
|
7
|
+
/**
|
|
8
|
+
* Retrieve information about a VPC for use in other resources.
|
|
9
|
+
*
|
|
10
|
+
* This data source provides all of the VPC's properties as configured on your
|
|
11
|
+
* DigitalOcean account. This is useful if the VPC in question is not managed by
|
|
12
|
+
* the provider or you need to utilize any of the VPC's data.
|
|
13
|
+
*
|
|
14
|
+
* VPCs may be looked up by `id` or `name`. Specifying a `region` will
|
|
15
|
+
* return that that region's default VPC.
|
|
16
|
+
*
|
|
17
|
+
* ## Example Usage
|
|
18
|
+
* ### VPC By Name
|
|
19
|
+
*
|
|
20
|
+
* ```typescript
|
|
21
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
22
|
+
* import * as digitalocean from "@pulumi/digitalocean";
|
|
23
|
+
*
|
|
24
|
+
* const example = pulumi.output(digitalocean.getVpc({
|
|
25
|
+
* name: "example-network",
|
|
26
|
+
* }));
|
|
27
|
+
* ```
|
|
28
|
+
*
|
|
29
|
+
* Reuse the data about a VPC to assign a Droplet to it:
|
|
30
|
+
*
|
|
31
|
+
* ```typescript
|
|
32
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
33
|
+
* import * as digitalocean from "@pulumi/digitalocean";
|
|
34
|
+
*
|
|
35
|
+
* const exampleVpc = digitalocean.getVpc({
|
|
36
|
+
* name: "example-network",
|
|
37
|
+
* });
|
|
38
|
+
* const exampleDroplet = new digitalocean.Droplet("exampleDroplet", {
|
|
39
|
+
* size: "s-1vcpu-1gb",
|
|
40
|
+
* image: "ubuntu-18-04-x64",
|
|
41
|
+
* region: "nyc3",
|
|
42
|
+
* vpcUuid: exampleVpc.then(exampleVpc => exampleVpc.id),
|
|
43
|
+
* });
|
|
44
|
+
* ```
|
|
45
|
+
*/
|
|
46
|
+
function getVpc(args, opts) {
|
|
47
|
+
args = args || {};
|
|
48
|
+
if (!opts) {
|
|
49
|
+
opts = {};
|
|
50
|
+
}
|
|
51
|
+
if (!opts.version) {
|
|
52
|
+
opts.version = utilities.getVersion();
|
|
53
|
+
}
|
|
54
|
+
return pulumi.runtime.invoke("digitalocean:index/getVpc:getVpc", {
|
|
55
|
+
"id": args.id,
|
|
56
|
+
"name": args.name,
|
|
57
|
+
"region": args.region,
|
|
58
|
+
}, opts);
|
|
59
|
+
}
|
|
60
|
+
exports.getVpc = getVpc;
|
|
61
|
+
//# sourceMappingURL=getVpc.js.map
|
package/getVpc.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getVpc.js","sourceRoot":"","sources":["../getVpc.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;AAEjF,yCAAyC;AAEzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsCG;AACH,SAAgB,MAAM,CAAC,IAAiB,EAAE,IAA2B;IACjE,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,kCAAkC,EAAE;QAC7D,IAAI,EAAE,IAAI,CAAC,EAAE;QACb,MAAM,EAAE,IAAI,CAAC,IAAI;QACjB,QAAQ,EAAE,IAAI,CAAC,MAAM;KACxB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAdD,wBAcC"}
|
package/index.d.ts
ADDED
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
export * from "./app";
|
|
2
|
+
export * from "./cdn";
|
|
3
|
+
export * from "./certificate";
|
|
4
|
+
export * from "./containerRegistry";
|
|
5
|
+
export * from "./containerRegistryDockerCredentials";
|
|
6
|
+
export * from "./customImage";
|
|
7
|
+
export * from "./databaseCluster";
|
|
8
|
+
export * from "./databaseConnectionPool";
|
|
9
|
+
export * from "./databaseDb";
|
|
10
|
+
export * from "./databaseFirewall";
|
|
11
|
+
export * from "./databaseReplica";
|
|
12
|
+
export * from "./databaseUser";
|
|
13
|
+
export * from "./dnsRecord";
|
|
14
|
+
export * from "./domain";
|
|
15
|
+
export * from "./droplet";
|
|
16
|
+
export * from "./dropletSnapshot";
|
|
17
|
+
export * from "./firewall";
|
|
18
|
+
export * from "./floatingIp";
|
|
19
|
+
export * from "./floatingIpAssignment";
|
|
20
|
+
export * from "./getAccount";
|
|
21
|
+
export * from "./getApp";
|
|
22
|
+
export * from "./getCertificate";
|
|
23
|
+
export * from "./getContainerRegistry";
|
|
24
|
+
export * from "./getDatabaseCluster";
|
|
25
|
+
export * from "./getDatabaseReplica";
|
|
26
|
+
export * from "./getDomain";
|
|
27
|
+
export * from "./getDomains";
|
|
28
|
+
export * from "./getDroplet";
|
|
29
|
+
export * from "./getDropletSnapshot";
|
|
30
|
+
export * from "./getDroplets";
|
|
31
|
+
export * from "./getFirewall";
|
|
32
|
+
export * from "./getFloatingIp";
|
|
33
|
+
export * from "./getImage";
|
|
34
|
+
export * from "./getImages";
|
|
35
|
+
export * from "./getKubernetesCluster";
|
|
36
|
+
export * from "./getKubernetesVersions";
|
|
37
|
+
export * from "./getLoadBalancer";
|
|
38
|
+
export * from "./getProject";
|
|
39
|
+
export * from "./getProjects";
|
|
40
|
+
export * from "./getRecord";
|
|
41
|
+
export * from "./getRecords";
|
|
42
|
+
export * from "./getRegion";
|
|
43
|
+
export * from "./getRegions";
|
|
44
|
+
export * from "./getSizes";
|
|
45
|
+
export * from "./getSpacesBucket";
|
|
46
|
+
export * from "./getSpacesBucketObject";
|
|
47
|
+
export * from "./getSpacesBucketObjects";
|
|
48
|
+
export * from "./getSpacesBuckets";
|
|
49
|
+
export * from "./getSshKey";
|
|
50
|
+
export * from "./getSshKeys";
|
|
51
|
+
export * from "./getTag";
|
|
52
|
+
export * from "./getTags";
|
|
53
|
+
export * from "./getVolume";
|
|
54
|
+
export * from "./getVolumeSnapshot";
|
|
55
|
+
export * from "./getVpc";
|
|
56
|
+
export * from "./kubernetesCluster";
|
|
57
|
+
export * from "./kubernetesNodePool";
|
|
58
|
+
export * from "./loadBalancer";
|
|
59
|
+
export * from "./monitorAlert";
|
|
60
|
+
export * from "./project";
|
|
61
|
+
export * from "./projectResources";
|
|
62
|
+
export * from "./provider";
|
|
63
|
+
export * from "./spacesBucket";
|
|
64
|
+
export * from "./spacesBucketObject";
|
|
65
|
+
export * from "./sshKey";
|
|
66
|
+
export * from "./tag";
|
|
67
|
+
export * from "./volume";
|
|
68
|
+
export * from "./volumeAttachment";
|
|
69
|
+
export * from "./volumeSnapshot";
|
|
70
|
+
export * from "./vpc";
|
|
71
|
+
export * from "./types/enums";
|
|
72
|
+
import * as config from "./config";
|
|
73
|
+
import * as types from "./types";
|
|
74
|
+
export { config, types, };
|
package/index.js
ADDED
|
@@ -0,0 +1,240 @@
|
|
|
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
|
+
function __export(m) {
|
|
5
|
+
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
|
|
6
|
+
}
|
|
7
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
+
const pulumi = require("@pulumi/pulumi");
|
|
9
|
+
const utilities = require("./utilities");
|
|
10
|
+
// Export members:
|
|
11
|
+
__export(require("./app"));
|
|
12
|
+
__export(require("./cdn"));
|
|
13
|
+
__export(require("./certificate"));
|
|
14
|
+
__export(require("./containerRegistry"));
|
|
15
|
+
__export(require("./containerRegistryDockerCredentials"));
|
|
16
|
+
__export(require("./customImage"));
|
|
17
|
+
__export(require("./databaseCluster"));
|
|
18
|
+
__export(require("./databaseConnectionPool"));
|
|
19
|
+
__export(require("./databaseDb"));
|
|
20
|
+
__export(require("./databaseFirewall"));
|
|
21
|
+
__export(require("./databaseReplica"));
|
|
22
|
+
__export(require("./databaseUser"));
|
|
23
|
+
__export(require("./dnsRecord"));
|
|
24
|
+
__export(require("./domain"));
|
|
25
|
+
__export(require("./droplet"));
|
|
26
|
+
__export(require("./dropletSnapshot"));
|
|
27
|
+
__export(require("./firewall"));
|
|
28
|
+
__export(require("./floatingIp"));
|
|
29
|
+
__export(require("./floatingIpAssignment"));
|
|
30
|
+
__export(require("./getAccount"));
|
|
31
|
+
__export(require("./getApp"));
|
|
32
|
+
__export(require("./getCertificate"));
|
|
33
|
+
__export(require("./getContainerRegistry"));
|
|
34
|
+
__export(require("./getDatabaseCluster"));
|
|
35
|
+
__export(require("./getDatabaseReplica"));
|
|
36
|
+
__export(require("./getDomain"));
|
|
37
|
+
__export(require("./getDomains"));
|
|
38
|
+
__export(require("./getDroplet"));
|
|
39
|
+
__export(require("./getDropletSnapshot"));
|
|
40
|
+
__export(require("./getDroplets"));
|
|
41
|
+
__export(require("./getFirewall"));
|
|
42
|
+
__export(require("./getFloatingIp"));
|
|
43
|
+
__export(require("./getImage"));
|
|
44
|
+
__export(require("./getImages"));
|
|
45
|
+
__export(require("./getKubernetesCluster"));
|
|
46
|
+
__export(require("./getKubernetesVersions"));
|
|
47
|
+
__export(require("./getLoadBalancer"));
|
|
48
|
+
__export(require("./getProject"));
|
|
49
|
+
__export(require("./getProjects"));
|
|
50
|
+
__export(require("./getRecord"));
|
|
51
|
+
__export(require("./getRecords"));
|
|
52
|
+
__export(require("./getRegion"));
|
|
53
|
+
__export(require("./getRegions"));
|
|
54
|
+
__export(require("./getSizes"));
|
|
55
|
+
__export(require("./getSpacesBucket"));
|
|
56
|
+
__export(require("./getSpacesBucketObject"));
|
|
57
|
+
__export(require("./getSpacesBucketObjects"));
|
|
58
|
+
__export(require("./getSpacesBuckets"));
|
|
59
|
+
__export(require("./getSshKey"));
|
|
60
|
+
__export(require("./getSshKeys"));
|
|
61
|
+
__export(require("./getTag"));
|
|
62
|
+
__export(require("./getTags"));
|
|
63
|
+
__export(require("./getVolume"));
|
|
64
|
+
__export(require("./getVolumeSnapshot"));
|
|
65
|
+
__export(require("./getVpc"));
|
|
66
|
+
__export(require("./kubernetesCluster"));
|
|
67
|
+
__export(require("./kubernetesNodePool"));
|
|
68
|
+
__export(require("./loadBalancer"));
|
|
69
|
+
__export(require("./monitorAlert"));
|
|
70
|
+
__export(require("./project"));
|
|
71
|
+
__export(require("./projectResources"));
|
|
72
|
+
__export(require("./provider"));
|
|
73
|
+
__export(require("./spacesBucket"));
|
|
74
|
+
__export(require("./spacesBucketObject"));
|
|
75
|
+
__export(require("./sshKey"));
|
|
76
|
+
__export(require("./tag"));
|
|
77
|
+
__export(require("./volume"));
|
|
78
|
+
__export(require("./volumeAttachment"));
|
|
79
|
+
__export(require("./volumeSnapshot"));
|
|
80
|
+
__export(require("./vpc"));
|
|
81
|
+
// Export enums:
|
|
82
|
+
__export(require("./types/enums"));
|
|
83
|
+
// Export sub-modules:
|
|
84
|
+
const config = require("./config");
|
|
85
|
+
exports.config = config;
|
|
86
|
+
const types = require("./types");
|
|
87
|
+
exports.types = types;
|
|
88
|
+
// Import resources to register:
|
|
89
|
+
const app_1 = require("./app");
|
|
90
|
+
const cdn_1 = require("./cdn");
|
|
91
|
+
const certificate_1 = require("./certificate");
|
|
92
|
+
const containerRegistry_1 = require("./containerRegistry");
|
|
93
|
+
const containerRegistryDockerCredentials_1 = require("./containerRegistryDockerCredentials");
|
|
94
|
+
const customImage_1 = require("./customImage");
|
|
95
|
+
const databaseCluster_1 = require("./databaseCluster");
|
|
96
|
+
const databaseConnectionPool_1 = require("./databaseConnectionPool");
|
|
97
|
+
const databaseDb_1 = require("./databaseDb");
|
|
98
|
+
const databaseFirewall_1 = require("./databaseFirewall");
|
|
99
|
+
const databaseReplica_1 = require("./databaseReplica");
|
|
100
|
+
const databaseUser_1 = require("./databaseUser");
|
|
101
|
+
const dnsRecord_1 = require("./dnsRecord");
|
|
102
|
+
const domain_1 = require("./domain");
|
|
103
|
+
const droplet_1 = require("./droplet");
|
|
104
|
+
const dropletSnapshot_1 = require("./dropletSnapshot");
|
|
105
|
+
const firewall_1 = require("./firewall");
|
|
106
|
+
const floatingIp_1 = require("./floatingIp");
|
|
107
|
+
const floatingIpAssignment_1 = require("./floatingIpAssignment");
|
|
108
|
+
const kubernetesCluster_1 = require("./kubernetesCluster");
|
|
109
|
+
const kubernetesNodePool_1 = require("./kubernetesNodePool");
|
|
110
|
+
const loadBalancer_1 = require("./loadBalancer");
|
|
111
|
+
const monitorAlert_1 = require("./monitorAlert");
|
|
112
|
+
const project_1 = require("./project");
|
|
113
|
+
const projectResources_1 = require("./projectResources");
|
|
114
|
+
const spacesBucket_1 = require("./spacesBucket");
|
|
115
|
+
const spacesBucketObject_1 = require("./spacesBucketObject");
|
|
116
|
+
const sshKey_1 = require("./sshKey");
|
|
117
|
+
const tag_1 = require("./tag");
|
|
118
|
+
const volume_1 = require("./volume");
|
|
119
|
+
const volumeAttachment_1 = require("./volumeAttachment");
|
|
120
|
+
const volumeSnapshot_1 = require("./volumeSnapshot");
|
|
121
|
+
const vpc_1 = require("./vpc");
|
|
122
|
+
const _module = {
|
|
123
|
+
version: utilities.getVersion(),
|
|
124
|
+
construct: (name, type, urn) => {
|
|
125
|
+
switch (type) {
|
|
126
|
+
case "digitalocean:index/app:App":
|
|
127
|
+
return new app_1.App(name, undefined, { urn });
|
|
128
|
+
case "digitalocean:index/cdn:Cdn":
|
|
129
|
+
return new cdn_1.Cdn(name, undefined, { urn });
|
|
130
|
+
case "digitalocean:index/certificate:Certificate":
|
|
131
|
+
return new certificate_1.Certificate(name, undefined, { urn });
|
|
132
|
+
case "digitalocean:index/containerRegistry:ContainerRegistry":
|
|
133
|
+
return new containerRegistry_1.ContainerRegistry(name, undefined, { urn });
|
|
134
|
+
case "digitalocean:index/containerRegistryDockerCredentials:ContainerRegistryDockerCredentials":
|
|
135
|
+
return new containerRegistryDockerCredentials_1.ContainerRegistryDockerCredentials(name, undefined, { urn });
|
|
136
|
+
case "digitalocean:index/customImage:CustomImage":
|
|
137
|
+
return new customImage_1.CustomImage(name, undefined, { urn });
|
|
138
|
+
case "digitalocean:index/databaseCluster:DatabaseCluster":
|
|
139
|
+
return new databaseCluster_1.DatabaseCluster(name, undefined, { urn });
|
|
140
|
+
case "digitalocean:index/databaseConnectionPool:DatabaseConnectionPool":
|
|
141
|
+
return new databaseConnectionPool_1.DatabaseConnectionPool(name, undefined, { urn });
|
|
142
|
+
case "digitalocean:index/databaseDb:DatabaseDb":
|
|
143
|
+
return new databaseDb_1.DatabaseDb(name, undefined, { urn });
|
|
144
|
+
case "digitalocean:index/databaseFirewall:DatabaseFirewall":
|
|
145
|
+
return new databaseFirewall_1.DatabaseFirewall(name, undefined, { urn });
|
|
146
|
+
case "digitalocean:index/databaseReplica:DatabaseReplica":
|
|
147
|
+
return new databaseReplica_1.DatabaseReplica(name, undefined, { urn });
|
|
148
|
+
case "digitalocean:index/databaseUser:DatabaseUser":
|
|
149
|
+
return new databaseUser_1.DatabaseUser(name, undefined, { urn });
|
|
150
|
+
case "digitalocean:index/dnsRecord:DnsRecord":
|
|
151
|
+
return new dnsRecord_1.DnsRecord(name, undefined, { urn });
|
|
152
|
+
case "digitalocean:index/domain:Domain":
|
|
153
|
+
return new domain_1.Domain(name, undefined, { urn });
|
|
154
|
+
case "digitalocean:index/droplet:Droplet":
|
|
155
|
+
return new droplet_1.Droplet(name, undefined, { urn });
|
|
156
|
+
case "digitalocean:index/dropletSnapshot:DropletSnapshot":
|
|
157
|
+
return new dropletSnapshot_1.DropletSnapshot(name, undefined, { urn });
|
|
158
|
+
case "digitalocean:index/firewall:Firewall":
|
|
159
|
+
return new firewall_1.Firewall(name, undefined, { urn });
|
|
160
|
+
case "digitalocean:index/floatingIp:FloatingIp":
|
|
161
|
+
return new floatingIp_1.FloatingIp(name, undefined, { urn });
|
|
162
|
+
case "digitalocean:index/floatingIpAssignment:FloatingIpAssignment":
|
|
163
|
+
return new floatingIpAssignment_1.FloatingIpAssignment(name, undefined, { urn });
|
|
164
|
+
case "digitalocean:index/kubernetesCluster:KubernetesCluster":
|
|
165
|
+
return new kubernetesCluster_1.KubernetesCluster(name, undefined, { urn });
|
|
166
|
+
case "digitalocean:index/kubernetesNodePool:KubernetesNodePool":
|
|
167
|
+
return new kubernetesNodePool_1.KubernetesNodePool(name, undefined, { urn });
|
|
168
|
+
case "digitalocean:index/loadBalancer:LoadBalancer":
|
|
169
|
+
return new loadBalancer_1.LoadBalancer(name, undefined, { urn });
|
|
170
|
+
case "digitalocean:index/monitorAlert:MonitorAlert":
|
|
171
|
+
return new monitorAlert_1.MonitorAlert(name, undefined, { urn });
|
|
172
|
+
case "digitalocean:index/project:Project":
|
|
173
|
+
return new project_1.Project(name, undefined, { urn });
|
|
174
|
+
case "digitalocean:index/projectResources:ProjectResources":
|
|
175
|
+
return new projectResources_1.ProjectResources(name, undefined, { urn });
|
|
176
|
+
case "digitalocean:index/spacesBucket:SpacesBucket":
|
|
177
|
+
return new spacesBucket_1.SpacesBucket(name, undefined, { urn });
|
|
178
|
+
case "digitalocean:index/spacesBucketObject:SpacesBucketObject":
|
|
179
|
+
return new spacesBucketObject_1.SpacesBucketObject(name, undefined, { urn });
|
|
180
|
+
case "digitalocean:index/sshKey:SshKey":
|
|
181
|
+
return new sshKey_1.SshKey(name, undefined, { urn });
|
|
182
|
+
case "digitalocean:index/tag:Tag":
|
|
183
|
+
return new tag_1.Tag(name, undefined, { urn });
|
|
184
|
+
case "digitalocean:index/volume:Volume":
|
|
185
|
+
return new volume_1.Volume(name, undefined, { urn });
|
|
186
|
+
case "digitalocean:index/volumeAttachment:VolumeAttachment":
|
|
187
|
+
return new volumeAttachment_1.VolumeAttachment(name, undefined, { urn });
|
|
188
|
+
case "digitalocean:index/volumeSnapshot:VolumeSnapshot":
|
|
189
|
+
return new volumeSnapshot_1.VolumeSnapshot(name, undefined, { urn });
|
|
190
|
+
case "digitalocean:index/vpc:Vpc":
|
|
191
|
+
return new vpc_1.Vpc(name, undefined, { urn });
|
|
192
|
+
default:
|
|
193
|
+
throw new Error(`unknown resource type ${type}`);
|
|
194
|
+
}
|
|
195
|
+
},
|
|
196
|
+
};
|
|
197
|
+
pulumi.runtime.registerResourceModule("digitalocean", "index/app", _module);
|
|
198
|
+
pulumi.runtime.registerResourceModule("digitalocean", "index/cdn", _module);
|
|
199
|
+
pulumi.runtime.registerResourceModule("digitalocean", "index/certificate", _module);
|
|
200
|
+
pulumi.runtime.registerResourceModule("digitalocean", "index/containerRegistry", _module);
|
|
201
|
+
pulumi.runtime.registerResourceModule("digitalocean", "index/containerRegistryDockerCredentials", _module);
|
|
202
|
+
pulumi.runtime.registerResourceModule("digitalocean", "index/customImage", _module);
|
|
203
|
+
pulumi.runtime.registerResourceModule("digitalocean", "index/databaseCluster", _module);
|
|
204
|
+
pulumi.runtime.registerResourceModule("digitalocean", "index/databaseConnectionPool", _module);
|
|
205
|
+
pulumi.runtime.registerResourceModule("digitalocean", "index/databaseDb", _module);
|
|
206
|
+
pulumi.runtime.registerResourceModule("digitalocean", "index/databaseFirewall", _module);
|
|
207
|
+
pulumi.runtime.registerResourceModule("digitalocean", "index/databaseReplica", _module);
|
|
208
|
+
pulumi.runtime.registerResourceModule("digitalocean", "index/databaseUser", _module);
|
|
209
|
+
pulumi.runtime.registerResourceModule("digitalocean", "index/dnsRecord", _module);
|
|
210
|
+
pulumi.runtime.registerResourceModule("digitalocean", "index/domain", _module);
|
|
211
|
+
pulumi.runtime.registerResourceModule("digitalocean", "index/droplet", _module);
|
|
212
|
+
pulumi.runtime.registerResourceModule("digitalocean", "index/dropletSnapshot", _module);
|
|
213
|
+
pulumi.runtime.registerResourceModule("digitalocean", "index/firewall", _module);
|
|
214
|
+
pulumi.runtime.registerResourceModule("digitalocean", "index/floatingIp", _module);
|
|
215
|
+
pulumi.runtime.registerResourceModule("digitalocean", "index/floatingIpAssignment", _module);
|
|
216
|
+
pulumi.runtime.registerResourceModule("digitalocean", "index/kubernetesCluster", _module);
|
|
217
|
+
pulumi.runtime.registerResourceModule("digitalocean", "index/kubernetesNodePool", _module);
|
|
218
|
+
pulumi.runtime.registerResourceModule("digitalocean", "index/loadBalancer", _module);
|
|
219
|
+
pulumi.runtime.registerResourceModule("digitalocean", "index/monitorAlert", _module);
|
|
220
|
+
pulumi.runtime.registerResourceModule("digitalocean", "index/project", _module);
|
|
221
|
+
pulumi.runtime.registerResourceModule("digitalocean", "index/projectResources", _module);
|
|
222
|
+
pulumi.runtime.registerResourceModule("digitalocean", "index/spacesBucket", _module);
|
|
223
|
+
pulumi.runtime.registerResourceModule("digitalocean", "index/spacesBucketObject", _module);
|
|
224
|
+
pulumi.runtime.registerResourceModule("digitalocean", "index/sshKey", _module);
|
|
225
|
+
pulumi.runtime.registerResourceModule("digitalocean", "index/tag", _module);
|
|
226
|
+
pulumi.runtime.registerResourceModule("digitalocean", "index/volume", _module);
|
|
227
|
+
pulumi.runtime.registerResourceModule("digitalocean", "index/volumeAttachment", _module);
|
|
228
|
+
pulumi.runtime.registerResourceModule("digitalocean", "index/volumeSnapshot", _module);
|
|
229
|
+
pulumi.runtime.registerResourceModule("digitalocean", "index/vpc", _module);
|
|
230
|
+
const provider_1 = require("./provider");
|
|
231
|
+
pulumi.runtime.registerResourcePackage("digitalocean", {
|
|
232
|
+
version: utilities.getVersion(),
|
|
233
|
+
constructProvider: (name, type, urn) => {
|
|
234
|
+
if (type !== "pulumi:providers:digitalocean") {
|
|
235
|
+
throw new Error(`unknown provider type ${type}`);
|
|
236
|
+
}
|
|
237
|
+
return new provider_1.Provider(name, undefined, { urn });
|
|
238
|
+
},
|
|
239
|
+
});
|
|
240
|
+
//# sourceMappingURL=index.js.map
|
package/index.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC,kBAAkB;AAClB,2BAAsB;AACtB,2BAAsB;AACtB,mCAA8B;AAC9B,yCAAoC;AACpC,0DAAqD;AACrD,mCAA8B;AAC9B,uCAAkC;AAClC,8CAAyC;AACzC,kCAA6B;AAC7B,wCAAmC;AACnC,uCAAkC;AAClC,oCAA+B;AAC/B,iCAA4B;AAC5B,8BAAyB;AACzB,+BAA0B;AAC1B,uCAAkC;AAClC,gCAA2B;AAC3B,kCAA6B;AAC7B,4CAAuC;AACvC,kCAA6B;AAC7B,8BAAyB;AACzB,sCAAiC;AACjC,4CAAuC;AACvC,0CAAqC;AACrC,0CAAqC;AACrC,iCAA4B;AAC5B,kCAA6B;AAC7B,kCAA6B;AAC7B,0CAAqC;AACrC,mCAA8B;AAC9B,mCAA8B;AAC9B,qCAAgC;AAChC,gCAA2B;AAC3B,iCAA4B;AAC5B,4CAAuC;AACvC,6CAAwC;AACxC,uCAAkC;AAClC,kCAA6B;AAC7B,mCAA8B;AAC9B,iCAA4B;AAC5B,kCAA6B;AAC7B,iC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AsB,CAAC,cAAc,EAAE,WAAW,EAAE,OAAO,CAAC,CAAA;AAC3E,MAAM,CAAC,OAAO,CAAC,sBAAsB,CAAC,cAAc,EAAE,cAAc,EAAE,OAAO,CAAC,CAAA;AAC9E,MAAM,CAAC,OAAO,CAAC,sBAAsB,CAAC,cAAc,EAAE,wBAAwB,EAAE,OAAO,CAAC,CAAA;AACxF,MAAM,CAAC,OAAO,CAAC,sBAAsB,CAAC,cAAc,EAAE,sBAAsB,EAAE,OAAO,CAAC,CAAA;AACtF,MAAM,CAAC,OAAO,CAAC,sBAAsB,CAAC,cAAc,EAAE,WAAW,EAAE,OAAO,CAAC,CAAA;AAE3E,yCAAsC;AAEtC,MAAM,CAAC,OAAO,CAAC,uBAAuB,CAAC,cAAc,EAAE;IACnD,OAAO,EAAE,SAAS,CAAC,UAAU,EAAE;IAC/B,iBAAiB,EAAE,CAAC,IAAY,EAAE,IAAY,EAAE,GAAW,EAA2B,EAAE;QACpF,IAAI,IAAI,KAAK,+BAA+B,EAAE;YAC1C,MAAM,IAAI,KAAK,CAAC,yBAAyB,IAAI,EAAE,CAAC,CAAC;SACpD;QACD,OAAO,IAAI,mBAAQ,CAAC,IAAI,EAAO,SAAS,EAAE,EAAE,GAAG,EAAE,CAAC,CAAC;IACvD,CAAC;CACJ,CAAC,CAAC"}
|
|
@@ -0,0 +1,220 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
import { input as inputs, output as outputs, enums } from "./types";
|
|
3
|
+
/**
|
|
4
|
+
* ## Import
|
|
5
|
+
*
|
|
6
|
+
* Before importing a Kubernetes cluster, the cluster's default node pool must be tagged with the `terraform:default-node-pool` tag. The provider will automatically add this tag if the cluster has a single node pool. Clusters with more than one node pool, however, will require that you manually add the `terraform:default-node-pool` tag to the node pool that you intend to be the default node pool. Then the Kubernetes cluster and all of its node pools can be imported using the cluster's `id`, e.g.
|
|
7
|
+
*
|
|
8
|
+
* ```sh
|
|
9
|
+
* $ pulumi import digitalocean:index/kubernetesCluster:KubernetesCluster mycluster 1b8b2100-0e9f-4e8f-ad78-9eb578c2a0af
|
|
10
|
+
* ```
|
|
11
|
+
*/
|
|
12
|
+
export declare class KubernetesCluster extends pulumi.CustomResource {
|
|
13
|
+
/**
|
|
14
|
+
* Get an existing KubernetesCluster resource's state with the given name, ID, and optional extra
|
|
15
|
+
* properties used to qualify the lookup.
|
|
16
|
+
*
|
|
17
|
+
* @param name The _unique_ name of the resulting resource.
|
|
18
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
19
|
+
* @param state Any extra arguments used during the lookup.
|
|
20
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
21
|
+
*/
|
|
22
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: KubernetesClusterState, opts?: pulumi.CustomResourceOptions): KubernetesCluster;
|
|
23
|
+
/**
|
|
24
|
+
* Returns true if the given object is an instance of KubernetesCluster. This is designed to work even
|
|
25
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
26
|
+
*/
|
|
27
|
+
static isInstance(obj: any): obj is KubernetesCluster;
|
|
28
|
+
/**
|
|
29
|
+
* A boolean value indicating whether the cluster will be automatically upgraded to new patch releases during its maintenance window.
|
|
30
|
+
*/
|
|
31
|
+
readonly autoUpgrade: pulumi.Output<boolean | undefined>;
|
|
32
|
+
/**
|
|
33
|
+
* The range of IP addresses in the overlay network of the Kubernetes cluster.
|
|
34
|
+
*/
|
|
35
|
+
readonly clusterSubnet: pulumi.Output<string>;
|
|
36
|
+
/**
|
|
37
|
+
* The uniform resource name (URN) for the Kubernetes cluster.
|
|
38
|
+
*/
|
|
39
|
+
readonly clusterUrn: pulumi.Output<string>;
|
|
40
|
+
/**
|
|
41
|
+
* The date and time when the node was created.
|
|
42
|
+
*/
|
|
43
|
+
readonly createdAt: pulumi.Output<string>;
|
|
44
|
+
/**
|
|
45
|
+
* The base URL of the API server on the Kubernetes master node.
|
|
46
|
+
*/
|
|
47
|
+
readonly endpoint: pulumi.Output<string>;
|
|
48
|
+
/**
|
|
49
|
+
* The public IPv4 address of the Kubernetes master node.
|
|
50
|
+
*/
|
|
51
|
+
readonly ipv4Address: pulumi.Output<string>;
|
|
52
|
+
readonly kubeConfigs: pulumi.Output<outputs.KubernetesClusterKubeConfig[]>;
|
|
53
|
+
/**
|
|
54
|
+
* A block representing the cluster's maintenance window. Updates will be applied within this window. If not specified, a default maintenance window will be chosen. `autoUpgrade` must be set to `true` for this to have an effect.
|
|
55
|
+
*/
|
|
56
|
+
readonly maintenancePolicy: pulumi.Output<outputs.KubernetesClusterMaintenancePolicy>;
|
|
57
|
+
/**
|
|
58
|
+
* A name for the node pool.
|
|
59
|
+
*/
|
|
60
|
+
readonly name: pulumi.Output<string>;
|
|
61
|
+
/**
|
|
62
|
+
* A block representing the cluster's default node pool. Additional node pools may be added to the cluster using the `digitalocean.KubernetesNodePool` resource. The following arguments may be specified:
|
|
63
|
+
*/
|
|
64
|
+
readonly nodePool: pulumi.Output<outputs.KubernetesClusterNodePool>;
|
|
65
|
+
/**
|
|
66
|
+
* The slug identifier for the region where the Kubernetes cluster will be created.
|
|
67
|
+
*/
|
|
68
|
+
readonly region: pulumi.Output<string>;
|
|
69
|
+
/**
|
|
70
|
+
* The range of assignable IP addresses for services running in the Kubernetes cluster.
|
|
71
|
+
*/
|
|
72
|
+
readonly serviceSubnet: pulumi.Output<string>;
|
|
73
|
+
/**
|
|
74
|
+
* A string indicating the current status of the individual node.
|
|
75
|
+
*/
|
|
76
|
+
readonly status: pulumi.Output<string>;
|
|
77
|
+
/**
|
|
78
|
+
* Enable/disable surge upgrades for a cluster. Default: false
|
|
79
|
+
*/
|
|
80
|
+
readonly surgeUpgrade: pulumi.Output<boolean | undefined>;
|
|
81
|
+
/**
|
|
82
|
+
* A list of tag names to be applied to the Kubernetes cluster.
|
|
83
|
+
*/
|
|
84
|
+
readonly tags: pulumi.Output<string[] | undefined>;
|
|
85
|
+
/**
|
|
86
|
+
* The date and time when the node was last updated.
|
|
87
|
+
*/
|
|
88
|
+
readonly updatedAt: pulumi.Output<string>;
|
|
89
|
+
/**
|
|
90
|
+
* The slug identifier for the version of Kubernetes used for the cluster. Use [doctl](https://github.com/digitalocean/doctl) to find the available versions `doctl kubernetes options versions`. (**Note:** A cluster may only be upgraded to newer versions in-place. If the version is decreased, a new resource will be created.)
|
|
91
|
+
*/
|
|
92
|
+
readonly version: pulumi.Output<string>;
|
|
93
|
+
/**
|
|
94
|
+
* The ID of the VPC where the Kubernetes cluster will be located.
|
|
95
|
+
*/
|
|
96
|
+
readonly vpcUuid: pulumi.Output<string>;
|
|
97
|
+
/**
|
|
98
|
+
* Create a KubernetesCluster resource with the given unique name, arguments, and options.
|
|
99
|
+
*
|
|
100
|
+
* @param name The _unique_ name of the resource.
|
|
101
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
102
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
103
|
+
*/
|
|
104
|
+
constructor(name: string, args: KubernetesClusterArgs, opts?: pulumi.CustomResourceOptions);
|
|
105
|
+
}
|
|
106
|
+
/**
|
|
107
|
+
* Input properties used for looking up and filtering KubernetesCluster resources.
|
|
108
|
+
*/
|
|
109
|
+
export interface KubernetesClusterState {
|
|
110
|
+
/**
|
|
111
|
+
* A boolean value indicating whether the cluster will be automatically upgraded to new patch releases during its maintenance window.
|
|
112
|
+
*/
|
|
113
|
+
autoUpgrade?: pulumi.Input<boolean>;
|
|
114
|
+
/**
|
|
115
|
+
* The range of IP addresses in the overlay network of the Kubernetes cluster.
|
|
116
|
+
*/
|
|
117
|
+
clusterSubnet?: pulumi.Input<string>;
|
|
118
|
+
/**
|
|
119
|
+
* The uniform resource name (URN) for the Kubernetes cluster.
|
|
120
|
+
*/
|
|
121
|
+
clusterUrn?: pulumi.Input<string>;
|
|
122
|
+
/**
|
|
123
|
+
* The date and time when the node was created.
|
|
124
|
+
*/
|
|
125
|
+
createdAt?: pulumi.Input<string>;
|
|
126
|
+
/**
|
|
127
|
+
* The base URL of the API server on the Kubernetes master node.
|
|
128
|
+
*/
|
|
129
|
+
endpoint?: pulumi.Input<string>;
|
|
130
|
+
/**
|
|
131
|
+
* The public IPv4 address of the Kubernetes master node.
|
|
132
|
+
*/
|
|
133
|
+
ipv4Address?: pulumi.Input<string>;
|
|
134
|
+
kubeConfigs?: pulumi.Input<pulumi.Input<inputs.KubernetesClusterKubeConfig>[]>;
|
|
135
|
+
/**
|
|
136
|
+
* A block representing the cluster's maintenance window. Updates will be applied within this window. If not specified, a default maintenance window will be chosen. `autoUpgrade` must be set to `true` for this to have an effect.
|
|
137
|
+
*/
|
|
138
|
+
maintenancePolicy?: pulumi.Input<inputs.KubernetesClusterMaintenancePolicy>;
|
|
139
|
+
/**
|
|
140
|
+
* A name for the node pool.
|
|
141
|
+
*/
|
|
142
|
+
name?: pulumi.Input<string>;
|
|
143
|
+
/**
|
|
144
|
+
* A block representing the cluster's default node pool. Additional node pools may be added to the cluster using the `digitalocean.KubernetesNodePool` resource. The following arguments may be specified:
|
|
145
|
+
*/
|
|
146
|
+
nodePool?: pulumi.Input<inputs.KubernetesClusterNodePool>;
|
|
147
|
+
/**
|
|
148
|
+
* The slug identifier for the region where the Kubernetes cluster will be created.
|
|
149
|
+
*/
|
|
150
|
+
region?: pulumi.Input<string | enums.Region>;
|
|
151
|
+
/**
|
|
152
|
+
* The range of assignable IP addresses for services running in the Kubernetes cluster.
|
|
153
|
+
*/
|
|
154
|
+
serviceSubnet?: pulumi.Input<string>;
|
|
155
|
+
/**
|
|
156
|
+
* A string indicating the current status of the individual node.
|
|
157
|
+
*/
|
|
158
|
+
status?: pulumi.Input<string>;
|
|
159
|
+
/**
|
|
160
|
+
* Enable/disable surge upgrades for a cluster. Default: false
|
|
161
|
+
*/
|
|
162
|
+
surgeUpgrade?: pulumi.Input<boolean>;
|
|
163
|
+
/**
|
|
164
|
+
* A list of tag names to be applied to the Kubernetes cluster.
|
|
165
|
+
*/
|
|
166
|
+
tags?: pulumi.Input<pulumi.Input<string>[]>;
|
|
167
|
+
/**
|
|
168
|
+
* The date and time when the node was last updated.
|
|
169
|
+
*/
|
|
170
|
+
updatedAt?: pulumi.Input<string>;
|
|
171
|
+
/**
|
|
172
|
+
* The slug identifier for the version of Kubernetes used for the cluster. Use [doctl](https://github.com/digitalocean/doctl) to find the available versions `doctl kubernetes options versions`. (**Note:** A cluster may only be upgraded to newer versions in-place. If the version is decreased, a new resource will be created.)
|
|
173
|
+
*/
|
|
174
|
+
version?: pulumi.Input<string>;
|
|
175
|
+
/**
|
|
176
|
+
* The ID of the VPC where the Kubernetes cluster will be located.
|
|
177
|
+
*/
|
|
178
|
+
vpcUuid?: pulumi.Input<string>;
|
|
179
|
+
}
|
|
180
|
+
/**
|
|
181
|
+
* The set of arguments for constructing a KubernetesCluster resource.
|
|
182
|
+
*/
|
|
183
|
+
export interface KubernetesClusterArgs {
|
|
184
|
+
/**
|
|
185
|
+
* A boolean value indicating whether the cluster will be automatically upgraded to new patch releases during its maintenance window.
|
|
186
|
+
*/
|
|
187
|
+
autoUpgrade?: pulumi.Input<boolean>;
|
|
188
|
+
/**
|
|
189
|
+
* A block representing the cluster's maintenance window. Updates will be applied within this window. If not specified, a default maintenance window will be chosen. `autoUpgrade` must be set to `true` for this to have an effect.
|
|
190
|
+
*/
|
|
191
|
+
maintenancePolicy?: pulumi.Input<inputs.KubernetesClusterMaintenancePolicy>;
|
|
192
|
+
/**
|
|
193
|
+
* A name for the node pool.
|
|
194
|
+
*/
|
|
195
|
+
name?: pulumi.Input<string>;
|
|
196
|
+
/**
|
|
197
|
+
* A block representing the cluster's default node pool. Additional node pools may be added to the cluster using the `digitalocean.KubernetesNodePool` resource. The following arguments may be specified:
|
|
198
|
+
*/
|
|
199
|
+
nodePool: pulumi.Input<inputs.KubernetesClusterNodePool>;
|
|
200
|
+
/**
|
|
201
|
+
* The slug identifier for the region where the Kubernetes cluster will be created.
|
|
202
|
+
*/
|
|
203
|
+
region: pulumi.Input<string | enums.Region>;
|
|
204
|
+
/**
|
|
205
|
+
* Enable/disable surge upgrades for a cluster. Default: false
|
|
206
|
+
*/
|
|
207
|
+
surgeUpgrade?: pulumi.Input<boolean>;
|
|
208
|
+
/**
|
|
209
|
+
* A list of tag names to be applied to the Kubernetes cluster.
|
|
210
|
+
*/
|
|
211
|
+
tags?: pulumi.Input<pulumi.Input<string>[]>;
|
|
212
|
+
/**
|
|
213
|
+
* The slug identifier for the version of Kubernetes used for the cluster. Use [doctl](https://github.com/digitalocean/doctl) to find the available versions `doctl kubernetes options versions`. (**Note:** A cluster may only be upgraded to newer versions in-place. If the version is decreased, a new resource will be created.)
|
|
214
|
+
*/
|
|
215
|
+
version: pulumi.Input<string>;
|
|
216
|
+
/**
|
|
217
|
+
* The ID of the VPC where the Kubernetes cluster will be located.
|
|
218
|
+
*/
|
|
219
|
+
vpcUuid?: pulumi.Input<string>;
|
|
220
|
+
}
|