@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/config/vars.d.ts
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The URL to use for the DigitalOcean API.
|
|
3
|
+
*/
|
|
4
|
+
export declare let apiEndpoint: string | undefined;
|
|
5
|
+
/**
|
|
6
|
+
* The access key ID for Spaces API operations.
|
|
7
|
+
*/
|
|
8
|
+
export declare let spacesAccessId: string | undefined;
|
|
9
|
+
/**
|
|
10
|
+
* The URL to use for the DigitalOcean Spaces API.
|
|
11
|
+
*/
|
|
12
|
+
export declare let spacesEndpoint: string | undefined;
|
|
13
|
+
/**
|
|
14
|
+
* The secret access key for Spaces API operations.
|
|
15
|
+
*/
|
|
16
|
+
export declare let spacesSecretKey: string | undefined;
|
|
17
|
+
/**
|
|
18
|
+
* The token key for API operations.
|
|
19
|
+
*/
|
|
20
|
+
export declare let token: string | undefined;
|
package/config/vars.js
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
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
|
+
let __config = new pulumi.Config("digitalocean");
|
|
8
|
+
/**
|
|
9
|
+
* The URL to use for the DigitalOcean API.
|
|
10
|
+
*/
|
|
11
|
+
exports.apiEndpoint = __config.get("apiEndpoint") || (utilities.getEnv("DIGITALOCEAN_API_URL") || "https://api.digitalocean.com");
|
|
12
|
+
/**
|
|
13
|
+
* The access key ID for Spaces API operations.
|
|
14
|
+
*/
|
|
15
|
+
exports.spacesAccessId = __config.get("spacesAccessId");
|
|
16
|
+
/**
|
|
17
|
+
* The URL to use for the DigitalOcean Spaces API.
|
|
18
|
+
*/
|
|
19
|
+
exports.spacesEndpoint = __config.get("spacesEndpoint") || utilities.getEnv("SPACES_ENDPOINT_URL");
|
|
20
|
+
/**
|
|
21
|
+
* The secret access key for Spaces API operations.
|
|
22
|
+
*/
|
|
23
|
+
exports.spacesSecretKey = __config.get("spacesSecretKey");
|
|
24
|
+
/**
|
|
25
|
+
* The token key for API operations.
|
|
26
|
+
*/
|
|
27
|
+
exports.token = __config.get("token");
|
|
28
|
+
//# sourceMappingURL=vars.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"vars.js","sourceRoot":"","sources":["../../config/vars.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C,IAAI,QAAQ,GAAG,IAAI,MAAM,CAAC,MAAM,CAAC,cAAc,CAAC,CAAC;AAEjD;;GAEG;AACQ,QAAA,WAAW,GAAuB,QAAQ,CAAC,GAAG,CAAC,aAAa,CAAC,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,sBAAsB,CAAC,IAAI,8BAA8B,CAAC,CAAC;AACzJ;;GAEG;AACQ,QAAA,cAAc,GAAuB,QAAQ,CAAC,GAAG,CAAC,gBAAgB,CAAC,CAAC;AAC/E;;GAEG;AACQ,QAAA,cAAc,GAAuB,QAAQ,CAAC,GAAG,CAAC,gBAAgB,CAAC,IAAI,SAAS,CAAC,MAAM,CAAC,qBAAqB,CAAC,CAAC;AAC1H;;GAEG;AACQ,QAAA,eAAe,GAAuB,QAAQ,CAAC,GAAG,CAAC,iBAAiB,CAAC,CAAC;AACjF;;GAEG;AACQ,QAAA,KAAK,GAAuB,QAAQ,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC"}
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
/**
|
|
3
|
+
* Provides a DigitalOcean Container Registry resource. A Container Registry is
|
|
4
|
+
* a secure, private location to store your containers for rapid deployment.
|
|
5
|
+
*
|
|
6
|
+
* ## Example Usage
|
|
7
|
+
*
|
|
8
|
+
* ```typescript
|
|
9
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
10
|
+
* import * as digitalocean from "@pulumi/digitalocean";
|
|
11
|
+
*
|
|
12
|
+
* // Create a new container registry
|
|
13
|
+
* const foobar = new digitalocean.ContainerRegistry("foobar", {
|
|
14
|
+
* subscriptionTierSlug: "starter",
|
|
15
|
+
* });
|
|
16
|
+
* ```
|
|
17
|
+
*
|
|
18
|
+
* ## Import
|
|
19
|
+
*
|
|
20
|
+
* Container Registries can be imported using the `name`, e.g.
|
|
21
|
+
*
|
|
22
|
+
* ```sh
|
|
23
|
+
* $ pulumi import digitalocean:index/containerRegistry:ContainerRegistry myregistry registryname
|
|
24
|
+
* ```
|
|
25
|
+
*/
|
|
26
|
+
export declare class ContainerRegistry extends pulumi.CustomResource {
|
|
27
|
+
/**
|
|
28
|
+
* Get an existing ContainerRegistry 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?: ContainerRegistryState, opts?: pulumi.CustomResourceOptions): ContainerRegistry;
|
|
37
|
+
/**
|
|
38
|
+
* Returns true if the given object is an instance of ContainerRegistry. 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 ContainerRegistry;
|
|
42
|
+
readonly endpoint: pulumi.Output<string>;
|
|
43
|
+
/**
|
|
44
|
+
* The name of the container_registry
|
|
45
|
+
*/
|
|
46
|
+
readonly name: pulumi.Output<string>;
|
|
47
|
+
readonly serverUrl: pulumi.Output<string>;
|
|
48
|
+
/**
|
|
49
|
+
* The slug identifier for the subscription tier to use (`starter`, `basic`, or `professional`)
|
|
50
|
+
*/
|
|
51
|
+
readonly subscriptionTierSlug: pulumi.Output<string>;
|
|
52
|
+
/**
|
|
53
|
+
* Create a ContainerRegistry resource with the given unique name, arguments, and options.
|
|
54
|
+
*
|
|
55
|
+
* @param name The _unique_ name of the resource.
|
|
56
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
57
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
58
|
+
*/
|
|
59
|
+
constructor(name: string, args: ContainerRegistryArgs, opts?: pulumi.CustomResourceOptions);
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* Input properties used for looking up and filtering ContainerRegistry resources.
|
|
63
|
+
*/
|
|
64
|
+
export interface ContainerRegistryState {
|
|
65
|
+
endpoint?: pulumi.Input<string>;
|
|
66
|
+
/**
|
|
67
|
+
* The name of the container_registry
|
|
68
|
+
*/
|
|
69
|
+
name?: pulumi.Input<string>;
|
|
70
|
+
serverUrl?: pulumi.Input<string>;
|
|
71
|
+
/**
|
|
72
|
+
* The slug identifier for the subscription tier to use (`starter`, `basic`, or `professional`)
|
|
73
|
+
*/
|
|
74
|
+
subscriptionTierSlug?: pulumi.Input<string>;
|
|
75
|
+
}
|
|
76
|
+
/**
|
|
77
|
+
* The set of arguments for constructing a ContainerRegistry resource.
|
|
78
|
+
*/
|
|
79
|
+
export interface ContainerRegistryArgs {
|
|
80
|
+
/**
|
|
81
|
+
* The name of the container_registry
|
|
82
|
+
*/
|
|
83
|
+
name?: pulumi.Input<string>;
|
|
84
|
+
/**
|
|
85
|
+
* The slug identifier for the subscription tier to use (`starter`, `basic`, or `professional`)
|
|
86
|
+
*/
|
|
87
|
+
subscriptionTierSlug: pulumi.Input<string>;
|
|
88
|
+
}
|
|
@@ -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 Container Registry resource. A Container Registry is
|
|
9
|
+
* a secure, private location to store your containers for rapid deployment.
|
|
10
|
+
*
|
|
11
|
+
* ## Example Usage
|
|
12
|
+
*
|
|
13
|
+
* ```typescript
|
|
14
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
15
|
+
* import * as digitalocean from "@pulumi/digitalocean";
|
|
16
|
+
*
|
|
17
|
+
* // Create a new container registry
|
|
18
|
+
* const foobar = new digitalocean.ContainerRegistry("foobar", {
|
|
19
|
+
* subscriptionTierSlug: "starter",
|
|
20
|
+
* });
|
|
21
|
+
* ```
|
|
22
|
+
*
|
|
23
|
+
* ## Import
|
|
24
|
+
*
|
|
25
|
+
* Container Registries can be imported using the `name`, e.g.
|
|
26
|
+
*
|
|
27
|
+
* ```sh
|
|
28
|
+
* $ pulumi import digitalocean:index/containerRegistry:ContainerRegistry myregistry registryname
|
|
29
|
+
* ```
|
|
30
|
+
*/
|
|
31
|
+
class ContainerRegistry extends pulumi.CustomResource {
|
|
32
|
+
constructor(name, argsOrState, opts) {
|
|
33
|
+
let inputs = {};
|
|
34
|
+
opts = opts || {};
|
|
35
|
+
if (opts.id) {
|
|
36
|
+
const state = argsOrState;
|
|
37
|
+
inputs["endpoint"] = state ? state.endpoint : undefined;
|
|
38
|
+
inputs["name"] = state ? state.name : undefined;
|
|
39
|
+
inputs["serverUrl"] = state ? state.serverUrl : undefined;
|
|
40
|
+
inputs["subscriptionTierSlug"] = state ? state.subscriptionTierSlug : undefined;
|
|
41
|
+
}
|
|
42
|
+
else {
|
|
43
|
+
const args = argsOrState;
|
|
44
|
+
if ((!args || args.subscriptionTierSlug === undefined) && !opts.urn) {
|
|
45
|
+
throw new Error("Missing required property 'subscriptionTierSlug'");
|
|
46
|
+
}
|
|
47
|
+
inputs["name"] = args ? args.name : undefined;
|
|
48
|
+
inputs["subscriptionTierSlug"] = args ? args.subscriptionTierSlug : undefined;
|
|
49
|
+
inputs["endpoint"] = undefined /*out*/;
|
|
50
|
+
inputs["serverUrl"] = undefined /*out*/;
|
|
51
|
+
}
|
|
52
|
+
if (!opts.version) {
|
|
53
|
+
opts = pulumi.mergeOptions(opts, { version: utilities.getVersion() });
|
|
54
|
+
}
|
|
55
|
+
super(ContainerRegistry.__pulumiType, name, inputs, opts);
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* Get an existing ContainerRegistry 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 ContainerRegistry(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
68
|
+
}
|
|
69
|
+
/**
|
|
70
|
+
* Returns true if the given object is an instance of ContainerRegistry. 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'] === ContainerRegistry.__pulumiType;
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
exports.ContainerRegistry = ContainerRegistry;
|
|
81
|
+
/** @internal */
|
|
82
|
+
ContainerRegistry.__pulumiType = 'digitalocean:index/containerRegistry:ContainerRegistry';
|
|
83
|
+
//# sourceMappingURL=containerRegistry.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"containerRegistry.js","sourceRoot":"","sources":["../containerRegistry.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,MAAa,iBAAkB,SAAQ,MAAM,CAAC,cAAc;IA+CxD,YAAY,IAAY,EAAE,WAA4D,EAAE,IAAmC;QACvH,IAAI,MAAM,GAAkB,EAAE,CAAC;QAC/B,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAAiD,CAAC;YAChE,MAAM,CAAC,UAAU,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC;YACxD,MAAM,CAAC,MAAM,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC;YAChD,MAAM,CAAC,WAAW,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC;YAC1D,MAAM,CAAC,sBAAsB,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,oBAAoB,CAAC,CAAC,CAAC,SAAS,CAAC;SACnF;aAAM;YACH,MAAM,IAAI,GAAG,WAAgD,CAAC;YAC9D,IAAI,CAAC,CAAC,IAAI,IAAI,IAAI,CAAC,oBAAoB,KAAK,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBACjE,MAAM,IAAI,KAAK,CAAC,kDAAkD,CAAC,CAAC;aACvE;YACD,MAAM,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC;YAC9C,MAAM,CAAC,sBAAsB,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,oBAAoB,CAAC,CAAC,CAAC,SAAS,CAAC;YAC9E,MAAM,CAAC,UAAU,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YACvC,MAAM,CAAC,WAAW,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SAC3C;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,iBAAiB,CAAC,YAAY,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,CAAC,CAAC;IAC9D,CAAC;IArED;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAA8B,EAAE,IAAmC;QAC5H,OAAO,IAAI,iBAAiB,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IACxE,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,iBAAiB,CAAC,YAAY,CAAC;IAClE,CAAC;;AA1BL,8CAuEC;AAzDG,gBAAgB;AACO,8BAAY,GAAG,wDAAwD,CAAC"}
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
/**
|
|
3
|
+
* Get Docker credentials for your DigitalOcean container registry.
|
|
4
|
+
*
|
|
5
|
+
* An error is triggered if the provided container registry name does not exist.
|
|
6
|
+
*
|
|
7
|
+
* ## Example Usage
|
|
8
|
+
* ### Basic Example
|
|
9
|
+
*
|
|
10
|
+
* Get the container registry:
|
|
11
|
+
*
|
|
12
|
+
* ```typescript
|
|
13
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
14
|
+
* import * as digitalocean from "@pulumi/digitalocean";
|
|
15
|
+
*
|
|
16
|
+
* const example = new digitalocean.ContainerRegistryDockerCredentials("example", {
|
|
17
|
+
* registryName: "example",
|
|
18
|
+
* });
|
|
19
|
+
* ```
|
|
20
|
+
* ### Docker Provider Example
|
|
21
|
+
*
|
|
22
|
+
* Use the `endpoint` and `dockerCredentials` with the Docker provider:
|
|
23
|
+
*
|
|
24
|
+
* ```typescript
|
|
25
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
26
|
+
* import * as digitalocean from "@pulumi/digitalocean";
|
|
27
|
+
*
|
|
28
|
+
* const exampleContainerRegistry = digitalocean.getContainerRegistry({
|
|
29
|
+
* name: "example",
|
|
30
|
+
* });
|
|
31
|
+
* const exampleContainerRegistryDockerCredentials = new digitalocean.ContainerRegistryDockerCredentials("exampleContainerRegistryDockerCredentials", {registryName: "example"});
|
|
32
|
+
* ```
|
|
33
|
+
*/
|
|
34
|
+
export declare class ContainerRegistryDockerCredentials extends pulumi.CustomResource {
|
|
35
|
+
/**
|
|
36
|
+
* Get an existing ContainerRegistryDockerCredentials resource's state with the given name, ID, and optional extra
|
|
37
|
+
* properties used to qualify the lookup.
|
|
38
|
+
*
|
|
39
|
+
* @param name The _unique_ name of the resulting resource.
|
|
40
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
41
|
+
* @param state Any extra arguments used during the lookup.
|
|
42
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
43
|
+
*/
|
|
44
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: ContainerRegistryDockerCredentialsState, opts?: pulumi.CustomResourceOptions): ContainerRegistryDockerCredentials;
|
|
45
|
+
/**
|
|
46
|
+
* Returns true if the given object is an instance of ContainerRegistryDockerCredentials. This is designed to work even
|
|
47
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
48
|
+
*/
|
|
49
|
+
static isInstance(obj: any): obj is ContainerRegistryDockerCredentials;
|
|
50
|
+
readonly credentialExpirationTime: pulumi.Output<string>;
|
|
51
|
+
readonly dockerCredentials: pulumi.Output<string>;
|
|
52
|
+
/**
|
|
53
|
+
* The amount of time to pass before the Docker credentials expire in seconds. Defaults to 1576800000, or roughly 50 years. Must be greater than 0 and less than 1576800000.
|
|
54
|
+
*/
|
|
55
|
+
readonly expirySeconds: pulumi.Output<number | undefined>;
|
|
56
|
+
/**
|
|
57
|
+
* The name of the container registry.
|
|
58
|
+
*/
|
|
59
|
+
readonly registryName: pulumi.Output<string>;
|
|
60
|
+
/**
|
|
61
|
+
* Allow for write access to the container registry. Defaults to false.
|
|
62
|
+
*/
|
|
63
|
+
readonly write: pulumi.Output<boolean | undefined>;
|
|
64
|
+
/**
|
|
65
|
+
* Create a ContainerRegistryDockerCredentials resource with the given unique name, arguments, and options.
|
|
66
|
+
*
|
|
67
|
+
* @param name The _unique_ name of the resource.
|
|
68
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
69
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
70
|
+
*/
|
|
71
|
+
constructor(name: string, args: ContainerRegistryDockerCredentialsArgs, opts?: pulumi.CustomResourceOptions);
|
|
72
|
+
}
|
|
73
|
+
/**
|
|
74
|
+
* Input properties used for looking up and filtering ContainerRegistryDockerCredentials resources.
|
|
75
|
+
*/
|
|
76
|
+
export interface ContainerRegistryDockerCredentialsState {
|
|
77
|
+
credentialExpirationTime?: pulumi.Input<string>;
|
|
78
|
+
dockerCredentials?: pulumi.Input<string>;
|
|
79
|
+
/**
|
|
80
|
+
* The amount of time to pass before the Docker credentials expire in seconds. Defaults to 1576800000, or roughly 50 years. Must be greater than 0 and less than 1576800000.
|
|
81
|
+
*/
|
|
82
|
+
expirySeconds?: pulumi.Input<number>;
|
|
83
|
+
/**
|
|
84
|
+
* The name of the container registry.
|
|
85
|
+
*/
|
|
86
|
+
registryName?: pulumi.Input<string>;
|
|
87
|
+
/**
|
|
88
|
+
* Allow for write access to the container registry. Defaults to false.
|
|
89
|
+
*/
|
|
90
|
+
write?: pulumi.Input<boolean>;
|
|
91
|
+
}
|
|
92
|
+
/**
|
|
93
|
+
* The set of arguments for constructing a ContainerRegistryDockerCredentials resource.
|
|
94
|
+
*/
|
|
95
|
+
export interface ContainerRegistryDockerCredentialsArgs {
|
|
96
|
+
/**
|
|
97
|
+
* The amount of time to pass before the Docker credentials expire in seconds. Defaults to 1576800000, or roughly 50 years. Must be greater than 0 and less than 1576800000.
|
|
98
|
+
*/
|
|
99
|
+
expirySeconds?: pulumi.Input<number>;
|
|
100
|
+
/**
|
|
101
|
+
* The name of the container registry.
|
|
102
|
+
*/
|
|
103
|
+
registryName: pulumi.Input<string>;
|
|
104
|
+
/**
|
|
105
|
+
* Allow for write access to the container registry. Defaults to false.
|
|
106
|
+
*/
|
|
107
|
+
write?: pulumi.Input<boolean>;
|
|
108
|
+
}
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
|
|
3
|
+
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
const pulumi = require("@pulumi/pulumi");
|
|
6
|
+
const utilities = require("./utilities");
|
|
7
|
+
/**
|
|
8
|
+
* Get Docker credentials for your DigitalOcean container registry.
|
|
9
|
+
*
|
|
10
|
+
* An error is triggered if the provided container registry name does not exist.
|
|
11
|
+
*
|
|
12
|
+
* ## Example Usage
|
|
13
|
+
* ### Basic Example
|
|
14
|
+
*
|
|
15
|
+
* Get the container registry:
|
|
16
|
+
*
|
|
17
|
+
* ```typescript
|
|
18
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
19
|
+
* import * as digitalocean from "@pulumi/digitalocean";
|
|
20
|
+
*
|
|
21
|
+
* const example = new digitalocean.ContainerRegistryDockerCredentials("example", {
|
|
22
|
+
* registryName: "example",
|
|
23
|
+
* });
|
|
24
|
+
* ```
|
|
25
|
+
* ### Docker Provider Example
|
|
26
|
+
*
|
|
27
|
+
* Use the `endpoint` and `dockerCredentials` with the Docker provider:
|
|
28
|
+
*
|
|
29
|
+
* ```typescript
|
|
30
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
31
|
+
* import * as digitalocean from "@pulumi/digitalocean";
|
|
32
|
+
*
|
|
33
|
+
* const exampleContainerRegistry = digitalocean.getContainerRegistry({
|
|
34
|
+
* name: "example",
|
|
35
|
+
* });
|
|
36
|
+
* const exampleContainerRegistryDockerCredentials = new digitalocean.ContainerRegistryDockerCredentials("exampleContainerRegistryDockerCredentials", {registryName: "example"});
|
|
37
|
+
* ```
|
|
38
|
+
*/
|
|
39
|
+
class ContainerRegistryDockerCredentials extends pulumi.CustomResource {
|
|
40
|
+
constructor(name, argsOrState, opts) {
|
|
41
|
+
let inputs = {};
|
|
42
|
+
opts = opts || {};
|
|
43
|
+
if (opts.id) {
|
|
44
|
+
const state = argsOrState;
|
|
45
|
+
inputs["credentialExpirationTime"] = state ? state.credentialExpirationTime : undefined;
|
|
46
|
+
inputs["dockerCredentials"] = state ? state.dockerCredentials : undefined;
|
|
47
|
+
inputs["expirySeconds"] = state ? state.expirySeconds : undefined;
|
|
48
|
+
inputs["registryName"] = state ? state.registryName : undefined;
|
|
49
|
+
inputs["write"] = state ? state.write : undefined;
|
|
50
|
+
}
|
|
51
|
+
else {
|
|
52
|
+
const args = argsOrState;
|
|
53
|
+
if ((!args || args.registryName === undefined) && !opts.urn) {
|
|
54
|
+
throw new Error("Missing required property 'registryName'");
|
|
55
|
+
}
|
|
56
|
+
inputs["expirySeconds"] = args ? args.expirySeconds : undefined;
|
|
57
|
+
inputs["registryName"] = args ? args.registryName : undefined;
|
|
58
|
+
inputs["write"] = args ? args.write : undefined;
|
|
59
|
+
inputs["credentialExpirationTime"] = undefined /*out*/;
|
|
60
|
+
inputs["dockerCredentials"] = undefined /*out*/;
|
|
61
|
+
}
|
|
62
|
+
if (!opts.version) {
|
|
63
|
+
opts = pulumi.mergeOptions(opts, { version: utilities.getVersion() });
|
|
64
|
+
}
|
|
65
|
+
super(ContainerRegistryDockerCredentials.__pulumiType, name, inputs, opts);
|
|
66
|
+
}
|
|
67
|
+
/**
|
|
68
|
+
* Get an existing ContainerRegistryDockerCredentials resource's state with the given name, ID, and optional extra
|
|
69
|
+
* properties used to qualify the lookup.
|
|
70
|
+
*
|
|
71
|
+
* @param name The _unique_ name of the resulting resource.
|
|
72
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
73
|
+
* @param state Any extra arguments used during the lookup.
|
|
74
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
75
|
+
*/
|
|
76
|
+
static get(name, id, state, opts) {
|
|
77
|
+
return new ContainerRegistryDockerCredentials(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
78
|
+
}
|
|
79
|
+
/**
|
|
80
|
+
* Returns true if the given object is an instance of ContainerRegistryDockerCredentials. This is designed to work even
|
|
81
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
82
|
+
*/
|
|
83
|
+
static isInstance(obj) {
|
|
84
|
+
if (obj === undefined || obj === null) {
|
|
85
|
+
return false;
|
|
86
|
+
}
|
|
87
|
+
return obj['__pulumiType'] === ContainerRegistryDockerCredentials.__pulumiType;
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
exports.ContainerRegistryDockerCredentials = ContainerRegistryDockerCredentials;
|
|
91
|
+
/** @internal */
|
|
92
|
+
ContainerRegistryDockerCredentials.__pulumiType = 'digitalocean:index/containerRegistryDockerCredentials:ContainerRegistryDockerCredentials';
|
|
93
|
+
//# sourceMappingURL=containerRegistryDockerCredentials.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"containerRegistryDockerCredentials.js","sourceRoot":"","sources":["../containerRegistryDockerCredentials.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AACH,MAAa,kCAAmC,SAAQ,MAAM,CAAC,cAAc;IAmDzE,YAAY,IAAY,EAAE,WAA8F,EAAE,IAAmC;QACzJ,IAAI,MAAM,GAAkB,EAAE,CAAC;QAC/B,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAAkE,CAAC;YACjF,MAAM,CAAC,0BAA0B,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,wBAAwB,CAAC,CAAC,CAAC,SAAS,CAAC;YACxF,MAAM,CAAC,mBAAmB,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,iBAAiB,CAAC,CAAC,CAAC,SAAS,CAAC;YAC1E,MAAM,CAAC,eAAe,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,aAAa,CAAC,CAAC,CAAC,SAAS,CAAC;YAClE,MAAM,CAAC,cAAc,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,YAAY,CAAC,CAAC,CAAC,SAAS,CAAC;YAChE,MAAM,CAAC,OAAO,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS,CAAC;SACrD;aAAM;YACH,MAAM,IAAI,GAAG,WAAiE,CAAC;YAC/E,IAAI,CAAC,CAAC,IAAI,IAAI,IAAI,CAAC,YAAY,KAAK,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBACzD,MAAM,IAAI,KAAK,CAAC,0CAA0C,CAAC,CAAC;aAC/D;YACD,MAAM,CAAC,eAAe,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC,CAAC,SAAS,CAAC;YAChE,MAAM,CAAC,cAAc,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC,CAAC,SAAS,CAAC;YAC9D,MAAM,CAAC,OAAO,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS,CAAC;YAChD,MAAM,CAAC,0BAA0B,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YACvD,MAAM,CAAC,mBAAmB,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SACnD;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,kCAAkC,CAAC,YAAY,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,CAAC,CAAC;IAC/E,CAAC;IA3ED;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAA+C,EAAE,IAAmC;QAC7I,OAAO,IAAI,kCAAkC,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IACzF,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,kCAAkC,CAAC,YAAY,CAAC;IACnF,CAAC;;AA1BL,gFA6EC;AA/DG,gBAAgB;AACO,+CAAY,GAAG,0FAA0F,CAAC"}
|
package/customImage.d.ts
ADDED
|
@@ -0,0 +1,155 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
/**
|
|
3
|
+
* Provides a resource which can be used to create a [custom image](https://www.digitalocean.com/docs/images/custom-images/)
|
|
4
|
+
* from a URL. The URL must point to an image in one of the following file formats:
|
|
5
|
+
*
|
|
6
|
+
* - Raw (.img) with an MBR or GPT partition table
|
|
7
|
+
* - qcow2
|
|
8
|
+
* - VHDX
|
|
9
|
+
* - VDI
|
|
10
|
+
* - VMDK
|
|
11
|
+
*
|
|
12
|
+
* The image may be compressed using gzip or bzip2. See the DigitalOcean Custom
|
|
13
|
+
* Image documentation for [additional requirements](https://www.digitalocean.com/docs/images/custom-images/#image-requirements).
|
|
14
|
+
*
|
|
15
|
+
* ## Example Usage
|
|
16
|
+
*
|
|
17
|
+
* ```typescript
|
|
18
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
19
|
+
* import * as digitalocean from "@pulumi/digitalocean";
|
|
20
|
+
*
|
|
21
|
+
* const flatcar = new digitalocean.CustomImage("flatcar", {
|
|
22
|
+
* url: "https://stable.release.flatcar-linux.net/amd64-usr/2605.7.0/flatcar_production_digitalocean_image.bin.bz2",
|
|
23
|
+
* regions: ["nyc3"],
|
|
24
|
+
* });
|
|
25
|
+
* const example = new digitalocean.Droplet("example", {
|
|
26
|
+
* image: flatcar.id,
|
|
27
|
+
* region: "nyc3",
|
|
28
|
+
* size: "s-1vcpu-1gb",
|
|
29
|
+
* sshKeys: [12345],
|
|
30
|
+
* });
|
|
31
|
+
* ```
|
|
32
|
+
*/
|
|
33
|
+
export declare class CustomImage extends pulumi.CustomResource {
|
|
34
|
+
/**
|
|
35
|
+
* Get an existing CustomImage resource's state with the given name, ID, and optional extra
|
|
36
|
+
* properties used to qualify the lookup.
|
|
37
|
+
*
|
|
38
|
+
* @param name The _unique_ name of the resulting resource.
|
|
39
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
40
|
+
* @param state Any extra arguments used during the lookup.
|
|
41
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
42
|
+
*/
|
|
43
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: CustomImageState, opts?: pulumi.CustomResourceOptions): CustomImage;
|
|
44
|
+
/**
|
|
45
|
+
* Returns true if the given object is an instance of CustomImage. This is designed to work even
|
|
46
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
47
|
+
*/
|
|
48
|
+
static isInstance(obj: any): obj is CustomImage;
|
|
49
|
+
readonly createdAt: pulumi.Output<string>;
|
|
50
|
+
/**
|
|
51
|
+
* An optional description for the image.
|
|
52
|
+
*/
|
|
53
|
+
readonly description: pulumi.Output<string | undefined>;
|
|
54
|
+
/**
|
|
55
|
+
* An optional distribution name for the image. Valid values are documented [here](https://docs.digitalocean.com/reference/api/api-reference/#operation/create_custom_image)
|
|
56
|
+
*/
|
|
57
|
+
readonly distribution: pulumi.Output<string | undefined>;
|
|
58
|
+
readonly imageId: pulumi.Output<number>;
|
|
59
|
+
readonly minDiskSize: pulumi.Output<number>;
|
|
60
|
+
/**
|
|
61
|
+
* A name for the Custom Image.
|
|
62
|
+
*/
|
|
63
|
+
readonly name: pulumi.Output<string>;
|
|
64
|
+
readonly public: pulumi.Output<boolean>;
|
|
65
|
+
/**
|
|
66
|
+
* A list of regions. (Currently only one is supported).
|
|
67
|
+
*/
|
|
68
|
+
readonly regions: pulumi.Output<string[]>;
|
|
69
|
+
readonly sizeGigabytes: pulumi.Output<number>;
|
|
70
|
+
readonly slug: pulumi.Output<string>;
|
|
71
|
+
readonly status: pulumi.Output<string>;
|
|
72
|
+
/**
|
|
73
|
+
* A list of optional tags for the image.
|
|
74
|
+
*/
|
|
75
|
+
readonly tags: pulumi.Output<string[] | undefined>;
|
|
76
|
+
readonly type: pulumi.Output<string>;
|
|
77
|
+
/**
|
|
78
|
+
* A URL from which the custom Linux virtual machine image may be retrieved.
|
|
79
|
+
*/
|
|
80
|
+
readonly url: pulumi.Output<string>;
|
|
81
|
+
/**
|
|
82
|
+
* Create a CustomImage resource with the given unique name, arguments, and options.
|
|
83
|
+
*
|
|
84
|
+
* @param name The _unique_ name of the resource.
|
|
85
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
86
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
87
|
+
*/
|
|
88
|
+
constructor(name: string, args: CustomImageArgs, opts?: pulumi.CustomResourceOptions);
|
|
89
|
+
}
|
|
90
|
+
/**
|
|
91
|
+
* Input properties used for looking up and filtering CustomImage resources.
|
|
92
|
+
*/
|
|
93
|
+
export interface CustomImageState {
|
|
94
|
+
createdAt?: pulumi.Input<string>;
|
|
95
|
+
/**
|
|
96
|
+
* An optional description for the image.
|
|
97
|
+
*/
|
|
98
|
+
description?: pulumi.Input<string>;
|
|
99
|
+
/**
|
|
100
|
+
* An optional distribution name for the image. Valid values are documented [here](https://docs.digitalocean.com/reference/api/api-reference/#operation/create_custom_image)
|
|
101
|
+
*/
|
|
102
|
+
distribution?: pulumi.Input<string>;
|
|
103
|
+
imageId?: pulumi.Input<number>;
|
|
104
|
+
minDiskSize?: pulumi.Input<number>;
|
|
105
|
+
/**
|
|
106
|
+
* A name for the Custom Image.
|
|
107
|
+
*/
|
|
108
|
+
name?: pulumi.Input<string>;
|
|
109
|
+
public?: pulumi.Input<boolean>;
|
|
110
|
+
/**
|
|
111
|
+
* A list of regions. (Currently only one is supported).
|
|
112
|
+
*/
|
|
113
|
+
regions?: pulumi.Input<pulumi.Input<string>[]>;
|
|
114
|
+
sizeGigabytes?: pulumi.Input<number>;
|
|
115
|
+
slug?: pulumi.Input<string>;
|
|
116
|
+
status?: pulumi.Input<string>;
|
|
117
|
+
/**
|
|
118
|
+
* A list of optional tags for the image.
|
|
119
|
+
*/
|
|
120
|
+
tags?: pulumi.Input<pulumi.Input<string>[]>;
|
|
121
|
+
type?: pulumi.Input<string>;
|
|
122
|
+
/**
|
|
123
|
+
* A URL from which the custom Linux virtual machine image may be retrieved.
|
|
124
|
+
*/
|
|
125
|
+
url?: pulumi.Input<string>;
|
|
126
|
+
}
|
|
127
|
+
/**
|
|
128
|
+
* The set of arguments for constructing a CustomImage resource.
|
|
129
|
+
*/
|
|
130
|
+
export interface CustomImageArgs {
|
|
131
|
+
/**
|
|
132
|
+
* An optional description for the image.
|
|
133
|
+
*/
|
|
134
|
+
description?: pulumi.Input<string>;
|
|
135
|
+
/**
|
|
136
|
+
* An optional distribution name for the image. Valid values are documented [here](https://docs.digitalocean.com/reference/api/api-reference/#operation/create_custom_image)
|
|
137
|
+
*/
|
|
138
|
+
distribution?: pulumi.Input<string>;
|
|
139
|
+
/**
|
|
140
|
+
* A name for the Custom Image.
|
|
141
|
+
*/
|
|
142
|
+
name?: pulumi.Input<string>;
|
|
143
|
+
/**
|
|
144
|
+
* A list of regions. (Currently only one is supported).
|
|
145
|
+
*/
|
|
146
|
+
regions: pulumi.Input<pulumi.Input<string>[]>;
|
|
147
|
+
/**
|
|
148
|
+
* A list of optional tags for the image.
|
|
149
|
+
*/
|
|
150
|
+
tags?: pulumi.Input<pulumi.Input<string>[]>;
|
|
151
|
+
/**
|
|
152
|
+
* A URL from which the custom Linux virtual machine image may be retrieved.
|
|
153
|
+
*/
|
|
154
|
+
url: pulumi.Input<string>;
|
|
155
|
+
}
|