1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. DataSafe
  5. MaskingPolicy
Oracle Cloud Infrastructure v1.32.0 published on Thursday, Apr 18, 2024 by Pulumi

oci.DataSafe.MaskingPolicy

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v1.32.0 published on Thursday, Apr 18, 2024 by Pulumi

    This resource provides the Masking Policy resource in Oracle Cloud Infrastructure Data Safe service.

    Creates a new masking policy and associates it with a sensitive data model or a target database.

    To use a sensitive data model as the source of masking columns, set the columnSource attribute to SENSITIVE_DATA_MODEL and provide the sensitiveDataModelId attribute. After creating a masking policy, you can use the AddMaskingColumnsFromSdm operation to automatically add all the columns from the associated sensitive data model. In this case, the target database associated with the sensitive data model is used for column and masking format validations.

    You can also create a masking policy without using a sensitive data model. In this case, you need to associate your masking policy with a target database by setting the columnSource attribute to TARGET and providing the targetId attribute. The specified target database is used for column and masking format validations.

    After creating a masking policy, you can use the CreateMaskingColumn or PatchMaskingColumns operation to manually add columns to the policy. You need to add the parent columns only, and it automatically adds the child columns (in referential relationship with the parent columns) from the associated sensitive data model or target database.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testMaskingPolicy = new oci.datasafe.MaskingPolicy("testMaskingPolicy", {
        columnSources: [{
            columnSource: _var.masking_policy_column_source_column_source,
            sensitiveDataModelId: oci_data_safe_sensitive_data_model.test_sensitive_data_model.id,
            targetId: oci_cloud_guard_target.test_target.id,
        }],
        compartmentId: _var.compartment_id,
        definedTags: {
            "Operations.CostCenter": "42",
        },
        description: _var.masking_policy_description,
        displayName: _var.masking_policy_display_name,
        freeformTags: {
            Department: "Finance",
        },
        isDropTempTablesEnabled: _var.masking_policy_is_drop_temp_tables_enabled,
        isRedoLoggingEnabled: _var.masking_policy_is_redo_logging_enabled,
        isRefreshStatsEnabled: _var.masking_policy_is_refresh_stats_enabled,
        parallelDegree: _var.masking_policy_parallel_degree,
        postMaskingScript: _var.masking_policy_post_masking_script,
        preMaskingScript: _var.masking_policy_pre_masking_script,
        recompile: _var.masking_policy_recompile,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_masking_policy = oci.data_safe.MaskingPolicy("testMaskingPolicy",
        column_sources=[oci.data_safe.MaskingPolicyColumnSourceArgs(
            column_source=var["masking_policy_column_source_column_source"],
            sensitive_data_model_id=oci_data_safe_sensitive_data_model["test_sensitive_data_model"]["id"],
            target_id=oci_cloud_guard_target["test_target"]["id"],
        )],
        compartment_id=var["compartment_id"],
        defined_tags={
            "Operations.CostCenter": "42",
        },
        description=var["masking_policy_description"],
        display_name=var["masking_policy_display_name"],
        freeform_tags={
            "Department": "Finance",
        },
        is_drop_temp_tables_enabled=var["masking_policy_is_drop_temp_tables_enabled"],
        is_redo_logging_enabled=var["masking_policy_is_redo_logging_enabled"],
        is_refresh_stats_enabled=var["masking_policy_is_refresh_stats_enabled"],
        parallel_degree=var["masking_policy_parallel_degree"],
        post_masking_script=var["masking_policy_post_masking_script"],
        pre_masking_script=var["masking_policy_pre_masking_script"],
        recompile=var["masking_policy_recompile"])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-oci/sdk/go/oci/DataSafe"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := DataSafe.NewMaskingPolicy(ctx, "testMaskingPolicy", &DataSafe.MaskingPolicyArgs{
    			ColumnSources: datasafe.MaskingPolicyColumnSourceArray{
    				&datasafe.MaskingPolicyColumnSourceArgs{
    					ColumnSource:         pulumi.Any(_var.Masking_policy_column_source_column_source),
    					SensitiveDataModelId: pulumi.Any(oci_data_safe_sensitive_data_model.Test_sensitive_data_model.Id),
    					TargetId:             pulumi.Any(oci_cloud_guard_target.Test_target.Id),
    				},
    			},
    			CompartmentId: pulumi.Any(_var.Compartment_id),
    			DefinedTags: pulumi.Map{
    				"Operations.CostCenter": pulumi.Any("42"),
    			},
    			Description: pulumi.Any(_var.Masking_policy_description),
    			DisplayName: pulumi.Any(_var.Masking_policy_display_name),
    			FreeformTags: pulumi.Map{
    				"Department": pulumi.Any("Finance"),
    			},
    			IsDropTempTablesEnabled: pulumi.Any(_var.Masking_policy_is_drop_temp_tables_enabled),
    			IsRedoLoggingEnabled:    pulumi.Any(_var.Masking_policy_is_redo_logging_enabled),
    			IsRefreshStatsEnabled:   pulumi.Any(_var.Masking_policy_is_refresh_stats_enabled),
    			ParallelDegree:          pulumi.Any(_var.Masking_policy_parallel_degree),
    			PostMaskingScript:       pulumi.Any(_var.Masking_policy_post_masking_script),
    			PreMaskingScript:        pulumi.Any(_var.Masking_policy_pre_masking_script),
    			Recompile:               pulumi.Any(_var.Masking_policy_recompile),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Oci = Pulumi.Oci;
    
    return await Deployment.RunAsync(() => 
    {
        var testMaskingPolicy = new Oci.DataSafe.MaskingPolicy("testMaskingPolicy", new()
        {
            ColumnSources = new[]
            {
                new Oci.DataSafe.Inputs.MaskingPolicyColumnSourceArgs
                {
                    ColumnSource = @var.Masking_policy_column_source_column_source,
                    SensitiveDataModelId = oci_data_safe_sensitive_data_model.Test_sensitive_data_model.Id,
                    TargetId = oci_cloud_guard_target.Test_target.Id,
                },
            },
            CompartmentId = @var.Compartment_id,
            DefinedTags = 
            {
                { "Operations.CostCenter", "42" },
            },
            Description = @var.Masking_policy_description,
            DisplayName = @var.Masking_policy_display_name,
            FreeformTags = 
            {
                { "Department", "Finance" },
            },
            IsDropTempTablesEnabled = @var.Masking_policy_is_drop_temp_tables_enabled,
            IsRedoLoggingEnabled = @var.Masking_policy_is_redo_logging_enabled,
            IsRefreshStatsEnabled = @var.Masking_policy_is_refresh_stats_enabled,
            ParallelDegree = @var.Masking_policy_parallel_degree,
            PostMaskingScript = @var.Masking_policy_post_masking_script,
            PreMaskingScript = @var.Masking_policy_pre_masking_script,
            Recompile = @var.Masking_policy_recompile,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.oci.DataSafe.MaskingPolicy;
    import com.pulumi.oci.DataSafe.MaskingPolicyArgs;
    import com.pulumi.oci.DataSafe.inputs.MaskingPolicyColumnSourceArgs;
    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 testMaskingPolicy = new MaskingPolicy("testMaskingPolicy", MaskingPolicyArgs.builder()        
                .columnSources(MaskingPolicyColumnSourceArgs.builder()
                    .columnSource(var_.masking_policy_column_source_column_source())
                    .sensitiveDataModelId(oci_data_safe_sensitive_data_model.test_sensitive_data_model().id())
                    .targetId(oci_cloud_guard_target.test_target().id())
                    .build())
                .compartmentId(var_.compartment_id())
                .definedTags(Map.of("Operations.CostCenter", "42"))
                .description(var_.masking_policy_description())
                .displayName(var_.masking_policy_display_name())
                .freeformTags(Map.of("Department", "Finance"))
                .isDropTempTablesEnabled(var_.masking_policy_is_drop_temp_tables_enabled())
                .isRedoLoggingEnabled(var_.masking_policy_is_redo_logging_enabled())
                .isRefreshStatsEnabled(var_.masking_policy_is_refresh_stats_enabled())
                .parallelDegree(var_.masking_policy_parallel_degree())
                .postMaskingScript(var_.masking_policy_post_masking_script())
                .preMaskingScript(var_.masking_policy_pre_masking_script())
                .recompile(var_.masking_policy_recompile())
                .build());
    
        }
    }
    
    resources:
      testMaskingPolicy:
        type: oci:DataSafe:MaskingPolicy
        properties:
          #Required
          columnSources:
            - columnSource: ${var.masking_policy_column_source_column_source}
              sensitiveDataModelId: ${oci_data_safe_sensitive_data_model.test_sensitive_data_model.id}
              targetId: ${oci_cloud_guard_target.test_target.id}
          compartmentId: ${var.compartment_id}
          #Optional
          definedTags:
            Operations.CostCenter: '42'
          description: ${var.masking_policy_description}
          displayName: ${var.masking_policy_display_name}
          freeformTags:
            Department: Finance
          isDropTempTablesEnabled: ${var.masking_policy_is_drop_temp_tables_enabled}
          isRedoLoggingEnabled: ${var.masking_policy_is_redo_logging_enabled}
          isRefreshStatsEnabled: ${var.masking_policy_is_refresh_stats_enabled}
          parallelDegree: ${var.masking_policy_parallel_degree}
          postMaskingScript: ${var.masking_policy_post_masking_script}
          preMaskingScript: ${var.masking_policy_pre_masking_script}
          recompile: ${var.masking_policy_recompile}
    

    Create MaskingPolicy Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new MaskingPolicy(name: string, args: MaskingPolicyArgs, opts?: CustomResourceOptions);
    @overload
    def MaskingPolicy(resource_name: str,
                      args: MaskingPolicyArgs,
                      opts: Optional[ResourceOptions] = None)
    
    @overload
    def MaskingPolicy(resource_name: str,
                      opts: Optional[ResourceOptions] = None,
                      compartment_id: Optional[str] = None,
                      column_sources: Optional[Sequence[_datasafe.MaskingPolicyColumnSourceArgs]] = None,
                      freeform_tags: Optional[Mapping[str, Any]] = None,
                      defined_tags: Optional[Mapping[str, Any]] = None,
                      description: Optional[str] = None,
                      display_name: Optional[str] = None,
                      add_masking_columns_from_sdm_trigger: Optional[int] = None,
                      is_drop_temp_tables_enabled: Optional[bool] = None,
                      is_redo_logging_enabled: Optional[bool] = None,
                      is_refresh_stats_enabled: Optional[bool] = None,
                      parallel_degree: Optional[str] = None,
                      post_masking_script: Optional[str] = None,
                      pre_masking_script: Optional[str] = None,
                      recompile: Optional[str] = None)
    func NewMaskingPolicy(ctx *Context, name string, args MaskingPolicyArgs, opts ...ResourceOption) (*MaskingPolicy, error)
    public MaskingPolicy(string name, MaskingPolicyArgs args, CustomResourceOptions? opts = null)
    public MaskingPolicy(String name, MaskingPolicyArgs args)
    public MaskingPolicy(String name, MaskingPolicyArgs args, CustomResourceOptions options)
    
    type: oci:DataSafe:MaskingPolicy
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args MaskingPolicyArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args MaskingPolicyArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args MaskingPolicyArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args MaskingPolicyArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args MaskingPolicyArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Example

    The following reference example uses placeholder values for all input properties.

    var maskingPolicyResource = new Oci.DataSafe.MaskingPolicy("maskingPolicyResource", new()
    {
        CompartmentId = "string",
        ColumnSources = new[]
        {
            new Oci.DataSafe.Inputs.MaskingPolicyColumnSourceArgs
            {
                ColumnSource = "string",
                SensitiveDataModelId = "string",
                TargetId = "string",
            },
        },
        FreeformTags = 
        {
            { "string", "any" },
        },
        DefinedTags = 
        {
            { "string", "any" },
        },
        Description = "string",
        DisplayName = "string",
        AddMaskingColumnsFromSdmTrigger = 0,
        IsDropTempTablesEnabled = false,
        IsRedoLoggingEnabled = false,
        IsRefreshStatsEnabled = false,
        ParallelDegree = "string",
        PostMaskingScript = "string",
        PreMaskingScript = "string",
        Recompile = "string",
    });
    
    example, err := DataSafe.NewMaskingPolicy(ctx, "maskingPolicyResource", &DataSafe.MaskingPolicyArgs{
    	CompartmentId: pulumi.String("string"),
    	ColumnSources: datasafe.MaskingPolicyColumnSourceArray{
    		&datasafe.MaskingPolicyColumnSourceArgs{
    			ColumnSource:         pulumi.String("string"),
    			SensitiveDataModelId: pulumi.String("string"),
    			TargetId:             pulumi.String("string"),
    		},
    	},
    	FreeformTags: pulumi.Map{
    		"string": pulumi.Any("any"),
    	},
    	DefinedTags: pulumi.Map{
    		"string": pulumi.Any("any"),
    	},
    	Description:                     pulumi.String("string"),
    	DisplayName:                     pulumi.String("string"),
    	AddMaskingColumnsFromSdmTrigger: pulumi.Int(0),
    	IsDropTempTablesEnabled:         pulumi.Bool(false),
    	IsRedoLoggingEnabled:            pulumi.Bool(false),
    	IsRefreshStatsEnabled:           pulumi.Bool(false),
    	ParallelDegree:                  pulumi.String("string"),
    	PostMaskingScript:               pulumi.String("string"),
    	PreMaskingScript:                pulumi.String("string"),
    	Recompile:                       pulumi.String("string"),
    })
    
    var maskingPolicyResource = new MaskingPolicy("maskingPolicyResource", MaskingPolicyArgs.builder()        
        .compartmentId("string")
        .columnSources(MaskingPolicyColumnSourceArgs.builder()
            .columnSource("string")
            .sensitiveDataModelId("string")
            .targetId("string")
            .build())
        .freeformTags(Map.of("string", "any"))
        .definedTags(Map.of("string", "any"))
        .description("string")
        .displayName("string")
        .addMaskingColumnsFromSdmTrigger(0)
        .isDropTempTablesEnabled(false)
        .isRedoLoggingEnabled(false)
        .isRefreshStatsEnabled(false)
        .parallelDegree("string")
        .postMaskingScript("string")
        .preMaskingScript("string")
        .recompile("string")
        .build());
    
    masking_policy_resource = oci.data_safe.MaskingPolicy("maskingPolicyResource",
        compartment_id="string",
        column_sources=[oci.data_safe.MaskingPolicyColumnSourceArgs(
            column_source="string",
            sensitive_data_model_id="string",
            target_id="string",
        )],
        freeform_tags={
            "string": "any",
        },
        defined_tags={
            "string": "any",
        },
        description="string",
        display_name="string",
        add_masking_columns_from_sdm_trigger=0,
        is_drop_temp_tables_enabled=False,
        is_redo_logging_enabled=False,
        is_refresh_stats_enabled=False,
        parallel_degree="string",
        post_masking_script="string",
        pre_masking_script="string",
        recompile="string")
    
    const maskingPolicyResource = new oci.datasafe.MaskingPolicy("maskingPolicyResource", {
        compartmentId: "string",
        columnSources: [{
            columnSource: "string",
            sensitiveDataModelId: "string",
            targetId: "string",
        }],
        freeformTags: {
            string: "any",
        },
        definedTags: {
            string: "any",
        },
        description: "string",
        displayName: "string",
        addMaskingColumnsFromSdmTrigger: 0,
        isDropTempTablesEnabled: false,
        isRedoLoggingEnabled: false,
        isRefreshStatsEnabled: false,
        parallelDegree: "string",
        postMaskingScript: "string",
        preMaskingScript: "string",
        recompile: "string",
    });
    
    type: oci:DataSafe:MaskingPolicy
    properties:
        addMaskingColumnsFromSdmTrigger: 0
        columnSources:
            - columnSource: string
              sensitiveDataModelId: string
              targetId: string
        compartmentId: string
        definedTags:
            string: any
        description: string
        displayName: string
        freeformTags:
            string: any
        isDropTempTablesEnabled: false
        isRedoLoggingEnabled: false
        isRefreshStatsEnabled: false
        parallelDegree: string
        postMaskingScript: string
        preMaskingScript: string
        recompile: string
    

    MaskingPolicy Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    The MaskingPolicy resource accepts the following input properties:

    ColumnSources List<MaskingPolicyColumnSource>
    (Updatable) The source of masking columns.
    CompartmentId string
    (Updatable) The OCID of the compartment where the masking policy should be created.
    AddMaskingColumnsFromSdmTrigger int

    (Updatable) An optional property when incremented triggers Add Masking Columns From Sdm. Could be set to any integer value.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    DefinedTags Dictionary<string, object>
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags Example: {"Operations.CostCenter": "42"}
    Description string
    (Updatable) The description of the masking policy.
    DisplayName string
    (Updatable) The display name of the masking policy. The name does not have to be unique, and it's changeable.
    FreeformTags Dictionary<string, object>
    (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags Example: {"Department": "Finance"}
    IsDropTempTablesEnabled bool
    (Updatable) Indicates if the temporary tables created during a masking operation should be dropped after masking. It's enabled by default. Set this attribute to false to preserve the temporary tables. Masking creates temporary tables that map the original sensitive data values to mask values. By default, these temporary tables are dropped after masking. But, in some cases, you may want to preserve this information to track how masking changed your data. Note that doing so compromises security. These tables must be dropped before the database is available for unprivileged users.
    IsRedoLoggingEnabled bool
    (Updatable) Indicates if redo logging is enabled during a masking operation. It's disabled by default. Set this attribute to true to enable redo logging. By default, masking disables redo logging and flashback logging to purge any original unmasked data from logs. However, in certain circumstances when you only want to test masking, rollback changes, and retry masking, you could enable logging and use a flashback database to retrieve the original unmasked data after it has been masked.
    IsRefreshStatsEnabled bool
    (Updatable) Indicates if statistics gathering is enabled. It's enabled by default. Set this attribute to false to disable statistics gathering. The masking process gathers statistics on masked database tables after masking completes.
    ParallelDegree string
    (Updatable) Specifies options to enable parallel execution when running data masking. Allowed values are 'NONE' (no parallelism), 'DEFAULT' (the Oracle Database computes the optimum degree of parallelism) or an integer value to be used as the degree of parallelism. Parallel execution helps effectively use multiple CPUs and improve masking performance. Refer to the Oracle Database parallel execution framework when choosing an explicit degree of parallelism.
    PostMaskingScript string
    (Updatable) A post-masking script, which can contain SQL and PL/SQL statements. It's executed after the core masking script generated using the masking policy. It's usually used to perform additional transformation or cleanup work after masking.
    PreMaskingScript string
    (Updatable) A pre-masking script, which can contain SQL and PL/SQL statements. It's executed before the core masking script generated using the masking policy. It's usually used to perform any preparation or prerequisite work before masking data.
    Recompile string
    (Updatable) Specifies how to recompile invalid objects post data masking. Allowed values are 'SERIAL' (recompile in serial), 'PARALLEL' (recompile in parallel), 'NONE' (do not recompile). If it's set to PARALLEL, the value of parallelDegree attribute is used. Use the built-in UTL_RECOMP package to recompile any remaining invalid objects after masking completes.
    ColumnSources []MaskingPolicyColumnSourceArgs
    (Updatable) The source of masking columns.
    CompartmentId string
    (Updatable) The OCID of the compartment where the masking policy should be created.
    AddMaskingColumnsFromSdmTrigger int

    (Updatable) An optional property when incremented triggers Add Masking Columns From Sdm. Could be set to any integer value.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    DefinedTags map[string]interface{}
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags Example: {"Operations.CostCenter": "42"}
    Description string
    (Updatable) The description of the masking policy.
    DisplayName string
    (Updatable) The display name of the masking policy. The name does not have to be unique, and it's changeable.
    FreeformTags map[string]interface{}
    (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags Example: {"Department": "Finance"}
    IsDropTempTablesEnabled bool
    (Updatable) Indicates if the temporary tables created during a masking operation should be dropped after masking. It's enabled by default. Set this attribute to false to preserve the temporary tables. Masking creates temporary tables that map the original sensitive data values to mask values. By default, these temporary tables are dropped after masking. But, in some cases, you may want to preserve this information to track how masking changed your data. Note that doing so compromises security. These tables must be dropped before the database is available for unprivileged users.
    IsRedoLoggingEnabled bool
    (Updatable) Indicates if redo logging is enabled during a masking operation. It's disabled by default. Set this attribute to true to enable redo logging. By default, masking disables redo logging and flashback logging to purge any original unmasked data from logs. However, in certain circumstances when you only want to test masking, rollback changes, and retry masking, you could enable logging and use a flashback database to retrieve the original unmasked data after it has been masked.
    IsRefreshStatsEnabled bool
    (Updatable) Indicates if statistics gathering is enabled. It's enabled by default. Set this attribute to false to disable statistics gathering. The masking process gathers statistics on masked database tables after masking completes.
    ParallelDegree string
    (Updatable) Specifies options to enable parallel execution when running data masking. Allowed values are 'NONE' (no parallelism), 'DEFAULT' (the Oracle Database computes the optimum degree of parallelism) or an integer value to be used as the degree of parallelism. Parallel execution helps effectively use multiple CPUs and improve masking performance. Refer to the Oracle Database parallel execution framework when choosing an explicit degree of parallelism.
    PostMaskingScript string
    (Updatable) A post-masking script, which can contain SQL and PL/SQL statements. It's executed after the core masking script generated using the masking policy. It's usually used to perform additional transformation or cleanup work after masking.
    PreMaskingScript string
    (Updatable) A pre-masking script, which can contain SQL and PL/SQL statements. It's executed before the core masking script generated using the masking policy. It's usually used to perform any preparation or prerequisite work before masking data.
    Recompile string
    (Updatable) Specifies how to recompile invalid objects post data masking. Allowed values are 'SERIAL' (recompile in serial), 'PARALLEL' (recompile in parallel), 'NONE' (do not recompile). If it's set to PARALLEL, the value of parallelDegree attribute is used. Use the built-in UTL_RECOMP package to recompile any remaining invalid objects after masking completes.
    columnSources List<MaskingPolicyColumnSource>
    (Updatable) The source of masking columns.
    compartmentId String
    (Updatable) The OCID of the compartment where the masking policy should be created.
    addMaskingColumnsFromSdmTrigger Integer

    (Updatable) An optional property when incremented triggers Add Masking Columns From Sdm. Could be set to any integer value.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    definedTags Map<String,Object>
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags Example: {"Operations.CostCenter": "42"}
    description String
    (Updatable) The description of the masking policy.
    displayName String
    (Updatable) The display name of the masking policy. The name does not have to be unique, and it's changeable.
    freeformTags Map<String,Object>
    (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags Example: {"Department": "Finance"}
    isDropTempTablesEnabled Boolean
    (Updatable) Indicates if the temporary tables created during a masking operation should be dropped after masking. It's enabled by default. Set this attribute to false to preserve the temporary tables. Masking creates temporary tables that map the original sensitive data values to mask values. By default, these temporary tables are dropped after masking. But, in some cases, you may want to preserve this information to track how masking changed your data. Note that doing so compromises security. These tables must be dropped before the database is available for unprivileged users.
    isRedoLoggingEnabled Boolean
    (Updatable) Indicates if redo logging is enabled during a masking operation. It's disabled by default. Set this attribute to true to enable redo logging. By default, masking disables redo logging and flashback logging to purge any original unmasked data from logs. However, in certain circumstances when you only want to test masking, rollback changes, and retry masking, you could enable logging and use a flashback database to retrieve the original unmasked data after it has been masked.
    isRefreshStatsEnabled Boolean
    (Updatable) Indicates if statistics gathering is enabled. It's enabled by default. Set this attribute to false to disable statistics gathering. The masking process gathers statistics on masked database tables after masking completes.
    parallelDegree String
    (Updatable) Specifies options to enable parallel execution when running data masking. Allowed values are 'NONE' (no parallelism), 'DEFAULT' (the Oracle Database computes the optimum degree of parallelism) or an integer value to be used as the degree of parallelism. Parallel execution helps effectively use multiple CPUs and improve masking performance. Refer to the Oracle Database parallel execution framework when choosing an explicit degree of parallelism.
    postMaskingScript String
    (Updatable) A post-masking script, which can contain SQL and PL/SQL statements. It's executed after the core masking script generated using the masking policy. It's usually used to perform additional transformation or cleanup work after masking.
    preMaskingScript String
    (Updatable) A pre-masking script, which can contain SQL and PL/SQL statements. It's executed before the core masking script generated using the masking policy. It's usually used to perform any preparation or prerequisite work before masking data.
    recompile String
    (Updatable) Specifies how to recompile invalid objects post data masking. Allowed values are 'SERIAL' (recompile in serial), 'PARALLEL' (recompile in parallel), 'NONE' (do not recompile). If it's set to PARALLEL, the value of parallelDegree attribute is used. Use the built-in UTL_RECOMP package to recompile any remaining invalid objects after masking completes.
    columnSources MaskingPolicyColumnSource[]
    (Updatable) The source of masking columns.
    compartmentId string
    (Updatable) The OCID of the compartment where the masking policy should be created.
    addMaskingColumnsFromSdmTrigger number

    (Updatable) An optional property when incremented triggers Add Masking Columns From Sdm. Could be set to any integer value.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    definedTags {[key: string]: any}
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags Example: {"Operations.CostCenter": "42"}
    description string
    (Updatable) The description of the masking policy.
    displayName string
    (Updatable) The display name of the masking policy. The name does not have to be unique, and it's changeable.
    freeformTags {[key: string]: any}
    (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags Example: {"Department": "Finance"}
    isDropTempTablesEnabled boolean
    (Updatable) Indicates if the temporary tables created during a masking operation should be dropped after masking. It's enabled by default. Set this attribute to false to preserve the temporary tables. Masking creates temporary tables that map the original sensitive data values to mask values. By default, these temporary tables are dropped after masking. But, in some cases, you may want to preserve this information to track how masking changed your data. Note that doing so compromises security. These tables must be dropped before the database is available for unprivileged users.
    isRedoLoggingEnabled boolean
    (Updatable) Indicates if redo logging is enabled during a masking operation. It's disabled by default. Set this attribute to true to enable redo logging. By default, masking disables redo logging and flashback logging to purge any original unmasked data from logs. However, in certain circumstances when you only want to test masking, rollback changes, and retry masking, you could enable logging and use a flashback database to retrieve the original unmasked data after it has been masked.
    isRefreshStatsEnabled boolean
    (Updatable) Indicates if statistics gathering is enabled. It's enabled by default. Set this attribute to false to disable statistics gathering. The masking process gathers statistics on masked database tables after masking completes.
    parallelDegree string
    (Updatable) Specifies options to enable parallel execution when running data masking. Allowed values are 'NONE' (no parallelism), 'DEFAULT' (the Oracle Database computes the optimum degree of parallelism) or an integer value to be used as the degree of parallelism. Parallel execution helps effectively use multiple CPUs and improve masking performance. Refer to the Oracle Database parallel execution framework when choosing an explicit degree of parallelism.
    postMaskingScript string
    (Updatable) A post-masking script, which can contain SQL and PL/SQL statements. It's executed after the core masking script generated using the masking policy. It's usually used to perform additional transformation or cleanup work after masking.
    preMaskingScript string
    (Updatable) A pre-masking script, which can contain SQL and PL/SQL statements. It's executed before the core masking script generated using the masking policy. It's usually used to perform any preparation or prerequisite work before masking data.
    recompile string
    (Updatable) Specifies how to recompile invalid objects post data masking. Allowed values are 'SERIAL' (recompile in serial), 'PARALLEL' (recompile in parallel), 'NONE' (do not recompile). If it's set to PARALLEL, the value of parallelDegree attribute is used. Use the built-in UTL_RECOMP package to recompile any remaining invalid objects after masking completes.
    column_sources Sequence[datasafe.MaskingPolicyColumnSourceArgs]
    (Updatable) The source of masking columns.
    compartment_id str
    (Updatable) The OCID of the compartment where the masking policy should be created.
    add_masking_columns_from_sdm_trigger int

    (Updatable) An optional property when incremented triggers Add Masking Columns From Sdm. Could be set to any integer value.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    defined_tags Mapping[str, Any]
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags Example: {"Operations.CostCenter": "42"}
    description str
    (Updatable) The description of the masking policy.
    display_name str
    (Updatable) The display name of the masking policy. The name does not have to be unique, and it's changeable.
    freeform_tags Mapping[str, Any]
    (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags Example: {"Department": "Finance"}
    is_drop_temp_tables_enabled bool
    (Updatable) Indicates if the temporary tables created during a masking operation should be dropped after masking. It's enabled by default. Set this attribute to false to preserve the temporary tables. Masking creates temporary tables that map the original sensitive data values to mask values. By default, these temporary tables are dropped after masking. But, in some cases, you may want to preserve this information to track how masking changed your data. Note that doing so compromises security. These tables must be dropped before the database is available for unprivileged users.
    is_redo_logging_enabled bool
    (Updatable) Indicates if redo logging is enabled during a masking operation. It's disabled by default. Set this attribute to true to enable redo logging. By default, masking disables redo logging and flashback logging to purge any original unmasked data from logs. However, in certain circumstances when you only want to test masking, rollback changes, and retry masking, you could enable logging and use a flashback database to retrieve the original unmasked data after it has been masked.
    is_refresh_stats_enabled bool
    (Updatable) Indicates if statistics gathering is enabled. It's enabled by default. Set this attribute to false to disable statistics gathering. The masking process gathers statistics on masked database tables after masking completes.
    parallel_degree str
    (Updatable) Specifies options to enable parallel execution when running data masking. Allowed values are 'NONE' (no parallelism), 'DEFAULT' (the Oracle Database computes the optimum degree of parallelism) or an integer value to be used as the degree of parallelism. Parallel execution helps effectively use multiple CPUs and improve masking performance. Refer to the Oracle Database parallel execution framework when choosing an explicit degree of parallelism.
    post_masking_script str
    (Updatable) A post-masking script, which can contain SQL and PL/SQL statements. It's executed after the core masking script generated using the masking policy. It's usually used to perform additional transformation or cleanup work after masking.
    pre_masking_script str
    (Updatable) A pre-masking script, which can contain SQL and PL/SQL statements. It's executed before the core masking script generated using the masking policy. It's usually used to perform any preparation or prerequisite work before masking data.
    recompile str
    (Updatable) Specifies how to recompile invalid objects post data masking. Allowed values are 'SERIAL' (recompile in serial), 'PARALLEL' (recompile in parallel), 'NONE' (do not recompile). If it's set to PARALLEL, the value of parallelDegree attribute is used. Use the built-in UTL_RECOMP package to recompile any remaining invalid objects after masking completes.
    columnSources List<Property Map>
    (Updatable) The source of masking columns.
    compartmentId String
    (Updatable) The OCID of the compartment where the masking policy should be created.
    addMaskingColumnsFromSdmTrigger Number

    (Updatable) An optional property when incremented triggers Add Masking Columns From Sdm. Could be set to any integer value.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    definedTags Map<Any>
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags Example: {"Operations.CostCenter": "42"}
    description String
    (Updatable) The description of the masking policy.
    displayName String
    (Updatable) The display name of the masking policy. The name does not have to be unique, and it's changeable.
    freeformTags Map<Any>
    (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags Example: {"Department": "Finance"}
    isDropTempTablesEnabled Boolean
    (Updatable) Indicates if the temporary tables created during a masking operation should be dropped after masking. It's enabled by default. Set this attribute to false to preserve the temporary tables. Masking creates temporary tables that map the original sensitive data values to mask values. By default, these temporary tables are dropped after masking. But, in some cases, you may want to preserve this information to track how masking changed your data. Note that doing so compromises security. These tables must be dropped before the database is available for unprivileged users.
    isRedoLoggingEnabled Boolean
    (Updatable) Indicates if redo logging is enabled during a masking operation. It's disabled by default. Set this attribute to true to enable redo logging. By default, masking disables redo logging and flashback logging to purge any original unmasked data from logs. However, in certain circumstances when you only want to test masking, rollback changes, and retry masking, you could enable logging and use a flashback database to retrieve the original unmasked data after it has been masked.
    isRefreshStatsEnabled Boolean
    (Updatable) Indicates if statistics gathering is enabled. It's enabled by default. Set this attribute to false to disable statistics gathering. The masking process gathers statistics on masked database tables after masking completes.
    parallelDegree String
    (Updatable) Specifies options to enable parallel execution when running data masking. Allowed values are 'NONE' (no parallelism), 'DEFAULT' (the Oracle Database computes the optimum degree of parallelism) or an integer value to be used as the degree of parallelism. Parallel execution helps effectively use multiple CPUs and improve masking performance. Refer to the Oracle Database parallel execution framework when choosing an explicit degree of parallelism.
    postMaskingScript String
    (Updatable) A post-masking script, which can contain SQL and PL/SQL statements. It's executed after the core masking script generated using the masking policy. It's usually used to perform additional transformation or cleanup work after masking.
    preMaskingScript String
    (Updatable) A pre-masking script, which can contain SQL and PL/SQL statements. It's executed before the core masking script generated using the masking policy. It's usually used to perform any preparation or prerequisite work before masking data.
    recompile String
    (Updatable) Specifies how to recompile invalid objects post data masking. Allowed values are 'SERIAL' (recompile in serial), 'PARALLEL' (recompile in parallel), 'NONE' (do not recompile). If it's set to PARALLEL, the value of parallelDegree attribute is used. Use the built-in UTL_RECOMP package to recompile any remaining invalid objects after masking completes.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the MaskingPolicy resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    State string
    The current state of the masking policy.
    TimeCreated string
    The date and time the masking policy was created, in the format defined by RFC3339.
    TimeUpdated string
    The date and time the masking policy was last updated, in the format defined by RFC3339
    Id string
    The provider-assigned unique ID for this managed resource.
    State string
    The current state of the masking policy.
    TimeCreated string
    The date and time the masking policy was created, in the format defined by RFC3339.
    TimeUpdated string
    The date and time the masking policy was last updated, in the format defined by RFC3339
    id String
    The provider-assigned unique ID for this managed resource.
    state String
    The current state of the masking policy.
    timeCreated String
    The date and time the masking policy was created, in the format defined by RFC3339.
    timeUpdated String
    The date and time the masking policy was last updated, in the format defined by RFC3339
    id string
    The provider-assigned unique ID for this managed resource.
    state string
    The current state of the masking policy.
    timeCreated string
    The date and time the masking policy was created, in the format defined by RFC3339.
    timeUpdated string
    The date and time the masking policy was last updated, in the format defined by RFC3339
    id str
    The provider-assigned unique ID for this managed resource.
    state str
    The current state of the masking policy.
    time_created str
    The date and time the masking policy was created, in the format defined by RFC3339.
    time_updated str
    The date and time the masking policy was last updated, in the format defined by RFC3339
    id String
    The provider-assigned unique ID for this managed resource.
    state String
    The current state of the masking policy.
    timeCreated String
    The date and time the masking policy was created, in the format defined by RFC3339.
    timeUpdated String
    The date and time the masking policy was last updated, in the format defined by RFC3339

    Look up Existing MaskingPolicy Resource

    Get an existing MaskingPolicy resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: MaskingPolicyState, opts?: CustomResourceOptions): MaskingPolicy
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            add_masking_columns_from_sdm_trigger: Optional[int] = None,
            column_sources: Optional[Sequence[_datasafe.MaskingPolicyColumnSourceArgs]] = None,
            compartment_id: Optional[str] = None,
            defined_tags: Optional[Mapping[str, Any]] = None,
            description: Optional[str] = None,
            display_name: Optional[str] = None,
            freeform_tags: Optional[Mapping[str, Any]] = None,
            is_drop_temp_tables_enabled: Optional[bool] = None,
            is_redo_logging_enabled: Optional[bool] = None,
            is_refresh_stats_enabled: Optional[bool] = None,
            parallel_degree: Optional[str] = None,
            post_masking_script: Optional[str] = None,
            pre_masking_script: Optional[str] = None,
            recompile: Optional[str] = None,
            state: Optional[str] = None,
            time_created: Optional[str] = None,
            time_updated: Optional[str] = None) -> MaskingPolicy
    func GetMaskingPolicy(ctx *Context, name string, id IDInput, state *MaskingPolicyState, opts ...ResourceOption) (*MaskingPolicy, error)
    public static MaskingPolicy Get(string name, Input<string> id, MaskingPolicyState? state, CustomResourceOptions? opts = null)
    public static MaskingPolicy get(String name, Output<String> id, MaskingPolicyState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    AddMaskingColumnsFromSdmTrigger int

    (Updatable) An optional property when incremented triggers Add Masking Columns From Sdm. Could be set to any integer value.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    ColumnSources List<MaskingPolicyColumnSource>
    (Updatable) The source of masking columns.
    CompartmentId string
    (Updatable) The OCID of the compartment where the masking policy should be created.
    DefinedTags Dictionary<string, object>
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags Example: {"Operations.CostCenter": "42"}
    Description string
    (Updatable) The description of the masking policy.
    DisplayName string
    (Updatable) The display name of the masking policy. The name does not have to be unique, and it's changeable.
    FreeformTags Dictionary<string, object>
    (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags Example: {"Department": "Finance"}
    IsDropTempTablesEnabled bool
    (Updatable) Indicates if the temporary tables created during a masking operation should be dropped after masking. It's enabled by default. Set this attribute to false to preserve the temporary tables. Masking creates temporary tables that map the original sensitive data values to mask values. By default, these temporary tables are dropped after masking. But, in some cases, you may want to preserve this information to track how masking changed your data. Note that doing so compromises security. These tables must be dropped before the database is available for unprivileged users.
    IsRedoLoggingEnabled bool
    (Updatable) Indicates if redo logging is enabled during a masking operation. It's disabled by default. Set this attribute to true to enable redo logging. By default, masking disables redo logging and flashback logging to purge any original unmasked data from logs. However, in certain circumstances when you only want to test masking, rollback changes, and retry masking, you could enable logging and use a flashback database to retrieve the original unmasked data after it has been masked.
    IsRefreshStatsEnabled bool
    (Updatable) Indicates if statistics gathering is enabled. It's enabled by default. Set this attribute to false to disable statistics gathering. The masking process gathers statistics on masked database tables after masking completes.
    ParallelDegree string
    (Updatable) Specifies options to enable parallel execution when running data masking. Allowed values are 'NONE' (no parallelism), 'DEFAULT' (the Oracle Database computes the optimum degree of parallelism) or an integer value to be used as the degree of parallelism. Parallel execution helps effectively use multiple CPUs and improve masking performance. Refer to the Oracle Database parallel execution framework when choosing an explicit degree of parallelism.
    PostMaskingScript string
    (Updatable) A post-masking script, which can contain SQL and PL/SQL statements. It's executed after the core masking script generated using the masking policy. It's usually used to perform additional transformation or cleanup work after masking.
    PreMaskingScript string
    (Updatable) A pre-masking script, which can contain SQL and PL/SQL statements. It's executed before the core masking script generated using the masking policy. It's usually used to perform any preparation or prerequisite work before masking data.
    Recompile string
    (Updatable) Specifies how to recompile invalid objects post data masking. Allowed values are 'SERIAL' (recompile in serial), 'PARALLEL' (recompile in parallel), 'NONE' (do not recompile). If it's set to PARALLEL, the value of parallelDegree attribute is used. Use the built-in UTL_RECOMP package to recompile any remaining invalid objects after masking completes.
    State string
    The current state of the masking policy.
    TimeCreated string
    The date and time the masking policy was created, in the format defined by RFC3339.
    TimeUpdated string
    The date and time the masking policy was last updated, in the format defined by RFC3339
    AddMaskingColumnsFromSdmTrigger int

    (Updatable) An optional property when incremented triggers Add Masking Columns From Sdm. Could be set to any integer value.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    ColumnSources []MaskingPolicyColumnSourceArgs
    (Updatable) The source of masking columns.
    CompartmentId string
    (Updatable) The OCID of the compartment where the masking policy should be created.
    DefinedTags map[string]interface{}
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags Example: {"Operations.CostCenter": "42"}
    Description string
    (Updatable) The description of the masking policy.
    DisplayName string
    (Updatable) The display name of the masking policy. The name does not have to be unique, and it's changeable.
    FreeformTags map[string]interface{}
    (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags Example: {"Department": "Finance"}
    IsDropTempTablesEnabled bool
    (Updatable) Indicates if the temporary tables created during a masking operation should be dropped after masking. It's enabled by default. Set this attribute to false to preserve the temporary tables. Masking creates temporary tables that map the original sensitive data values to mask values. By default, these temporary tables are dropped after masking. But, in some cases, you may want to preserve this information to track how masking changed your data. Note that doing so compromises security. These tables must be dropped before the database is available for unprivileged users.
    IsRedoLoggingEnabled bool
    (Updatable) Indicates if redo logging is enabled during a masking operation. It's disabled by default. Set this attribute to true to enable redo logging. By default, masking disables redo logging and flashback logging to purge any original unmasked data from logs. However, in certain circumstances when you only want to test masking, rollback changes, and retry masking, you could enable logging and use a flashback database to retrieve the original unmasked data after it has been masked.
    IsRefreshStatsEnabled bool
    (Updatable) Indicates if statistics gathering is enabled. It's enabled by default. Set this attribute to false to disable statistics gathering. The masking process gathers statistics on masked database tables after masking completes.
    ParallelDegree string
    (Updatable) Specifies options to enable parallel execution when running data masking. Allowed values are 'NONE' (no parallelism), 'DEFAULT' (the Oracle Database computes the optimum degree of parallelism) or an integer value to be used as the degree of parallelism. Parallel execution helps effectively use multiple CPUs and improve masking performance. Refer to the Oracle Database parallel execution framework when choosing an explicit degree of parallelism.
    PostMaskingScript string
    (Updatable) A post-masking script, which can contain SQL and PL/SQL statements. It's executed after the core masking script generated using the masking policy. It's usually used to perform additional transformation or cleanup work after masking.
    PreMaskingScript string
    (Updatable) A pre-masking script, which can contain SQL and PL/SQL statements. It's executed before the core masking script generated using the masking policy. It's usually used to perform any preparation or prerequisite work before masking data.
    Recompile string
    (Updatable) Specifies how to recompile invalid objects post data masking. Allowed values are 'SERIAL' (recompile in serial), 'PARALLEL' (recompile in parallel), 'NONE' (do not recompile). If it's set to PARALLEL, the value of parallelDegree attribute is used. Use the built-in UTL_RECOMP package to recompile any remaining invalid objects after masking completes.
    State string
    The current state of the masking policy.
    TimeCreated string
    The date and time the masking policy was created, in the format defined by RFC3339.
    TimeUpdated string
    The date and time the masking policy was last updated, in the format defined by RFC3339
    addMaskingColumnsFromSdmTrigger Integer

    (Updatable) An optional property when incremented triggers Add Masking Columns From Sdm. Could be set to any integer value.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    columnSources List<MaskingPolicyColumnSource>
    (Updatable) The source of masking columns.
    compartmentId String
    (Updatable) The OCID of the compartment where the masking policy should be created.
    definedTags Map<String,Object>
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags Example: {"Operations.CostCenter": "42"}
    description String
    (Updatable) The description of the masking policy.
    displayName String
    (Updatable) The display name of the masking policy. The name does not have to be unique, and it's changeable.
    freeformTags Map<String,Object>
    (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags Example: {"Department": "Finance"}
    isDropTempTablesEnabled Boolean
    (Updatable) Indicates if the temporary tables created during a masking operation should be dropped after masking. It's enabled by default. Set this attribute to false to preserve the temporary tables. Masking creates temporary tables that map the original sensitive data values to mask values. By default, these temporary tables are dropped after masking. But, in some cases, you may want to preserve this information to track how masking changed your data. Note that doing so compromises security. These tables must be dropped before the database is available for unprivileged users.
    isRedoLoggingEnabled Boolean
    (Updatable) Indicates if redo logging is enabled during a masking operation. It's disabled by default. Set this attribute to true to enable redo logging. By default, masking disables redo logging and flashback logging to purge any original unmasked data from logs. However, in certain circumstances when you only want to test masking, rollback changes, and retry masking, you could enable logging and use a flashback database to retrieve the original unmasked data after it has been masked.
    isRefreshStatsEnabled Boolean
    (Updatable) Indicates if statistics gathering is enabled. It's enabled by default. Set this attribute to false to disable statistics gathering. The masking process gathers statistics on masked database tables after masking completes.
    parallelDegree String
    (Updatable) Specifies options to enable parallel execution when running data masking. Allowed values are 'NONE' (no parallelism), 'DEFAULT' (the Oracle Database computes the optimum degree of parallelism) or an integer value to be used as the degree of parallelism. Parallel execution helps effectively use multiple CPUs and improve masking performance. Refer to the Oracle Database parallel execution framework when choosing an explicit degree of parallelism.
    postMaskingScript String
    (Updatable) A post-masking script, which can contain SQL and PL/SQL statements. It's executed after the core masking script generated using the masking policy. It's usually used to perform additional transformation or cleanup work after masking.
    preMaskingScript String
    (Updatable) A pre-masking script, which can contain SQL and PL/SQL statements. It's executed before the core masking script generated using the masking policy. It's usually used to perform any preparation or prerequisite work before masking data.
    recompile String
    (Updatable) Specifies how to recompile invalid objects post data masking. Allowed values are 'SERIAL' (recompile in serial), 'PARALLEL' (recompile in parallel), 'NONE' (do not recompile). If it's set to PARALLEL, the value of parallelDegree attribute is used. Use the built-in UTL_RECOMP package to recompile any remaining invalid objects after masking completes.
    state String
    The current state of the masking policy.
    timeCreated String
    The date and time the masking policy was created, in the format defined by RFC3339.
    timeUpdated String
    The date and time the masking policy was last updated, in the format defined by RFC3339
    addMaskingColumnsFromSdmTrigger number

    (Updatable) An optional property when incremented triggers Add Masking Columns From Sdm. Could be set to any integer value.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    columnSources MaskingPolicyColumnSource[]
    (Updatable) The source of masking columns.
    compartmentId string
    (Updatable) The OCID of the compartment where the masking policy should be created.
    definedTags {[key: string]: any}
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags Example: {"Operations.CostCenter": "42"}
    description string
    (Updatable) The description of the masking policy.
    displayName string
    (Updatable) The display name of the masking policy. The name does not have to be unique, and it's changeable.
    freeformTags {[key: string]: any}
    (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags Example: {"Department": "Finance"}
    isDropTempTablesEnabled boolean
    (Updatable) Indicates if the temporary tables created during a masking operation should be dropped after masking. It's enabled by default. Set this attribute to false to preserve the temporary tables. Masking creates temporary tables that map the original sensitive data values to mask values. By default, these temporary tables are dropped after masking. But, in some cases, you may want to preserve this information to track how masking changed your data. Note that doing so compromises security. These tables must be dropped before the database is available for unprivileged users.
    isRedoLoggingEnabled boolean
    (Updatable) Indicates if redo logging is enabled during a masking operation. It's disabled by default. Set this attribute to true to enable redo logging. By default, masking disables redo logging and flashback logging to purge any original unmasked data from logs. However, in certain circumstances when you only want to test masking, rollback changes, and retry masking, you could enable logging and use a flashback database to retrieve the original unmasked data after it has been masked.
    isRefreshStatsEnabled boolean
    (Updatable) Indicates if statistics gathering is enabled. It's enabled by default. Set this attribute to false to disable statistics gathering. The masking process gathers statistics on masked database tables after masking completes.
    parallelDegree string
    (Updatable) Specifies options to enable parallel execution when running data masking. Allowed values are 'NONE' (no parallelism), 'DEFAULT' (the Oracle Database computes the optimum degree of parallelism) or an integer value to be used as the degree of parallelism. Parallel execution helps effectively use multiple CPUs and improve masking performance. Refer to the Oracle Database parallel execution framework when choosing an explicit degree of parallelism.
    postMaskingScript string
    (Updatable) A post-masking script, which can contain SQL and PL/SQL statements. It's executed after the core masking script generated using the masking policy. It's usually used to perform additional transformation or cleanup work after masking.
    preMaskingScript string
    (Updatable) A pre-masking script, which can contain SQL and PL/SQL statements. It's executed before the core masking script generated using the masking policy. It's usually used to perform any preparation or prerequisite work before masking data.
    recompile string
    (Updatable) Specifies how to recompile invalid objects post data masking. Allowed values are 'SERIAL' (recompile in serial), 'PARALLEL' (recompile in parallel), 'NONE' (do not recompile). If it's set to PARALLEL, the value of parallelDegree attribute is used. Use the built-in UTL_RECOMP package to recompile any remaining invalid objects after masking completes.
    state string
    The current state of the masking policy.
    timeCreated string
    The date and time the masking policy was created, in the format defined by RFC3339.
    timeUpdated string
    The date and time the masking policy was last updated, in the format defined by RFC3339
    add_masking_columns_from_sdm_trigger int

    (Updatable) An optional property when incremented triggers Add Masking Columns From Sdm. Could be set to any integer value.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    column_sources Sequence[datasafe.MaskingPolicyColumnSourceArgs]
    (Updatable) The source of masking columns.
    compartment_id str
    (Updatable) The OCID of the compartment where the masking policy should be created.
    defined_tags Mapping[str, Any]
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags Example: {"Operations.CostCenter": "42"}
    description str
    (Updatable) The description of the masking policy.
    display_name str
    (Updatable) The display name of the masking policy. The name does not have to be unique, and it's changeable.
    freeform_tags Mapping[str, Any]
    (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags Example: {"Department": "Finance"}
    is_drop_temp_tables_enabled bool
    (Updatable) Indicates if the temporary tables created during a masking operation should be dropped after masking. It's enabled by default. Set this attribute to false to preserve the temporary tables. Masking creates temporary tables that map the original sensitive data values to mask values. By default, these temporary tables are dropped after masking. But, in some cases, you may want to preserve this information to track how masking changed your data. Note that doing so compromises security. These tables must be dropped before the database is available for unprivileged users.
    is_redo_logging_enabled bool
    (Updatable) Indicates if redo logging is enabled during a masking operation. It's disabled by default. Set this attribute to true to enable redo logging. By default, masking disables redo logging and flashback logging to purge any original unmasked data from logs. However, in certain circumstances when you only want to test masking, rollback changes, and retry masking, you could enable logging and use a flashback database to retrieve the original unmasked data after it has been masked.
    is_refresh_stats_enabled bool
    (Updatable) Indicates if statistics gathering is enabled. It's enabled by default. Set this attribute to false to disable statistics gathering. The masking process gathers statistics on masked database tables after masking completes.
    parallel_degree str
    (Updatable) Specifies options to enable parallel execution when running data masking. Allowed values are 'NONE' (no parallelism), 'DEFAULT' (the Oracle Database computes the optimum degree of parallelism) or an integer value to be used as the degree of parallelism. Parallel execution helps effectively use multiple CPUs and improve masking performance. Refer to the Oracle Database parallel execution framework when choosing an explicit degree of parallelism.
    post_masking_script str
    (Updatable) A post-masking script, which can contain SQL and PL/SQL statements. It's executed after the core masking script generated using the masking policy. It's usually used to perform additional transformation or cleanup work after masking.
    pre_masking_script str
    (Updatable) A pre-masking script, which can contain SQL and PL/SQL statements. It's executed before the core masking script generated using the masking policy. It's usually used to perform any preparation or prerequisite work before masking data.
    recompile str
    (Updatable) Specifies how to recompile invalid objects post data masking. Allowed values are 'SERIAL' (recompile in serial), 'PARALLEL' (recompile in parallel), 'NONE' (do not recompile). If it's set to PARALLEL, the value of parallelDegree attribute is used. Use the built-in UTL_RECOMP package to recompile any remaining invalid objects after masking completes.
    state str
    The current state of the masking policy.
    time_created str
    The date and time the masking policy was created, in the format defined by RFC3339.
    time_updated str
    The date and time the masking policy was last updated, in the format defined by RFC3339
    addMaskingColumnsFromSdmTrigger Number

    (Updatable) An optional property when incremented triggers Add Masking Columns From Sdm. Could be set to any integer value.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    columnSources List<Property Map>
    (Updatable) The source of masking columns.
    compartmentId String
    (Updatable) The OCID of the compartment where the masking policy should be created.
    definedTags Map<Any>
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags Example: {"Operations.CostCenter": "42"}
    description String
    (Updatable) The description of the masking policy.
    displayName String
    (Updatable) The display name of the masking policy. The name does not have to be unique, and it's changeable.
    freeformTags Map<Any>
    (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags Example: {"Department": "Finance"}
    isDropTempTablesEnabled Boolean
    (Updatable) Indicates if the temporary tables created during a masking operation should be dropped after masking. It's enabled by default. Set this attribute to false to preserve the temporary tables. Masking creates temporary tables that map the original sensitive data values to mask values. By default, these temporary tables are dropped after masking. But, in some cases, you may want to preserve this information to track how masking changed your data. Note that doing so compromises security. These tables must be dropped before the database is available for unprivileged users.
    isRedoLoggingEnabled Boolean
    (Updatable) Indicates if redo logging is enabled during a masking operation. It's disabled by default. Set this attribute to true to enable redo logging. By default, masking disables redo logging and flashback logging to purge any original unmasked data from logs. However, in certain circumstances when you only want to test masking, rollback changes, and retry masking, you could enable logging and use a flashback database to retrieve the original unmasked data after it has been masked.
    isRefreshStatsEnabled Boolean
    (Updatable) Indicates if statistics gathering is enabled. It's enabled by default. Set this attribute to false to disable statistics gathering. The masking process gathers statistics on masked database tables after masking completes.
    parallelDegree String
    (Updatable) Specifies options to enable parallel execution when running data masking. Allowed values are 'NONE' (no parallelism), 'DEFAULT' (the Oracle Database computes the optimum degree of parallelism) or an integer value to be used as the degree of parallelism. Parallel execution helps effectively use multiple CPUs and improve masking performance. Refer to the Oracle Database parallel execution framework when choosing an explicit degree of parallelism.
    postMaskingScript String
    (Updatable) A post-masking script, which can contain SQL and PL/SQL statements. It's executed after the core masking script generated using the masking policy. It's usually used to perform additional transformation or cleanup work after masking.
    preMaskingScript String
    (Updatable) A pre-masking script, which can contain SQL and PL/SQL statements. It's executed before the core masking script generated using the masking policy. It's usually used to perform any preparation or prerequisite work before masking data.
    recompile String
    (Updatable) Specifies how to recompile invalid objects post data masking. Allowed values are 'SERIAL' (recompile in serial), 'PARALLEL' (recompile in parallel), 'NONE' (do not recompile). If it's set to PARALLEL, the value of parallelDegree attribute is used. Use the built-in UTL_RECOMP package to recompile any remaining invalid objects after masking completes.
    state String
    The current state of the masking policy.
    timeCreated String
    The date and time the masking policy was created, in the format defined by RFC3339.
    timeUpdated String
    The date and time the masking policy was last updated, in the format defined by RFC3339

    Supporting Types

    MaskingPolicyColumnSource, MaskingPolicyColumnSourceArgs

    ColumnSource string
    (Updatable) The source of masking columns.
    SensitiveDataModelId string
    (Updatable) The OCID of the sensitive data model to be associated as the column source with the masking policy.
    TargetId string
    (Updatable) The OCID of the target database to be associated as the column source with the masking policy.
    ColumnSource string
    (Updatable) The source of masking columns.
    SensitiveDataModelId string
    (Updatable) The OCID of the sensitive data model to be associated as the column source with the masking policy.
    TargetId string
    (Updatable) The OCID of the target database to be associated as the column source with the masking policy.
    columnSource String
    (Updatable) The source of masking columns.
    sensitiveDataModelId String
    (Updatable) The OCID of the sensitive data model to be associated as the column source with the masking policy.
    targetId String
    (Updatable) The OCID of the target database to be associated as the column source with the masking policy.
    columnSource string
    (Updatable) The source of masking columns.
    sensitiveDataModelId string
    (Updatable) The OCID of the sensitive data model to be associated as the column source with the masking policy.
    targetId string
    (Updatable) The OCID of the target database to be associated as the column source with the masking policy.
    column_source str
    (Updatable) The source of masking columns.
    sensitive_data_model_id str
    (Updatable) The OCID of the sensitive data model to be associated as the column source with the masking policy.
    target_id str
    (Updatable) The OCID of the target database to be associated as the column source with the masking policy.
    columnSource String
    (Updatable) The source of masking columns.
    sensitiveDataModelId String
    (Updatable) The OCID of the sensitive data model to be associated as the column source with the masking policy.
    targetId String
    (Updatable) The OCID of the target database to be associated as the column source with the masking policy.

    Import

    MaskingPolicies can be imported using the id, e.g.

    $ pulumi import oci:DataSafe/maskingPolicy:MaskingPolicy test_masking_policy "id"
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    oci pulumi/pulumi-oci
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the oci Terraform Provider.
    oci logo
    Oracle Cloud Infrastructure v1.32.0 published on Thursday, Apr 18, 2024 by Pulumi