@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/getProjects.js
ADDED
|
@@ -0,0 +1,72 @@
|
|
|
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 all DigitalOcean projects associated with an account, with
|
|
9
|
+
* the ability to filter and sort the results. If no filters are specified, all projects
|
|
10
|
+
* will be returned.
|
|
11
|
+
*
|
|
12
|
+
* Note: You can use the `digitalocean.Project` data source to
|
|
13
|
+
* obtain metadata about a single project if you already know the `id` to retrieve or the unique
|
|
14
|
+
* `name` of the project.
|
|
15
|
+
*
|
|
16
|
+
* ## Example Usage
|
|
17
|
+
*
|
|
18
|
+
* Use the `filter` block with a `key` string and `values` list to filter projects.
|
|
19
|
+
*
|
|
20
|
+
* For example to find all staging environment projects:
|
|
21
|
+
*
|
|
22
|
+
* ```typescript
|
|
23
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
24
|
+
* import * as digitalocean from "@pulumi/digitalocean";
|
|
25
|
+
*
|
|
26
|
+
* const staging = pulumi.output(digitalocean.getProjects({
|
|
27
|
+
* filters: [{
|
|
28
|
+
* key: "environment",
|
|
29
|
+
* values: ["Staging"],
|
|
30
|
+
* }],
|
|
31
|
+
* }));
|
|
32
|
+
* ```
|
|
33
|
+
*
|
|
34
|
+
* You can filter on multiple fields and sort the results as well:
|
|
35
|
+
*
|
|
36
|
+
* ```typescript
|
|
37
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
38
|
+
* import * as digitalocean from "@pulumi/digitalocean";
|
|
39
|
+
*
|
|
40
|
+
* const non_default_production = pulumi.output(digitalocean.getProjects({
|
|
41
|
+
* filters: [
|
|
42
|
+
* {
|
|
43
|
+
* key: "environment",
|
|
44
|
+
* values: ["Production"],
|
|
45
|
+
* },
|
|
46
|
+
* {
|
|
47
|
+
* key: "is_default",
|
|
48
|
+
* values: ["false"],
|
|
49
|
+
* },
|
|
50
|
+
* ],
|
|
51
|
+
* sorts: [{
|
|
52
|
+
* direction: "asc",
|
|
53
|
+
* key: "name",
|
|
54
|
+
* }],
|
|
55
|
+
* }));
|
|
56
|
+
* ```
|
|
57
|
+
*/
|
|
58
|
+
function getProjects(args, opts) {
|
|
59
|
+
args = args || {};
|
|
60
|
+
if (!opts) {
|
|
61
|
+
opts = {};
|
|
62
|
+
}
|
|
63
|
+
if (!opts.version) {
|
|
64
|
+
opts.version = utilities.getVersion();
|
|
65
|
+
}
|
|
66
|
+
return pulumi.runtime.invoke("digitalocean:index/getProjects:getProjects", {
|
|
67
|
+
"filters": args.filters,
|
|
68
|
+
"sorts": args.sorts,
|
|
69
|
+
}, opts);
|
|
70
|
+
}
|
|
71
|
+
exports.getProjects = getProjects;
|
|
72
|
+
//# sourceMappingURL=getProjects.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getProjects.js","sourceRoot":"","sources":["../getProjects.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;AAEjF,yCAAyC;AAEzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkDG;AACH,SAAgB,WAAW,CAAC,IAAsB,EAAE,IAA2B;IAC3E,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,4CAA4C,EAAE;QACvE,SAAS,EAAE,IAAI,CAAC,OAAO;QACvB,OAAO,EAAE,IAAI,CAAC,KAAK;KACtB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAbD,kCAaC"}
|
package/getRecord.d.ts
ADDED
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
/**
|
|
3
|
+
* Get information on a DNS record. This data source provides the name, TTL, and zone
|
|
4
|
+
* file as configured on your DigitalOcean account. This is useful if the record
|
|
5
|
+
* in question is not managed by the provider.
|
|
6
|
+
*
|
|
7
|
+
* An error is triggered if the provided domain name or record are not managed with
|
|
8
|
+
* your DigitalOcean account.
|
|
9
|
+
*/
|
|
10
|
+
export declare function getRecord(args: GetRecordArgs, opts?: pulumi.InvokeOptions): Promise<GetRecordResult>;
|
|
11
|
+
/**
|
|
12
|
+
* A collection of arguments for invoking getRecord.
|
|
13
|
+
*/
|
|
14
|
+
export interface GetRecordArgs {
|
|
15
|
+
/**
|
|
16
|
+
* The domain name of the record.
|
|
17
|
+
*/
|
|
18
|
+
domain: string;
|
|
19
|
+
/**
|
|
20
|
+
* The name of the record.
|
|
21
|
+
*/
|
|
22
|
+
name: string;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* A collection of values returned by getRecord.
|
|
26
|
+
*/
|
|
27
|
+
export interface GetRecordResult {
|
|
28
|
+
readonly data: string;
|
|
29
|
+
readonly domain: string;
|
|
30
|
+
readonly flags: number;
|
|
31
|
+
/**
|
|
32
|
+
* The provider-assigned unique ID for this managed resource.
|
|
33
|
+
*/
|
|
34
|
+
readonly id: string;
|
|
35
|
+
readonly name: string;
|
|
36
|
+
readonly port: number;
|
|
37
|
+
readonly priority: number;
|
|
38
|
+
readonly tag: string;
|
|
39
|
+
readonly ttl: number;
|
|
40
|
+
readonly type: string;
|
|
41
|
+
readonly weight: number;
|
|
42
|
+
}
|
package/getRecord.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
|
+
/**
|
|
8
|
+
* Get information on a DNS record. This data source provides the name, TTL, and zone
|
|
9
|
+
* file as configured on your DigitalOcean account. This is useful if the record
|
|
10
|
+
* in question is not managed by the provider.
|
|
11
|
+
*
|
|
12
|
+
* An error is triggered if the provided domain name or record are not managed with
|
|
13
|
+
* your DigitalOcean account.
|
|
14
|
+
*/
|
|
15
|
+
function getRecord(args, opts) {
|
|
16
|
+
if (!opts) {
|
|
17
|
+
opts = {};
|
|
18
|
+
}
|
|
19
|
+
if (!opts.version) {
|
|
20
|
+
opts.version = utilities.getVersion();
|
|
21
|
+
}
|
|
22
|
+
return pulumi.runtime.invoke("digitalocean:index/getRecord:getRecord", {
|
|
23
|
+
"domain": args.domain,
|
|
24
|
+
"name": args.name,
|
|
25
|
+
}, opts);
|
|
26
|
+
}
|
|
27
|
+
exports.getRecord = getRecord;
|
|
28
|
+
//# sourceMappingURL=getRecord.js.map
|
package/getRecord.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getRecord.js","sourceRoot":"","sources":["../getRecord.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;AAEjF,yCAAyC;AAEzC,yCAAyC;AAEzC;;;;;;;GAOG;AACH,SAAgB,SAAS,CAAC,IAAmB,EAAE,IAA2B;IACtE,IAAI,CAAC,IAAI,EAAE;QACP,IAAI,GAAG,EAAE,CAAA;KACZ;IAED,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE;QACf,IAAI,CAAC,OAAO,GAAG,SAAS,CAAC,UAAU,EAAE,CAAC;KACzC;IACD,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,wCAAwC,EAAE;QACnE,QAAQ,EAAE,IAAI,CAAC,MAAM;QACrB,MAAM,EAAE,IAAI,CAAC,IAAI;KACpB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAZD,8BAYC"}
|
package/getRecords.d.ts
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
import { input as inputs, output as outputs } from "./types";
|
|
3
|
+
/**
|
|
4
|
+
* Retrieve information about all DNS records within a domain, with the ability to filter and sort the results.
|
|
5
|
+
* If no filters are specified, all records will be returned.
|
|
6
|
+
*/
|
|
7
|
+
export declare function getRecords(args: GetRecordsArgs, opts?: pulumi.InvokeOptions): Promise<GetRecordsResult>;
|
|
8
|
+
/**
|
|
9
|
+
* A collection of arguments for invoking getRecords.
|
|
10
|
+
*/
|
|
11
|
+
export interface GetRecordsArgs {
|
|
12
|
+
/**
|
|
13
|
+
* The domain name to search for DNS records
|
|
14
|
+
*/
|
|
15
|
+
domain: string;
|
|
16
|
+
/**
|
|
17
|
+
* Filter the results.
|
|
18
|
+
* The `filter` block is documented below.
|
|
19
|
+
*/
|
|
20
|
+
filters?: inputs.GetRecordsFilter[];
|
|
21
|
+
/**
|
|
22
|
+
* Sort the results.
|
|
23
|
+
* The `sort` block is documented below.
|
|
24
|
+
*/
|
|
25
|
+
sorts?: inputs.GetRecordsSort[];
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* A collection of values returned by getRecords.
|
|
29
|
+
*/
|
|
30
|
+
export interface GetRecordsResult {
|
|
31
|
+
readonly domain: string;
|
|
32
|
+
readonly filters?: outputs.GetRecordsFilter[];
|
|
33
|
+
/**
|
|
34
|
+
* The provider-assigned unique ID for this managed resource.
|
|
35
|
+
*/
|
|
36
|
+
readonly id: string;
|
|
37
|
+
readonly records: outputs.GetRecordsRecord[];
|
|
38
|
+
readonly sorts?: outputs.GetRecordsSort[];
|
|
39
|
+
}
|
package/getRecords.js
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
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 all DNS records within a domain, with the ability to filter and sort the results.
|
|
9
|
+
* If no filters are specified, all records will be returned.
|
|
10
|
+
*/
|
|
11
|
+
function getRecords(args, opts) {
|
|
12
|
+
if (!opts) {
|
|
13
|
+
opts = {};
|
|
14
|
+
}
|
|
15
|
+
if (!opts.version) {
|
|
16
|
+
opts.version = utilities.getVersion();
|
|
17
|
+
}
|
|
18
|
+
return pulumi.runtime.invoke("digitalocean:index/getRecords:getRecords", {
|
|
19
|
+
"domain": args.domain,
|
|
20
|
+
"filters": args.filters,
|
|
21
|
+
"sorts": args.sorts,
|
|
22
|
+
}, opts);
|
|
23
|
+
}
|
|
24
|
+
exports.getRecords = getRecords;
|
|
25
|
+
//# sourceMappingURL=getRecords.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getRecords.js","sourceRoot":"","sources":["../getRecords.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;AAEjF,yCAAyC;AAEzC,yCAAyC;AAEzC;;;GAGG;AACH,SAAgB,UAAU,CAAC,IAAoB,EAAE,IAA2B;IACxE,IAAI,CAAC,IAAI,EAAE;QACP,IAAI,GAAG,EAAE,CAAA;KACZ;IAED,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE;QACf,IAAI,CAAC,OAAO,GAAG,SAAS,CAAC,UAAU,EAAE,CAAC;KACzC;IACD,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,0CAA0C,EAAE;QACrE,QAAQ,EAAE,IAAI,CAAC,MAAM;QACrB,SAAS,EAAE,IAAI,CAAC,OAAO;QACvB,OAAO,EAAE,IAAI,CAAC,KAAK;KACtB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAbD,gCAaC"}
|
package/getRegion.d.ts
ADDED
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
/**
|
|
3
|
+
* Get information on a single DigitalOcean region. This is useful to find out
|
|
4
|
+
* what Droplet sizes and features are supported within a region.
|
|
5
|
+
*
|
|
6
|
+
* ## Example Usage
|
|
7
|
+
*
|
|
8
|
+
* ```typescript
|
|
9
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
10
|
+
* import * as digitalocean from "@pulumi/digitalocean";
|
|
11
|
+
*
|
|
12
|
+
* const sfo2 = digitalocean.getRegion({
|
|
13
|
+
* slug: "sfo2",
|
|
14
|
+
* });
|
|
15
|
+
* export const regionName = sfo2.then(sfo2 => sfo2.name);
|
|
16
|
+
* ```
|
|
17
|
+
*/
|
|
18
|
+
export declare function getRegion(args: GetRegionArgs, opts?: pulumi.InvokeOptions): Promise<GetRegionResult>;
|
|
19
|
+
/**
|
|
20
|
+
* A collection of arguments for invoking getRegion.
|
|
21
|
+
*/
|
|
22
|
+
export interface GetRegionArgs {
|
|
23
|
+
/**
|
|
24
|
+
* A human-readable string that is used as a unique identifier for each region.
|
|
25
|
+
*/
|
|
26
|
+
slug: string;
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* A collection of values returned by getRegion.
|
|
30
|
+
*/
|
|
31
|
+
export interface GetRegionResult {
|
|
32
|
+
/**
|
|
33
|
+
* A boolean value that represents whether new Droplets can be created in this region.
|
|
34
|
+
*/
|
|
35
|
+
readonly available: boolean;
|
|
36
|
+
/**
|
|
37
|
+
* A set of features available in this region.
|
|
38
|
+
*/
|
|
39
|
+
readonly features: string[];
|
|
40
|
+
/**
|
|
41
|
+
* The provider-assigned unique ID for this managed resource.
|
|
42
|
+
*/
|
|
43
|
+
readonly id: string;
|
|
44
|
+
/**
|
|
45
|
+
* The display name of the region.
|
|
46
|
+
*/
|
|
47
|
+
readonly name: string;
|
|
48
|
+
/**
|
|
49
|
+
* A set of identifying slugs for the Droplet sizes available in this region.
|
|
50
|
+
*/
|
|
51
|
+
readonly sizes: string[];
|
|
52
|
+
/**
|
|
53
|
+
* A human-readable string that is used as a unique identifier for each region.
|
|
54
|
+
*/
|
|
55
|
+
readonly slug: string;
|
|
56
|
+
}
|
package/getRegion.js
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
|
|
3
|
+
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
const pulumi = require("@pulumi/pulumi");
|
|
6
|
+
const utilities = require("./utilities");
|
|
7
|
+
/**
|
|
8
|
+
* Get information on a single DigitalOcean region. This is useful to find out
|
|
9
|
+
* what Droplet sizes and features are supported within a region.
|
|
10
|
+
*
|
|
11
|
+
* ## Example Usage
|
|
12
|
+
*
|
|
13
|
+
* ```typescript
|
|
14
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
15
|
+
* import * as digitalocean from "@pulumi/digitalocean";
|
|
16
|
+
*
|
|
17
|
+
* const sfo2 = digitalocean.getRegion({
|
|
18
|
+
* slug: "sfo2",
|
|
19
|
+
* });
|
|
20
|
+
* export const regionName = sfo2.then(sfo2 => sfo2.name);
|
|
21
|
+
* ```
|
|
22
|
+
*/
|
|
23
|
+
function getRegion(args, opts) {
|
|
24
|
+
if (!opts) {
|
|
25
|
+
opts = {};
|
|
26
|
+
}
|
|
27
|
+
if (!opts.version) {
|
|
28
|
+
opts.version = utilities.getVersion();
|
|
29
|
+
}
|
|
30
|
+
return pulumi.runtime.invoke("digitalocean:index/getRegion:getRegion", {
|
|
31
|
+
"slug": args.slug,
|
|
32
|
+
}, opts);
|
|
33
|
+
}
|
|
34
|
+
exports.getRegion = getRegion;
|
|
35
|
+
//# sourceMappingURL=getRegion.js.map
|
package/getRegion.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getRegion.js","sourceRoot":"","sources":["../getRegion.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;AAEjF,yCAAyC;AAEzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;GAeG;AACH,SAAgB,SAAS,CAAC,IAAmB,EAAE,IAA2B;IACtE,IAAI,CAAC,IAAI,EAAE;QACP,IAAI,GAAG,EAAE,CAAA;KACZ;IAED,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE;QACf,IAAI,CAAC,OAAO,GAAG,SAAS,CAAC,UAAU,EAAE,CAAC;KACzC;IACD,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,wCAAwC,EAAE;QACnE,MAAM,EAAE,IAAI,CAAC,IAAI;KACpB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAXD,8BAWC"}
|
package/getRegions.d.ts
ADDED
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
import { input as inputs, output as outputs } from "./types";
|
|
3
|
+
/**
|
|
4
|
+
* Retrieve information about all supported DigitalOcean regions, with the ability to
|
|
5
|
+
* filter and sort the results. If no filters are specified, all regions will be returned.
|
|
6
|
+
*
|
|
7
|
+
* Note: You can use the `digitalocean.getRegion` data source
|
|
8
|
+
* to obtain metadata about a single region if you already know the `slug` to retrieve.
|
|
9
|
+
*
|
|
10
|
+
* ## Example Usage
|
|
11
|
+
*
|
|
12
|
+
* Use the `filter` block with a `key` string and `values` list to filter regions.
|
|
13
|
+
*
|
|
14
|
+
* For example to find all available regions:
|
|
15
|
+
*
|
|
16
|
+
* ```typescript
|
|
17
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
18
|
+
* import * as digitalocean from "@pulumi/digitalocean";
|
|
19
|
+
*
|
|
20
|
+
* const available = pulumi.output(digitalocean.getRegions({
|
|
21
|
+
* filters: [{
|
|
22
|
+
* key: "available",
|
|
23
|
+
* values: ["true"],
|
|
24
|
+
* }],
|
|
25
|
+
* }));
|
|
26
|
+
* ```
|
|
27
|
+
*
|
|
28
|
+
* You can filter on multiple fields and sort the results as well:
|
|
29
|
+
*
|
|
30
|
+
* ```typescript
|
|
31
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
32
|
+
* import * as digitalocean from "@pulumi/digitalocean";
|
|
33
|
+
*
|
|
34
|
+
* const available = pulumi.output(digitalocean.getRegions({
|
|
35
|
+
* filters: [
|
|
36
|
+
* {
|
|
37
|
+
* key: "available",
|
|
38
|
+
* values: ["true"],
|
|
39
|
+
* },
|
|
40
|
+
* {
|
|
41
|
+
* key: "features",
|
|
42
|
+
* values: ["private_networking"],
|
|
43
|
+
* },
|
|
44
|
+
* ],
|
|
45
|
+
* sorts: [{
|
|
46
|
+
* direction: "desc",
|
|
47
|
+
* key: "name",
|
|
48
|
+
* }],
|
|
49
|
+
* }));
|
|
50
|
+
* ```
|
|
51
|
+
*/
|
|
52
|
+
export declare function getRegions(args?: GetRegionsArgs, opts?: pulumi.InvokeOptions): Promise<GetRegionsResult>;
|
|
53
|
+
/**
|
|
54
|
+
* A collection of arguments for invoking getRegions.
|
|
55
|
+
*/
|
|
56
|
+
export interface GetRegionsArgs {
|
|
57
|
+
/**
|
|
58
|
+
* Filter the results.
|
|
59
|
+
* The `filter` block is documented below.
|
|
60
|
+
*/
|
|
61
|
+
filters?: inputs.GetRegionsFilter[];
|
|
62
|
+
/**
|
|
63
|
+
* Sort the results.
|
|
64
|
+
* The `sort` block is documented below.
|
|
65
|
+
*/
|
|
66
|
+
sorts?: inputs.GetRegionsSort[];
|
|
67
|
+
}
|
|
68
|
+
/**
|
|
69
|
+
* A collection of values returned by getRegions.
|
|
70
|
+
*/
|
|
71
|
+
export interface GetRegionsResult {
|
|
72
|
+
readonly filters?: outputs.GetRegionsFilter[];
|
|
73
|
+
/**
|
|
74
|
+
* The provider-assigned unique ID for this managed resource.
|
|
75
|
+
*/
|
|
76
|
+
readonly id: string;
|
|
77
|
+
/**
|
|
78
|
+
* A set of regions satisfying any `filter` and `sort` criteria. Each region has the following attributes:
|
|
79
|
+
*/
|
|
80
|
+
readonly regions: outputs.GetRegionsRegion[];
|
|
81
|
+
readonly sorts?: outputs.GetRegionsSort[];
|
|
82
|
+
}
|
package/getRegions.js
ADDED
|
@@ -0,0 +1,70 @@
|
|
|
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 all supported DigitalOcean regions, with the ability to
|
|
9
|
+
* filter and sort the results. If no filters are specified, all regions will be returned.
|
|
10
|
+
*
|
|
11
|
+
* Note: You can use the `digitalocean.getRegion` data source
|
|
12
|
+
* to obtain metadata about a single region if you already know the `slug` to retrieve.
|
|
13
|
+
*
|
|
14
|
+
* ## Example Usage
|
|
15
|
+
*
|
|
16
|
+
* Use the `filter` block with a `key` string and `values` list to filter regions.
|
|
17
|
+
*
|
|
18
|
+
* For example to find all available regions:
|
|
19
|
+
*
|
|
20
|
+
* ```typescript
|
|
21
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
22
|
+
* import * as digitalocean from "@pulumi/digitalocean";
|
|
23
|
+
*
|
|
24
|
+
* const available = pulumi.output(digitalocean.getRegions({
|
|
25
|
+
* filters: [{
|
|
26
|
+
* key: "available",
|
|
27
|
+
* values: ["true"],
|
|
28
|
+
* }],
|
|
29
|
+
* }));
|
|
30
|
+
* ```
|
|
31
|
+
*
|
|
32
|
+
* You can filter on multiple fields and sort the results as well:
|
|
33
|
+
*
|
|
34
|
+
* ```typescript
|
|
35
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
36
|
+
* import * as digitalocean from "@pulumi/digitalocean";
|
|
37
|
+
*
|
|
38
|
+
* const available = pulumi.output(digitalocean.getRegions({
|
|
39
|
+
* filters: [
|
|
40
|
+
* {
|
|
41
|
+
* key: "available",
|
|
42
|
+
* values: ["true"],
|
|
43
|
+
* },
|
|
44
|
+
* {
|
|
45
|
+
* key: "features",
|
|
46
|
+
* values: ["private_networking"],
|
|
47
|
+
* },
|
|
48
|
+
* ],
|
|
49
|
+
* sorts: [{
|
|
50
|
+
* direction: "desc",
|
|
51
|
+
* key: "name",
|
|
52
|
+
* }],
|
|
53
|
+
* }));
|
|
54
|
+
* ```
|
|
55
|
+
*/
|
|
56
|
+
function getRegions(args, opts) {
|
|
57
|
+
args = args || {};
|
|
58
|
+
if (!opts) {
|
|
59
|
+
opts = {};
|
|
60
|
+
}
|
|
61
|
+
if (!opts.version) {
|
|
62
|
+
opts.version = utilities.getVersion();
|
|
63
|
+
}
|
|
64
|
+
return pulumi.runtime.invoke("digitalocean:index/getRegions:getRegions", {
|
|
65
|
+
"filters": args.filters,
|
|
66
|
+
"sorts": args.sorts,
|
|
67
|
+
}, opts);
|
|
68
|
+
}
|
|
69
|
+
exports.getRegions = getRegions;
|
|
70
|
+
//# sourceMappingURL=getRegions.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getRegions.js","sourceRoot":"","sources":["../getRegions.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;AAEjF,yCAAyC;AAEzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgDG;AACH,SAAgB,UAAU,CAAC,IAAqB,EAAE,IAA2B;IACzE,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;IAClB,IAAI,CAAC,IAAI,EAAE;QACP,IAAI,GAAG,EAAE,CAAA;KACZ;IAED,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE;QACf,IAAI,CAAC,OAAO,GAAG,SAAS,CAAC,UAAU,EAAE,CAAC;KACzC;IACD,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,0CAA0C,EAAE;QACrE,SAAS,EAAE,IAAI,CAAC,OAAO;QACvB,OAAO,EAAE,IAAI,CAAC,KAAK;KACtB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAbD,gCAaC"}
|
package/getSizes.d.ts
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
import { input as inputs, output as outputs } from "./types";
|
|
3
|
+
/**
|
|
4
|
+
* Retrieves information about the Droplet sizes that DigitalOcean supports, with
|
|
5
|
+
* the ability to filter and sort the results. If no filters are specified, all sizes
|
|
6
|
+
* will be returned.
|
|
7
|
+
*/
|
|
8
|
+
export declare function getSizes(args?: GetSizesArgs, opts?: pulumi.InvokeOptions): Promise<GetSizesResult>;
|
|
9
|
+
/**
|
|
10
|
+
* A collection of arguments for invoking getSizes.
|
|
11
|
+
*/
|
|
12
|
+
export interface GetSizesArgs {
|
|
13
|
+
/**
|
|
14
|
+
* Filter the results.
|
|
15
|
+
* The `filter` block is documented below.
|
|
16
|
+
*/
|
|
17
|
+
filters?: inputs.GetSizesFilter[];
|
|
18
|
+
/**
|
|
19
|
+
* Sort the results.
|
|
20
|
+
* The `sort` block is documented below.
|
|
21
|
+
*/
|
|
22
|
+
sorts?: inputs.GetSizesSort[];
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* A collection of values returned by getSizes.
|
|
26
|
+
*/
|
|
27
|
+
export interface GetSizesResult {
|
|
28
|
+
readonly filters?: outputs.GetSizesFilter[];
|
|
29
|
+
/**
|
|
30
|
+
* The provider-assigned unique ID for this managed resource.
|
|
31
|
+
*/
|
|
32
|
+
readonly id: string;
|
|
33
|
+
readonly sizes: outputs.GetSizesSize[];
|
|
34
|
+
readonly sorts?: outputs.GetSizesSort[];
|
|
35
|
+
}
|
package/getSizes.js
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
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
|
+
* Retrieves information about the Droplet sizes that DigitalOcean supports, with
|
|
9
|
+
* the ability to filter and sort the results. If no filters are specified, all sizes
|
|
10
|
+
* will be returned.
|
|
11
|
+
*/
|
|
12
|
+
function getSizes(args, opts) {
|
|
13
|
+
args = args || {};
|
|
14
|
+
if (!opts) {
|
|
15
|
+
opts = {};
|
|
16
|
+
}
|
|
17
|
+
if (!opts.version) {
|
|
18
|
+
opts.version = utilities.getVersion();
|
|
19
|
+
}
|
|
20
|
+
return pulumi.runtime.invoke("digitalocean:index/getSizes:getSizes", {
|
|
21
|
+
"filters": args.filters,
|
|
22
|
+
"sorts": args.sorts,
|
|
23
|
+
}, opts);
|
|
24
|
+
}
|
|
25
|
+
exports.getSizes = getSizes;
|
|
26
|
+
//# sourceMappingURL=getSizes.js.map
|
package/getSizes.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getSizes.js","sourceRoot":"","sources":["../getSizes.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;AAEjF,yCAAyC;AAEzC,yCAAyC;AAEzC;;;;GAIG;AACH,SAAgB,QAAQ,CAAC,IAAmB,EAAE,IAA2B;IACrE,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,sCAAsC,EAAE;QACjE,SAAS,EAAE,IAAI,CAAC,OAAO;QACvB,OAAO,EAAE,IAAI,CAAC,KAAK;KACtB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAbD,4BAaC"}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
/**
|
|
3
|
+
* Get information on a Spaces bucket for use in other resources. This is useful if the Spaces bucket in question
|
|
4
|
+
* is not managed by the provider or you need to utilize any of the bucket's data.
|
|
5
|
+
*
|
|
6
|
+
* ## Example Usage
|
|
7
|
+
*
|
|
8
|
+
* Get the bucket by name:
|
|
9
|
+
*
|
|
10
|
+
* ```typescript
|
|
11
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
12
|
+
* import * as digitalocean from "@pulumi/digitalocean";
|
|
13
|
+
*
|
|
14
|
+
* const example = digitalocean.getSpacesBucket({
|
|
15
|
+
* name: "my-spaces-bucket",
|
|
16
|
+
* region: "nyc3",
|
|
17
|
+
* });
|
|
18
|
+
* export const bucketDomainName = example.then(example => example.bucketDomainName);
|
|
19
|
+
* ```
|
|
20
|
+
*/
|
|
21
|
+
export declare function getSpacesBucket(args: GetSpacesBucketArgs, opts?: pulumi.InvokeOptions): Promise<GetSpacesBucketResult>;
|
|
22
|
+
/**
|
|
23
|
+
* A collection of arguments for invoking getSpacesBucket.
|
|
24
|
+
*/
|
|
25
|
+
export interface GetSpacesBucketArgs {
|
|
26
|
+
/**
|
|
27
|
+
* The name of the Spaces bucket.
|
|
28
|
+
*/
|
|
29
|
+
name: string;
|
|
30
|
+
/**
|
|
31
|
+
* The slug of the region where the bucket is stored.
|
|
32
|
+
*/
|
|
33
|
+
region: string;
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* A collection of values returned by getSpacesBucket.
|
|
37
|
+
*/
|
|
38
|
+
export interface GetSpacesBucketResult {
|
|
39
|
+
/**
|
|
40
|
+
* The FQDN of the bucket (e.g. bucket-name.nyc3.digitaloceanspaces.com)
|
|
41
|
+
*/
|
|
42
|
+
readonly bucketDomainName: string;
|
|
43
|
+
/**
|
|
44
|
+
* The provider-assigned unique ID for this managed resource.
|
|
45
|
+
*/
|
|
46
|
+
readonly id: string;
|
|
47
|
+
/**
|
|
48
|
+
* The name of the Spaces bucket
|
|
49
|
+
*/
|
|
50
|
+
readonly name: string;
|
|
51
|
+
/**
|
|
52
|
+
* The slug of the region where the bucket is stored.
|
|
53
|
+
*/
|
|
54
|
+
readonly region: string;
|
|
55
|
+
/**
|
|
56
|
+
* The uniform resource name of the bucket
|
|
57
|
+
*/
|
|
58
|
+
readonly urn: string;
|
|
59
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
|
|
3
|
+
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
const pulumi = require("@pulumi/pulumi");
|
|
6
|
+
const utilities = require("./utilities");
|
|
7
|
+
/**
|
|
8
|
+
* Get information on a Spaces bucket for use in other resources. This is useful if the Spaces bucket in question
|
|
9
|
+
* is not managed by the provider or you need to utilize any of the bucket's data.
|
|
10
|
+
*
|
|
11
|
+
* ## Example Usage
|
|
12
|
+
*
|
|
13
|
+
* Get the bucket by name:
|
|
14
|
+
*
|
|
15
|
+
* ```typescript
|
|
16
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
17
|
+
* import * as digitalocean from "@pulumi/digitalocean";
|
|
18
|
+
*
|
|
19
|
+
* const example = digitalocean.getSpacesBucket({
|
|
20
|
+
* name: "my-spaces-bucket",
|
|
21
|
+
* region: "nyc3",
|
|
22
|
+
* });
|
|
23
|
+
* export const bucketDomainName = example.then(example => example.bucketDomainName);
|
|
24
|
+
* ```
|
|
25
|
+
*/
|
|
26
|
+
function getSpacesBucket(args, opts) {
|
|
27
|
+
if (!opts) {
|
|
28
|
+
opts = {};
|
|
29
|
+
}
|
|
30
|
+
if (!opts.version) {
|
|
31
|
+
opts.version = utilities.getVersion();
|
|
32
|
+
}
|
|
33
|
+
return pulumi.runtime.invoke("digitalocean:index/getSpacesBucket:getSpacesBucket", {
|
|
34
|
+
"name": args.name,
|
|
35
|
+
"region": args.region,
|
|
36
|
+
}, opts);
|
|
37
|
+
}
|
|
38
|
+
exports.getSpacesBucket = getSpacesBucket;
|
|
39
|
+
//# sourceMappingURL=getSpacesBucket.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getSpacesBucket.js","sourceRoot":"","sources":["../getSpacesBucket.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;AAEjF,yCAAyC;AAEzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;GAkBG;AACH,SAAgB,eAAe,CAAC,IAAyB,EAAE,IAA2B;IAClF,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,oDAAoD,EAAE;QAC/E,MAAM,EAAE,IAAI,CAAC,IAAI;QACjB,QAAQ,EAAE,IAAI,CAAC,MAAM;KACxB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAZD,0CAYC"}
|