import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * Represents the settings related to security issues, such as data redaction and data retention. It may take hours for updates on the settings to propagate to all the related components and take effect. * Multiple security settings can be configured in each location. Each agent can specify the security settings to apply, and each setting can be applied to multiple agents in the same project and location. * * To get more information about SecuritySettings, see: * * * [API documentation](https://cloud.google.com/dialogflow/cx/docs/reference/rest/v3/projects.locations.securitySettings) * * How-to Guides * * [Official Documentation](https://cloud.google.com/dialogflow/cx/docs) * * ## Example Usage * * ### Dialogflowcx Security Settings Basic * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as gcp from "@pulumi/gcp"; * * const basicSecuritySettings = new gcp.diagflow.CxSecuritySettings("basic_security_settings", { * displayName: "dialogflowcx-security-settings", * location: "global", * purgeDataTypes: [], * retentionWindowDays: 7, * }); * ``` * ### Dialogflowcx Security Settings Full * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as gcp from "@pulumi/gcp"; * * const inspect = new gcp.dataloss.PreventionInspectTemplate("inspect", { * parent: "projects/my-project-name/locations/global", * displayName: "dialogflowcx-inspect-template", * inspectConfig: { * infoTypes: [{ * name: "EMAIL_ADDRESS", * }], * }, * }); * const deidentify = new gcp.dataloss.PreventionDeidentifyTemplate("deidentify", { * parent: "projects/my-project-name/locations/global", * displayName: "dialogflowcx-deidentify-template", * deidentifyConfig: { * infoTypeTransformations: { * transformations: [{ * primitiveTransformation: { * replaceConfig: { * newValue: { * stringValue: "[REDACTED]", * }, * }, * }, * }], * }, * }, * }); * const bucket = new gcp.storage.Bucket("bucket", { * name: "dialogflowcx-bucket", * location: "US", * uniformBucketLevelAccess: true, * }); * const basicSecuritySettings = new gcp.diagflow.CxSecuritySettings("basic_security_settings", { * displayName: "dialogflowcx-security-settings", * location: "global", * redactionStrategy: "REDACT_WITH_SERVICE", * redactionScope: "REDACT_DISK_STORAGE", * inspectTemplate: inspect.id, * deidentifyTemplate: deidentify.id, * purgeDataTypes: ["DIALOGFLOW_HISTORY"], * audioExportSettings: { * gcsBucket: bucket.id, * audioExportPattern: "export", * enableAudioRedaction: true, * audioFormat: "OGG", * }, * insightsExportSettings: { * enableInsightsExport: true, * }, * retentionStrategy: "REMOVE_AFTER_CONVERSATION", * }); * ``` * * ## Import * * SecuritySettings can be imported using any of these accepted formats: * * * `projects/{{project}}/locations/{{location}}/securitySettings/{{name}}` * * * `{{project}}/{{location}}/{{name}}` * * * `{{location}}/{{name}}` * * When using the `pulumi import` command, SecuritySettings can be imported using one of the formats above. For example: * * ```sh * $ pulumi import gcp:diagflow/cxSecuritySettings:CxSecuritySettings default projects/{{project}}/locations/{{location}}/securitySettings/{{name}} * ``` * * ```sh * $ pulumi import gcp:diagflow/cxSecuritySettings:CxSecuritySettings default {{project}}/{{location}}/{{name}} * ``` * * ```sh * $ pulumi import gcp:diagflow/cxSecuritySettings:CxSecuritySettings default {{location}}/{{name}} * ``` */ export declare class CxSecuritySettings extends pulumi.CustomResource { /** * Get an existing CxSecuritySettings 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?: CxSecuritySettingsState, opts?: pulumi.CustomResourceOptions): CxSecuritySettings; /** * Returns true if the given object is an instance of CxSecuritySettings. 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 CxSecuritySettings; /** * Controls audio export settings for post-conversation analytics when ingesting audio to conversations. * If retentionStrategy is set to REMOVE_AFTER_CONVERSATION or gcsBucket is empty, audio export is disabled. * If audio export is enabled, audio is recorded and saved to gcs_bucket, subject to retention policy of gcs_bucket. * This setting won't effect audio input for implicit sessions via [Sessions.DetectIntent](https://cloud.google.com/dialogflow/cx/docs/reference/rest/v3/projects.locations.agents.sessions/detectIntent#google.cloud.dialogflow.cx.v3.Sessions.DetectIntent). * Structure is documented below. */ readonly audioExportSettings: pulumi.Output; /** * [DLP](https://cloud.google.com/dlp/docs) deidentify template name. Use this template to define de-identification configuration for the content. If empty, Dialogflow replaces sensitive info with [redacted] text. * Note: deidentifyTemplate must be located in the same region as the SecuritySettings. * Format: projects//locations//deidentifyTemplates/