@ediri/vultr
Version:
A Pulumi package for creating and managing Vultr cloud resources.
62 lines • 1.93 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.getObjectStorageOutput = exports.getObjectStorage = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("./utilities");
/**
* Get information about an Object Storage subscription on Vultr.
*
* ## Example Usage
*
* Get the information for an object storage subscription by `label`:
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as vultr from "@ediri/vultr";
*
* const s3 = vultr.getObjectStorage({
* filters: [{
* name: "label",
* values: ["my-s3"],
* }],
* });
* ```
*/
function getObjectStorage(args, opts) {
args = args || {};
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invoke("vultr:index/getObjectStorage:getObjectStorage", {
"filters": args.filters,
}, opts);
}
exports.getObjectStorage = getObjectStorage;
/**
* Get information about an Object Storage subscription on Vultr.
*
* ## Example Usage
*
* Get the information for an object storage subscription by `label`:
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as vultr from "@ediri/vultr";
*
* const s3 = vultr.getObjectStorage({
* filters: [{
* name: "label",
* values: ["my-s3"],
* }],
* });
* ```
*/
function getObjectStorageOutput(args, opts) {
args = args || {};
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invokeOutput("vultr:index/getObjectStorage:getObjectStorage", {
"filters": args.filters,
}, opts);
}
exports.getObjectStorageOutput = getObjectStorageOutput;
//# sourceMappingURL=getObjectStorage.js.map