@pulumiverse/dynatrace
Version:
A Pulumi package for creating and managing Dynatrace cloud resources.
89 lines • 5.85 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.AppsecNotification = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("./utilities");
class AppsecNotification extends pulumi.CustomResource {
/**
* Get an existing AppsecNotification 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 AppsecNotification(name, state, Object.assign(Object.assign({}, opts), { id: id }));
}
/**
* Returns true if the given object is an instance of AppsecNotification. 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'] === AppsecNotification.__pulumiType;
}
constructor(name, argsOrState, opts) {
let resourceInputs = {};
opts = opts || {};
if (opts.id) {
const state = argsOrState;
resourceInputs["attackCandidateBasedAlertingProfile"] = state ? state.attackCandidateBasedAlertingProfile : undefined;
resourceInputs["attackCandidateBasedEmailPayload"] = state ? state.attackCandidateBasedEmailPayload : undefined;
resourceInputs["attackCandidateBasedJiraPayload"] = state ? state.attackCandidateBasedJiraPayload : undefined;
resourceInputs["attackCandidateBasedWebhookPayload"] = state ? state.attackCandidateBasedWebhookPayload : undefined;
resourceInputs["displayName"] = state ? state.displayName : undefined;
resourceInputs["emailConfiguration"] = state ? state.emailConfiguration : undefined;
resourceInputs["enabled"] = state ? state.enabled : undefined;
resourceInputs["jiraConfiguration"] = state ? state.jiraConfiguration : undefined;
resourceInputs["securityProblemBasedAlertingProfile"] = state ? state.securityProblemBasedAlertingProfile : undefined;
resourceInputs["securityProblemBasedEmailPayload"] = state ? state.securityProblemBasedEmailPayload : undefined;
resourceInputs["securityProblemBasedJiraPayload"] = state ? state.securityProblemBasedJiraPayload : undefined;
resourceInputs["securityProblemBasedWebhookPayload"] = state ? state.securityProblemBasedWebhookPayload : undefined;
resourceInputs["trigger"] = state ? state.trigger : undefined;
resourceInputs["type"] = state ? state.type : undefined;
resourceInputs["webhookConfiguration"] = state ? state.webhookConfiguration : undefined;
}
else {
const args = argsOrState;
if ((!args || args.displayName === undefined) && !opts.urn) {
throw new Error("Missing required property 'displayName'");
}
if ((!args || args.enabled === undefined) && !opts.urn) {
throw new Error("Missing required property 'enabled'");
}
if ((!args || args.trigger === undefined) && !opts.urn) {
throw new Error("Missing required property 'trigger'");
}
if ((!args || args.type === undefined) && !opts.urn) {
throw new Error("Missing required property 'type'");
}
resourceInputs["attackCandidateBasedAlertingProfile"] = args ? args.attackCandidateBasedAlertingProfile : undefined;
resourceInputs["attackCandidateBasedEmailPayload"] = args ? args.attackCandidateBasedEmailPayload : undefined;
resourceInputs["attackCandidateBasedJiraPayload"] = args ? args.attackCandidateBasedJiraPayload : undefined;
resourceInputs["attackCandidateBasedWebhookPayload"] = args ? args.attackCandidateBasedWebhookPayload : undefined;
resourceInputs["displayName"] = args ? args.displayName : undefined;
resourceInputs["emailConfiguration"] = args ? args.emailConfiguration : undefined;
resourceInputs["enabled"] = args ? args.enabled : undefined;
resourceInputs["jiraConfiguration"] = args ? args.jiraConfiguration : undefined;
resourceInputs["securityProblemBasedAlertingProfile"] = args ? args.securityProblemBasedAlertingProfile : undefined;
resourceInputs["securityProblemBasedEmailPayload"] = args ? args.securityProblemBasedEmailPayload : undefined;
resourceInputs["securityProblemBasedJiraPayload"] = args ? args.securityProblemBasedJiraPayload : undefined;
resourceInputs["securityProblemBasedWebhookPayload"] = args ? args.securityProblemBasedWebhookPayload : undefined;
resourceInputs["trigger"] = args ? args.trigger : undefined;
resourceInputs["type"] = args ? args.type : undefined;
resourceInputs["webhookConfiguration"] = args ? args.webhookConfiguration : undefined;
}
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
super(AppsecNotification.__pulumiType, name, resourceInputs, opts);
}
}
exports.AppsecNotification = AppsecNotification;
/** @internal */
AppsecNotification.__pulumiType = 'dynatrace:index/appsecNotification:AppsecNotification';
//# sourceMappingURL=appsecNotification.js.map