@pulumi/digitalocean
Version:
A Pulumi package for creating and managing DigitalOcean cloud resources.
141 lines • 4.34 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
import * as inputs from "./types/input";
import * as outputs from "./types/output";
/**
* Returns a list of dedicated inference endpoints in your DigitalOcean account,
* with the ability to filter and sort the results. If no filters are specified, all
* endpoints will be returned.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as digitalocean from "@pulumi/digitalocean";
*
* const all = digitalocean.getDedicatedInferences({});
* export const allEndpoints = all.then(all => all.dedicatedInferences);
* ```
*
* ### Filter by name
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as digitalocean from "@pulumi/digitalocean";
*
* const filtered = digitalocean.getDedicatedInferences({
* filters: [{
* key: "name",
* values: ["my-inference"],
* }],
* });
* ```
*
* ### Filter by region
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as digitalocean from "@pulumi/digitalocean";
*
* const byRegion = digitalocean.getDedicatedInferences({
* filters: [{
* key: "region",
* values: ["tor1"],
* }],
* sorts: [{
* key: "name",
* direction: "asc",
* }],
* });
* ```
*/
export declare function getDedicatedInferences(args?: GetDedicatedInferencesArgs, opts?: pulumi.InvokeOptions): Promise<GetDedicatedInferencesResult>;
/**
* A collection of arguments for invoking getDedicatedInferences.
*/
export interface GetDedicatedInferencesArgs {
/**
* Filter the results. The `filter` block is documented below.
*/
filters?: inputs.GetDedicatedInferencesFilter[];
/**
* Sort the results. The `sort` block is documented below.
*/
sorts?: inputs.GetDedicatedInferencesSort[];
}
/**
* A collection of values returned by getDedicatedInferences.
*/
export interface GetDedicatedInferencesResult {
/**
* A list of dedicated inference endpoints satisfying any `filter` and `sort` criteria. Each element contains the following attributes:
*/
readonly dedicatedInferences: outputs.GetDedicatedInferencesDedicatedInference[];
readonly filters?: outputs.GetDedicatedInferencesFilter[];
/**
* The provider-assigned unique ID for this managed resource.
*/
readonly id: string;
readonly sorts?: outputs.GetDedicatedInferencesSort[];
}
/**
* Returns a list of dedicated inference endpoints in your DigitalOcean account,
* with the ability to filter and sort the results. If no filters are specified, all
* endpoints will be returned.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as digitalocean from "@pulumi/digitalocean";
*
* const all = digitalocean.getDedicatedInferences({});
* export const allEndpoints = all.then(all => all.dedicatedInferences);
* ```
*
* ### Filter by name
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as digitalocean from "@pulumi/digitalocean";
*
* const filtered = digitalocean.getDedicatedInferences({
* filters: [{
* key: "name",
* values: ["my-inference"],
* }],
* });
* ```
*
* ### Filter by region
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as digitalocean from "@pulumi/digitalocean";
*
* const byRegion = digitalocean.getDedicatedInferences({
* filters: [{
* key: "region",
* values: ["tor1"],
* }],
* sorts: [{
* key: "name",
* direction: "asc",
* }],
* });
* ```
*/
export declare function getDedicatedInferencesOutput(args?: GetDedicatedInferencesOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetDedicatedInferencesResult>;
/**
* A collection of arguments for invoking getDedicatedInferences.
*/
export interface GetDedicatedInferencesOutputArgs {
/**
* Filter the results. The `filter` block is documented below.
*/
filters?: pulumi.Input<pulumi.Input<inputs.GetDedicatedInferencesFilterArgs>[] | undefined>;
/**
* Sort the results. The `sort` block is documented below.
*/
sorts?: pulumi.Input<pulumi.Input<inputs.GetDedicatedInferencesSortArgs>[] | undefined>;
}
//# sourceMappingURL=getDedicatedInferences.d.ts.map