oci_optimizer_resource_action

This resource provides the Resource Action resource in Oracle Cloud Infrastructure Optimizer service.

Updates the resource action that corresponds to the specified OCID. Use this operation to implement the following actions:

Example Usage

resource "oci_optimizer_resource_action" "test_resource_action" {
	#Required
	resource_action_id = oci_optimizer_resource_action.test_resource_action.id
	status = var.resource_action_status

	#Optional
	time_status_end = var.resource_action_time_status_end
}

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

Import

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

$ terraform import oci_optimizer_resource_action.test_resource_action "id"