All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.gcp.diagflow.kotlin.CxSecuritySettings.kt Maven / Gradle / Ivy

Go to download

Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.

There is a newer version: 8.10.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.gcp.diagflow.kotlin

import com.pulumi.core.Output
import com.pulumi.gcp.diagflow.kotlin.outputs.CxSecuritySettingsAudioExportSettings
import com.pulumi.gcp.diagflow.kotlin.outputs.CxSecuritySettingsInsightsExportSettings
import com.pulumi.kotlin.KotlinCustomResource
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.ResourceMapper
import com.pulumi.kotlin.options.CustomResourceOptions
import com.pulumi.kotlin.options.CustomResourceOptionsBuilder
import com.pulumi.resources.Resource
import kotlin.Boolean
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import com.pulumi.gcp.diagflow.kotlin.outputs.CxSecuritySettingsAudioExportSettings.Companion.toKotlin as cxSecuritySettingsAudioExportSettingsToKotlin
import com.pulumi.gcp.diagflow.kotlin.outputs.CxSecuritySettingsInsightsExportSettings.Companion.toKotlin as cxSecuritySettingsInsightsExportSettingsToKotlin

/**
 * Builder for [CxSecuritySettings].
 */
@PulumiTagMarker
public class CxSecuritySettingsResourceBuilder internal constructor() {
    public var name: String? = null

    public var args: CxSecuritySettingsArgs = CxSecuritySettingsArgs()

    public var opts: CustomResourceOptions = CustomResourceOptions()

    /**
     * @param name The _unique_ name of the resulting resource.
     */
    public fun name(`value`: String) {
        this.name = value
    }

    /**
     * @param block The arguments to use to populate this resource's properties.
     */
    public suspend fun args(block: suspend CxSecuritySettingsArgsBuilder.() -> Unit) {
        val builder = CxSecuritySettingsArgsBuilder()
        block(builder)
        this.args = builder.build()
    }

    /**
     * @param block A bag of options that control this resource's behavior.
     */
    public suspend fun opts(block: suspend CustomResourceOptionsBuilder.() -> Unit) {
        this.opts = com.pulumi.kotlin.options.CustomResourceOptions.opts(block)
    }

    internal fun build(): CxSecuritySettings {
        val builtJavaResource = com.pulumi.gcp.diagflow.CxSecuritySettings(
            this.name,
            this.args.toJava(),
            this.opts.toJava(),
        )
        return CxSecuritySettings(builtJavaResource)
    }
}

/**
 * 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,
 * });
 * ```
 * ```python
 * import pulumi
 * import pulumi_gcp as gcp
 * basic_security_settings = gcp.diagflow.CxSecuritySettings("basic_security_settings",
 *     display_name="dialogflowcx-security-settings",
 *     location="global",
 *     purge_data_types=[],
 *     retention_window_days=7)
 * ```
 * ```csharp
 * using System.Collections.Generic;
 * using System.Linq;
 * using Pulumi;
 * using Gcp = Pulumi.Gcp;
 * return await Deployment.RunAsync(() =>
 * {
 *     var basicSecuritySettings = new Gcp.Diagflow.CxSecuritySettings("basic_security_settings", new()
 *     {
 *         DisplayName = "dialogflowcx-security-settings",
 *         Location = "global",
 *         PurgeDataTypes = new[] {},
 *         RetentionWindowDays = 7,
 *     });
 * });
 * ```
 * ```go
 * package main
 * import (
 * 	"github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/diagflow"
 * 	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
 * )
 * func main() {
 * 	pulumi.Run(func(ctx *pulumi.Context) error {
 * 		_, err := diagflow.NewCxSecuritySettings(ctx, "basic_security_settings", &diagflow.CxSecuritySettingsArgs{
 * 			DisplayName:         pulumi.String("dialogflowcx-security-settings"),
 * 			Location:            pulumi.String("global"),
 * 			PurgeDataTypes:      pulumi.StringArray{},
 * 			RetentionWindowDays: pulumi.Int(7),
 * 		})
 * 		if err != nil {
 * 			return err
 * 		}
 * 		return nil
 * 	})
 * }
 * ```
 * ```java
 * package generated_program;
 * import com.pulumi.Context;
 * import com.pulumi.Pulumi;
 * import com.pulumi.core.Output;
 * import com.pulumi.gcp.diagflow.CxSecuritySettings;
 * import com.pulumi.gcp.diagflow.CxSecuritySettingsArgs;
 * import java.util.List;
 * import java.util.ArrayList;
 * import java.util.Map;
 * import java.io.File;
 * import java.nio.file.Files;
 * import java.nio.file.Paths;
 * public class App {
 *     public static void main(String[] args) {
 *         Pulumi.run(App::stack);
 *     }
 *     public static void stack(Context ctx) {
 *         var basicSecuritySettings = new CxSecuritySettings("basicSecuritySettings", CxSecuritySettingsArgs.builder()
 *             .displayName("dialogflowcx-security-settings")
 *             .location("global")
 *             .purgeDataTypes()
 *             .retentionWindowDays(7)
 *             .build());
 *     }
 * }
 * ```
 * ```yaml
 * resources:
 *   basicSecuritySettings:
 *     type: gcp:diagflow:CxSecuritySettings
 *     name: basic_security_settings
 *     properties:
 *       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",
 * });
 * ```
 * ```python
 * import pulumi
 * import pulumi_gcp as gcp
 * inspect = gcp.dataloss.PreventionInspectTemplate("inspect",
 *     parent="projects/my-project-name/locations/global",
 *     display_name="dialogflowcx-inspect-template",
 *     inspect_config=gcp.dataloss.PreventionInspectTemplateInspectConfigArgs(
 *         info_types=[gcp.dataloss.PreventionInspectTemplateInspectConfigInfoTypeArgs(
 *             name="EMAIL_ADDRESS",
 *         )],
 *     ))
 * deidentify = gcp.dataloss.PreventionDeidentifyTemplate("deidentify",
 *     parent="projects/my-project-name/locations/global",
 *     display_name="dialogflowcx-deidentify-template",
 *     deidentify_config=gcp.dataloss.PreventionDeidentifyTemplateDeidentifyConfigArgs(
 *         info_type_transformations=gcp.dataloss.PreventionDeidentifyTemplateDeidentifyConfigInfoTypeTransformationsArgs(
 *             transformations=[gcp.dataloss.PreventionDeidentifyTemplateDeidentifyConfigInfoTypeTransformationsTransformationArgs(
 *                 primitive_transformation=gcp.dataloss.PreventionDeidentifyTemplateDeidentifyConfigInfoTypeTransformationsTransformationPrimitiveTransformationArgs(
 *                     replace_config=gcp.dataloss.PreventionDeidentifyTemplateDeidentifyConfigInfoTypeTransformationsTransformationPrimitiveTransformationReplaceConfigArgs(
 *                         new_value=gcp.dataloss.PreventionDeidentifyTemplateDeidentifyConfigInfoTypeTransformationsTransformationPrimitiveTransformationReplaceConfigNewValueArgs(
 *                             string_value="[REDACTED]",
 *                         ),
 *                     ),
 *                 ),
 *             )],
 *         ),
 *     ))
 * bucket = gcp.storage.Bucket("bucket",
 *     name="dialogflowcx-bucket",
 *     location="US",
 *     uniform_bucket_level_access=True)
 * basic_security_settings = gcp.diagflow.CxSecuritySettings("basic_security_settings",
 *     display_name="dialogflowcx-security-settings",
 *     location="global",
 *     redaction_strategy="REDACT_WITH_SERVICE",
 *     redaction_scope="REDACT_DISK_STORAGE",
 *     inspect_template=inspect.id,
 *     deidentify_template=deidentify.id,
 *     purge_data_types=["DIALOGFLOW_HISTORY"],
 *     audio_export_settings=gcp.diagflow.CxSecuritySettingsAudioExportSettingsArgs(
 *         gcs_bucket=bucket.id,
 *         audio_export_pattern="export",
 *         enable_audio_redaction=True,
 *         audio_format="OGG",
 *     ),
 *     insights_export_settings=gcp.diagflow.CxSecuritySettingsInsightsExportSettingsArgs(
 *         enable_insights_export=True,
 *     ),
 *     retention_strategy="REMOVE_AFTER_CONVERSATION")
 * ```
 * ```csharp
 * using System.Collections.Generic;
 * using System.Linq;
 * using Pulumi;
 * using Gcp = Pulumi.Gcp;
 * return await Deployment.RunAsync(() =>
 * {
 *     var inspect = new Gcp.DataLoss.PreventionInspectTemplate("inspect", new()
 *     {
 *         Parent = "projects/my-project-name/locations/global",
 *         DisplayName = "dialogflowcx-inspect-template",
 *         InspectConfig = new Gcp.DataLoss.Inputs.PreventionInspectTemplateInspectConfigArgs
 *         {
 *             InfoTypes = new[]
 *             {
 *                 new Gcp.DataLoss.Inputs.PreventionInspectTemplateInspectConfigInfoTypeArgs
 *                 {
 *                     Name = "EMAIL_ADDRESS",
 *                 },
 *             },
 *         },
 *     });
 *     var deidentify = new Gcp.DataLoss.PreventionDeidentifyTemplate("deidentify", new()
 *     {
 *         Parent = "projects/my-project-name/locations/global",
 *         DisplayName = "dialogflowcx-deidentify-template",
 *         DeidentifyConfig = new Gcp.DataLoss.Inputs.PreventionDeidentifyTemplateDeidentifyConfigArgs
 *         {
 *             InfoTypeTransformations = new Gcp.DataLoss.Inputs.PreventionDeidentifyTemplateDeidentifyConfigInfoTypeTransformationsArgs
 *             {
 *                 Transformations = new[]
 *                 {
 *                     new Gcp.DataLoss.Inputs.PreventionDeidentifyTemplateDeidentifyConfigInfoTypeTransformationsTransformationArgs
 *                     {
 *                         PrimitiveTransformation = new Gcp.DataLoss.Inputs.PreventionDeidentifyTemplateDeidentifyConfigInfoTypeTransformationsTransformationPrimitiveTransformationArgs
 *                         {
 *                             ReplaceConfig = new Gcp.DataLoss.Inputs.PreventionDeidentifyTemplateDeidentifyConfigInfoTypeTransformationsTransformationPrimitiveTransformationReplaceConfigArgs
 *                             {
 *                                 NewValue = new Gcp.DataLoss.Inputs.PreventionDeidentifyTemplateDeidentifyConfigInfoTypeTransformationsTransformationPrimitiveTransformationReplaceConfigNewValueArgs
 *                                 {
 *                                     StringValue = "[REDACTED]",
 *                                 },
 *                             },
 *                         },
 *                     },
 *                 },
 *             },
 *         },
 *     });
 *     var bucket = new Gcp.Storage.Bucket("bucket", new()
 *     {
 *         Name = "dialogflowcx-bucket",
 *         Location = "US",
 *         UniformBucketLevelAccess = true,
 *     });
 *     var basicSecuritySettings = new Gcp.Diagflow.CxSecuritySettings("basic_security_settings", new()
 *     {
 *         DisplayName = "dialogflowcx-security-settings",
 *         Location = "global",
 *         RedactionStrategy = "REDACT_WITH_SERVICE",
 *         RedactionScope = "REDACT_DISK_STORAGE",
 *         InspectTemplate = inspect.Id,
 *         DeidentifyTemplate = deidentify.Id,
 *         PurgeDataTypes = new[]
 *         {
 *             "DIALOGFLOW_HISTORY",
 *         },
 *         AudioExportSettings = new Gcp.Diagflow.Inputs.CxSecuritySettingsAudioExportSettingsArgs
 *         {
 *             GcsBucket = bucket.Id,
 *             AudioExportPattern = "export",
 *             EnableAudioRedaction = true,
 *             AudioFormat = "OGG",
 *         },
 *         InsightsExportSettings = new Gcp.Diagflow.Inputs.CxSecuritySettingsInsightsExportSettingsArgs
 *         {
 *             EnableInsightsExport = true,
 *         },
 *         RetentionStrategy = "REMOVE_AFTER_CONVERSATION",
 *     });
 * });
 * ```
 * ```go
 * package main
 * import (
 * 	"github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/dataloss"
 * 	"github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/diagflow"
 * 	"github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/storage"
 * 	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
 * )
 * func main() {
 * 	pulumi.Run(func(ctx *pulumi.Context) error {
 * 		inspect, err := dataloss.NewPreventionInspectTemplate(ctx, "inspect", &dataloss.PreventionInspectTemplateArgs{
 * 			Parent:      pulumi.String("projects/my-project-name/locations/global"),
 * 			DisplayName: pulumi.String("dialogflowcx-inspect-template"),
 * 			InspectConfig: &dataloss.PreventionInspectTemplateInspectConfigArgs{
 * 				InfoTypes: dataloss.PreventionInspectTemplateInspectConfigInfoTypeArray{
 * 					&dataloss.PreventionInspectTemplateInspectConfigInfoTypeArgs{
 * 						Name: pulumi.String("EMAIL_ADDRESS"),
 * 					},
 * 				},
 * 			},
 * 		})
 * 		if err != nil {
 * 			return err
 * 		}
 * 		deidentify, err := dataloss.NewPreventionDeidentifyTemplate(ctx, "deidentify", &dataloss.PreventionDeidentifyTemplateArgs{
 * 			Parent:      pulumi.String("projects/my-project-name/locations/global"),
 * 			DisplayName: pulumi.String("dialogflowcx-deidentify-template"),
 * 			DeidentifyConfig: &dataloss.PreventionDeidentifyTemplateDeidentifyConfigArgs{
 * 				InfoTypeTransformations: &dataloss.PreventionDeidentifyTemplateDeidentifyConfigInfoTypeTransformationsArgs{
 * 					Transformations: dataloss.PreventionDeidentifyTemplateDeidentifyConfigInfoTypeTransformationsTransformationArray{
 * 						&dataloss.PreventionDeidentifyTemplateDeidentifyConfigInfoTypeTransformationsTransformationArgs{
 * 							PrimitiveTransformation: &dataloss.PreventionDeidentifyTemplateDeidentifyConfigInfoTypeTransformationsTransformationPrimitiveTransformationArgs{
 * 								ReplaceConfig: &dataloss.PreventionDeidentifyTemplateDeidentifyConfigInfoTypeTransformationsTransformationPrimitiveTransformationReplaceConfigArgs{
 * 									NewValue: &dataloss.PreventionDeidentifyTemplateDeidentifyConfigInfoTypeTransformationsTransformationPrimitiveTransformationReplaceConfigNewValueArgs{
 * 										StringValue: pulumi.String("[REDACTED]"),
 * 									},
 * 								},
 * 							},
 * 						},
 * 					},
 * 				},
 * 			},
 * 		})
 * 		if err != nil {
 * 			return err
 * 		}
 * 		bucket, err := storage.NewBucket(ctx, "bucket", &storage.BucketArgs{
 * 			Name:                     pulumi.String("dialogflowcx-bucket"),
 * 			Location:                 pulumi.String("US"),
 * 			UniformBucketLevelAccess: pulumi.Bool(true),
 * 		})
 * 		if err != nil {
 * 			return err
 * 		}
 * 		_, err = diagflow.NewCxSecuritySettings(ctx, "basic_security_settings", &diagflow.CxSecuritySettingsArgs{
 * 			DisplayName:        pulumi.String("dialogflowcx-security-settings"),
 * 			Location:           pulumi.String("global"),
 * 			RedactionStrategy:  pulumi.String("REDACT_WITH_SERVICE"),
 * 			RedactionScope:     pulumi.String("REDACT_DISK_STORAGE"),
 * 			InspectTemplate:    inspect.ID(),
 * 			DeidentifyTemplate: deidentify.ID(),
 * 			PurgeDataTypes: pulumi.StringArray{
 * 				pulumi.String("DIALOGFLOW_HISTORY"),
 * 			},
 * 			AudioExportSettings: &diagflow.CxSecuritySettingsAudioExportSettingsArgs{
 * 				GcsBucket:            bucket.ID(),
 * 				AudioExportPattern:   pulumi.String("export"),
 * 				EnableAudioRedaction: pulumi.Bool(true),
 * 				AudioFormat:          pulumi.String("OGG"),
 * 			},
 * 			InsightsExportSettings: &diagflow.CxSecuritySettingsInsightsExportSettingsArgs{
 * 				EnableInsightsExport: pulumi.Bool(true),
 * 			},
 * 			RetentionStrategy: pulumi.String("REMOVE_AFTER_CONVERSATION"),
 * 		})
 * 		if err != nil {
 * 			return err
 * 		}
 * 		return nil
 * 	})
 * }
 * ```
 * ```java
 * package generated_program;
 * import com.pulumi.Context;
 * import com.pulumi.Pulumi;
 * import com.pulumi.core.Output;
 * import com.pulumi.gcp.dataloss.PreventionInspectTemplate;
 * import com.pulumi.gcp.dataloss.PreventionInspectTemplateArgs;
 * import com.pulumi.gcp.dataloss.inputs.PreventionInspectTemplateInspectConfigArgs;
 * import com.pulumi.gcp.dataloss.PreventionDeidentifyTemplate;
 * import com.pulumi.gcp.dataloss.PreventionDeidentifyTemplateArgs;
 * import com.pulumi.gcp.dataloss.inputs.PreventionDeidentifyTemplateDeidentifyConfigArgs;
 * import com.pulumi.gcp.dataloss.inputs.PreventionDeidentifyTemplateDeidentifyConfigInfoTypeTransformationsArgs;
 * import com.pulumi.gcp.storage.Bucket;
 * import com.pulumi.gcp.storage.BucketArgs;
 * import com.pulumi.gcp.diagflow.CxSecuritySettings;
 * import com.pulumi.gcp.diagflow.CxSecuritySettingsArgs;
 * import com.pulumi.gcp.diagflow.inputs.CxSecuritySettingsAudioExportSettingsArgs;
 * import com.pulumi.gcp.diagflow.inputs.CxSecuritySettingsInsightsExportSettingsArgs;
 * import java.util.List;
 * import java.util.ArrayList;
 * import java.util.Map;
 * import java.io.File;
 * import java.nio.file.Files;
 * import java.nio.file.Paths;
 * public class App {
 *     public static void main(String[] args) {
 *         Pulumi.run(App::stack);
 *     }
 *     public static void stack(Context ctx) {
 *         var inspect = new PreventionInspectTemplate("inspect", PreventionInspectTemplateArgs.builder()
 *             .parent("projects/my-project-name/locations/global")
 *             .displayName("dialogflowcx-inspect-template")
 *             .inspectConfig(PreventionInspectTemplateInspectConfigArgs.builder()
 *                 .infoTypes(PreventionInspectTemplateInspectConfigInfoTypeArgs.builder()
 *                     .name("EMAIL_ADDRESS")
 *                     .build())
 *                 .build())
 *             .build());
 *         var deidentify = new PreventionDeidentifyTemplate("deidentify", PreventionDeidentifyTemplateArgs.builder()
 *             .parent("projects/my-project-name/locations/global")
 *             .displayName("dialogflowcx-deidentify-template")
 *             .deidentifyConfig(PreventionDeidentifyTemplateDeidentifyConfigArgs.builder()
 *                 .infoTypeTransformations(PreventionDeidentifyTemplateDeidentifyConfigInfoTypeTransformationsArgs.builder()
 *                     .transformations(PreventionDeidentifyTemplateDeidentifyConfigInfoTypeTransformationsTransformationArgs.builder()
 *                         .primitiveTransformation(PreventionDeidentifyTemplateDeidentifyConfigInfoTypeTransformationsTransformationPrimitiveTransformationArgs.builder()
 *                             .replaceConfig(PreventionDeidentifyTemplateDeidentifyConfigInfoTypeTransformationsTransformationPrimitiveTransformationReplaceConfigArgs.builder()
 *                                 .newValue(PreventionDeidentifyTemplateDeidentifyConfigInfoTypeTransformationsTransformationPrimitiveTransformationReplaceConfigNewValueArgs.builder()
 *                                     .stringValue("[REDACTED]")
 *                                     .build())
 *                                 .build())
 *                             .build())
 *                         .build())
 *                     .build())
 *                 .build())
 *             .build());
 *         var bucket = new Bucket("bucket", BucketArgs.builder()
 *             .name("dialogflowcx-bucket")
 *             .location("US")
 *             .uniformBucketLevelAccess(true)
 *             .build());
 *         var basicSecuritySettings = new CxSecuritySettings("basicSecuritySettings", CxSecuritySettingsArgs.builder()
 *             .displayName("dialogflowcx-security-settings")
 *             .location("global")
 *             .redactionStrategy("REDACT_WITH_SERVICE")
 *             .redactionScope("REDACT_DISK_STORAGE")
 *             .inspectTemplate(inspect.id())
 *             .deidentifyTemplate(deidentify.id())
 *             .purgeDataTypes("DIALOGFLOW_HISTORY")
 *             .audioExportSettings(CxSecuritySettingsAudioExportSettingsArgs.builder()
 *                 .gcsBucket(bucket.id())
 *                 .audioExportPattern("export")
 *                 .enableAudioRedaction(true)
 *                 .audioFormat("OGG")
 *                 .build())
 *             .insightsExportSettings(CxSecuritySettingsInsightsExportSettingsArgs.builder()
 *                 .enableInsightsExport(true)
 *                 .build())
 *             .retentionStrategy("REMOVE_AFTER_CONVERSATION")
 *             .build());
 *     }
 * }
 * ```
 * ```yaml
 * resources:
 *   inspect:
 *     type: gcp:dataloss:PreventionInspectTemplate
 *     properties:
 *       parent: projects/my-project-name/locations/global
 *       displayName: dialogflowcx-inspect-template
 *       inspectConfig:
 *         infoTypes:
 *           - name: EMAIL_ADDRESS
 *   deidentify:
 *     type: gcp:dataloss:PreventionDeidentifyTemplate
 *     properties:
 *       parent: projects/my-project-name/locations/global
 *       displayName: dialogflowcx-deidentify-template
 *       deidentifyConfig:
 *         infoTypeTransformations:
 *           transformations:
 *             - primitiveTransformation:
 *                 replaceConfig:
 *                   newValue:
 *                     stringValue: '[REDACTED]'
 *   bucket:
 *     type: gcp:storage:Bucket
 *     properties:
 *       name: dialogflowcx-bucket
 *       location: US
 *       uniformBucketLevelAccess: true
 *   basicSecuritySettings:
 *     type: gcp:diagflow:CxSecuritySettings
 *     name: basic_security_settings
 *     properties:
 *       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}}
 * ```
 */
public class CxSecuritySettings internal constructor(
    override val javaResource: com.pulumi.gcp.diagflow.CxSecuritySettings,
) : KotlinCustomResource(javaResource, CxSecuritySettingsMapper) {
    /**
     * Controls audio export settings for post-conversation analytics when ingesting audio to conversations.
     * If retention_strategy is set to REMOVE_AFTER_CONVERSATION or gcs_bucket 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.
     */
    public val audioExportSettings: Output?
        get() = javaResource.audioExportSettings().applyValue({ args0 ->
            args0.map({ args0 ->
                args0.let({ args0 -> cxSecuritySettingsAudioExportSettingsToKotlin(args0) })
            }).orElse(null)
        })

    /**
     * [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/