UNPKG

@pulumiverse/dynatrace

Version:

A Pulumi package for creating and managing Dynatrace cloud resources.

103 lines 3.89 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.DduPool = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("./utilities"); /** * !> This resource API endpoint has been deprecated. * * > This resource requires the API token scopes **Read settings** (`settings.read`) and **Write settings** (`settings.write`) * * ## Dynatrace Documentation * * - DDU Pools - https://www.dynatrace.com/support/help/monitoring-consumption/davis-data-units#ddu-pools * * - Settings API - https://www.dynatrace.com/support/help/dynatrace-api/environment-api/settings (schemaId: `builtin:accounting.ddu.limit`) * * ## Resource Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as dynatrace from "@pulumiverse/dynatrace"; * * const _name_ = new dynatrace.DduPool("#name#", { * events: { * enabled: true, * type: "MONTHLY", * value: 125, * }, * logMonitoring: { * enabled: true, * type: "MONTHLY", * value: 124, * }, * metrics: { * enabled: true, * type: "MONTHLY", * value: 123, * }, * serverless: { * enabled: true, * type: "MONTHLY", * value: 126, * }, * traces: { * enabled: true, * type: "MONTHLY", * value: 127, * }, * }); * ``` */ class DduPool extends pulumi.CustomResource { /** * Get an existing DduPool 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 DduPool(name, state, Object.assign(Object.assign({}, opts), { id: id })); } /** * Returns true if the given object is an instance of DduPool. 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'] === DduPool.__pulumiType; } constructor(name, argsOrState, opts) { let resourceInputs = {}; opts = opts || {}; if (opts.id) { const state = argsOrState; resourceInputs["events"] = state ? state.events : undefined; resourceInputs["logMonitoring"] = state ? state.logMonitoring : undefined; resourceInputs["metrics"] = state ? state.metrics : undefined; resourceInputs["serverless"] = state ? state.serverless : undefined; resourceInputs["traces"] = state ? state.traces : undefined; } else { const args = argsOrState; resourceInputs["events"] = args ? args.events : undefined; resourceInputs["logMonitoring"] = args ? args.logMonitoring : undefined; resourceInputs["metrics"] = args ? args.metrics : undefined; resourceInputs["serverless"] = args ? args.serverless : undefined; resourceInputs["traces"] = args ? args.traces : undefined; } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); super(DduPool.__pulumiType, name, resourceInputs, opts); } } exports.DduPool = DduPool; /** @internal */ DduPool.__pulumiType = 'dynatrace:index/dduPool:DduPool'; //# sourceMappingURL=dduPool.js.map