Skip to main content
This page is auto-generated based on the official Terraform documentation.

Overview

Use this resource with the Vantage Terraform provider. For installation and authentication, see the Terraform examples. The schema below is generated directly from the provider source. Manages a Custom Calculation.

Example Usage

Schema

Required

Optional

  • cost_report_tokens (Set of String) The attached Cost Report tokens. Omit to leave attachments unmanaged or set an empty set to clear them. Manage a given attachment from only one resource.
  • description (String) An optional description. Remove it from the configuration to clear it.
  • display_as (String) The display format of the calculation. Defaults to ratio when creating a calculation.
  • operation (String) The operation applied to the filtered cost or usage data. Defaults to sum when creating a calculation.
  • unit_scale (Number) The integer unit scale of the calculation. Defaults to 1.

Read-Only

  • id (String) The id of the CustomCalculation.
  • token (String) The token of the CustomCalculation.

Nested Schema for filter

Optional:
  • filter (String) The VQL filter for a sum, average, min, or max calculation.
  • filter_denominator (String) The VQL filter for the denominator of a division calculation.
  • filter_numerator (String) The VQL filter for the numerator of a division calculation.
  • type (String) The calculation operation. Use filter and usage_unit for aggregate operations, or the numerator and denominator fields for division.
  • usage_unit (List of String) Non-empty list of equivalent usage unit names. Omit to use costs. Units are summed without conversion.
  • usage_unit_denominator (List of String) Non-empty list of equivalent usage unit names. Omit to use costs. Units are summed without conversion.
  • usage_unit_numerator (List of String) Non-empty list of equivalent usage unit names. Omit to use costs. Units are summed without conversion.