import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * Configuration for discovery to scan resources for profile generation. Only one discovery configuration may exist per organization, folder, or project. * * To get more information about DiscoveryConfig, see: * * * [API documentation](https://cloud.google.com/dlp/docs/reference/rest/v2/projects.locations.discoveryConfigs) * * How-to Guides * * [Schedule inspection scan](https://cloud.google.com/dlp/docs/schedule-inspection-scan) * * ## Example Usage * * ## Import * * DiscoveryConfig can be imported using any of these accepted formats: * * * `{{parent}}/discoveryConfigs/{{name}}` * * `{{parent}}/{{name}}` * * When using the `pulumi import` command, DiscoveryConfig can be imported using one of the formats above. For example: * * ```sh * $ pulumi import gcp:dataloss/preventionDiscoveryConfig:PreventionDiscoveryConfig default {{parent}}/discoveryConfigs/{{name}} * $ pulumi import gcp:dataloss/preventionDiscoveryConfig:PreventionDiscoveryConfig default {{parent}}/{{name}} * ``` */ export declare class PreventionDiscoveryConfig extends pulumi.CustomResource { /** * Get an existing PreventionDiscoveryConfig 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?: PreventionDiscoveryConfigState, opts?: pulumi.CustomResourceOptions): PreventionDiscoveryConfig; /** * Returns true if the given object is an instance of PreventionDiscoveryConfig. 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 PreventionDiscoveryConfig; /** * Actions to execute at the completion of scanning * Structure is documented below. */ readonly actions: pulumi.Output; /** * Output only. The creation timestamp of a DiscoveryConfig. */ readonly createTime: pulumi.Output; /** * Display Name (max 1000 Chars) */ readonly displayName: pulumi.Output; /** * Output only. A stream of errors encountered when the config was activated. Repeated errors may result in the config automatically being paused. Output only field. Will return the last 100 errors. Whenever the config is modified this list will be cleared. * Structure is documented below. */ readonly errors: pulumi.Output; /** * Detection logic for profile generation */ readonly inspectTemplates: pulumi.Output; /** * Output only. The timestamp of the last time this config was executed */ readonly lastRunTime: pulumi.Output; /** * Location to create the discovery config in. */ readonly location: pulumi.Output; /** * Unique resource name for the DiscoveryConfig, assigned by the service when the DiscoveryConfig is created. */ readonly name: pulumi.Output; /** * A nested object resource. * Structure is documented below. */ readonly orgConfig: pulumi.Output; /** * A nested object resource. * Structure is documented below. */ readonly otherCloudStartingLocation: pulumi.Output; /** * The parent of the discovery config in any of the following formats: * * `projects/{{project}}/locations/{{location}}` * * `organizations/{{organization_id}}/locations/{{location}}` */ readonly parent: pulumi.Output; /** * Required. A status for this configuration * Possible values are: `RUNNING`, `PAUSED`. */ readonly status: pulumi.Output; /** * Target to match against for determining what to scan and how frequently * Structure is documented below. */ readonly targets: pulumi.Output; /** * Output only. The last update timestamp of a DiscoveryConfig. */ readonly updateTime: pulumi.Output; /** * Create a PreventionDiscoveryConfig 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: PreventionDiscoveryConfigArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering PreventionDiscoveryConfig resources. */ export interface PreventionDiscoveryConfigState { /** * Actions to execute at the completion of scanning * Structure is documented below. */ actions?: pulumi.Input[]>; /** * Output only. The creation timestamp of a DiscoveryConfig. */ createTime?: pulumi.Input; /** * Display Name (max 1000 Chars) */ displayName?: pulumi.Input; /** * Output only. A stream of errors encountered when the config was activated. Repeated errors may result in the config automatically being paused. Output only field. Will return the last 100 errors. Whenever the config is modified this list will be cleared. * Structure is documented below. */ errors?: pulumi.Input[]>; /** * Detection logic for profile generation */ inspectTemplates?: pulumi.Input[]>; /** * Output only. The timestamp of the last time this config was executed */ lastRunTime?: pulumi.Input; /** * Location to create the discovery config in. */ location?: pulumi.Input; /** * Unique resource name for the DiscoveryConfig, assigned by the service when the DiscoveryConfig is created. */ name?: pulumi.Input; /** * A nested object resource. * Structure is documented below. */ orgConfig?: pulumi.Input; /** * A nested object resource. * Structure is documented below. */ otherCloudStartingLocation?: pulumi.Input; /** * The parent of the discovery config in any of the following formats: * * `projects/{{project}}/locations/{{location}}` * * `organizations/{{organization_id}}/locations/{{location}}` */ parent?: pulumi.Input; /** * Required. A status for this configuration * Possible values are: `RUNNING`, `PAUSED`. */ status?: pulumi.Input; /** * Target to match against for determining what to scan and how frequently * Structure is documented below. */ targets?: pulumi.Input[]>; /** * Output only. The last update timestamp of a DiscoveryConfig. */ updateTime?: pulumi.Input; } /** * The set of arguments for constructing a PreventionDiscoveryConfig resource. */ export interface PreventionDiscoveryConfigArgs { /** * Actions to execute at the completion of scanning * Structure is documented below. */ actions?: pulumi.Input[]>; /** * Display Name (max 1000 Chars) */ displayName?: pulumi.Input; /** * Detection logic for profile generation */ inspectTemplates?: pulumi.Input[]>; /** * Location to create the discovery config in. */ location: pulumi.Input; /** * A nested object resource. * Structure is documented below. */ orgConfig?: pulumi.Input; /** * A nested object resource. * Structure is documented below. */ otherCloudStartingLocation?: pulumi.Input; /** * The parent of the discovery config in any of the following formats: * * `projects/{{project}}/locations/{{location}}` * * `organizations/{{organization_id}}/locations/{{location}}` */ parent: pulumi.Input; /** * Required. A status for this configuration * Possible values are: `RUNNING`, `PAUSED`. */ status?: pulumi.Input; /** * Target to match against for determining what to scan and how frequently * Structure is documented below. */ targets?: pulumi.Input[]>; }