import * as pulumi from "@pulumi/pulumi"; import * as inputs from "./types/input"; import * as outputs from "./types/output"; /** * Provides a Datadog Security Monitoring Notification Rule API resource for creating and managing Datadog security notification rules. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as datadog from "@pulumi/datadog"; * * const signalRule = new datadog.SecurityNotificationRule("signal_rule", { * name: "My signal notification rule", * selectors: [{ * triggerSource: "security_signals", * ruleTypes: ["workload_security"], * query: "env:prod", * }], * enabled: false, * targets: [ * "@bob@email.com", * "@alice@email.com", * ], * }); * const vulnerabilityRule = new datadog.SecurityNotificationRule("vulnerability_rule", { * name: "My vulnerability notification rule", * selectors: [{ * triggerSource: "security_findings", * ruleTypes: [ * "application_library_vulnerability", * "identity_risk", * ], * severities: [ * "critical", * "high", * ], * }], * timeAggregation: 36000, * targets: ["@john@email.com"], * }); * ``` * * ## Import * * The `pulumi import` command can be used, for example: * * ```sh * $ pulumi import datadog:index/securityNotificationRule:SecurityNotificationRule signal_rule yq9-t9l-bso * ``` */ export declare class SecurityNotificationRule extends pulumi.CustomResource { /** * Get an existing SecurityNotificationRule 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, state?: SecurityNotificationRuleState, opts?: pulumi.CustomResourceOptions): SecurityNotificationRule; /** * Returns true if the given object is an instance of SecurityNotificationRule. 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 SecurityNotificationRule; /** * Indicates when this rule was created. */ readonly createdAt: pulumi.Output; /** * The handle of the rule creator. */ readonly createdByHandle: pulumi.Output; /** * The name of the rule creator. */ readonly createdByName: pulumi.Output; /** * Indicates whether the rule is enabled. Defaults to `true`. */ readonly enabled: pulumi.Output; /** * Indicates when this rule was last modified. */ readonly modifiedAt: pulumi.Output; /** * The handle of the rule last modifier. */ readonly modifiedByHandle: pulumi.Output; /** * The name of the rule last modifier. */ readonly modifiedByName: pulumi.Output; /** * The name of the rule (must be unique). */ readonly name: pulumi.Output; /** * Defines selectors to filter security issues that generate notifications. */ readonly selectors: pulumi.Output; /** * The list of handle targets for the notifications. A target must be prefixed with an @. It can be an email address (@bob@email.com), or any installed integration. For example, a Slack recipient (@slack-ops), or a Teams recipient (@teams-ops). */ readonly targets: pulumi.Output; /** * Specifies the time period, in seconds, used to aggregate the notification. Defaults to `0`. */ readonly timeAggregation: pulumi.Output; /** * The rule version (incremented at each update). */ readonly version: pulumi.Output; /** * Create a SecurityNotificationRule 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: SecurityNotificationRuleArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering SecurityNotificationRule resources. */ export interface SecurityNotificationRuleState { /** * Indicates when this rule was created. */ createdAt?: pulumi.Input; /** * The handle of the rule creator. */ createdByHandle?: pulumi.Input; /** * The name of the rule creator. */ createdByName?: pulumi.Input; /** * Indicates whether the rule is enabled. Defaults to `true`. */ enabled?: pulumi.Input; /** * Indicates when this rule was last modified. */ modifiedAt?: pulumi.Input; /** * The handle of the rule last modifier. */ modifiedByHandle?: pulumi.Input; /** * The name of the rule last modifier. */ modifiedByName?: pulumi.Input; /** * The name of the rule (must be unique). */ name?: pulumi.Input; /** * Defines selectors to filter security issues that generate notifications. */ selectors?: pulumi.Input; /** * The list of handle targets for the notifications. A target must be prefixed with an @. It can be an email address (@bob@email.com), or any installed integration. For example, a Slack recipient (@slack-ops), or a Teams recipient (@teams-ops). */ targets?: pulumi.Input[]>; /** * Specifies the time period, in seconds, used to aggregate the notification. Defaults to `0`. */ timeAggregation?: pulumi.Input; /** * The rule version (incremented at each update). */ version?: pulumi.Input; } /** * The set of arguments for constructing a SecurityNotificationRule resource. */ export interface SecurityNotificationRuleArgs { /** * Indicates whether the rule is enabled. Defaults to `true`. */ enabled?: pulumi.Input; /** * The name of the rule (must be unique). */ name: pulumi.Input; /** * Defines selectors to filter security issues that generate notifications. */ selectors: pulumi.Input; /** * The list of handle targets for the notifications. A target must be prefixed with an @. It can be an email address (@bob@email.com), or any installed integration. For example, a Slack recipient (@slack-ops), or a Teams recipient (@teams-ops). */ targets: pulumi.Input[]>; /** * Specifies the time period, in seconds, used to aggregate the notification. Defaults to `0`. */ timeAggregation?: pulumi.Input; }