UNPKG

@pulumi/sumologic

Version:

A Pulumi package for creating and managing sumologic cloud resources.

84 lines 3.29 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.getHttpSourceOutput = exports.getHttpSource = 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 _this = sumologic.getHttpSource({ * collectorId: 121212, * name: "source_name", * }); * ``` * * A HTTP Source can be looked up by using a combination of `collectorId` & `name`. * If either `id` or `name` are not present, the data source block fails with a panic (at this point). * * ## Attributes reference * * The following attributes are exported: * * - `id` - The internal ID of the collector. This can be used to attach sources to the collector. * - `name` - The name of the collector. * - `description` - The description of the collector. * - `category` - The default source category for any source attached to this collector. * - `timezone` - The time zone to use for this collector. The value follows the [tzdata][2] naming convention. * - `multiline` - Multiline processing enabled or not. * - `url` - The HTTP endpoint to use for sending data to this source. */ function getHttpSource(args, opts) { args = args || {}; opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("sumologic:index/getHttpSource:getHttpSource", { "collectorId": args.collectorId, "id": args.id, "name": args.name, }, opts); } exports.getHttpSource = getHttpSource; /** * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as sumologic from "@pulumi/sumologic"; * * const _this = sumologic.getHttpSource({ * collectorId: 121212, * name: "source_name", * }); * ``` * * A HTTP Source can be looked up by using a combination of `collectorId` & `name`. * If either `id` or `name` are not present, the data source block fails with a panic (at this point). * * ## Attributes reference * * The following attributes are exported: * * - `id` - The internal ID of the collector. This can be used to attach sources to the collector. * - `name` - The name of the collector. * - `description` - The description of the collector. * - `category` - The default source category for any source attached to this collector. * - `timezone` - The time zone to use for this collector. The value follows the [tzdata][2] naming convention. * - `multiline` - Multiline processing enabled or not. * - `url` - The HTTP endpoint to use for sending data to this source. */ function getHttpSourceOutput(args, opts) { args = args || {}; opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invokeOutput("sumologic:index/getHttpSource:getHttpSource", { "collectorId": args.collectorId, "id": args.id, "name": args.name, }, opts); } exports.getHttpSourceOutput = getHttpSourceOutput; //# sourceMappingURL=getHttpSource.js.map