@pulumiverse/dynatrace
Version:
A Pulumi package for creating and managing Dynatrace cloud resources.
87 lines • 5.71 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.ManagedPreferences = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("./utilities");
class ManagedPreferences extends pulumi.CustomResource {
/**
* Get an existing ManagedPreferences 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 ManagedPreferences(name, state, Object.assign(Object.assign({}, opts), { id: id }));
}
/**
* Returns true if the given object is an instance of ManagedPreferences. 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'] === ManagedPreferences.__pulumiType;
}
constructor(name, argsOrState, opts) {
let resourceInputs = {};
opts = opts || {};
if (opts.id) {
const state = argsOrState;
resourceInputs["certificateManagementEnabled"] = state ? state.certificateManagementEnabled : undefined;
resourceInputs["certificateManagementPossible"] = state ? state.certificateManagementPossible : undefined;
resourceInputs["communityCreateUser"] = state ? state.communityCreateUser : undefined;
resourceInputs["communityExternalSearch"] = state ? state.communityExternalSearch : undefined;
resourceInputs["helpChatEnabled"] = state ? state.helpChatEnabled : undefined;
resourceInputs["readOnlyRemoteAccessAllowed"] = state ? state.readOnlyRemoteAccessAllowed : undefined;
resourceInputs["remoteAccessOnDemandOnly"] = state ? state.remoteAccessOnDemandOnly : undefined;
resourceInputs["ruxitMonitorsRuxit"] = state ? state.ruxitMonitorsRuxit : undefined;
resourceInputs["supportAllowRemoteAccess"] = state ? state.supportAllowRemoteAccess : undefined;
resourceInputs["supportSendBilling"] = state ? state.supportSendBilling : undefined;
resourceInputs["supportSendClusterHealth"] = state ? state.supportSendClusterHealth : undefined;
resourceInputs["supportSendEvents"] = state ? state.supportSendEvents : undefined;
resourceInputs["suppressNonBillingRelevantData"] = state ? state.suppressNonBillingRelevantData : undefined;
resourceInputs["telemetrySharing"] = state ? state.telemetrySharing : undefined;
}
else {
const args = argsOrState;
if ((!args || args.ruxitMonitorsRuxit === undefined) && !opts.urn) {
throw new Error("Missing required property 'ruxitMonitorsRuxit'");
}
if ((!args || args.supportSendBilling === undefined) && !opts.urn) {
throw new Error("Missing required property 'supportSendBilling'");
}
if ((!args || args.supportSendClusterHealth === undefined) && !opts.urn) {
throw new Error("Missing required property 'supportSendClusterHealth'");
}
if ((!args || args.suppressNonBillingRelevantData === undefined) && !opts.urn) {
throw new Error("Missing required property 'suppressNonBillingRelevantData'");
}
resourceInputs["certificateManagementEnabled"] = args ? args.certificateManagementEnabled : undefined;
resourceInputs["certificateManagementPossible"] = args ? args.certificateManagementPossible : undefined;
resourceInputs["communityCreateUser"] = args ? args.communityCreateUser : undefined;
resourceInputs["communityExternalSearch"] = args ? args.communityExternalSearch : undefined;
resourceInputs["helpChatEnabled"] = args ? args.helpChatEnabled : undefined;
resourceInputs["readOnlyRemoteAccessAllowed"] = args ? args.readOnlyRemoteAccessAllowed : undefined;
resourceInputs["remoteAccessOnDemandOnly"] = args ? args.remoteAccessOnDemandOnly : undefined;
resourceInputs["ruxitMonitorsRuxit"] = args ? args.ruxitMonitorsRuxit : undefined;
resourceInputs["supportAllowRemoteAccess"] = args ? args.supportAllowRemoteAccess : undefined;
resourceInputs["supportSendBilling"] = args ? args.supportSendBilling : undefined;
resourceInputs["supportSendClusterHealth"] = args ? args.supportSendClusterHealth : undefined;
resourceInputs["supportSendEvents"] = args ? args.supportSendEvents : undefined;
resourceInputs["suppressNonBillingRelevantData"] = args ? args.suppressNonBillingRelevantData : undefined;
resourceInputs["telemetrySharing"] = args ? args.telemetrySharing : undefined;
}
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
super(ManagedPreferences.__pulumiType, name, resourceInputs, opts);
}
}
exports.ManagedPreferences = ManagedPreferences;
/** @internal */
ManagedPreferences.__pulumiType = 'dynatrace:index/managedPreferences:ManagedPreferences';
//# sourceMappingURL=managedPreferences.js.map