@pulumi/digitalocean
Version:
A Pulumi package for creating and managing DigitalOcean cloud resources.
76 lines • 2.44 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.getDropletAutoscaleOutput = exports.getDropletAutoscale = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("./utilities");
/**
* ## Example Usage
*
* Get the Droplet Autoscale pool by name:
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as digitalocean from "@pulumi/digitalocean";
*
* const my_imported_autoscale_pool = digitalocean.getDropletAutoscale({
* name: my_existing_autoscale_pool.name,
* });
* ```
*
* Get the Droplet Autoscale pool by ID:
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as digitalocean from "@pulumi/digitalocean";
*
* const my_imported_autoscale_pool = digitalocean.getDropletAutoscale({
* id: my_existing_autoscale_pool.id,
* });
* ```
*/
function getDropletAutoscale(args, opts) {
args = args || {};
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invoke("digitalocean:index/getDropletAutoscale:getDropletAutoscale", {
"id": args.id,
"name": args.name,
}, opts);
}
exports.getDropletAutoscale = getDropletAutoscale;
/**
* ## Example Usage
*
* Get the Droplet Autoscale pool by name:
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as digitalocean from "@pulumi/digitalocean";
*
* const my_imported_autoscale_pool = digitalocean.getDropletAutoscale({
* name: my_existing_autoscale_pool.name,
* });
* ```
*
* Get the Droplet Autoscale pool by ID:
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as digitalocean from "@pulumi/digitalocean";
*
* const my_imported_autoscale_pool = digitalocean.getDropletAutoscale({
* id: my_existing_autoscale_pool.id,
* });
* ```
*/
function getDropletAutoscaleOutput(args, opts) {
args = args || {};
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invokeOutput("digitalocean:index/getDropletAutoscale:getDropletAutoscale", {
"id": args.id,
"name": args.name,
}, opts);
}
exports.getDropletAutoscaleOutput = getDropletAutoscaleOutput;
//# sourceMappingURL=getDropletAutoscale.js.map