UNPKG

pulumi-logtail

Version:

A Pulumi provider for managing Logtail log management and analytics resources, dynamically bridged from the Terraform Logtail provider with support for sources, metrics, and log aggregation.

76 lines 3.79 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.ErrorsApplication = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("./utilities"); class ErrorsApplication extends pulumi.CustomResource { /** * Get an existing ErrorsApplication 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 ErrorsApplication(name, state, { ...opts, id: id }); } /** * Returns true if the given object is an instance of ErrorsApplication. 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'] === ErrorsApplication.__pulumiType; } constructor(name, argsOrState, opts) { let resourceInputs = {}; opts = opts || {}; if (opts.id) { const state = argsOrState; resourceInputs["applicationGroupId"] = state?.applicationGroupId; resourceInputs["createdAt"] = state?.createdAt; resourceInputs["customBucket"] = state?.customBucket; resourceInputs["dataRegion"] = state?.dataRegion; resourceInputs["errorsRetention"] = state?.errorsRetention; resourceInputs["ingestingHost"] = state?.ingestingHost; resourceInputs["ingestingPaused"] = state?.ingestingPaused; resourceInputs["name"] = state?.name; resourceInputs["platform"] = state?.platform; resourceInputs["tableName"] = state?.tableName; resourceInputs["teamName"] = state?.teamName; resourceInputs["token"] = state?.token; resourceInputs["updatedAt"] = state?.updatedAt; } else { const args = argsOrState; if (args?.platform === undefined && !opts.urn) { throw new Error("Missing required property 'platform'"); } resourceInputs["applicationGroupId"] = args?.applicationGroupId; resourceInputs["customBucket"] = args?.customBucket; resourceInputs["dataRegion"] = args?.dataRegion; resourceInputs["errorsRetention"] = args?.errorsRetention; resourceInputs["ingestingPaused"] = args?.ingestingPaused; resourceInputs["name"] = args?.name; resourceInputs["platform"] = args?.platform; resourceInputs["teamName"] = args?.teamName; resourceInputs["createdAt"] = undefined /*out*/; resourceInputs["ingestingHost"] = undefined /*out*/; resourceInputs["tableName"] = undefined /*out*/; resourceInputs["token"] = undefined /*out*/; resourceInputs["updatedAt"] = undefined /*out*/; } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); super(ErrorsApplication.__pulumiType, name, resourceInputs, opts, false /*dependency*/, utilities.getPackage()); } } exports.ErrorsApplication = ErrorsApplication; /** @internal */ ErrorsApplication.__pulumiType = 'logtail:index/errorsApplication:ErrorsApplication'; //# sourceMappingURL=errorsApplication.js.map