import * as pulumi from "@pulumi/pulumi"; import * as inputs from "./types/input"; import * as outputs from "./types/output"; /** * Provides a Datadog security findings automation ticket creation rule resource. This can be used to create and manage rules that automatically open tickets for matching security findings. Use the `datadog.SecurityFindingsTicketCreationRulesOrder` resource to manage the evaluation order of ticket creation rules. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as datadog from "@pulumi/datadog"; * * // Create a rule that automatically opens Jira tickets for critical misconfigurations. * const criticalMisconfigs = new datadog.SecurityFindingsTicketCreationRule("critical_misconfigs", { * name: "Auto-create Jira tickets for critical misconfigurations", * enabled: true, * rule: { * finding_types: ["misconfiguration"], * query: "env:prod @severity:critical", * }, * action: { * project_id: "11111111-1111-1111-1111-111111111111", * target: "jira", * assignee_id: "22222222-2222-2222-2222-222222222222", * max_tickets_per_day: 50, * fields: JSON.stringify({ * labels: ["security"], * }), * }, * }); * // Create a rule that automatically opens Linear issues for exposed secrets. * const exposedSecrets = new datadog.SecurityFindingsTicketCreationRule("exposed_secrets", { * name: "Auto-create Linear issues for exposed secrets", * enabled: true, * rule: { * finding_types: ["secret"], * }, * action: { * project_id: "11111111-1111-1111-1111-111111111111", * target: "linear", * max_tickets_per_day: 25, * fields: JSON.stringify({ * linear_project_id: "33333333-3333-3333-3333-333333333333", * linear_label_ids: ["44444444-4444-4444-4444-444444444444"], * }), * }, * }); * ``` * * ## Import * * The `pulumi import` command can be used, for example: * * ```sh * $ pulumi import datadog:index/securityFindingsTicketCreationRule:SecurityFindingsTicketCreationRule critical_misconfigs "00000000-0000-0000-0000-000000000000" * ``` */ export declare class SecurityFindingsTicketCreationRule extends pulumi.CustomResource { /** * Get an existing SecurityFindingsTicketCreationRule 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?: SecurityFindingsTicketCreationRuleState, opts?: pulumi.CustomResourceOptions): SecurityFindingsTicketCreationRule; /** * Check whether an existing SecurityFindingsTicketCreationRule 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?: SecurityFindingsTicketCreationRuleState, opts?: pulumi.CustomResourceOptions): pulumi.Output; /** * Returns true if the given object is an instance of SecurityFindingsTicketCreationRule. 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 SecurityFindingsTicketCreationRule; /** * The action to take when the ticket creation rule matches a finding. */ readonly action: pulumi.Output; /** * Whether the ticket creation rule is enabled. Defaults to `true`. */ readonly enabled: pulumi.Output; /** * The name of the ticket creation rule. */ readonly name: pulumi.Output; /** * Defines the scope of findings to which the automation rule applies. */ readonly rule: pulumi.Output; /** * Create a SecurityFindingsTicketCreationRule 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: SecurityFindingsTicketCreationRuleArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering SecurityFindingsTicketCreationRule resources. */ export interface SecurityFindingsTicketCreationRuleState { /** * The action to take when the ticket creation rule matches a finding. */ action?: pulumi.Input; /** * Whether the ticket creation rule is enabled. Defaults to `true`. */ enabled?: pulumi.Input; /** * The name of the ticket creation 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 SecurityFindingsTicketCreationRule resource. */ export interface SecurityFindingsTicketCreationRuleArgs { /** * The action to take when the ticket creation rule matches a finding. */ action: pulumi.Input; /** * Whether the ticket creation rule is enabled. Defaults to `true`. */ enabled?: pulumi.Input; /** * The name of the ticket creation rule. */ name: pulumi.Input; /** * Defines the scope of findings to which the automation rule applies. */ rule: pulumi.Input; } //# sourceMappingURL=securityFindingsTicketCreationRule.d.ts.map