@pulumiverse/grafana
Version:
A Pulumi package for creating and managing grafana.
103 lines (102 loc) • 3.3 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
/**
* Manages Grafana Cloud Plugin Installations.
*
* * [Plugin Catalog](https://grafana.com/grafana/plugins/)
*
* Required access policy scopes:
*
* * stack-plugins:read
* * stack-plugins:write
* * stack-plugins:delete
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as grafana from "@pulumiverse/grafana";
*
* const test = new grafana.cloud.PluginInstallation("test", {
* stackSlug: "stackname",
* slug: "some-plugin",
* version: "1.2.3",
* });
* ```
*
* ## Import
*
* ```sh
* $ pulumi import grafana:cloud/pluginInstallation:PluginInstallation name "{{ stackSlug }}:{{ pluginSlug }}"
* ```
*/
export declare class PluginInstallation extends pulumi.CustomResource {
/**
* Get an existing PluginInstallation 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?: PluginInstallationState, opts?: pulumi.CustomResourceOptions): PluginInstallation;
/**
* Returns true if the given object is an instance of PluginInstallation. 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 PluginInstallation;
/**
* Slug of the plugin to be installed.
*/
readonly slug: pulumi.Output<string>;
/**
* The stack id to which the plugin should be installed.
*/
readonly stackSlug: pulumi.Output<string>;
/**
* Version of the plugin to be installed.
*/
readonly version: pulumi.Output<string>;
/**
* Create a PluginInstallation 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: PluginInstallationArgs, opts?: pulumi.CustomResourceOptions);
}
/**
* Input properties used for looking up and filtering PluginInstallation resources.
*/
export interface PluginInstallationState {
/**
* Slug of the plugin to be installed.
*/
slug?: pulumi.Input<string>;
/**
* The stack id to which the plugin should be installed.
*/
stackSlug?: pulumi.Input<string>;
/**
* Version of the plugin to be installed.
*/
version?: pulumi.Input<string>;
}
/**
* The set of arguments for constructing a PluginInstallation resource.
*/
export interface PluginInstallationArgs {
/**
* Slug of the plugin to be installed.
*/
slug: pulumi.Input<string>;
/**
* The stack id to which the plugin should be installed.
*/
stackSlug: pulumi.Input<string>;
/**
* Version of the plugin to be installed.
*/
version: pulumi.Input<string>;
}