oci_opsi_chargeback_plan

This resource provides the Chargeback Plan resource in Oracle Cloud Infrastructure Opsi service. Api doc link for the resource: https://docs.oracle.com/iaas/api/#/en/operations-insights/latest/ChargebackPlan

Example terraform configs related to the resource : https://github.com/oracle/terraform-provider-oci/tree/master/examples/osi

Create a chargeback plan resource for the resource in Ops Insights.

Example Usage

resource "oci_opsi_chargeback_plan" "test_chargeback_plan" {
	#Required
	compartment_id = var.compartment_id
	entity_source = var.chargeback_plan_entity_source
	plan_name = var.chargeback_plan_plan_name
	plan_type = var.chargeback_plan_plan_type
	plan_description = var.chargeback_plan_plan_description
	plan_custom_items {
		name  = var.chargeback_plan_plan_custom_items_name
		value = var.chargeback_plan_plan_custom_items_value

		#Optional
		is_customizable = var.chargeback_plan_plan_custom_items_is_customizable
	}
	#Optional
	defined_tags = {"foo-namespace.bar-key"= "value"}
	freeform_tags = {"bar-key"= "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 Chargeback Plan * update - (Defaults to 20 minutes), when updating the Chargeback Plan * delete - (Defaults to 20 minutes), when destroying the Chargeback Plan

Import

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

$ terraform import oci_opsi_chargeback_plan.test_chargeback_plan "id"