UNPKG

@pulumiverse/grafana

Version:

A Pulumi package for creating and managing grafana.

107 lines (106 loc) 4.12 kB
import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../../types/input"; import * as outputs from "../../types/output"; /** * Manages Grafana Database Observability configurations using the Grafana APIs. * * This resource allows you to enable or disable database observability features. * * **Note**: This is a singleton resource. The UID is automatically set to "global" and there can only be one per namespace. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as grafana from "@pulumiverse/grafana"; * * const example = new grafana.cloud.v1alpha1.ProductActivationDbO11yConfig("example", { * metadata: { * uid: "global", * }, * spec: { * enabled: true, * }, * }); * ``` * * ## Import * * !/bin/bash * Import an existing database observability config by its UID * * ```sh * $ pulumi import grafana:cloud/v1alpha1/productActivationDbO11yConfig:ProductActivationDbO11yConfig example my-db-o11y-config * ``` */ export declare class ProductActivationDbO11yConfig extends pulumi.CustomResource { /** * Get an existing ProductActivationDbO11yConfig 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?: ProductActivationDbO11yConfigState, opts?: pulumi.CustomResourceOptions): ProductActivationDbO11yConfig; /** * Returns true if the given object is an instance of ProductActivationDbO11yConfig. 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 ProductActivationDbO11yConfig; /** * The metadata of the resource. */ readonly metadata: pulumi.Output<outputs.cloud.v1alpha1.ProductActivationDbO11yConfigMetadata | undefined>; /** * Options for applying the resource. */ readonly options: pulumi.Output<outputs.cloud.v1alpha1.ProductActivationDbO11yConfigOptions | undefined>; /** * The spec of the resource. */ readonly spec: pulumi.Output<outputs.cloud.v1alpha1.ProductActivationDbO11yConfigSpec | undefined>; /** * Create a ProductActivationDbO11yConfig 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?: ProductActivationDbO11yConfigArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering ProductActivationDbO11yConfig resources. */ export interface ProductActivationDbO11yConfigState { /** * The metadata of the resource. */ metadata?: pulumi.Input<inputs.cloud.v1alpha1.ProductActivationDbO11yConfigMetadata>; /** * Options for applying the resource. */ options?: pulumi.Input<inputs.cloud.v1alpha1.ProductActivationDbO11yConfigOptions>; /** * The spec of the resource. */ spec?: pulumi.Input<inputs.cloud.v1alpha1.ProductActivationDbO11yConfigSpec>; } /** * The set of arguments for constructing a ProductActivationDbO11yConfig resource. */ export interface ProductActivationDbO11yConfigArgs { /** * The metadata of the resource. */ metadata?: pulumi.Input<inputs.cloud.v1alpha1.ProductActivationDbO11yConfigMetadata>; /** * Options for applying the resource. */ options?: pulumi.Input<inputs.cloud.v1alpha1.ProductActivationDbO11yConfigOptions>; /** * The spec of the resource. */ spec?: pulumi.Input<inputs.cloud.v1alpha1.ProductActivationDbO11yConfigSpec>; }