@pulumiverse/dynatrace
Version:
A Pulumi package for creating and managing Dynatrace cloud resources.
231 lines (230 loc) • 11.5 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
import * as inputs from "./types/input";
import * as outputs from "./types/output";
export declare 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: string, id: pulumi.Input<pulumi.ID>, state?: AppsecNotificationState, opts?: pulumi.CustomResourceOptions): AppsecNotification;
/**
* 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: any): obj is AppsecNotification;
/**
* For attack candidate alerts, select an [alerting
* profile](https://www.terraform.io/ui/settings/builtin:appsec.notification-attack-alerting-profile) to control the
* delivery of security notifications related to this integration.
*/
readonly attackCandidateBasedAlertingProfile: pulumi.Output<string | undefined>;
/**
* Attack candidate based email payload, required when `trigger` equals `ATTACK_CANDIDATE` and `type` equals `EMAIL`
*/
readonly attackCandidateBasedEmailPayload: pulumi.Output<outputs.AppsecNotificationAttackCandidateBasedEmailPayload | undefined>;
/**
* Attack candidate based Jira payload, required when `trigger` equals `ATTACK_CANDIDATE` and `type` equals `JIRA`
*/
readonly attackCandidateBasedJiraPayload: pulumi.Output<outputs.AppsecNotificationAttackCandidateBasedJiraPayload | undefined>;
/**
* Attack candidate based webhook payload, required when `trigger` equals `ATTACK_CANDIDATE` and `type` equals `WEBHOOK`
*/
readonly attackCandidateBasedWebhookPayload: pulumi.Output<outputs.AppsecNotificationAttackCandidateBasedWebhookPayload | undefined>;
/**
* Display name of the security notification
*/
readonly displayName: pulumi.Output<string>;
/**
* Email configuration, required when `type` equals `EMAIL`
*/
readonly emailConfiguration: pulumi.Output<outputs.AppsecNotificationEmailConfiguration | undefined>;
/**
* Enable/Disable the security notification, enabled (`true`) or disabled (`false`)
*/
readonly enabled: pulumi.Output<boolean>;
/**
* Jira configuration, required when `type` equals `JIRA`
*/
readonly jiraConfiguration: pulumi.Output<outputs.AppsecNotificationJiraConfiguration | undefined>;
/**
* For security problem alerts, select an [alerting
* profile](https://www.terraform.io/ui/settings/builtin:appsec.notification-alerting-profile) to control the delivery of
* security notifications related to this integration.
*/
readonly securityProblemBasedAlertingProfile: pulumi.Output<string | undefined>;
/**
* Security problem based email payload, required when `trigger` equals `SECURITY_PROBLEM` and `type` equals `EMAIL`
*/
readonly securityProblemBasedEmailPayload: pulumi.Output<outputs.AppsecNotificationSecurityProblemBasedEmailPayload | undefined>;
/**
* Security problem based Jira payload, required when `trigger` equals `SECURITY_PROBLEM` and `type` equals `JIRA`
*/
readonly securityProblemBasedJiraPayload: pulumi.Output<outputs.AppsecNotificationSecurityProblemBasedJiraPayload | undefined>;
/**
* Security problem based webhook payload, required when `trigger` equals `SECURITY_PROBLEM` and `type` equals `WEBHOOK`
*/
readonly securityProblemBasedWebhookPayload: pulumi.Output<outputs.AppsecNotificationSecurityProblemBasedWebhookPayload | undefined>;
/**
* Security alert type, possible Values: `ATTACK_CANDIDATE`, `SECURITY_PROBLEM`
*/
readonly trigger: pulumi.Output<string>;
/**
* Notification type, possible Values: `EMAIL`, `JIRA`, `WEBHOOK`
*/
readonly type: pulumi.Output<string>;
/**
* Webhook configuration, required when `type` equals `WEBHOOK`
*/
readonly webhookConfiguration: pulumi.Output<outputs.AppsecNotificationWebhookConfiguration | undefined>;
/**
* Create a AppsecNotification resource with the given unique name, arguments, and options.
*
* @param name The _unique_ name of the resource.
* @param args The arguments to use to populate this resource's properties.
* @param opts A bag of options that control this resource's behavior.
*/
constructor(name: string, args: AppsecNotificationArgs, opts?: pulumi.CustomResourceOptions);
}
/**
* Input properties used for looking up and filtering AppsecNotification resources.
*/
export interface AppsecNotificationState {
/**
* For attack candidate alerts, select an [alerting
* profile](https://www.terraform.io/ui/settings/builtin:appsec.notification-attack-alerting-profile) to control the
* delivery of security notifications related to this integration.
*/
attackCandidateBasedAlertingProfile?: pulumi.Input<string>;
/**
* Attack candidate based email payload, required when `trigger` equals `ATTACK_CANDIDATE` and `type` equals `EMAIL`
*/
attackCandidateBasedEmailPayload?: pulumi.Input<inputs.AppsecNotificationAttackCandidateBasedEmailPayload>;
/**
* Attack candidate based Jira payload, required when `trigger` equals `ATTACK_CANDIDATE` and `type` equals `JIRA`
*/
attackCandidateBasedJiraPayload?: pulumi.Input<inputs.AppsecNotificationAttackCandidateBasedJiraPayload>;
/**
* Attack candidate based webhook payload, required when `trigger` equals `ATTACK_CANDIDATE` and `type` equals `WEBHOOK`
*/
attackCandidateBasedWebhookPayload?: pulumi.Input<inputs.AppsecNotificationAttackCandidateBasedWebhookPayload>;
/**
* Display name of the security notification
*/
displayName?: pulumi.Input<string>;
/**
* Email configuration, required when `type` equals `EMAIL`
*/
emailConfiguration?: pulumi.Input<inputs.AppsecNotificationEmailConfiguration>;
/**
* Enable/Disable the security notification, enabled (`true`) or disabled (`false`)
*/
enabled?: pulumi.Input<boolean>;
/**
* Jira configuration, required when `type` equals `JIRA`
*/
jiraConfiguration?: pulumi.Input<inputs.AppsecNotificationJiraConfiguration>;
/**
* For security problem alerts, select an [alerting
* profile](https://www.terraform.io/ui/settings/builtin:appsec.notification-alerting-profile) to control the delivery of
* security notifications related to this integration.
*/
securityProblemBasedAlertingProfile?: pulumi.Input<string>;
/**
* Security problem based email payload, required when `trigger` equals `SECURITY_PROBLEM` and `type` equals `EMAIL`
*/
securityProblemBasedEmailPayload?: pulumi.Input<inputs.AppsecNotificationSecurityProblemBasedEmailPayload>;
/**
* Security problem based Jira payload, required when `trigger` equals `SECURITY_PROBLEM` and `type` equals `JIRA`
*/
securityProblemBasedJiraPayload?: pulumi.Input<inputs.AppsecNotificationSecurityProblemBasedJiraPayload>;
/**
* Security problem based webhook payload, required when `trigger` equals `SECURITY_PROBLEM` and `type` equals `WEBHOOK`
*/
securityProblemBasedWebhookPayload?: pulumi.Input<inputs.AppsecNotificationSecurityProblemBasedWebhookPayload>;
/**
* Security alert type, possible Values: `ATTACK_CANDIDATE`, `SECURITY_PROBLEM`
*/
trigger?: pulumi.Input<string>;
/**
* Notification type, possible Values: `EMAIL`, `JIRA`, `WEBHOOK`
*/
type?: pulumi.Input<string>;
/**
* Webhook configuration, required when `type` equals `WEBHOOK`
*/
webhookConfiguration?: pulumi.Input<inputs.AppsecNotificationWebhookConfiguration>;
}
/**
* The set of arguments for constructing a AppsecNotification resource.
*/
export interface AppsecNotificationArgs {
/**
* For attack candidate alerts, select an [alerting
* profile](https://www.terraform.io/ui/settings/builtin:appsec.notification-attack-alerting-profile) to control the
* delivery of security notifications related to this integration.
*/
attackCandidateBasedAlertingProfile?: pulumi.Input<string>;
/**
* Attack candidate based email payload, required when `trigger` equals `ATTACK_CANDIDATE` and `type` equals `EMAIL`
*/
attackCandidateBasedEmailPayload?: pulumi.Input<inputs.AppsecNotificationAttackCandidateBasedEmailPayload>;
/**
* Attack candidate based Jira payload, required when `trigger` equals `ATTACK_CANDIDATE` and `type` equals `JIRA`
*/
attackCandidateBasedJiraPayload?: pulumi.Input<inputs.AppsecNotificationAttackCandidateBasedJiraPayload>;
/**
* Attack candidate based webhook payload, required when `trigger` equals `ATTACK_CANDIDATE` and `type` equals `WEBHOOK`
*/
attackCandidateBasedWebhookPayload?: pulumi.Input<inputs.AppsecNotificationAttackCandidateBasedWebhookPayload>;
/**
* Display name of the security notification
*/
displayName: pulumi.Input<string>;
/**
* Email configuration, required when `type` equals `EMAIL`
*/
emailConfiguration?: pulumi.Input<inputs.AppsecNotificationEmailConfiguration>;
/**
* Enable/Disable the security notification, enabled (`true`) or disabled (`false`)
*/
enabled: pulumi.Input<boolean>;
/**
* Jira configuration, required when `type` equals `JIRA`
*/
jiraConfiguration?: pulumi.Input<inputs.AppsecNotificationJiraConfiguration>;
/**
* For security problem alerts, select an [alerting
* profile](https://www.terraform.io/ui/settings/builtin:appsec.notification-alerting-profile) to control the delivery of
* security notifications related to this integration.
*/
securityProblemBasedAlertingProfile?: pulumi.Input<string>;
/**
* Security problem based email payload, required when `trigger` equals `SECURITY_PROBLEM` and `type` equals `EMAIL`
*/
securityProblemBasedEmailPayload?: pulumi.Input<inputs.AppsecNotificationSecurityProblemBasedEmailPayload>;
/**
* Security problem based Jira payload, required when `trigger` equals `SECURITY_PROBLEM` and `type` equals `JIRA`
*/
securityProblemBasedJiraPayload?: pulumi.Input<inputs.AppsecNotificationSecurityProblemBasedJiraPayload>;
/**
* Security problem based webhook payload, required when `trigger` equals `SECURITY_PROBLEM` and `type` equals `WEBHOOK`
*/
securityProblemBasedWebhookPayload?: pulumi.Input<inputs.AppsecNotificationSecurityProblemBasedWebhookPayload>;
/**
* Security alert type, possible Values: `ATTACK_CANDIDATE`, `SECURITY_PROBLEM`
*/
trigger: pulumi.Input<string>;
/**
* Notification type, possible Values: `EMAIL`, `JIRA`, `WEBHOOK`
*/
type: pulumi.Input<string>;
/**
* Webhook configuration, required when `type` equals `WEBHOOK`
*/
webhookConfiguration?: pulumi.Input<inputs.AppsecNotificationWebhookConfiguration>;
}