@pulumi/sumologic
Version:
A Pulumi package for creating and managing sumologic cloud resources.
100 lines • 3.46 kB
JavaScript
;
// *** 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.getCollectorOutput = exports.getCollector = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("./utilities");
/**
* Provides a way to retrieve Sumo Logic collector details (id, names, etc) for a collector.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as sumologic from "@pulumi/sumologic";
*
* const _this = sumologic.getCollector({
* name: "MyCollector",
* });
* ```
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as sumologic from "@pulumi/sumologic";
*
* const that = sumologic.getCollector({
* id: 1234567890,
* });
* ```
*
* A collector can be looked up by either `id` or `name`. One of those attributes needs to be specified.
*
* If both `id` and `name` have been specified, `id` takes precedence.
*
* ## 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.
*/
function getCollector(args, opts) {
args = args || {};
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invoke("sumologic:index/getCollector:getCollector", {
"id": args.id,
"name": args.name,
}, opts);
}
exports.getCollector = getCollector;
/**
* Provides a way to retrieve Sumo Logic collector details (id, names, etc) for a collector.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as sumologic from "@pulumi/sumologic";
*
* const _this = sumologic.getCollector({
* name: "MyCollector",
* });
* ```
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as sumologic from "@pulumi/sumologic";
*
* const that = sumologic.getCollector({
* id: 1234567890,
* });
* ```
*
* A collector can be looked up by either `id` or `name`. One of those attributes needs to be specified.
*
* If both `id` and `name` have been specified, `id` takes precedence.
*
* ## 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.
*/
function getCollectorOutput(args, opts) {
args = args || {};
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invokeOutput("sumologic:index/getCollector:getCollector", {
"id": args.id,
"name": args.name,
}, opts);
}
exports.getCollectorOutput = getCollectorOutput;
//# sourceMappingURL=getCollector.js.map