oci_operator_access_control_operator_control_assignment

This resource provides the Operator Control Assignment resource in Oracle Cloud Infrastructure Operator Access Control service.

Creates an Operator Control Assignment resource. In effect, this brings the target resource under the governance of the Operator Control for specified time duration.

Example Usage

resource "oci_operator_access_control_operator_control_assignment" "test_operator_control_assignment" {
    #Required
    compartment_id = var.compartment_id
    is_enforced_always = var.operator_control_assignment_is_enforced_always
    operator_control_id = oci_operator_access_control_operator_control.test_operator_control.id
    resource_compartment_id = oci_identity_compartment.test_compartment.id
    resource_id = oci_operator_access_control_resource.test_resource.id
    resource_name = var.operator_control_assignment_resource_name
    resource_type = var.operator_control_assignment_resource_type

    #Optional
    comment = var.operator_control_assignment_comment
    defined_tags = var.operator_control_assignment_defined_tags
    freeform_tags = var.operator_control_assignment_freeform_tags
    is_auto_approve_during_maintenance = var.operator_control_assignment_is_auto_approve_during_maintenance
    is_hypervisor_log_forwarded = var.operator_control_assignment_is_hypervisor_log_forwarded
    is_log_forwarded = var.operator_control_assignment_is_log_forwarded
    remote_syslog_server_address = var.operator_control_assignment_remote_syslog_server_address
    remote_syslog_server_ca_cert = var.operator_control_assignment_remote_syslog_server_ca_cert
    remote_syslog_server_port = var.operator_control_assignment_remote_syslog_server_port
    time_assignment_from = var.operator_control_assignment_time_assignment_from
    time_assignment_to = var.operator_control_assignment_time_assignment_to
}

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

Import

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

$ terraform import oci_operator_access_control_operator_control_assignment.test_operator_control_assignment "id"