UNPKG

@pulumiverse/dynatrace

Version:

A Pulumi package for creating and managing Dynatrace cloud resources.

73 lines 4.38 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.DiskSpecificAnomaliesV2 = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("./utilities"); class DiskSpecificAnomaliesV2 extends pulumi.CustomResource { /** * Get an existing DiskSpecificAnomaliesV2 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 DiskSpecificAnomaliesV2(name, state, Object.assign(Object.assign({}, opts), { id: id })); } /** * Returns true if the given object is an instance of DiskSpecificAnomaliesV2. 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'] === DiskSpecificAnomaliesV2.__pulumiType; } constructor(name, argsOrState, opts) { let resourceInputs = {}; opts = opts || {}; if (opts.id) { const state = argsOrState; resourceInputs["diskId"] = state ? state.diskId : undefined; resourceInputs["diskLowInodesDetection"] = state ? state.diskLowInodesDetection : undefined; resourceInputs["diskLowSpaceDetection"] = state ? state.diskLowSpaceDetection : undefined; resourceInputs["diskSlowWritesAndReadsDetection"] = state ? state.diskSlowWritesAndReadsDetection : undefined; resourceInputs["overrideDiskLowSpaceDetection"] = state ? state.overrideDiskLowSpaceDetection : undefined; resourceInputs["overrideLowInodesDetection"] = state ? state.overrideLowInodesDetection : undefined; resourceInputs["overrideSlowWritesAndReadsDetection"] = state ? state.overrideSlowWritesAndReadsDetection : undefined; } else { const args = argsOrState; if ((!args || args.diskId === undefined) && !opts.urn) { throw new Error("Missing required property 'diskId'"); } if ((!args || args.overrideDiskLowSpaceDetection === undefined) && !opts.urn) { throw new Error("Missing required property 'overrideDiskLowSpaceDetection'"); } if ((!args || args.overrideLowInodesDetection === undefined) && !opts.urn) { throw new Error("Missing required property 'overrideLowInodesDetection'"); } if ((!args || args.overrideSlowWritesAndReadsDetection === undefined) && !opts.urn) { throw new Error("Missing required property 'overrideSlowWritesAndReadsDetection'"); } resourceInputs["diskId"] = args ? args.diskId : undefined; resourceInputs["diskLowInodesDetection"] = args ? args.diskLowInodesDetection : undefined; resourceInputs["diskLowSpaceDetection"] = args ? args.diskLowSpaceDetection : undefined; resourceInputs["diskSlowWritesAndReadsDetection"] = args ? args.diskSlowWritesAndReadsDetection : undefined; resourceInputs["overrideDiskLowSpaceDetection"] = args ? args.overrideDiskLowSpaceDetection : undefined; resourceInputs["overrideLowInodesDetection"] = args ? args.overrideLowInodesDetection : undefined; resourceInputs["overrideSlowWritesAndReadsDetection"] = args ? args.overrideSlowWritesAndReadsDetection : undefined; } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); super(DiskSpecificAnomaliesV2.__pulumiType, name, resourceInputs, opts); } } exports.DiskSpecificAnomaliesV2 = DiskSpecificAnomaliesV2; /** @internal */ DiskSpecificAnomaliesV2.__pulumiType = 'dynatrace:index/diskSpecificAnomaliesV2:DiskSpecificAnomaliesV2'; //# sourceMappingURL=diskSpecificAnomaliesV2.js.map