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.
57 lines • 2.77 kB
JavaScript
;
// *** 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.types = exports.config = exports.SourceGroup = exports.Source = exports.Provider = exports.Metric = exports.getSourceGroupOutput = exports.getSourceGroup = exports.getSourceOutput = exports.getSource = exports.getMetricOutput = exports.getMetric = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("./utilities");
exports.getMetric = null;
exports.getMetricOutput = null;
utilities.lazyLoad(exports, ["getMetric", "getMetricOutput"], () => require("./getMetric"));
exports.getSource = null;
exports.getSourceOutput = null;
utilities.lazyLoad(exports, ["getSource", "getSourceOutput"], () => require("./getSource"));
exports.getSourceGroup = null;
exports.getSourceGroupOutput = null;
utilities.lazyLoad(exports, ["getSourceGroup", "getSourceGroupOutput"], () => require("./getSourceGroup"));
exports.Metric = null;
utilities.lazyLoad(exports, ["Metric"], () => require("./metric"));
exports.Provider = null;
utilities.lazyLoad(exports, ["Provider"], () => require("./provider"));
exports.Source = null;
utilities.lazyLoad(exports, ["Source"], () => require("./source"));
exports.SourceGroup = null;
utilities.lazyLoad(exports, ["SourceGroup"], () => require("./sourceGroup"));
// Export sub-modules:
const config = require("./config");
exports.config = config;
const types = require("./types");
exports.types = types;
const _module = {
version: utilities.getVersion(),
construct: (name, type, urn) => {
switch (type) {
case "logtail:index/metric:Metric":
return new exports.Metric(name, undefined, { urn });
case "logtail:index/source:Source":
return new exports.Source(name, undefined, { urn });
case "logtail:index/sourceGroup:SourceGroup":
return new exports.SourceGroup(name, undefined, { urn });
default:
throw new Error(`unknown resource type ${type}`);
}
},
};
pulumi.runtime.registerResourceModule("logtail", "index/metric", _module);
pulumi.runtime.registerResourceModule("logtail", "index/source", _module);
pulumi.runtime.registerResourceModule("logtail", "index/sourceGroup", _module);
pulumi.runtime.registerResourcePackage("logtail", {
version: utilities.getVersion(),
constructProvider: (name, type, urn) => {
if (type !== "pulumi:providers:logtail") {
throw new Error(`unknown provider type ${type}`);
}
return new exports.Provider(name, undefined, { urn });
},
});
//# sourceMappingURL=index.js.map