oci_data_safe_sensitive_data_model

This resource provides the Sensitive Data Model resource in Oracle Cloud Infrastructure Data Safe service.

Creates a new sensitive data model. If schemas and sensitive types are provided, it automatically runs data discovery and adds the discovered columns to the sensitive data model. Otherwise, it creates an empty sensitive data model that can be updated later.

Example Usage

resource "oci_data_safe_sensitive_data_model" "test_sensitive_data_model" {
	#Required
	compartment_id = var.compartment_id
	target_id = oci_cloud_guard_target.test_target.id

	#Optional
	app_suite_name = var.sensitive_data_model_app_suite_name
	defined_tags = {"Operations.CostCenter"= "42"}
	description = var.sensitive_data_model_description
	display_name = var.sensitive_data_model_display_name
	freeform_tags = {"Department"= "Finance"}
	is_app_defined_relation_discovery_enabled = var.sensitive_data_model_is_app_defined_relation_discovery_enabled
	is_include_all_schemas = var.sensitive_data_model_is_include_all_schemas
	is_include_all_sensitive_types = var.sensitive_data_model_is_include_all_sensitive_types
	is_sample_data_collection_enabled = var.sensitive_data_model_is_sample_data_collection_enabled
	schemas_for_discovery = var.sensitive_data_model_schemas_for_discovery
	sensitive_type_ids_for_discovery = var.sensitive_data_model_sensitive_type_ids_for_discovery
	tables_for_discovery {
		#Required
		schema_name = var.sensitive_data_model_tables_for_discovery_schema_name

		#Optional
		table_names = var.sensitive_data_model_tables_for_discovery_table_names
	}
}

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 Sensitive Data Model * update - (Defaults to 20 minutes), when updating the Sensitive Data Model * delete - (Defaults to 20 minutes), when destroying the Sensitive Data Model

Import

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

$ terraform import oci_data_safe_sensitive_data_model.test_sensitive_data_model "id"