UNPKG

@pulumiverse/dynatrace

Version:

A Pulumi package for creating and managing Dynatrace cloud resources.

85 lines 5.21 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.SyntheticLocation = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("./utilities"); class SyntheticLocation extends pulumi.CustomResource { /** * Get an existing SyntheticLocation 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 SyntheticLocation(name, state, Object.assign(Object.assign({}, opts), { id: id })); } /** * Returns true if the given object is an instance of SyntheticLocation. 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'] === SyntheticLocation.__pulumiType; } constructor(name, argsOrState, opts) { let resourceInputs = {}; opts = opts || {}; if (opts.id) { const state = argsOrState; resourceInputs["autoUpdateChromium"] = state ? state.autoUpdateChromium : undefined; resourceInputs["availabilityLocationOutage"] = state ? state.availabilityLocationOutage : undefined; resourceInputs["availabilityNodeOutage"] = state ? state.availabilityNodeOutage : undefined; resourceInputs["availabilityNotificationsEnabled"] = state ? state.availabilityNotificationsEnabled : undefined; resourceInputs["city"] = state ? state.city : undefined; resourceInputs["countryCode"] = state ? state.countryCode : undefined; resourceInputs["deploymentType"] = state ? state.deploymentType : undefined; resourceInputs["latitude"] = state ? state.latitude : undefined; resourceInputs["locationNodeOutageDelayInMinutes"] = state ? state.locationNodeOutageDelayInMinutes : undefined; resourceInputs["longitude"] = state ? state.longitude : undefined; resourceInputs["maxActiveGateCount"] = state ? state.maxActiveGateCount : undefined; resourceInputs["minActiveGateCount"] = state ? state.minActiveGateCount : undefined; resourceInputs["name"] = state ? state.name : undefined; resourceInputs["nodeSize"] = state ? state.nodeSize : undefined; resourceInputs["nodes"] = state ? state.nodes : undefined; resourceInputs["regionCode"] = state ? state.regionCode : undefined; } else { const args = argsOrState; if ((!args || args.latitude === undefined) && !opts.urn) { throw new Error("Missing required property 'latitude'"); } if ((!args || args.longitude === undefined) && !opts.urn) { throw new Error("Missing required property 'longitude'"); } resourceInputs["autoUpdateChromium"] = args ? args.autoUpdateChromium : undefined; resourceInputs["availabilityLocationOutage"] = args ? args.availabilityLocationOutage : undefined; resourceInputs["availabilityNodeOutage"] = args ? args.availabilityNodeOutage : undefined; resourceInputs["availabilityNotificationsEnabled"] = args ? args.availabilityNotificationsEnabled : undefined; resourceInputs["city"] = args ? args.city : undefined; resourceInputs["countryCode"] = args ? args.countryCode : undefined; resourceInputs["deploymentType"] = args ? args.deploymentType : undefined; resourceInputs["latitude"] = args ? args.latitude : undefined; resourceInputs["locationNodeOutageDelayInMinutes"] = args ? args.locationNodeOutageDelayInMinutes : undefined; resourceInputs["longitude"] = args ? args.longitude : undefined; resourceInputs["maxActiveGateCount"] = args ? args.maxActiveGateCount : undefined; resourceInputs["minActiveGateCount"] = args ? args.minActiveGateCount : undefined; resourceInputs["name"] = args ? args.name : undefined; resourceInputs["nodeSize"] = args ? args.nodeSize : undefined; resourceInputs["nodes"] = args ? args.nodes : undefined; resourceInputs["regionCode"] = args ? args.regionCode : undefined; } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); super(SyntheticLocation.__pulumiType, name, resourceInputs, opts); } } exports.SyntheticLocation = SyntheticLocation; /** @internal */ SyntheticLocation.__pulumiType = 'dynatrace:index/syntheticLocation:SyntheticLocation'; //# sourceMappingURL=syntheticLocation.js.map