Module Values.GetCostAndUsageComparisonsRequestSource

Retrieves cost and usage comparisons for your account between two periods within the last 13 months. If you have enabled multi-year data at monthly granularity, you can go back up to 38 months.

Sourcetype nonrec t = {
  1. billingViewArn : BillingViewArn.t option;
    (*

    The Amazon Resource Name (ARN) that uniquely identifies a specific billing view. The ARN is used to specify which particular billing view you want to interact with or retrieve information from when making API calls related to Amazon Web Services Billing and Cost Management features. The BillingViewArn can be retrieved by calling the ListBillingViews API.

    *)
  2. baselineTimePeriod : DateInterval.t;
    (*

    The reference time period for comparison. This time period serves as the baseline against which other cost and usage data will be compared. The interval must start and end on the first day of a month, with a duration of exactly one month.

    *)
  3. comparisonTimePeriod : DateInterval.t;
    (*

    The comparison time period for analysis. This time period's cost and usage data will be compared against the baseline time period. The interval must start and end on the first day of a month, with a duration of exactly one month.

    *)
  4. metricForComparison : MetricName.t;
    (*

    The cost and usage metric to compare. Valid values are AmortizedCost, BlendedCost, NetAmortizedCost, NetUnblendedCost, NormalizedUsageAmount, UnblendedCost, and UsageQuantity.

    *)
  5. filter : Expression.t option;
  6. groupBy : GroupDefinitions.t option;
    (*

    You can group results using the attributes DIMENSION, TAG, and COST_CATEGORY.

    *)
  7. maxResults : CostAndUsageComparisonsMaxResults.t option;
    (*

    The maximum number of results that are returned for the request.

    *)
  8. nextPageToken : NextPageToken.t option;
    (*

    The token to retrieve the next set of paginated results.

    *)
}
Sourceval context_ : string
Sourceval make : ?billingViewArn:??? -> ?filter:??? -> ?groupBy:??? -> ?maxResults:??? -> ?nextPageToken:??? -> baselineTimePeriod:DateInterval.t -> comparisonTimePeriod:DateInterval.t -> metricForComparison:MetricName.t -> unit -> t
Sourceval to_value : t -> [> `Structure of (string * Awso.Botodata.value) list ]
Sourceval to_query : t -> Awso.Client.Query.t
Sourceval of_xml : Awso.Xml.t -> t
Sourceval of_string : string -> t
Sourceval of_json : Yojson.Safe.t -> t
Sourceval to_json : t -> Yojson.Safe.t