oci_identity_domains_policy

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

Create a Policy

Example Usage

resource "oci_identity_domains_policy" "test_policy" {
	#Required
	idcs_endpoint = data.oci_identity_domain.test_domain.url
	name = var.policy_name
	policy_type {
		#Required
		value = "IdentityProvider"
	}
	schemas = ["urn:ietf:params:scim:schemas:oracle:idcs:Policy"]

	#Optional
	active = var.policy_active
	attribute_sets = ["all"]
	attributes = ""
	authorization = var.policy_authorization
	description = var.policy_description
	external_id = "externalId"
	ocid = var.policy_ocid
	policy_groovy = var.policy_policy_groovy
	resource_type_schema_version = var.policy_resource_type_schema_version
	rules {
		#Required
		sequence = var.policy_rules_sequence
		value = "TODO"
	}
	tags {
		#Required
		key = var.policy_tags_key
		value = var.policy_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 Policy * update - (Defaults to 20 minutes), when updating the Policy * delete - (Defaults to 20 minutes), when destroying the Policy

Import

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

$ terraform import oci_identity_domains_policy.test_policy "idcsEndpoint/{idcsEndpoint}/policies/{policyId}"