oci_metering_computation_usage_carbon_emission

This resource provides the Usage Carbon Emission resource in Oracle Cloud Infrastructure Metering Computation service.

Returns usage carbon emission for the given account.

Example Usage

resource "oci_metering_computation_usage_carbon_emission" "test_usage_carbon_emission" {
	#Required
	tenant_id = oci_metering_computation_tenant.test_tenant.id
	time_usage_ended = var.usage_carbon_emission_time_usage_ended
	time_usage_started = var.usage_carbon_emission_time_usage_started

	#Optional
	compartment_depth = var.usage_carbon_emission_compartment_depth
	group_by = var.usage_carbon_emission_group_by
	group_by_tag {

		#Optional
		key = var.usage_carbon_emission_group_by_tag_key
		namespace = var.usage_carbon_emission_group_by_tag_namespace
		value = var.usage_carbon_emission_group_by_tag_value
	}
	is_aggregate_by_time = var.usage_carbon_emission_is_aggregate_by_time
	usage_carbon_emission_filter = var.usage_carbon_emission_usage_carbon_emission_filter
}

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

Import

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

$ terraform import oci_metering_computation_usage_carbon_emission.test_usage_carbon_emission "id"