@pulumi/digitalocean
Version:
A Pulumi package for creating and managing DigitalOcean cloud resources.
104 lines • 3.52 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
import * as outputs from "./types/output";
/**
* Get information on a Droplet Autoscale pool for use with other managed resources. This datasource provides all the
* Droplet Autoscale pool properties as configured on the DigitalOcean account. This is useful if the Droplet Autoscale
* pool in question is not managed by Terraform, or any of the relevant data would need to referenced in other managed
* resources.
*
* ## 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,
* });
* ```
*/
export declare function getDropletAutoscale(args?: GetDropletAutoscaleArgs, opts?: pulumi.InvokeOptions): Promise<GetDropletAutoscaleResult>;
/**
* A collection of arguments for invoking getDropletAutoscale.
*/
export interface GetDropletAutoscaleArgs {
/**
* The ID of Droplet Autoscale pool.
*/
id?: string;
/**
* The name of Droplet Autoscale pool.
*/
name?: string;
}
/**
* A collection of values returned by getDropletAutoscale.
*/
export interface GetDropletAutoscaleResult {
readonly configs: outputs.GetDropletAutoscaleConfig[];
readonly createdAt: string;
readonly currentUtilizations: outputs.GetDropletAutoscaleCurrentUtilization[];
readonly dropletTemplates: outputs.GetDropletAutoscaleDropletTemplate[];
readonly id?: string;
readonly name?: string;
readonly status: string;
readonly updatedAt: string;
}
/**
* Get information on a Droplet Autoscale pool for use with other managed resources. This datasource provides all the
* Droplet Autoscale pool properties as configured on the DigitalOcean account. This is useful if the Droplet Autoscale
* pool in question is not managed by Terraform, or any of the relevant data would need to referenced in other managed
* resources.
*
* ## 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,
* });
* ```
*/
export declare function getDropletAutoscaleOutput(args?: GetDropletAutoscaleOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetDropletAutoscaleResult>;
/**
* A collection of arguments for invoking getDropletAutoscale.
*/
export interface GetDropletAutoscaleOutputArgs {
/**
* The ID of Droplet Autoscale pool.
*/
id?: pulumi.Input<string | undefined>;
/**
* The name of Droplet Autoscale pool.
*/
name?: pulumi.Input<string | undefined>;
}
//# sourceMappingURL=getDropletAutoscale.d.ts.map