UNPKG

@pulumiverse/grafana

Version:

A Pulumi package for creating and managing grafana.

122 lines (121 loc) 4.27 kB
import * as pulumi from "@pulumi/pulumi"; /** * Manages limits for a k6 project. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as grafana from "@pulumiverse/grafana"; * * const testProjectLimits = new grafana.k6.Project("test_project_limits", {name: "Terraform Project Test Limits"}); * const testLimits = new grafana.k6.ProjectLimits("test_limits", { * projectId: testProjectLimits.id, * vuhMaxPerMonth: 1000, * vuMaxPerTest: 100, * vuBrowserMaxPerTest: 10, * durationMaxPerTest: 3600, * }); * ``` * * ## Import * * ```sh * terraform import grafana_k6_project_limits.name "{{ project_id }}" * ``` */ export declare class ProjectLimits extends pulumi.CustomResource { /** * Get an existing ProjectLimits 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?: ProjectLimitsState, opts?: pulumi.CustomResourceOptions): ProjectLimits; /** * Returns true if the given object is an instance of ProjectLimits. 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 ProjectLimits; /** * Maximum duration of a test in seconds. */ readonly durationMaxPerTest: pulumi.Output<number | undefined>; /** * The identifier of the project to manage limits for. */ readonly projectId: pulumi.Output<string>; /** * Maximum number of concurrent browser virtual users (VUs) used in one test. */ readonly vuBrowserMaxPerTest: pulumi.Output<number | undefined>; /** * Maximum number of concurrent virtual users (VUs) used in one test. */ readonly vuMaxPerTest: pulumi.Output<number | undefined>; /** * Maximum amount of virtual user hours (VU/h) used per one calendar month. */ readonly vuhMaxPerMonth: pulumi.Output<number | undefined>; /** * Create a ProjectLimits 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: ProjectLimitsArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering ProjectLimits resources. */ export interface ProjectLimitsState { /** * Maximum duration of a test in seconds. */ durationMaxPerTest?: pulumi.Input<number>; /** * The identifier of the project to manage limits for. */ projectId?: pulumi.Input<string>; /** * Maximum number of concurrent browser virtual users (VUs) used in one test. */ vuBrowserMaxPerTest?: pulumi.Input<number>; /** * Maximum number of concurrent virtual users (VUs) used in one test. */ vuMaxPerTest?: pulumi.Input<number>; /** * Maximum amount of virtual user hours (VU/h) used per one calendar month. */ vuhMaxPerMonth?: pulumi.Input<number>; } /** * The set of arguments for constructing a ProjectLimits resource. */ export interface ProjectLimitsArgs { /** * Maximum duration of a test in seconds. */ durationMaxPerTest?: pulumi.Input<number>; /** * The identifier of the project to manage limits for. */ projectId: pulumi.Input<string>; /** * Maximum number of concurrent browser virtual users (VUs) used in one test. */ vuBrowserMaxPerTest?: pulumi.Input<number>; /** * Maximum number of concurrent virtual users (VUs) used in one test. */ vuMaxPerTest?: pulumi.Input<number>; /** * Maximum amount of virtual user hours (VU/h) used per one calendar month. */ vuhMaxPerMonth?: pulumi.Input<number>; }