oci_data_safe_library_masking_format

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

Creates a new library masking format. A masking format can have one or more format entries. The combined output of all the format entries is used for masking. It provides the flexibility to define a masking format that can generate different parts of a data value separately and then combine them to get the final data value for masking. Note that you cannot define masking condition in a library masking format.

Example Usage

resource "oci_data_safe_library_masking_format" "test_library_masking_format" {
	#Required
	compartment_id = var.compartment_id
	format_entries {
		#Required
		type = var.library_masking_format_format_entries_type

		#Optional
		column_name = var.library_masking_format_format_entries_column_name
		description = var.library_masking_format_format_entries_description
		end_date = var.library_masking_format_format_entries_end_date
		end_length = var.library_masking_format_format_entries_end_length
		end_value = var.library_masking_format_format_entries_end_value
		fixed_number = var.library_masking_format_format_entries_fixed_number
		fixed_string = var.library_masking_format_format_entries_fixed_string
		grouping_columns = var.library_masking_format_format_entries_grouping_columns
		length = var.library_masking_format_format_entries_length
		library_masking_format_id = oci_data_safe_library_masking_format.test_library_masking_format.id
		pattern = var.library_masking_format_format_entries_pattern
		post_processing_function = var.library_masking_format_format_entries_post_processing_function
		random_list = var.library_masking_format_format_entries_random_list
		regular_expression = var.library_masking_format_format_entries_regular_expression
		replace_with = var.library_masking_format_format_entries_replace_with
		schema_name = var.library_masking_format_format_entries_schema_name
		sql_expression = var.library_masking_format_format_entries_sql_expression
		start_date = var.library_masking_format_format_entries_start_date
		start_length = var.library_masking_format_format_entries_start_length
		start_position = var.library_masking_format_format_entries_start_position
		start_value = var.library_masking_format_format_entries_start_value
		table_name = oci_nosql_table.test_table.name
		user_defined_function = var.library_masking_format_format_entries_user_defined_function
	}

	#Optional
	defined_tags = {"Operations.CostCenter"= "42"}
	description = var.library_masking_format_description
	display_name = var.library_masking_format_display_name
	freeform_tags = {"Department"= "Finance"}
	sensitive_type_ids = var.library_masking_format_sensitive_type_ids
}

Argument Reference

The following arguments are supported:

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

Attributes Reference

The following attributes are exported:

Timeouts

The timeouts block allows you to specify timeouts for certain operations: * create - (Defaults to 20 minutes), when creating the Library Masking Format * update - (Defaults to 20 minutes), when updating the Library Masking Format * delete - (Defaults to 20 minutes), when destroying the Library Masking Format

Import

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

$ terraform import oci_data_safe_library_masking_format.test_library_masking_format "id"