oci_cloud_guard_data_mask_rule
This resource provides the Data Mask Rule resource in Oracle Cloud Infrastructure Cloud Guard service. Api doc link for the resource: https://docs.oracle.com/iaas/api/#/en/cloud-guard/latest/DataMaskRule
Example terraform configs related to the resource : https://github.com/oracle/terraform-provider-oci/tree/master/examples/certificatesguard
Creates a new DataMaskRule resource definition.
Example Usage
resource "oci_cloud_guard_data_mask_rule" "test_data_mask_rule" {
#Required
compartment_id = var.compartment_id
data_mask_categories = var.data_mask_rule_data_mask_categories
display_name = var.data_mask_rule_display_name
iam_group_id = oci_identity_group.test_group.id
target_selected {
#Required
kind = var.data_mask_rule_target_selected_kind
#Optional
values = var.data_mask_rule_target_selected_values
}
#Optional
data_mask_rule_status = var.data_mask_rule_data_mask_rule_status
defined_tags = {"foo-namespace.bar-key"= "value"}
description = var.data_mask_rule_description
freeform_tags = {"bar-key"= "value"}
state = var.data_mask_rule_state
}
Argument Reference
The following arguments are supported:
compartment_id- (Required) (Updatable) Compartment OCID where the resource is createddata_mask_categories- (Required) (Updatable) Data mask rule categoriesdata_mask_rule_status- (Optional) (Updatable) The current status of the data mask ruledefined_tags- (Optional) (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:{"foo-namespace.bar-key": "value"}description- (Optional) The data mask rule description Avoid entering confidential information.display_name- (Required) (Updatable) Data mask rule display nameAvoid entering confidential information.
freeform_tags- (Optional) (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:{"bar-key": "value"}Avoid entering confidential information.
iam_group_id- (Required) (Updatable) IAM group ID associated with the data mask rulestate- (Optional) The current lifecycle state of the data mask ruletarget_selected- (Required) (Updatable) Specification of how targets are to be selected (select ALL, or select by TargetResourceType or TargetId).kind- (Required) (Updatable) Kind of target selection to be usedvalues- (Applicable when kind=TARGETIDS | TARGETTYPES) (Updatable) Types of targets
** 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:
compartment_id- Compartment OCID where the resource is createddata_mask_categories- List of data mask rule categoriesdata_mask_rule_status- The current status of the data mask ruledefined_tags- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:{"foo-namespace.bar-key": "value"}description- The data mask rule descriptiondisplay_name- Data mask rule display namefreeform_tags- Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:{"bar-key": "value"}Avoid entering confidential information.
iam_group_id- IAM Group ID associated with the data mask ruleid- Unique identifier that can’t be changed after creationlifecyle_details- Additional details on the substate of the lifecycle state [DEPRECATE]state- The current lifecycle state of the data mask rulesystem_tags- System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. System tags can be viewed by users, but can only be created by the system. Example:{"orcl-cloud.free-tier-retained": "true"}target_selected- Specification of how targets are to be selected (select ALL, or select by TargetResourceType or TargetId).kind- Kind of target selection to be usedvalues- Types of targets
time_created- The date and time the target was created. Format defined by RFC3339.time_updated- The date and time the target was updated. Format defined by RFC3339.
Timeouts
The timeouts block allows you to specify timeouts for certain operations:
* create - (Defaults to 20 minutes), when creating the Data Mask Rule
* update - (Defaults to 20 minutes), when updating the Data Mask Rule
* delete - (Defaults to 20 minutes), when destroying the Data Mask Rule
Import
DataMaskRules can be imported using the id, e.g.
$ terraform import oci_cloud_guard_data_mask_rule.test_data_mask_rule "id"