oci_cloud_guard_data_mask_rule

This resource provides the Data Mask Rule resource in Oracle Cloud Infrastructure Cloud Guard service.

Creates a new DataMaskRule object 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:

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