UNPKG

@pulumiverse/dynatrace

Version:

A Pulumi package for creating and managing Dynatrace cloud resources.

80 lines 4.99 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.K8sCredentials = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("./utilities"); class K8sCredentials extends pulumi.CustomResource { /** * Get an existing K8sCredentials 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 K8sCredentials(name, state, Object.assign(Object.assign({}, opts), { id: id })); } /** * Returns true if the given object is an instance of K8sCredentials. 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'] === K8sCredentials.__pulumiType; } constructor(name, argsOrState, opts) { let resourceInputs = {}; opts = opts || {}; if (opts.id) { const state = argsOrState; resourceInputs["active"] = state ? state.active : undefined; resourceInputs["activeGateGroup"] = state ? state.activeGateGroup : undefined; resourceInputs["authToken"] = state ? state.authToken : undefined; resourceInputs["certificateCheckEnabled"] = state ? state.certificateCheckEnabled : undefined; resourceInputs["davisEventsIntegrationEnabled"] = state ? state.davisEventsIntegrationEnabled : undefined; resourceInputs["endpointUrl"] = state ? state.endpointUrl : undefined; resourceInputs["eventAnalysisAndAlertingEnabled"] = state ? state.eventAnalysisAndAlertingEnabled : undefined; resourceInputs["eventsFieldSelectors"] = state ? state.eventsFieldSelectors : undefined; resourceInputs["eventsIntegrationEnabled"] = state ? state.eventsIntegrationEnabled : undefined; resourceInputs["hostnameVerification"] = state ? state.hostnameVerification : undefined; resourceInputs["label"] = state ? state.label : undefined; resourceInputs["prometheusExporters"] = state ? state.prometheusExporters : undefined; resourceInputs["unknowns"] = state ? state.unknowns : undefined; resourceInputs["workloadIntegrationEnabled"] = state ? state.workloadIntegrationEnabled : undefined; } else { const args = argsOrState; if ((!args || args.label === undefined) && !opts.urn) { throw new Error("Missing required property 'label'"); } resourceInputs["active"] = args ? args.active : undefined; resourceInputs["activeGateGroup"] = args ? args.activeGateGroup : undefined; resourceInputs["authToken"] = (args === null || args === void 0 ? void 0 : args.authToken) ? pulumi.secret(args.authToken) : undefined; resourceInputs["certificateCheckEnabled"] = args ? args.certificateCheckEnabled : undefined; resourceInputs["davisEventsIntegrationEnabled"] = args ? args.davisEventsIntegrationEnabled : undefined; resourceInputs["endpointUrl"] = args ? args.endpointUrl : undefined; resourceInputs["eventAnalysisAndAlertingEnabled"] = args ? args.eventAnalysisAndAlertingEnabled : undefined; resourceInputs["eventsFieldSelectors"] = args ? args.eventsFieldSelectors : undefined; resourceInputs["eventsIntegrationEnabled"] = args ? args.eventsIntegrationEnabled : undefined; resourceInputs["hostnameVerification"] = args ? args.hostnameVerification : undefined; resourceInputs["label"] = args ? args.label : undefined; resourceInputs["prometheusExporters"] = args ? args.prometheusExporters : undefined; resourceInputs["unknowns"] = args ? args.unknowns : undefined; resourceInputs["workloadIntegrationEnabled"] = args ? args.workloadIntegrationEnabled : undefined; } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); const secretOpts = { additionalSecretOutputs: ["authToken"] }; opts = pulumi.mergeOptions(opts, secretOpts); super(K8sCredentials.__pulumiType, name, resourceInputs, opts); } } exports.K8sCredentials = K8sCredentials; /** @internal */ K8sCredentials.__pulumiType = 'dynatrace:index/k8sCredentials:K8sCredentials'; //# sourceMappingURL=k8sCredentials.js.map