UNPKG

@pulumiverse/dynatrace

Version:

A Pulumi package for creating and managing Dynatrace cloud resources.

95 lines 4.55 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.ManagedInternetProxy = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("./utilities"); /** * > This resource requires one of the cluster API token scopes **Control Management** (`ControlManagement`), **Service Provider API** (`ServiceProviderAPI`), or **Unattended Install** (`UnattendedInstall`) * * ## Dynatrace Documentation * * - Can I use a proxy for internet access? - https://www.dynatrace.com/support/help/managed-cluster/configuration/can-i-use-a-proxy-for-internet-access * * - Cluster API v1 - https://www.dynatrace.com/support/help/managed-cluster/cluster-api/cluster-api-v1 * * ## Resource Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as dynatrace from "@pulumiverse/dynatrace"; * * const test = new dynatrace.ManagedInternetProxy("test", { * nonProxyHosts: ["string"], * password: "string", * port: 65535, * scheme: "http", * server: "zAOE-GV81/65oVgaIlPYTCADGSPFJ9ZqXYNGbxn97dbq:flAI2E8e8bfOvlmaGu", * user: "string", * }); * ``` */ class ManagedInternetProxy extends pulumi.CustomResource { /** * Get an existing ManagedInternetProxy 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 ManagedInternetProxy(name, state, Object.assign(Object.assign({}, opts), { id: id })); } /** * Returns true if the given object is an instance of ManagedInternetProxy. 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'] === ManagedInternetProxy.__pulumiType; } constructor(name, argsOrState, opts) { let resourceInputs = {}; opts = opts || {}; if (opts.id) { const state = argsOrState; resourceInputs["nonProxyHosts"] = state ? state.nonProxyHosts : undefined; resourceInputs["password"] = state ? state.password : undefined; resourceInputs["port"] = state ? state.port : undefined; resourceInputs["scheme"] = state ? state.scheme : undefined; resourceInputs["server"] = state ? state.server : undefined; resourceInputs["user"] = state ? state.user : undefined; } else { const args = argsOrState; if ((!args || args.port === undefined) && !opts.urn) { throw new Error("Missing required property 'port'"); } if ((!args || args.scheme === undefined) && !opts.urn) { throw new Error("Missing required property 'scheme'"); } if ((!args || args.server === undefined) && !opts.urn) { throw new Error("Missing required property 'server'"); } resourceInputs["nonProxyHosts"] = args ? args.nonProxyHosts : undefined; resourceInputs["password"] = (args === null || args === void 0 ? void 0 : args.password) ? pulumi.secret(args.password) : undefined; resourceInputs["port"] = args ? args.port : undefined; resourceInputs["scheme"] = args ? args.scheme : undefined; resourceInputs["server"] = args ? args.server : undefined; resourceInputs["user"] = args ? args.user : undefined; } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); const secretOpts = { additionalSecretOutputs: ["password"] }; opts = pulumi.mergeOptions(opts, secretOpts); super(ManagedInternetProxy.__pulumiType, name, resourceInputs, opts); } } exports.ManagedInternetProxy = ManagedInternetProxy; /** @internal */ ManagedInternetProxy.__pulumiType = 'dynatrace:index/managedInternetProxy:ManagedInternetProxy'; //# sourceMappingURL=managedInternetProxy.js.map