@pulumiverse/grafana
Version:
A Pulumi package for creating and managing grafana.
148 lines (147 loc) • 4.87 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
import * as inputs from "../types/input";
import * as outputs from "../types/output";
/**
* Manages a Grafana Assistant skill.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as grafana from "@pulumiverse/grafana";
*
* const example = new grafana.assistant.Skill("example", {
* name: "Deploy readiness check",
* commandName: "deploy-readiness",
* body: `1. Check deployment pipeline status.
* 2. Verify SLO error budget before promoting.
* `,
* scope: "tenant",
* });
* ```
*
* ## Import
*
* ```sh
* terraform import grafana_assistant_skill.name "{{ id }}"
* ```
*/
export declare class Skill extends pulumi.CustomResource {
/**
* Get an existing Skill 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?: SkillState, opts?: pulumi.CustomResourceOptions): Skill;
/**
* Returns true if the given object is an instance of Skill. 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 Skill;
/**
* MCP tools to auto-approve when this skill is invoked.
*/
readonly allowedTools: pulumi.Output<outputs.assistant.SkillAllowedTool[] | undefined>;
/**
* The skill content.
*/
readonly body: pulumi.Output<string>;
/**
* The slash command name that invokes the skill. Setting this enables the skill as a command.
*/
readonly commandName: pulumi.Output<string | undefined>;
/**
* Optional JSON array of context items referenced by the skill.
*/
readonly contextItems: pulumi.Output<string | undefined>;
/**
* Whether the skill is included in the knowledgebase.
*/
readonly includeInKnowledgebase: pulumi.Output<boolean>;
/**
* The skill name.
*/
readonly name: pulumi.Output<string>;
/**
* Whether the resource is visible to the whole tenant (`tenant`) or only the creating user (`user`).
*/
readonly scope: pulumi.Output<string>;
/**
* Create a Skill 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: SkillArgs, opts?: pulumi.CustomResourceOptions);
}
/**
* Input properties used for looking up and filtering Skill resources.
*/
export interface SkillState {
/**
* MCP tools to auto-approve when this skill is invoked.
*/
allowedTools?: pulumi.Input<pulumi.Input<inputs.assistant.SkillAllowedTool>[]>;
/**
* The skill content.
*/
body?: pulumi.Input<string>;
/**
* The slash command name that invokes the skill. Setting this enables the skill as a command.
*/
commandName?: pulumi.Input<string>;
/**
* Optional JSON array of context items referenced by the skill.
*/
contextItems?: pulumi.Input<string>;
/**
* Whether the skill is included in the knowledgebase.
*/
includeInKnowledgebase?: pulumi.Input<boolean>;
/**
* The skill name.
*/
name?: pulumi.Input<string>;
/**
* Whether the resource is visible to the whole tenant (`tenant`) or only the creating user (`user`).
*/
scope?: pulumi.Input<string>;
}
/**
* The set of arguments for constructing a Skill resource.
*/
export interface SkillArgs {
/**
* MCP tools to auto-approve when this skill is invoked.
*/
allowedTools?: pulumi.Input<pulumi.Input<inputs.assistant.SkillAllowedTool>[]>;
/**
* The skill content.
*/
body: pulumi.Input<string>;
/**
* The slash command name that invokes the skill. Setting this enables the skill as a command.
*/
commandName?: pulumi.Input<string>;
/**
* Optional JSON array of context items referenced by the skill.
*/
contextItems?: pulumi.Input<string>;
/**
* Whether the skill is included in the knowledgebase.
*/
includeInKnowledgebase?: pulumi.Input<boolean>;
/**
* The skill name.
*/
name?: pulumi.Input<string>;
/**
* Whether the resource is visible to the whole tenant (`tenant`) or only the creating user (`user`).
*/
scope: pulumi.Input<string>;
}