@pulumi/linode
Version:
A Pulumi package for creating and managing linode cloud resources.
62 lines • 2.52 kB
JavaScript
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
Object.defineProperty(exports, "__esModule", { value: true });
exports.getLinodeObjectStorageBucketOutput = exports.getLinodeObjectStorageBucket = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("./utilities");
/**
* Provides information about a Linode Object Storage Bucket
* For more information, see the [Linode APIv4 docs](https://techdocs.akamai.com/linode-api/reference/get-object-storage-bucket).
*
* ## Example Usage
*
* The following example shows how one might use this data source to access information about a Linode Object Storage Bucket.
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as linode from "@pulumi/linode";
*
* const my_bucket = linode.getLinodeObjectStorageBucket({
* label: "my-bucket",
* region: "us-mia",
* });
* ```
*/
function getLinodeObjectStorageBucket(args, opts) {
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invoke("linode:index/getLinodeObjectStorageBucket:getLinodeObjectStorageBucket", {
"cluster": args.cluster,
"label": args.label,
"region": args.region,
}, opts);
}
exports.getLinodeObjectStorageBucket = getLinodeObjectStorageBucket;
/**
* Provides information about a Linode Object Storage Bucket
* For more information, see the [Linode APIv4 docs](https://techdocs.akamai.com/linode-api/reference/get-object-storage-bucket).
*
* ## Example Usage
*
* The following example shows how one might use this data source to access information about a Linode Object Storage Bucket.
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as linode from "@pulumi/linode";
*
* const my_bucket = linode.getLinodeObjectStorageBucket({
* label: "my-bucket",
* region: "us-mia",
* });
* ```
*/
function getLinodeObjectStorageBucketOutput(args, opts) {
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invokeOutput("linode:index/getLinodeObjectStorageBucket:getLinodeObjectStorageBucket", {
"cluster": args.cluster,
"label": args.label,
"region": args.region,
}, opts);
}
exports.getLinodeObjectStorageBucketOutput = getLinodeObjectStorageBucketOutput;
//# sourceMappingURL=getLinodeObjectStorageBucket.js.map
;