@pulumi/digitalocean
Version:
A Pulumi package for creating and managing DigitalOcean cloud resources.
62 lines • 2.27 kB
JavaScript
;
// *** WARNING: this file was generated by pulumi-language-nodejs. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
Object.defineProperty(exports, "__esModule", { value: true });
exports.getSpacesBucketOutput = exports.getSpacesBucket = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("./utilities");
/**
* Get information on a Spaces bucket for use in other resources. This is useful if the Spaces bucket in question
* is not managed by the provider or you need to utilize any of the bucket's data.
*
* ## Example Usage
*
* Get the bucket by name:
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as digitalocean from "@pulumi/digitalocean";
*
* const example = digitalocean.getSpacesBucket({
* name: "my-spaces-bucket",
* region: "nyc3",
* });
* export const bucketDomainName = example.then(example => example.bucketDomainName);
* ```
*/
function getSpacesBucket(args, opts) {
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invoke("digitalocean:index/getSpacesBucket:getSpacesBucket", {
"name": args.name,
"region": args.region,
}, opts);
}
exports.getSpacesBucket = getSpacesBucket;
/**
* Get information on a Spaces bucket for use in other resources. This is useful if the Spaces bucket in question
* is not managed by the provider or you need to utilize any of the bucket's data.
*
* ## Example Usage
*
* Get the bucket by name:
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as digitalocean from "@pulumi/digitalocean";
*
* const example = digitalocean.getSpacesBucket({
* name: "my-spaces-bucket",
* region: "nyc3",
* });
* export const bucketDomainName = example.then(example => example.bucketDomainName);
* ```
*/
function getSpacesBucketOutput(args, opts) {
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invokeOutput("digitalocean:index/getSpacesBucket:getSpacesBucket", {
"name": args.name,
"region": args.region,
}, opts);
}
exports.getSpacesBucketOutput = getSpacesBucketOutput;
//# sourceMappingURL=getSpacesBucket.js.map