@pulumi/nomad
Version:
A Pulumi package for creating and managing nomad cloud resources.
79 lines (78 loc) • 2.41 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
import * as outputs from "./types/output";
/**
* Retrieve a list of Scaling Policies.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as nomad from "@pulumi/nomad";
*
* const example = nomad.getScalingPolicies({
* jobId: "webapp",
* type: "horizontal",
* });
* ```
*/
export declare function getScalingPolicies(args?: GetScalingPoliciesArgs, opts?: pulumi.InvokeOptions): Promise<GetScalingPoliciesResult>;
/**
* A collection of arguments for invoking getScalingPolicies.
*/
export interface GetScalingPoliciesArgs {
/**
* `(string)` - An optional string to filter scaling policies based on the target job. If not provided, policies for all jobs are returned.
*/
jobId?: string;
/**
* `(string)` - An optional string to filter scaling policies based on policy type. If not provided, policies of all types are returned.
*/
type?: string;
}
/**
* A collection of values returned by getScalingPolicies.
*/
export interface GetScalingPoliciesResult {
/**
* The provider-assigned unique ID for this managed resource.
*/
readonly id: string;
readonly jobId?: string;
/**
* `list of maps` - A list of scaling policies.
*/
readonly policies: outputs.GetScalingPoliciesPolicy[];
/**
* `(string)` - The scaling policy type.
*/
readonly type?: string;
}
/**
* Retrieve a list of Scaling Policies.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as nomad from "@pulumi/nomad";
*
* const example = nomad.getScalingPolicies({
* jobId: "webapp",
* type: "horizontal",
* });
* ```
*/
export declare function getScalingPoliciesOutput(args?: GetScalingPoliciesOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetScalingPoliciesResult>;
/**
* A collection of arguments for invoking getScalingPolicies.
*/
export interface GetScalingPoliciesOutputArgs {
/**
* `(string)` - An optional string to filter scaling policies based on the target job. If not provided, policies for all jobs are returned.
*/
jobId?: pulumi.Input<string>;
/**
* `(string)` - An optional string to filter scaling policies based on policy type. If not provided, policies of all types are returned.
*/
type?: pulumi.Input<string>;
}