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