UNPKG

@lbrlabs/pulumi-harness

Version:

A Pulumi package for creating and managing Harness resources.

110 lines (109 loc) 3.38 kB
import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * Resource for creating an SLO. * * ## Import * * Import account level SLO * * ```sh * $ pulumi import harness:platform/slo:Slo example <slo_id> * ``` * * Import organization level SLO * * ```sh * $ pulumi import harness:platform/slo:Slo example <org_id>/<slo_id> * ``` * * Import project level SLO * * ```sh * $ pulumi import harness:platform/slo:Slo example <org_id>/<project_id>/<slo_id> * ``` */ export declare class Slo extends pulumi.CustomResource { /** * Get an existing Slo 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?: SloState, opts?: pulumi.CustomResourceOptions): Slo; /** * Returns true if the given object is an instance of Slo. 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 Slo; /** * Identifier of the SLO. */ readonly identifier: pulumi.Output<string>; /** * Identifier of the organization in which the SLO is configured. */ readonly orgId: pulumi.Output<string>; /** * Identifier of the project in which the SLO is configured. */ readonly projectId: pulumi.Output<string>; /** * Request for creating or updating SLO. */ readonly request: pulumi.Output<outputs.platform.SloRequest | undefined>; /** * Create a Slo 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: SloArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering Slo resources. */ export interface SloState { /** * Identifier of the SLO. */ identifier?: pulumi.Input<string>; /** * Identifier of the organization in which the SLO is configured. */ orgId?: pulumi.Input<string>; /** * Identifier of the project in which the SLO is configured. */ projectId?: pulumi.Input<string>; /** * Request for creating or updating SLO. */ request?: pulumi.Input<inputs.platform.SloRequest>; } /** * The set of arguments for constructing a Slo resource. */ export interface SloArgs { /** * Identifier of the SLO. */ identifier: pulumi.Input<string>; /** * Identifier of the organization in which the SLO is configured. */ orgId: pulumi.Input<string>; /** * Identifier of the project in which the SLO is configured. */ projectId: pulumi.Input<string>; /** * Request for creating or updating SLO. */ request?: pulumi.Input<inputs.platform.SloRequest>; }