oci_data_safe_target_database_group

This resource provides the Target Database Group resource in Oracle Cloud Infrastructure Data Safe service.

Creates a new target database group.

Example Usage

resource "oci_data_safe_target_database_group" "test_target_database_group" {
	#Required
	compartment_id = var.compartment_id
	display_name = var.target_database_group_display_name
	matching_criteria {
		#Required
		include {

			#Optional
			compartments {
				#Required
				id = var.target_database_group_matching_criteria_include_compartments_id

				#Optional
				is_include_subtree = var.target_database_group_matching_criteria_include_compartments_is_include_subtree
			}
			defined_tags = {"Operations.CostCenter"= "42"}
			freeform_tags = {"Department"= "Finance"}
			target_database_ids = var.target_database_group_matching_criteria_include_target_database_ids
		}

		#Optional
		exclude {
			#Required
			target_database_ids = var.target_database_group_matching_criteria_exclude_target_database_ids
		}
	}

	#Optional
	defined_tags = {"Operations.CostCenter"= "42"}
	description = var.target_database_group_description
	freeform_tags = {"Department"= "Finance"}
}

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 Target Database Group * update - (Defaults to 20 minutes), when updating the Target Database Group * delete - (Defaults to 20 minutes), when destroying the Target Database Group

Import

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

$ terraform import oci_data_safe_target_database_group.test_target_database_group "id"