UNPKG

@pulumi/signalfx

Version:

A Pulumi package for creating and managing SignalFx resources.

115 lines 4.88 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! *** var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { if (k2 === undefined) k2 = k; var desc = Object.getOwnPropertyDescriptor(m, k); if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { desc = { enumerable: true, get: function() { return m[k]; } }; } Object.defineProperty(o, k2, desc); }) : (function(o, m, k, k2) { if (k2 === undefined) k2 = k; o[k2] = m[k]; })); var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { Object.defineProperty(o, "default", { enumerable: true, value: v }); }) : function(o, v) { o["default"] = v; }); var __importStar = (this && this.__importStar) || function (mod) { if (mod && mod.__esModule) return mod; var result = {}; if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); __setModuleDefault(result, mod); return result; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.TextChart = void 0; const pulumi = __importStar(require("@pulumi/pulumi")); const utilities = __importStar(require("./utilities")); /** * This special type of chart doesn’t display any metric data. Rather, it lets you place a text note on the dashboard. * * ## Example * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as signalfx from "@pulumi/signalfx"; * * const mynote0 = new signalfx.TextChart("mynote0", { * name: "Important Dashboard Note", * description: "Lorem ipsum dolor sit amet, laudem tibique iracundia at mea. Nam posse dolores ex, nec cu adhuc putent honestatis", * markdown: `1. First ordered list item * 2. Another item * * Unordered sub-list. * 1. Actual numbers don't matter, just that it's a number * 1. Ordered sub-list * 4. And another item. * * You can have properly indented paragraphs within list items. Notice the blank line above, and the leading spaces (at least one, but we'll use three here to also align the raw Markdown). * * To have a line break without a paragraph, you will need to use two trailing spaces.⋅⋅ * Note that this line is separate, but within the same paragraph.⋅⋅ * (This is contrary to the typical GFM line break behaviour, where trailing spaces are not required.) * * * Unordered list can use asterisks * - Or minuses * + Or pluses * `, * }); * ``` */ class TextChart extends pulumi.CustomResource { /** * Get an existing TextChart 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 TextChart(name, state, { ...opts, id: id }); } /** @internal */ static __pulumiType = 'signalfx:index/textChart:TextChart'; /** * Returns true if the given object is an instance of TextChart. 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'] === TextChart.__pulumiType; } constructor(name, argsOrState, opts) { let resourceInputs = {}; opts = opts || {}; if (opts.id) { const state = argsOrState; resourceInputs["description"] = state?.description; resourceInputs["markdown"] = state?.markdown; resourceInputs["name"] = state?.name; resourceInputs["tags"] = state?.tags; resourceInputs["url"] = state?.url; } else { const args = argsOrState; if (args?.markdown === undefined && !opts.urn) { throw new Error("Missing required property 'markdown'"); } resourceInputs["description"] = args?.description; resourceInputs["markdown"] = args?.markdown; resourceInputs["name"] = args?.name; resourceInputs["tags"] = args?.tags; resourceInputs["url"] = undefined /*out*/; } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); super(TextChart.__pulumiType, name, resourceInputs, opts); } } exports.TextChart = TextChart; //# sourceMappingURL=textChart.js.map