oci_identity_domains_rule

This resource provides the Rule resource in Oracle Cloud Infrastructure Identity Domains service.

Create a Rule

Example Usage

resource "oci_identity_domains_rule" "test_rule" {
	#Required
	condition = var.rule_condition
	idcs_endpoint = data.oci_identity_domain.test_domain.url
	name = var.rule_name
	policy_type {
		#Required
		value = "SignOn"
	}
	return {
		#Required
		name = var.rule_return_name
		value = var.rule_return_value

		#Optional
		return_groovy = var.rule_return_return_groovy
	}
	schemas = ["urn:ietf:params:scim:schemas:oracle:idcs:Rule"]

	#Optional
	active = var.rule_active
	attribute_sets = ["all"]
	attributes = ""
	authorization = var.rule_authorization
	condition_group {
		#Required
		type = "Condition"

		#Optional
		value = var.rule_condition_group_value
	}
	description = var.rule_description
	external_id = "externalId"
	locked = var.rule_locked
	ocid = var.rule_ocid
	resource_type_schema_version = var.rule_resource_type_schema_version
	rule_groovy = var.rule_rule_groovy
	tags {
		#Required
		key = var.rule_tags_key
		value = var.rule_tags_value
	}
}

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

Import

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

$ terraform import oci_identity_domains_rule.test_rule "idcsEndpoint/{idcsEndpoint}/rules/{ruleId}"