UNPKG

@pulumiverse/dynatrace

Version:

A Pulumi package for creating and managing Dynatrace cloud resources.

84 lines 5 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.AzureCredentials = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("./utilities"); class AzureCredentials extends pulumi.CustomResource { /** * Get an existing AzureCredentials 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 AzureCredentials(name, state, Object.assign(Object.assign({}, opts), { id: id })); } /** * Returns true if the given object is an instance of AzureCredentials. 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'] === AzureCredentials.__pulumiType; } constructor(name, argsOrState, opts) { let resourceInputs = {}; opts = opts || {}; if (opts.id) { const state = argsOrState; resourceInputs["active"] = state ? state.active : undefined; resourceInputs["appId"] = state ? state.appId : undefined; resourceInputs["autoTagging"] = state ? state.autoTagging : undefined; resourceInputs["directoryId"] = state ? state.directoryId : undefined; resourceInputs["key"] = state ? state.key : undefined; resourceInputs["label"] = state ? state.label : undefined; resourceInputs["monitorOnlyExcludingTagPairs"] = state ? state.monitorOnlyExcludingTagPairs : undefined; resourceInputs["monitorOnlyTagPairs"] = state ? state.monitorOnlyTagPairs : undefined; resourceInputs["monitorOnlyTaggedEntities"] = state ? state.monitorOnlyTaggedEntities : undefined; resourceInputs["removeDefaults"] = state ? state.removeDefaults : undefined; resourceInputs["supportingServices"] = state ? state.supportingServices : undefined; resourceInputs["supportingServicesManagedInDynatrace"] = state ? state.supportingServicesManagedInDynatrace : undefined; resourceInputs["unknowns"] = state ? state.unknowns : undefined; } else { const args = argsOrState; if ((!args || args.active === undefined) && !opts.urn) { throw new Error("Missing required property 'active'"); } if ((!args || args.label === undefined) && !opts.urn) { throw new Error("Missing required property 'label'"); } if ((!args || args.monitorOnlyTaggedEntities === undefined) && !opts.urn) { throw new Error("Missing required property 'monitorOnlyTaggedEntities'"); } resourceInputs["active"] = args ? args.active : undefined; resourceInputs["appId"] = args ? args.appId : undefined; resourceInputs["autoTagging"] = args ? args.autoTagging : undefined; resourceInputs["directoryId"] = args ? args.directoryId : undefined; resourceInputs["key"] = (args === null || args === void 0 ? void 0 : args.key) ? pulumi.secret(args.key) : undefined; resourceInputs["label"] = args ? args.label : undefined; resourceInputs["monitorOnlyExcludingTagPairs"] = args ? args.monitorOnlyExcludingTagPairs : undefined; resourceInputs["monitorOnlyTagPairs"] = args ? args.monitorOnlyTagPairs : undefined; resourceInputs["monitorOnlyTaggedEntities"] = args ? args.monitorOnlyTaggedEntities : undefined; resourceInputs["removeDefaults"] = args ? args.removeDefaults : undefined; resourceInputs["supportingServices"] = args ? args.supportingServices : undefined; resourceInputs["supportingServicesManagedInDynatrace"] = args ? args.supportingServicesManagedInDynatrace : undefined; resourceInputs["unknowns"] = args ? args.unknowns : undefined; } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); const secretOpts = { additionalSecretOutputs: ["key"] }; opts = pulumi.mergeOptions(opts, secretOpts); super(AzureCredentials.__pulumiType, name, resourceInputs, opts); } } exports.AzureCredentials = AzureCredentials; /** @internal */ AzureCredentials.__pulumiType = 'dynatrace:index/azureCredentials:AzureCredentials'; //# sourceMappingURL=azureCredentials.js.map