@pulumiverse/dynatrace
Version:
A Pulumi package for creating and managing Dynatrace cloud resources.
77 lines • 4.08 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.LogTimestamp = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("./utilities");
class LogTimestamp extends pulumi.CustomResource {
/**
* Get an existing LogTimestamp 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 LogTimestamp(name, state, Object.assign(Object.assign({}, opts), { id: id }));
}
/**
* Returns true if the given object is an instance of LogTimestamp. 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'] === LogTimestamp.__pulumiType;
}
constructor(name, argsOrState, opts) {
let resourceInputs = {};
opts = opts || {};
if (opts.id) {
const state = argsOrState;
resourceInputs["configItemTitle"] = state ? state.configItemTitle : undefined;
resourceInputs["dateSearchLimit"] = state ? state.dateSearchLimit : undefined;
resourceInputs["dateTimePattern"] = state ? state.dateTimePattern : undefined;
resourceInputs["enabled"] = state ? state.enabled : undefined;
resourceInputs["entryBoundary"] = state ? state.entryBoundary : undefined;
resourceInputs["insertAfter"] = state ? state.insertAfter : undefined;
resourceInputs["matchers"] = state ? state.matchers : undefined;
resourceInputs["scope"] = state ? state.scope : undefined;
resourceInputs["timezone"] = state ? state.timezone : undefined;
}
else {
const args = argsOrState;
if ((!args || args.configItemTitle === undefined) && !opts.urn) {
throw new Error("Missing required property 'configItemTitle'");
}
if ((!args || args.dateTimePattern === undefined) && !opts.urn) {
throw new Error("Missing required property 'dateTimePattern'");
}
if ((!args || args.enabled === undefined) && !opts.urn) {
throw new Error("Missing required property 'enabled'");
}
if ((!args || args.timezone === undefined) && !opts.urn) {
throw new Error("Missing required property 'timezone'");
}
resourceInputs["configItemTitle"] = args ? args.configItemTitle : undefined;
resourceInputs["dateSearchLimit"] = args ? args.dateSearchLimit : undefined;
resourceInputs["dateTimePattern"] = args ? args.dateTimePattern : undefined;
resourceInputs["enabled"] = args ? args.enabled : undefined;
resourceInputs["entryBoundary"] = args ? args.entryBoundary : undefined;
resourceInputs["insertAfter"] = args ? args.insertAfter : undefined;
resourceInputs["matchers"] = args ? args.matchers : undefined;
resourceInputs["scope"] = args ? args.scope : undefined;
resourceInputs["timezone"] = args ? args.timezone : undefined;
}
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
super(LogTimestamp.__pulumiType, name, resourceInputs, opts);
}
}
exports.LogTimestamp = LogTimestamp;
/** @internal */
LogTimestamp.__pulumiType = 'dynatrace:index/logTimestamp:LogTimestamp';
//# sourceMappingURL=logTimestamp.js.map