import * as pulumi from "@pulumi/pulumi"; import * as inputs from "./types/input"; import * as outputs from "./types/output"; /** * Provides a Datadog security findings automation severity modifier rule resource. This can be used to create and manage rules that automatically adjust the severity of matching security findings. Use the `datadog.SecurityFindingsSeverityModifierRulesOrder` resource to manage the evaluation order of severity modifier rules. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as datadog from "@pulumi/datadog"; * * // Create a new severity modifier rule that raises the severity of secrets found in production. * const escalateProdSecrets = new datadog.SecurityFindingsSeverityModifierRule("escalate_prod_secrets", { * name: "Escalate secrets found in production", * enabled: true, * rule: { * finding_types: ["secret"], * query: "env:prod", * }, * action: { * set: { * severity: "critical", * description: "Secrets in production are always treated as critical.", * }, * }, * }); * // Create a severity modifier rule that shifts the severity of a finding down by one rank. * const deprioritizeDevMisconfigurations = new datadog.SecurityFindingsSeverityModifierRule("deprioritize_dev_misconfigurations", { * name: "Deprioritize misconfigurations in dev", * enabled: true, * rule: { * finding_types: ["misconfiguration"], * query: "env:dev", * }, * action: { * shift: { * severityDelta: "down_one", * description: "Misconfigurations in dev are lower priority.", * }, * }, * }); * ``` * * ## Import * * The `pulumi import` command can be used, for example: * * ```sh * $ pulumi import datadog:index/securityFindingsSeverityModifierRule:SecurityFindingsSeverityModifierRule escalate_prod_secrets "00000000-0000-0000-0000-000000000000" * ``` */ export declare class SecurityFindingsSeverityModifierRule extends pulumi.CustomResource { /** * Get an existing SecurityFindingsSeverityModifierRule 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?: SecurityFindingsSeverityModifierRuleState, opts?: pulumi.CustomResourceOptions): SecurityFindingsSeverityModifierRule; /** * Check whether an existing SecurityFindingsSeverityModifierRule resource with the given ID exists. * * @param id The _unique_ provider ID of the resource to check. * @param state Any extra arguments used during the lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static exists(id: pulumi.Input, state?: SecurityFindingsSeverityModifierRuleState, opts?: pulumi.CustomResourceOptions): pulumi.Output; /** * Returns true if the given object is an instance of SecurityFindingsSeverityModifierRule. 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 SecurityFindingsSeverityModifierRule; /** * The action to take when a severity modifier rule matches a finding. This is a discriminated union on `type`: `set` assigns a fixed severity, while `shift` moves the severity up or down by one severity rank. In this resource the union is expressed as the `set` and `shift` blocks; exactly one must be provided. A severity modifier rule's `rule.query` must not filter on `@severity` or on the `@severity_details.user_adjusted.*` namespace. Use `@severity_details.adjusted.value` instead, which reflects the severity before user-defined adjustments. */ readonly action: pulumi.Output; /** * Whether the severity modifier rule is enabled. Defaults to `true`. */ readonly enabled: pulumi.Output; /** * The name of the severity modifier rule. */ readonly name: pulumi.Output; /** * Defines the scope of findings to which the automation rule applies. */ readonly rule: pulumi.Output; /** * Create a SecurityFindingsSeverityModifierRule 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: SecurityFindingsSeverityModifierRuleArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering SecurityFindingsSeverityModifierRule resources. */ export interface SecurityFindingsSeverityModifierRuleState { /** * The action to take when a severity modifier rule matches a finding. This is a discriminated union on `type`: `set` assigns a fixed severity, while `shift` moves the severity up or down by one severity rank. In this resource the union is expressed as the `set` and `shift` blocks; exactly one must be provided. A severity modifier rule's `rule.query` must not filter on `@severity` or on the `@severity_details.user_adjusted.*` namespace. Use `@severity_details.adjusted.value` instead, which reflects the severity before user-defined adjustments. */ action?: pulumi.Input; /** * Whether the severity modifier rule is enabled. Defaults to `true`. */ enabled?: pulumi.Input; /** * The name of the severity modifier rule. */ name?: pulumi.Input; /** * Defines the scope of findings to which the automation rule applies. */ rule?: pulumi.Input; } /** * The set of arguments for constructing a SecurityFindingsSeverityModifierRule resource. */ export interface SecurityFindingsSeverityModifierRuleArgs { /** * The action to take when a severity modifier rule matches a finding. This is a discriminated union on `type`: `set` assigns a fixed severity, while `shift` moves the severity up or down by one severity rank. In this resource the union is expressed as the `set` and `shift` blocks; exactly one must be provided. A severity modifier rule's `rule.query` must not filter on `@severity` or on the `@severity_details.user_adjusted.*` namespace. Use `@severity_details.adjusted.value` instead, which reflects the severity before user-defined adjustments. */ action: pulumi.Input; /** * Whether the severity modifier rule is enabled. Defaults to `true`. */ enabled?: pulumi.Input; /** * The name of the severity modifier rule. */ name: pulumi.Input; /** * Defines the scope of findings to which the automation rule applies. */ rule: pulumi.Input; } //# sourceMappingURL=securityFindingsSeverityModifierRule.d.ts.map