UNPKG

@pulumiverse/grafana

Version:

A Pulumi package for creating and managing grafana.

87 lines 3.58 kB
"use strict"; // *** WARNING: this file was generated by pulumi-language-nodejs. *** // *** Do not edit by hand unless you're certain you know what you are doing! *** Object.defineProperty(exports, "__esModule", { value: true }); exports.ProductActivationK8sO11yConfig = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("../../utilities"); /** * Manages Grafana Kubernetes Observability configurations using the Grafana APIs. * * This resource allows you to enable or disable Kubernetes 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.ProductActivationK8sO11yConfig("example", { * metadata: { * uid: "global", * }, * spec: { * enabled: true, * }, * }); * ``` * * ## Import * * !/bin/bash * Import an existing Kubernetes observability config by its UID * * ```sh * $ pulumi import grafana:cloud/v1alpha1/productActivationK8sO11yConfig:ProductActivationK8sO11yConfig example my-k8s-o11y-config * ``` */ class ProductActivationK8sO11yConfig extends pulumi.CustomResource { /** * Get an existing ProductActivationK8sO11yConfig 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, id, state, opts) { return new ProductActivationK8sO11yConfig(name, state, { ...opts, id: id }); } /** * Returns true if the given object is an instance of ProductActivationK8sO11yConfig. This is designed to work even * when multiple copies of the Pulumi SDK have been loaded into the same process. */ static isInstance(obj) { if (obj === undefined || obj === null) { return false; } return obj['__pulumiType'] === ProductActivationK8sO11yConfig.__pulumiType; } constructor(name, argsOrState, opts) { let resourceInputs = {}; opts = opts || {}; if (opts.id) { const state = argsOrState; resourceInputs["metadata"] = state?.metadata; resourceInputs["options"] = state?.options; resourceInputs["spec"] = state?.spec; } else { const args = argsOrState; resourceInputs["metadata"] = args?.metadata; resourceInputs["options"] = args?.options; resourceInputs["spec"] = args?.spec; } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); const aliasOpts = { aliases: [{ type: "grafana:cloud/productActivationK8sO11yConfigV1Alpha1:ProductActivationK8sO11yConfigV1Alpha1" }] }; opts = pulumi.mergeOptions(opts, aliasOpts); super(ProductActivationK8sO11yConfig.__pulumiType, name, resourceInputs, opts); } } exports.ProductActivationK8sO11yConfig = ProductActivationK8sO11yConfig; /** @internal */ ProductActivationK8sO11yConfig.__pulumiType = 'grafana:cloud/v1alpha1/productActivationK8sO11yConfig:ProductActivationK8sO11yConfig'; //# sourceMappingURL=productActivationK8sO11yConfig.js.map