@pulumiverse/dynatrace
Version:
A Pulumi package for creating and managing Dynatrace cloud resources.
119 lines • 7.81 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.LogOneagent = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("./utilities");
class LogOneagent extends pulumi.CustomResource {
/**
* Get an existing LogOneagent 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 LogOneagent(name, state, Object.assign(Object.assign({}, opts), { id: id }));
}
/**
* Returns true if the given object is an instance of LogOneagent. 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'] === LogOneagent.__pulumiType;
}
constructor(name, argsOrState, opts) {
let resourceInputs = {};
opts = opts || {};
if (opts.id) {
const state = argsOrState;
resourceInputs["containerTimezoneHeuristicEnabled"] = state ? state.containerTimezoneHeuristicEnabled : undefined;
resourceInputs["containersLogsDetectionEnabled"] = state ? state.containersLogsDetectionEnabled : undefined;
resourceInputs["dateSearchLimitBytes"] = state ? state.dateSearchLimitBytes : undefined;
resourceInputs["defaultTimezone"] = state ? state.defaultTimezone : undefined;
resourceInputs["eventLogQueryTimeoutSec"] = state ? state.eventLogQueryTimeoutSec : undefined;
resourceInputs["iisdetectionEnabled"] = state ? state.iisdetectionEnabled : undefined;
resourceInputs["logScannerLinuxNfsEnabled"] = state ? state.logScannerLinuxNfsEnabled : undefined;
resourceInputs["maxLgisPerEntityCount"] = state ? state.maxLgisPerEntityCount : undefined;
resourceInputs["minBinaryDetectionLimitBytes"] = state ? state.minBinaryDetectionLimitBytes : undefined;
resourceInputs["monitorOwnLogsEnabled"] = state ? state.monitorOwnLogsEnabled : undefined;
resourceInputs["openLogFilesDetectionEnabled"] = state ? state.openLogFilesDetectionEnabled : undefined;
resourceInputs["scope"] = state ? state.scope : undefined;
resourceInputs["severityDetectionLimitBytes"] = state ? state.severityDetectionLimitBytes : undefined;
resourceInputs["severityDetectionLinesLimit"] = state ? state.severityDetectionLinesLimit : undefined;
resourceInputs["systemLogsDetectionEnabled"] = state ? state.systemLogsDetectionEnabled : undefined;
}
else {
const args = argsOrState;
if ((!args || args.containerTimezoneHeuristicEnabled === undefined) && !opts.urn) {
throw new Error("Missing required property 'containerTimezoneHeuristicEnabled'");
}
if ((!args || args.containersLogsDetectionEnabled === undefined) && !opts.urn) {
throw new Error("Missing required property 'containersLogsDetectionEnabled'");
}
if ((!args || args.dateSearchLimitBytes === undefined) && !opts.urn) {
throw new Error("Missing required property 'dateSearchLimitBytes'");
}
if ((!args || args.defaultTimezone === undefined) && !opts.urn) {
throw new Error("Missing required property 'defaultTimezone'");
}
if ((!args || args.eventLogQueryTimeoutSec === undefined) && !opts.urn) {
throw new Error("Missing required property 'eventLogQueryTimeoutSec'");
}
if ((!args || args.iisdetectionEnabled === undefined) && !opts.urn) {
throw new Error("Missing required property 'iisdetectionEnabled'");
}
if ((!args || args.logScannerLinuxNfsEnabled === undefined) && !opts.urn) {
throw new Error("Missing required property 'logScannerLinuxNfsEnabled'");
}
if ((!args || args.maxLgisPerEntityCount === undefined) && !opts.urn) {
throw new Error("Missing required property 'maxLgisPerEntityCount'");
}
if ((!args || args.minBinaryDetectionLimitBytes === undefined) && !opts.urn) {
throw new Error("Missing required property 'minBinaryDetectionLimitBytes'");
}
if ((!args || args.monitorOwnLogsEnabled === undefined) && !opts.urn) {
throw new Error("Missing required property 'monitorOwnLogsEnabled'");
}
if ((!args || args.openLogFilesDetectionEnabled === undefined) && !opts.urn) {
throw new Error("Missing required property 'openLogFilesDetectionEnabled'");
}
if ((!args || args.severityDetectionLimitBytes === undefined) && !opts.urn) {
throw new Error("Missing required property 'severityDetectionLimitBytes'");
}
if ((!args || args.severityDetectionLinesLimit === undefined) && !opts.urn) {
throw new Error("Missing required property 'severityDetectionLinesLimit'");
}
if ((!args || args.systemLogsDetectionEnabled === undefined) && !opts.urn) {
throw new Error("Missing required property 'systemLogsDetectionEnabled'");
}
resourceInputs["containerTimezoneHeuristicEnabled"] = args ? args.containerTimezoneHeuristicEnabled : undefined;
resourceInputs["containersLogsDetectionEnabled"] = args ? args.containersLogsDetectionEnabled : undefined;
resourceInputs["dateSearchLimitBytes"] = args ? args.dateSearchLimitBytes : undefined;
resourceInputs["defaultTimezone"] = args ? args.defaultTimezone : undefined;
resourceInputs["eventLogQueryTimeoutSec"] = args ? args.eventLogQueryTimeoutSec : undefined;
resourceInputs["iisdetectionEnabled"] = args ? args.iisdetectionEnabled : undefined;
resourceInputs["logScannerLinuxNfsEnabled"] = args ? args.logScannerLinuxNfsEnabled : undefined;
resourceInputs["maxLgisPerEntityCount"] = args ? args.maxLgisPerEntityCount : undefined;
resourceInputs["minBinaryDetectionLimitBytes"] = args ? args.minBinaryDetectionLimitBytes : undefined;
resourceInputs["monitorOwnLogsEnabled"] = args ? args.monitorOwnLogsEnabled : undefined;
resourceInputs["openLogFilesDetectionEnabled"] = args ? args.openLogFilesDetectionEnabled : undefined;
resourceInputs["scope"] = args ? args.scope : undefined;
resourceInputs["severityDetectionLimitBytes"] = args ? args.severityDetectionLimitBytes : undefined;
resourceInputs["severityDetectionLinesLimit"] = args ? args.severityDetectionLinesLimit : undefined;
resourceInputs["systemLogsDetectionEnabled"] = args ? args.systemLogsDetectionEnabled : undefined;
}
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
super(LogOneagent.__pulumiType, name, resourceInputs, opts);
}
}
exports.LogOneagent = LogOneagent;
/** @internal */
LogOneagent.__pulumiType = 'dynatrace:index/logOneagent:LogOneagent';
//# sourceMappingURL=logOneagent.js.map