import * as pulumi from "@pulumi/pulumi"; import * as inputs from "./types/input"; import * as outputs from "./types/output"; /** * Provides a Datadog SensitiveDataScannerRule resource. This can be used to create and manage Datadog sensitive_data_scanner_rule. Setting the `createBeforeDestroy` lifecycle Meta-argument to `true` is highly recommended if modifying the `includedKeywordConfiguration` field to avoid unexpectedly disabling Sensitive Data Scanner groups. * * ## Import * * The `pulumi import` command can be used, for example: * * ```sh * $ pulumi import datadog:index/sensitiveDataScannerRule:SensitiveDataScannerRule new_list "" * ``` */ export declare class SensitiveDataScannerRule extends pulumi.CustomResource { /** * Get an existing SensitiveDataScannerRule 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?: SensitiveDataScannerRuleState, opts?: pulumi.CustomResourceOptions): SensitiveDataScannerRule; /** * Check whether an existing SensitiveDataScannerRule 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?: SensitiveDataScannerRuleState, opts?: pulumi.CustomResourceOptions): pulumi.Output; /** * Returns true if the given object is an instance of SensitiveDataScannerRule. 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 SensitiveDataScannerRule; /** * Description of the rule. Computed when `standardPatternId` is set and this field is omitted. */ readonly description: pulumi.Output; /** * Attributes excluded from the scan. If namespaces is provided, it has to be a sub-path of the namespaces array. */ readonly excludedNamespaces: pulumi.Output; /** * Id of the scanning group the rule belongs to. */ readonly groupId: pulumi.Output; /** * Object defining a set of keywords and a number of characters that help reduce noise. You can provide a list of keywords you would like to check within a defined proximity of the matching pattern. If any of the keywords are found within the proximity check then the match is kept. If none are found, the match is discarded. If the rule has the `standardPatternId` field, then discarding this field will apply the recommended keywords. Setting the `createBeforeDestroy` lifecycle Meta-argument to `true` is highly recommended if modifying this field to avoid unexpectedly disabling Sensitive Data Scanner groups. */ readonly includedKeywordConfiguration: pulumi.Output; /** * Whether or not the rule is enabled. */ readonly isEnabled: pulumi.Output; /** * Name of the rule. */ readonly name: pulumi.Output; /** * Attributes included in the scan. If namespaces is empty or missing, all attributes except excludedNamespaces are scanned. If both are missing the whole event is scanned. */ readonly namespaces: pulumi.Output; /** * Not included if there is a relationship to a standard pattern. */ readonly pattern: pulumi.Output; /** * Priority level of the rule (optional). Used to order sensitive data discovered in the sds summary page. It must be between 1 and 5 (1 being the most important). */ readonly priority: pulumi.Output; /** * Id of the standard pattern the rule refers to. If provided, then pattern must not be provided. */ readonly standardPatternId: pulumi.Output; /** * Object defining custom suppressions to skip matches based on `startsWith`, `endsWith`, and `exactMatch` rules. Custom lists are managed independently of `useRecommendedSuppressions`. Replacing or removing `suppressions` updates or clears the custom lists without affecting `useRecommendedSuppressions`. Recommended suppressions are not copied into these lists. */ readonly suppressions: pulumi.Output; /** * List of tags. */ readonly tags: pulumi.Output; /** * Object describing how the scanned event will be replaced. Defaults to `type: none` */ readonly textReplacement: pulumi.Output; /** * Whether to use the standard pattern's recommended suppressions. Requires `standardPatternId` when true. Defaults to `true` for new standard-pattern rules. When omitted for an existing or imported rule, preserves the current API choice. Custom suppressions are managed separately in the `suppressions` block and are retained when this setting changes. */ readonly useRecommendedSuppressions: pulumi.Output; /** * Create a SensitiveDataScannerRule 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: SensitiveDataScannerRuleArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering SensitiveDataScannerRule resources. */ export interface SensitiveDataScannerRuleState { /** * Description of the rule. Computed when `standardPatternId` is set and this field is omitted. */ description?: pulumi.Input; /** * Attributes excluded from the scan. If namespaces is provided, it has to be a sub-path of the namespaces array. */ excludedNamespaces?: pulumi.Input[] | undefined>; /** * Id of the scanning group the rule belongs to. */ groupId?: pulumi.Input; /** * Object defining a set of keywords and a number of characters that help reduce noise. You can provide a list of keywords you would like to check within a defined proximity of the matching pattern. If any of the keywords are found within the proximity check then the match is kept. If none are found, the match is discarded. If the rule has the `standardPatternId` field, then discarding this field will apply the recommended keywords. Setting the `createBeforeDestroy` lifecycle Meta-argument to `true` is highly recommended if modifying this field to avoid unexpectedly disabling Sensitive Data Scanner groups. */ includedKeywordConfiguration?: pulumi.Input; /** * Whether or not the rule is enabled. */ isEnabled?: pulumi.Input; /** * Name of the rule. */ name?: pulumi.Input; /** * Attributes included in the scan. If namespaces is empty or missing, all attributes except excludedNamespaces are scanned. If both are missing the whole event is scanned. */ namespaces?: pulumi.Input[] | undefined>; /** * Not included if there is a relationship to a standard pattern. */ pattern?: pulumi.Input; /** * Priority level of the rule (optional). Used to order sensitive data discovered in the sds summary page. It must be between 1 and 5 (1 being the most important). */ priority?: pulumi.Input; /** * Id of the standard pattern the rule refers to. If provided, then pattern must not be provided. */ standardPatternId?: pulumi.Input; /** * Object defining custom suppressions to skip matches based on `startsWith`, `endsWith`, and `exactMatch` rules. Custom lists are managed independently of `useRecommendedSuppressions`. Replacing or removing `suppressions` updates or clears the custom lists without affecting `useRecommendedSuppressions`. Recommended suppressions are not copied into these lists. */ suppressions?: pulumi.Input; /** * List of tags. */ tags?: pulumi.Input[] | undefined>; /** * Object describing how the scanned event will be replaced. Defaults to `type: none` */ textReplacement?: pulumi.Input; /** * Whether to use the standard pattern's recommended suppressions. Requires `standardPatternId` when true. Defaults to `true` for new standard-pattern rules. When omitted for an existing or imported rule, preserves the current API choice. Custom suppressions are managed separately in the `suppressions` block and are retained when this setting changes. */ useRecommendedSuppressions?: pulumi.Input; } /** * The set of arguments for constructing a SensitiveDataScannerRule resource. */ export interface SensitiveDataScannerRuleArgs { /** * Description of the rule. Computed when `standardPatternId` is set and this field is omitted. */ description?: pulumi.Input; /** * Attributes excluded from the scan. If namespaces is provided, it has to be a sub-path of the namespaces array. */ excludedNamespaces?: pulumi.Input[] | undefined>; /** * Id of the scanning group the rule belongs to. */ groupId: pulumi.Input; /** * Object defining a set of keywords and a number of characters that help reduce noise. You can provide a list of keywords you would like to check within a defined proximity of the matching pattern. If any of the keywords are found within the proximity check then the match is kept. If none are found, the match is discarded. If the rule has the `standardPatternId` field, then discarding this field will apply the recommended keywords. Setting the `createBeforeDestroy` lifecycle Meta-argument to `true` is highly recommended if modifying this field to avoid unexpectedly disabling Sensitive Data Scanner groups. */ includedKeywordConfiguration?: pulumi.Input; /** * Whether or not the rule is enabled. */ isEnabled?: pulumi.Input; /** * Name of the rule. */ name?: pulumi.Input; /** * Attributes included in the scan. If namespaces is empty or missing, all attributes except excludedNamespaces are scanned. If both are missing the whole event is scanned. */ namespaces?: pulumi.Input[] | undefined>; /** * Not included if there is a relationship to a standard pattern. */ pattern?: pulumi.Input; /** * Priority level of the rule (optional). Used to order sensitive data discovered in the sds summary page. It must be between 1 and 5 (1 being the most important). */ priority?: pulumi.Input; /** * Id of the standard pattern the rule refers to. If provided, then pattern must not be provided. */ standardPatternId?: pulumi.Input; /** * Object defining custom suppressions to skip matches based on `startsWith`, `endsWith`, and `exactMatch` rules. Custom lists are managed independently of `useRecommendedSuppressions`. Replacing or removing `suppressions` updates or clears the custom lists without affecting `useRecommendedSuppressions`. Recommended suppressions are not copied into these lists. */ suppressions?: pulumi.Input; /** * List of tags. */ tags?: pulumi.Input[] | undefined>; /** * Object describing how the scanned event will be replaced. Defaults to `type: none` */ textReplacement?: pulumi.Input; /** * Whether to use the standard pattern's recommended suppressions. Requires `standardPatternId` when true. Defaults to `true` for new standard-pattern rules. When omitted for an existing or imported rule, preserves the current API choice. Custom suppressions are managed separately in the `suppressions` block and are retained when this setting changes. */ useRecommendedSuppressions?: pulumi.Input; } //# sourceMappingURL=sensitiveDataScannerRule.d.ts.map