UNPKG

@pulumi/sumologic

Version:

A Pulumi package for creating and managing sumologic cloud resources.

106 lines 4.69 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.OtCollector = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("./utilities"); /** * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as sumologic from "@pulumi/sumologic"; * * const exampleOtCollector = new sumologic.OtCollector("example_ot_collector", { * description: "Testing OT collector using terraform", * timeZone: "UTC", * category: "apache", * isRemotelyManaged: true, * ephemeral: false, * name: "test OT Collector", * }); * ``` * * ## Import * * OT Collectors can be imported using the collector id, e.g.: * * hcl * * ```sh * $ pulumi import sumologic:index/otCollector:OtCollector test 00005AF3107A4007 * ``` * * [1]: https://help.sumologic.com/docs/send-data/opentelemetry-collector * * [2]: https://help.sumologic.com/03Send-Data/Installed-Collectors/05Reference-Information-for-Collector-Installation/11Set-a-Collector-as-Ephemeral * * [3]: https://help.sumologic.com/Manage/Fields * * [4]: https://en.wikipedia.org/wiki/Tz_database */ class OtCollector extends pulumi.CustomResource { /** * Get an existing OtCollector 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 OtCollector(name, state, Object.assign(Object.assign({}, opts), { id: id })); } /** * Returns true if the given object is an instance of OtCollector. 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'] === OtCollector.__pulumiType; } constructor(name, argsOrState, opts) { let resourceInputs = {}; opts = opts || {}; if (opts.id) { const state = argsOrState; resourceInputs["alive"] = state ? state.alive : undefined; resourceInputs["category"] = state ? state.category : undefined; resourceInputs["createdAt"] = state ? state.createdAt : undefined; resourceInputs["createdBy"] = state ? state.createdBy : undefined; resourceInputs["description"] = state ? state.description : undefined; resourceInputs["ephemeral"] = state ? state.ephemeral : undefined; resourceInputs["isRemotelyManaged"] = state ? state.isRemotelyManaged : undefined; resourceInputs["modifiedAt"] = state ? state.modifiedAt : undefined; resourceInputs["modifiedBy"] = state ? state.modifiedBy : undefined; resourceInputs["name"] = state ? state.name : undefined; resourceInputs["tags"] = state ? state.tags : undefined; resourceInputs["timeZone"] = state ? state.timeZone : undefined; } else { const args = argsOrState; resourceInputs["category"] = args ? args.category : undefined; resourceInputs["description"] = args ? args.description : undefined; resourceInputs["ephemeral"] = args ? args.ephemeral : undefined; resourceInputs["isRemotelyManaged"] = args ? args.isRemotelyManaged : undefined; resourceInputs["name"] = args ? args.name : undefined; resourceInputs["tags"] = args ? args.tags : undefined; resourceInputs["timeZone"] = args ? args.timeZone : undefined; resourceInputs["alive"] = undefined /*out*/; resourceInputs["createdAt"] = undefined /*out*/; resourceInputs["createdBy"] = undefined /*out*/; resourceInputs["modifiedAt"] = undefined /*out*/; resourceInputs["modifiedBy"] = undefined /*out*/; } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); super(OtCollector.__pulumiType, name, resourceInputs, opts); } } exports.OtCollector = OtCollector; /** @internal */ OtCollector.__pulumiType = 'sumologic:index/otCollector:OtCollector'; //# sourceMappingURL=otCollector.js.map