UNPKG

@pulumiverse/dynatrace

Version:

A Pulumi package for creating and managing Dynatrace cloud resources.

112 lines 7.46 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.WebApplication = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("./utilities"); class WebApplication extends pulumi.CustomResource { /** * Get an existing WebApplication 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 WebApplication(name, state, Object.assign(Object.assign({}, opts), { id: id })); } /** * Returns true if the given object is an instance of WebApplication. 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'] === WebApplication.__pulumiType; } constructor(name, argsOrState, opts) { let resourceInputs = {}; opts = opts || {}; if (opts.id) { const state = argsOrState; resourceInputs["conversionGoals"] = state ? state.conversionGoals : undefined; resourceInputs["costControlUserSessionPercentage"] = state ? state.costControlUserSessionPercentage : undefined; resourceInputs["customActionApdexSettings"] = state ? state.customActionApdexSettings : undefined; resourceInputs["keyUserActions"] = state ? state.keyUserActions : undefined; resourceInputs["loadActionApdexSettings"] = state ? state.loadActionApdexSettings : undefined; resourceInputs["loadActionKeyPerformanceMetric"] = state ? state.loadActionKeyPerformanceMetric : undefined; resourceInputs["metaDataCaptureSettings"] = state ? state.metaDataCaptureSettings : undefined; resourceInputs["monitoringSettings"] = state ? state.monitoringSettings : undefined; resourceInputs["name"] = state ? state.name : undefined; resourceInputs["realUserMonitoringEnabled"] = state ? state.realUserMonitoringEnabled : undefined; resourceInputs["sessionReplayConfig"] = state ? state.sessionReplayConfig : undefined; resourceInputs["type"] = state ? state.type : undefined; resourceInputs["urlInjectionPattern"] = state ? state.urlInjectionPattern : undefined; resourceInputs["userActionAndSessionProperties"] = state ? state.userActionAndSessionProperties : undefined; resourceInputs["userActionNamingSettings"] = state ? state.userActionNamingSettings : undefined; resourceInputs["userTags"] = state ? state.userTags : undefined; resourceInputs["waterfallSettings"] = state ? state.waterfallSettings : undefined; resourceInputs["xhrActionApdexSettings"] = state ? state.xhrActionApdexSettings : undefined; resourceInputs["xhrActionKeyPerformanceMetric"] = state ? state.xhrActionKeyPerformanceMetric : undefined; } else { const args = argsOrState; if ((!args || args.costControlUserSessionPercentage === undefined) && !opts.urn) { throw new Error("Missing required property 'costControlUserSessionPercentage'"); } if ((!args || args.customActionApdexSettings === undefined) && !opts.urn) { throw new Error("Missing required property 'customActionApdexSettings'"); } if ((!args || args.loadActionApdexSettings === undefined) && !opts.urn) { throw new Error("Missing required property 'loadActionApdexSettings'"); } if ((!args || args.loadActionKeyPerformanceMetric === undefined) && !opts.urn) { throw new Error("Missing required property 'loadActionKeyPerformanceMetric'"); } if ((!args || args.monitoringSettings === undefined) && !opts.urn) { throw new Error("Missing required property 'monitoringSettings'"); } if ((!args || args.type === undefined) && !opts.urn) { throw new Error("Missing required property 'type'"); } if ((!args || args.waterfallSettings === undefined) && !opts.urn) { throw new Error("Missing required property 'waterfallSettings'"); } if ((!args || args.xhrActionApdexSettings === undefined) && !opts.urn) { throw new Error("Missing required property 'xhrActionApdexSettings'"); } if ((!args || args.xhrActionKeyPerformanceMetric === undefined) && !opts.urn) { throw new Error("Missing required property 'xhrActionKeyPerformanceMetric'"); } resourceInputs["conversionGoals"] = args ? args.conversionGoals : undefined; resourceInputs["costControlUserSessionPercentage"] = args ? args.costControlUserSessionPercentage : undefined; resourceInputs["customActionApdexSettings"] = args ? args.customActionApdexSettings : undefined; resourceInputs["keyUserActions"] = args ? args.keyUserActions : undefined; resourceInputs["loadActionApdexSettings"] = args ? args.loadActionApdexSettings : undefined; resourceInputs["loadActionKeyPerformanceMetric"] = args ? args.loadActionKeyPerformanceMetric : undefined; resourceInputs["metaDataCaptureSettings"] = args ? args.metaDataCaptureSettings : undefined; resourceInputs["monitoringSettings"] = args ? args.monitoringSettings : undefined; resourceInputs["name"] = args ? args.name : undefined; resourceInputs["realUserMonitoringEnabled"] = args ? args.realUserMonitoringEnabled : undefined; resourceInputs["sessionReplayConfig"] = args ? args.sessionReplayConfig : undefined; resourceInputs["type"] = args ? args.type : undefined; resourceInputs["urlInjectionPattern"] = args ? args.urlInjectionPattern : undefined; resourceInputs["userActionAndSessionProperties"] = args ? args.userActionAndSessionProperties : undefined; resourceInputs["userActionNamingSettings"] = args ? args.userActionNamingSettings : undefined; resourceInputs["userTags"] = args ? args.userTags : undefined; resourceInputs["waterfallSettings"] = args ? args.waterfallSettings : undefined; resourceInputs["xhrActionApdexSettings"] = args ? args.xhrActionApdexSettings : undefined; resourceInputs["xhrActionKeyPerformanceMetric"] = args ? args.xhrActionKeyPerformanceMetric : undefined; } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); super(WebApplication.__pulumiType, name, resourceInputs, opts); } } exports.WebApplication = WebApplication; /** @internal */ WebApplication.__pulumiType = 'dynatrace:index/webApplication:WebApplication'; //# sourceMappingURL=webApplication.js.map