UNPKG

pulumi-statuspage

Version:

A Pulumi package for creating and managing statuspage cloud resources.

73 lines 3.38 kB
"use strict"; // *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** // *** Do not edit by hand unless you're certain you know what you are doing! *** Object.defineProperty(exports, "__esModule", { value: true }); exports.Component = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("./utilities"); /** * ## Import * * `statuspage_component` can be imported using the ID of the component, e.g. * * ```sh * $ pulumi import statuspage:index/component:Component my_component my-page-id/my-component-id * ``` */ class Component extends pulumi.CustomResource { /** * Get an existing Component 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 Component(name, state, Object.assign(Object.assign({}, opts), { id: id })); } /** * Returns true if the given object is an instance of Component. 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'] === Component.__pulumiType; } constructor(name, argsOrState, opts) { let resourceInputs = {}; opts = opts || {}; if (opts.id) { const state = argsOrState; resourceInputs["automationEmail"] = state ? state.automationEmail : undefined; resourceInputs["description"] = state ? state.description : undefined; resourceInputs["name"] = state ? state.name : undefined; resourceInputs["onlyShowIfDegraded"] = state ? state.onlyShowIfDegraded : undefined; resourceInputs["pageId"] = state ? state.pageId : undefined; resourceInputs["showcase"] = state ? state.showcase : undefined; resourceInputs["status"] = state ? state.status : undefined; } else { const args = argsOrState; if ((!args || args.pageId === undefined) && !opts.urn) { throw new Error("Missing required property 'pageId'"); } resourceInputs["description"] = args ? args.description : undefined; resourceInputs["name"] = args ? args.name : undefined; resourceInputs["onlyShowIfDegraded"] = args ? args.onlyShowIfDegraded : undefined; resourceInputs["pageId"] = args ? args.pageId : undefined; resourceInputs["showcase"] = args ? args.showcase : undefined; resourceInputs["status"] = args ? args.status : undefined; resourceInputs["automationEmail"] = undefined /*out*/; } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); super(Component.__pulumiType, name, resourceInputs, opts); } } exports.Component = Component; /** @internal */ Component.__pulumiType = 'statuspage:index/component:Component'; //# sourceMappingURL=component.js.map