oci_delegate_access_control_delegation_control

This resource provides the Delegation Control resource in Oracle Cloud Infrastructure Delegate Access Control service.

Creates a Delegation Control.

Example Usage

resource "oci_delegate_access_control_delegation_control" "test_delegation_control" {
	#Required
	compartment_id = var.compartment_id
	delegation_subscription_ids = var.delegation_control_delegation_subscription_ids
	display_name = var.delegation_control_display_name
	notification_message_format = var.delegation_control_notification_message_format
	notification_topic_id = oci_ons_notification_topic.test_notification_topic.id
	resource_ids = var.delegation_control_resource_ids
	resource_type = var.delegation_control_resource_type

	#Optional
	defined_tags = {"Operations.CostCenter"= "42"}
	description = var.delegation_control_description
	freeform_tags = {"Department"= "Finance"}
	is_auto_approve_during_maintenance = var.delegation_control_is_auto_approve_during_maintenance
	num_approvals_required = var.delegation_control_num_approvals_required
	pre_approved_service_provider_action_names = var.delegation_control_pre_approved_service_provider_action_names
	vault_id = oci_kms_vault.test_vault.id
	vault_key_id = oci_kms_key.test_key.id
}

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

Import

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

$ terraform import oci_delegate_access_control_delegation_control.test_delegation_control "id"