UNPKG

@pulumi/digitalocean

Version:

A Pulumi package for creating and managing DigitalOcean cloud resources.

94 lines (93 loc) 2.7 kB
import * as pulumi from "@pulumi/pulumi"; import * as outputs from "./types/output"; /** * ## 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; } /** * ## 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>; /** * The name of Droplet Autoscale pool. */ name?: pulumi.Input<string>; }