UNPKG

@pulumi/nomad

Version:

A Pulumi package for creating and managing nomad cloud resources.

102 lines (101 loc) 3.76 kB
import * as pulumi from "@pulumi/pulumi"; import * as inputs from "./types/input"; import * as outputs from "./types/output"; /** * Manages a quota specification in a Nomad cluster. * * ## Example Usage * * Registering a quota specification: * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as nomad from "@pulumi/nomad"; * * const prodApi = new nomad.QuoteSpecification("prod_api", { * name: "prod-api", * description: "Production instances of backend API servers", * limits: [{ * region: "global", * regionLimit: { * cpu: 2400, * memoryMb: 1200, * }, * }], * }); * ``` */ export declare class QuoteSpecification extends pulumi.CustomResource { /** * Get an existing QuoteSpecification resource's state with the given name, ID, and optional extra * properties used to qualify the lookup. * * @param name The _unique_ name of the resulting resource. * @param id The _unique_ provider ID of the resource to lookup. * @param state Any extra arguments used during the lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static get(name: string, id: pulumi.Input<pulumi.ID>, state?: QuoteSpecificationState, opts?: pulumi.CustomResourceOptions): QuoteSpecification; /** * Returns true if the given object is an instance of QuoteSpecification. This is designed to work even * when multiple copies of the Pulumi SDK have been loaded into the same process. */ static isInstance(obj: any): obj is QuoteSpecification; /** * `(string: "")` - A description of the quota specification. */ readonly description: pulumi.Output<string | undefined>; /** * `(block: <required>)` - A block of quota limits to enforce. Can * be repeated. See below for the structure of this block. */ readonly limits: pulumi.Output<outputs.QuoteSpecificationLimit[]>; /** * `(string: <required>)` - A unique name for the quota specification. */ readonly name: pulumi.Output<string>; /** * Create a QuoteSpecification resource with the given unique name, arguments, and options. * * @param name The _unique_ name of the resource. * @param args The arguments to use to populate this resource's properties. * @param opts A bag of options that control this resource's behavior. */ constructor(name: string, args: QuoteSpecificationArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering QuoteSpecification resources. */ export interface QuoteSpecificationState { /** * `(string: "")` - A description of the quota specification. */ description?: pulumi.Input<string>; /** * `(block: <required>)` - A block of quota limits to enforce. Can * be repeated. See below for the structure of this block. */ limits?: pulumi.Input<pulumi.Input<inputs.QuoteSpecificationLimit>[]>; /** * `(string: <required>)` - A unique name for the quota specification. */ name?: pulumi.Input<string>; } /** * The set of arguments for constructing a QuoteSpecification resource. */ export interface QuoteSpecificationArgs { /** * `(string: "")` - A description of the quota specification. */ description?: pulumi.Input<string>; /** * `(block: <required>)` - A block of quota limits to enforce. Can * be repeated. See below for the structure of this block. */ limits: pulumi.Input<pulumi.Input<inputs.QuoteSpecificationLimit>[]>; /** * `(string: <required>)` - A unique name for the quota specification. */ name?: pulumi.Input<string>; }