Module Smaws_Client_CostExplorer.Types

type nonrec zoned_date_time = string
type nonrec year_month_day = string
type nonrec value = string
type nonrec values = value list
type nonrec date_interval = {
  1. end_ : year_month_day;
    (*

    The end of the time period. The end date is exclusive. For example, if end is 2017-05-01, Amazon Web Services retrieves cost and usage data from the start date up to, but not including, 2017-05-01.

    *)
  2. start : year_month_day;
    (*

    The beginning of the time period. The start date is inclusive. For example, if start is 2017-01-01, Amazon Web Services retrieves cost and usage data starting at 2017-01-01 up to the end date. The start date must be equal to or no later than the current date to avoid a validation error.

    *)
}

The time period of the request.

type nonrec reservation_group_key = string
type nonrec reservation_group_value = string
type nonrec attribute_value = string
type nonrec attribute_type = string
type nonrec attributes = (attribute_type * attribute_value) list
type nonrec utilization_percentage = string
type nonrec utilization_percentage_in_units = string
type nonrec purchased_hours = string
type nonrec purchased_units = string
type nonrec total_actual_hours = string
type nonrec total_actual_units = string
type nonrec unused_hours = string
type nonrec unused_units = string
type nonrec on_demand_cost_of_ri_hours_used = string
type nonrec net_ri_savings = string
type nonrec total_potential_ri_savings = string
type nonrec amortized_upfront_fee = string
type nonrec amortized_recurring_fee = string
type nonrec total_amortized_fee = string
type nonrec ri_cost_for_unused_hours = string
type nonrec realized_savings = string
type nonrec unrealized_savings = string
type nonrec reservation_aggregates = {
  1. unrealized_savings : unrealized_savings option;
    (*

    The unrealized savings because of purchasing and using a reservation.

    *)
  2. realized_savings : realized_savings option;
    (*

    The realized savings because of purchasing and using a reservation.

    *)
  3. ri_cost_for_unused_hours : ri_cost_for_unused_hours option;
    (*

    The cost of unused hours for your reservation.

    *)
  4. total_amortized_fee : total_amortized_fee option;
    (*

    The total cost of your reservation. It's amortized over the reservation period.

    *)
  5. amortized_recurring_fee : amortized_recurring_fee option;
    (*

    The monthly cost of your reservation. It's amortized over the reservation period.

    *)
  6. amortized_upfront_fee : amortized_upfront_fee option;
    (*

    The upfront cost of your reservation. It's amortized over the reservation period.

    *)
  7. total_potential_ri_savings : total_potential_ri_savings option;
    (*

    How much you might save if you use your entire reservation.

    *)
  8. net_ri_savings : net_ri_savings option;
    (*

    How much you saved due to purchasing and utilizing reservation. Amazon Web Services calculates this by subtracting TotalAmortizedFee from OnDemandCostOfRIHoursUsed.

    *)
  9. on_demand_cost_of_ri_hours_used : on_demand_cost_of_ri_hours_used option;
    (*

    How much your reservation costs if charged On-Demand rates.

    *)
  10. unused_units : unused_units option;
    (*

    The number of Amazon EC2 reservation hours that you didn't use. It's converted to normalized units. Normalized units are available only for Amazon EC2 usage after November 11, 2017.

    *)
  11. unused_hours : unused_hours option;
    (*

    The number of reservation hours that you didn't use.

    *)
  12. total_actual_units : total_actual_units option;
    (*

    The total number of Amazon EC2 reservation hours that you used. It's converted to normalized units. Normalized units are available only for Amazon EC2 usage after November 11, 2017.

    *)
  13. total_actual_hours : total_actual_hours option;
    (*

    The total number of reservation hours that you used.

    *)
  14. purchased_units : purchased_units option;
    (*

    The number of Amazon EC2 reservation hours that you purchased. It's converted to normalized units. Normalized units are available only for Amazon EC2 usage after November 11, 2017.

    *)
  15. purchased_hours : purchased_hours option;
    (*

    How many reservation hours that you purchased.

    *)
  16. utilization_percentage_in_units : utilization_percentage_in_units option;
    (*

    The percentage of Amazon EC2 reservation time that you used. It's converted to normalized units. Normalized units are available only for Amazon EC2 usage after November 11, 2017.

    *)
  17. utilization_percentage : utilization_percentage option;
    (*

    The percentage of reservation time that you used.

    *)
}

The aggregated numbers for your reservation usage.

type nonrec reservation_utilization_group = {
  1. utilization : reservation_aggregates option;
    (*

    How much you used this group of reservations.

    *)
  2. attributes : attributes option;
    (*

    The attributes for this group of reservations.

    *)
  3. value : reservation_group_value option;
    (*

    The value of a specific reservation attribute.

    *)
  4. key : reservation_group_key option;
    (*

    The key for a specific reservation attribute.

    *)
}

A group of reservations that share a set of attributes.

type nonrec reservation_utilization_groups = reservation_utilization_group list
type nonrec utilization_by_time = {
  1. total : reservation_aggregates option;
    (*

    The total number of reservation hours that were used.

    *)
  2. groups : reservation_utilization_groups option;
    (*

    The groups that this utilization result uses.

    *)
  3. time_period : date_interval option;
    (*

    The period of time that this utilization was used for.

    *)
}

The amount of utilization, in hours.

type nonrec utilizations_by_time = utilization_by_time list
type nonrec generic_string = string
type nonrec usage_services = generic_string list
type nonrec arn = string
type nonrec update_cost_category_definition_response = {
  1. effective_start : zoned_date_time option;
    (*

    The cost category's effective start date. It can only be a billing start date (first day of the month).

    *)
  2. cost_category_arn : arn option;
    (*

    The unique identifier for your cost category.

    *)
}
type nonrec cost_category_rule_version =
  1. | CostCategoryExpressionV1

The rule schema version in this particular cost category.

type nonrec cost_category_value = string
type nonrec dimension =
  1. | ANOMALY_TOTAL_IMPACT_PERCENTAGE
  2. | ANOMALY_TOTAL_IMPACT_ABSOLUTE
  3. | INVOICING_ENTITY
  4. | AGREEMENT_END_DATE_TIME_BEFORE
  5. | AGREEMENT_END_DATE_TIME_AFTER
  6. | PAYMENT_OPTION
  7. | SAVINGS_PLAN_ARN
  8. | SAVINGS_PLANS_TYPE
  9. | RIGHTSIZING_TYPE
  10. | RESOURCE_ID
  11. | RESERVATION_ID
  12. | BILLING_ENTITY
  13. | INSTANCE_TYPE_FAMILY
  14. | CACHE_ENGINE
  15. | DATABASE_ENGINE
  16. | DEPLOYMENT_OPTION
  17. | LEGAL_ENTITY_NAME
  18. | SUBSCRIPTION_ID
  19. | PLATFORM
  20. | SCOPE
  21. | TENANCY
  22. | OPERATING_SYSTEM
  23. | RECORD_TYPE
  24. | USAGE_TYPE_GROUP
  25. | USAGE_TYPE
  26. | SERVICE_CODE
  27. | SERVICE
  28. | REGION
  29. | PURCHASE_TYPE
  30. | OPERATION
  31. | LINKED_ACCOUNT_NAME
  32. | PAYER_ACCOUNT
  33. | LINKED_ACCOUNT
  34. | INSTANCE_TYPE
  35. | AZ
type nonrec match_option =
  1. | GREATER_THAN_OR_EQUAL
  2. | CASE_INSENSITIVE
  3. | CASE_SENSITIVE
  4. | CONTAINS
  5. | ENDS_WITH
  6. | STARTS_WITH
  7. | ABSENT
  8. | EQUALS
type nonrec match_options = match_option list
type nonrec dimension_values = {
  1. match_options : match_options option;
    (*

    The match options that you can use to filter your results.

    MatchOptions is only applicable for actions related to cost category and Anomaly Subscriptions. Refer to the documentation for each specific API to see what is supported.

    The default values for MatchOptions are EQUALS and CASE_SENSITIVE.

    *)
  2. values : values option;
    (*

    The metadata values that you can use to filter and group your results. You can use GetDimensionValues to find specific values.

    *)
  3. key : dimension option;
    (*

    The names of the metadata types that you can use to filter and group your results. For example, AZ returns a list of Availability Zones.

    Not all dimensions are supported in each API. Refer to the documentation for each specific API to see what is supported.

    LINKED_ACCOUNT_NAME and SERVICE_CODE can only be used in CostCategoryRule.

    ANOMALY_TOTAL_IMPACT_ABSOLUTE and ANOMALY_TOTAL_IMPACT_PERCENTAGE can only be used in AnomalySubscriptions.

    *)
}

The metadata that you can use to filter and group your results. You can use GetDimensionValues to find specific values.

type nonrec tag_key = string
type nonrec tag_values = {
  1. match_options : match_options option;
    (*

    The match options that you can use to filter your results. MatchOptions is only applicable for actions related to cost category. The default values for MatchOptions are EQUALS and CASE_SENSITIVE.

    *)
  2. values : values option;
    (*

    The specific value of the tag.

    *)
  3. key : tag_key option;
    (*

    The key for the tag.

    *)
}

The values that are available for a tag.

If Values and Key aren't specified, the ABSENT MatchOption is applied to all tags. That is, it's filtered on resources with no tags.

If Key is provided and Values isn't specified, the ABSENT MatchOption is applied to the tag Key only. That is, it's filtered on resources without the given tag key.

type nonrec cost_category_name = string
type nonrec cost_category_values = {
  1. match_options : match_options option;
    (*

    The match options that you can use to filter your results. MatchOptions is only applicable for actions related to cost category. The default values for MatchOptions is EQUALS and CASE_SENSITIVE.

    *)
  2. values : values option;
    (*

    The specific value of the cost category.

    *)
  3. key : cost_category_name option;
}

The Cost Categories values used for filtering the costs.

If Values and Key are not specified, the ABSENT MatchOption is applied to all Cost Categories. That is, it filters on resources that aren't mapped to any Cost Categories.

If Values is provided and Key isn't specified, the ABSENT MatchOption is applied to the Cost Categories Key only. That is, it filters on resources without the given Cost Categories key.

type expression = {
  1. cost_categories : cost_category_values option;
    (*

    The filter that's based on CostCategory values.

    *)
  2. tags : tag_values option;
    (*

    The specific Tag to use for Expression.

    *)
  3. dimensions : dimension_values option;
    (*

    The specific Dimension to use for Expression.

    *)
  4. not : expression option;
    (*

    Return results that don't match a Dimension object.

    *)
  5. and_ : expressions option;
    (*

    Return results that match both Dimension objects.

    *)
  6. or : expressions option;
    (*

    Return results that match either Dimension object.

    *)
}

Use Expression to filter in various Cost Explorer APIs.

Not all Expression types are supported in each API. Refer to the documentation for each specific API to see what is supported.

There are two patterns:

  • Simple dimension values.

    • There are three types of simple dimension values: CostCategories, Tags, and Dimensions.

      • Specify the CostCategories field to define a filter that acts on Cost Categories.
      • Specify the Tags field to define a filter that acts on Cost Allocation Tags.
      • Specify the Dimensions field to define a filter that acts on the DimensionValues.
    • For each filter type, you can set the dimension name and values for the filters that you plan to use.

      • For example, you can filter for REGION==us-east-1 OR REGION==us-west-1. For GetRightsizingRecommendation, the Region is a full name (for example, REGION==US East (N. Virginia).
      • The corresponding Expression for this example is as follows: { "Dimensions": { "Key": "REGION", "Values": [ "us-east-1", "us-west-1" ] } }
      • As shown in the previous example, lists of dimension values are combined with OR when applying the filter.
    • You can also set different match options to further control how the filter behaves. Not all APIs support match options. Refer to the documentation for each specific API to see what is supported.

      • For example, you can filter for linked account names that start with "a".
      • The corresponding Expression for this example is as follows: { "Dimensions": { "Key": "LINKED_ACCOUNT_NAME", "MatchOptions": [ "STARTS_WITH" ], "Values": [ "a" ] } }
  • Compound Expression types with logical operations.

    • You can use multiple Expression types and the logical operators AND/OR/NOT to create a list of one or more Expression objects. By doing this, you can filter by more advanced options.
    • For example, you can filter by ((REGION == us-east-1 OR REGION == us-west-1) OR (TAG.Type == Type1)) AND (USAGE_TYPE != DataTransfer).
    • The corresponding Expression for this example is as follows: { "And": [ {"Or": [ {"Dimensions": { "Key": "REGION", "Values": [ "us-east-1", "us-west-1" ] }}, {"Tags": { "Key": "TagName", "Values": ["Value1"] } } ]}, {"Not": {"Dimensions": { "Key": "USAGE_TYPE", "Values": ["DataTransfer"] }}} ] }

    Because each Expression can have only one operator, the service returns an error if more than one is specified. The following example shows an Expression object that creates an error: { "And": [ ... ], "Dimensions": { "Key": "USAGE_TYPE", "Values": [ "DataTransfer" ] } }

    The following is an example of the corresponding error message: "Expression has more than one roots. Only one root operator is allowed for each expression: And, Or, Not, Dimensions, Tags, CostCategories"

For the GetRightsizingRecommendation action, a combination of OR and NOT isn't supported. OR isn't supported between different dimensions, or dimensions and tags. NOT operators aren't supported. Dimensions are also limited to LINKED_ACCOUNT, REGION, or RIGHTSIZING_TYPE.

For the GetReservationPurchaseRecommendation action, only NOT is supported. AND and OR aren't supported. Dimensions are limited to LINKED_ACCOUNT.

and expressions = expression list
type nonrec cost_category_inherited_value_dimension_name =
  1. | TAG
  2. | LINKED_ACCOUNT_NAME
type nonrec cost_category_inherited_value_dimension = {
  1. dimension_key : generic_string option;
    (*

    The key to extract cost category values.

    *)
  2. dimension_name : cost_category_inherited_value_dimension_name option;
    (*

    The name of the dimension that's used to group costs.

    If you specify LINKED_ACCOUNT_NAME, the cost category value is based on account name. If you specify TAG, the cost category value is based on the value of the specified tag key.

    *)
}

When you create or update a cost category, you can define the CostCategoryRule rule type as INHERITED_VALUE. This rule type adds the flexibility to define a rule that dynamically inherits the cost category value from the dimension value that's defined by CostCategoryInheritedValueDimension. For example, suppose that you want to dynamically group costs that are based on the value of a specific tag key. First, choose an inherited value rule type, and then choose the tag dimension and specify the tag key to use.

type nonrec cost_category_rule_type =
  1. | INHERITED_VALUE
  2. | REGULAR
type nonrec cost_category_rule = {
  1. type_ : cost_category_rule_type option;
    (*

    You can define the CostCategoryRule rule type as either REGULAR or INHERITED_VALUE. The INHERITED_VALUE rule type adds the flexibility to define a rule that dynamically inherits the cost category value. This value is from the dimension value that's defined by CostCategoryInheritedValueDimension. For example, suppose that you want to costs to be dynamically grouped based on the value of a specific tag key. First, choose an inherited value rule type, and then choose the tag dimension and specify the tag key to use.

    *)
  2. inherited_value : cost_category_inherited_value_dimension option;
    (*

    The value the line item is categorized as if the line item contains the matched dimension.

    *)
  3. rule : expression option;
    (*

    An Expression object used to categorize costs. This supports dimensions, tags, and nested expressions. Currently the only dimensions supported are LINKED_ACCOUNT, SERVICE_CODE, RECORD_TYPE, LINKED_ACCOUNT_NAME, REGION, and USAGE_TYPE.

    RECORD_TYPE is a dimension used for Cost Explorer APIs, and is also supported for cost category expressions. This dimension uses different terms, depending on whether you're using the console or API/JSON editor. For a detailed comparison, see Term Comparisons in the Billing and Cost Management User Guide.

    *)
  4. value : cost_category_value option;
}

Rules are processed in order. If there are multiple rules that match the line item, then the first rule to match is used to determine that cost category value.

type nonrec cost_category_rules_list = cost_category_rule list
type nonrec cost_category_split_charge_rule_targets_list = generic_string list
type nonrec cost_category_split_charge_method =
  1. | EVEN
  2. | PROPORTIONAL
  3. | FIXED
type nonrec cost_category_split_charge_rule_parameter_type =
  1. | ALLOCATION_PERCENTAGES
type nonrec cost_category_split_charge_rule_parameter_values_list = generic_string list
type nonrec cost_category_split_charge_rule_parameter = {
  1. values : cost_category_split_charge_rule_parameter_values_list;
    (*

    The parameter values.

    *)
  2. type_ : cost_category_split_charge_rule_parameter_type;
    (*

    The parameter type.

    *)
}

The parameters for a split charge method.

type nonrec cost_category_split_charge_rule_parameters_list = cost_category_split_charge_rule_parameter list
type nonrec cost_category_split_charge_rule = {
  1. parameters : cost_category_split_charge_rule_parameters_list option;
    (*

    The parameters for a split charge method. This is only required for the FIXED method.

    *)
  2. method_ : cost_category_split_charge_method;
    (*

    The method that's used to define how to split your source costs across your targets.

    Proportional - Allocates charges across your targets based on the proportional weighted cost of each target.

    Fixed - Allocates charges across your targets based on your defined allocation percentage.

    >Even - Allocates costs evenly across all targets.

    *)
  3. targets : cost_category_split_charge_rule_targets_list;
    (*

    The cost category values that you want to split costs across. These values can't be used as a source in other split charge rules.

    *)
  4. source : generic_string;
    (*

    The cost category value that you want to split. That value can't be used as a source or a target in other split charge rules. To indicate uncategorized costs, you can use an empty string as the source.

    *)
}

Use the split charge rule to split the cost of one cost category value across several other target values.

type nonrec cost_category_split_charge_rules_list = cost_category_split_charge_rule list
type nonrec update_cost_category_definition_request = {
  1. split_charge_rules : cost_category_split_charge_rules_list option;
    (*

    The split charge rules used to allocate your charges between your cost category values.

    *)
  2. default_value : cost_category_value option;
  3. rules : cost_category_rules_list;
    (*

    The Expression object used to categorize costs. For more information, see CostCategoryRule.

    *)
  4. rule_version : cost_category_rule_version;
  5. effective_start : zoned_date_time option;
    (*

    The cost category's effective start date. It can only be a billing start date (first day of the month). If the date isn't provided, it's the first day of the current month. Dates can't be before the previous twelve months, or in the future.

    *)
  6. cost_category_arn : arn;
    (*

    The unique identifier for your cost category.

    *)
}
type nonrec error_message = string
type nonrec service_quota_exceeded_exception = {
  1. message : error_message option;
}

You've reached the limit on the number of resources you can create, or exceeded the size of an individual resource.

type nonrec resource_not_found_exception = {
  1. resource_name : arn option;
  2. message : error_message option;
}

The specified ARN in the request doesn't exist.

type nonrec limit_exceeded_exception = {
  1. message : error_message option;
}

You made too many calls in a short period of time. Try again later.

type nonrec update_cost_allocation_tags_status_error = {
  1. message : error_message option;
    (*

    A message explaining why the action failed on this entry.

    *)
  2. code : generic_string option;
    (*

    An error code representing why the action failed on this entry.

    *)
  3. tag_key : tag_key option;
    (*

    The key for the cost allocation tag.

    *)
}

Gives a detailed description of the result of an action. It's on each cost allocation tag entry in the request.

type nonrec update_cost_allocation_tags_status_errors = update_cost_allocation_tags_status_error list
type nonrec update_cost_allocation_tags_status_response = {
  1. errors : update_cost_allocation_tags_status_errors option;
    (*

    A list of UpdateCostAllocationTagsStatusError objects with error details about each cost allocation tag that can't be updated. If there's no failure, an empty array returns.

    *)
}
type nonrec cost_allocation_tag_status =
  1. | INACTIVE
  2. | ACTIVE
type nonrec cost_allocation_tag_status_entry = {
  1. status : cost_allocation_tag_status;
    (*

    The status of a cost allocation tag.

    *)
  2. tag_key : tag_key;
    (*

    The key for the cost allocation tag.

    *)
}

The cost allocation tag status. The status of a key can either be active or inactive.

type nonrec cost_allocation_tag_status_list = cost_allocation_tag_status_entry list
type nonrec update_cost_allocation_tags_status_request = {
  1. cost_allocation_tags_status : cost_allocation_tag_status_list;
    (*

    The list of CostAllocationTagStatusEntry objects that are used to update cost allocation tags status for this request.

    *)
}
type nonrec update_anomaly_subscription_response = {
  1. subscription_arn : generic_string;
    (*

    A cost anomaly subscription ARN.

    *)
}
type nonrec nullable_non_negative_double = float
type nonrec anomaly_subscription_frequency =
  1. | WEEKLY
  2. | IMMEDIATE
  3. | DAILY
type nonrec monitor_arn_list = arn list
type nonrec subscriber_address = string
type nonrec subscriber_type =
  1. | SNS
  2. | EMAIL
type nonrec subscriber_status =
  1. | DECLINED
  2. | CONFIRMED
type nonrec subscriber = {
  1. status : subscriber_status option;
    (*

    Indicates if the subscriber accepts the notifications.

    *)
  2. type_ : subscriber_type option;
    (*

    The notification delivery channel.

    *)
  3. address : subscriber_address option;
    (*

    The email address or SNS Amazon Resource Name (ARN). This depends on the Type.

    *)
}

The recipient of AnomalySubscription notifications.

type nonrec subscribers = subscriber list
type nonrec update_anomaly_subscription_request = {
  1. threshold_expression : expression option;
    (*

    The update to the Expression object used to specify the anomalies that you want to generate alerts for. This supports dimensions and nested expressions. The supported dimensions are ANOMALY_TOTAL_IMPACT_ABSOLUTE and ANOMALY_TOTAL_IMPACT_PERCENTAGE, corresponding to an anomaly’s TotalImpact and TotalImpactPercentage, respectively (see Impact for more details). The supported nested expression types are AND and OR. The match option GREATER_THAN_OR_EQUAL is required. Values must be numbers between 0 and 10,000,000,000 in string format.

    You can specify either Threshold or ThresholdExpression, but not both.

    The following are examples of valid ThresholdExpressions:

    • Absolute threshold: { "Dimensions": { "Key": "ANOMALY_TOTAL_IMPACT_ABSOLUTE", "MatchOptions": [ "GREATER_THAN_OR_EQUAL" ], "Values": [ "100" ] } }
    • Percentage threshold: { "Dimensions": { "Key": "ANOMALY_TOTAL_IMPACT_PERCENTAGE", "MatchOptions": [ "GREATER_THAN_OR_EQUAL" ], "Values": [ "100" ] } }
    • AND two thresholds together: { "And": [ { "Dimensions": { "Key": "ANOMALY_TOTAL_IMPACT_ABSOLUTE", "MatchOptions": [ "GREATER_THAN_OR_EQUAL" ], "Values": [ "100" ] } }, { "Dimensions": { "Key": "ANOMALY_TOTAL_IMPACT_PERCENTAGE", "MatchOptions": [ "GREATER_THAN_OR_EQUAL" ], "Values": [ "100" ] } } ] }
    • OR two thresholds together: { "Or": [ { "Dimensions": { "Key": "ANOMALY_TOTAL_IMPACT_ABSOLUTE", "MatchOptions": [ "GREATER_THAN_OR_EQUAL" ], "Values": [ "100" ] } }, { "Dimensions": { "Key": "ANOMALY_TOTAL_IMPACT_PERCENTAGE", "MatchOptions": [ "GREATER_THAN_OR_EQUAL" ], "Values": [ "100" ] } } ] }
    *)
  2. subscription_name : generic_string option;
    (*

    The new name of the subscription.

    *)
  3. subscribers : subscribers option;
    (*

    The update to the subscriber list.

    *)
  4. monitor_arn_list : monitor_arn_list option;
    (*

    A list of cost anomaly monitor ARNs.

    *)
  5. frequency : anomaly_subscription_frequency option;
    (*

    The update to the frequency value that subscribers receive notifications.

    *)
  6. threshold : nullable_non_negative_double option;
    (*

    (deprecated)

    The update to the threshold value for receiving notifications.

    This field has been deprecated. To update a threshold, use ThresholdExpression. Continued use of Threshold will be treated as shorthand syntax for a ThresholdExpression.

    You can specify either Threshold or ThresholdExpression, but not both.

    *)
  7. subscription_arn : generic_string;
    (*

    A cost anomaly subscription Amazon Resource Name (ARN).

    *)
}
type nonrec unknown_subscription_exception = {
  1. message : error_message option;
}

The cost anomaly subscription does not exist for the account.

type nonrec unknown_monitor_exception = {
  1. message : error_message option;
}

The cost anomaly monitor does not exist for the account.

type nonrec update_anomaly_monitor_response = {
  1. monitor_arn : generic_string;
    (*

    A cost anomaly monitor ARN.

    *)
}
type nonrec update_anomaly_monitor_request = {
  1. monitor_name : generic_string option;
    (*

    The new name for the cost anomaly monitor.

    *)
  2. monitor_arn : generic_string;
    (*

    Cost anomaly monitor Amazon Resource Names (ARNs).

    *)
}
type nonrec untag_resource_response = unit
type nonrec resource_tag_key = string
type nonrec resource_tag_key_list = resource_tag_key list
type nonrec untag_resource_request = {
  1. resource_tag_keys : resource_tag_key_list;
    (*

    A list of tag keys associated with tags that need to be removed from the resource. If you specify a tag key that doesn't exist, it's ignored. Although the maximum number of array members is 200, user-tag maximum is 50. The remaining are reserved for Amazon Web Services use.

    *)
  2. resource_arn : arn;
    (*

    The Amazon Resource Name (ARN) of the resource. For a list of supported resources, see ResourceTag.

    *)
}
type nonrec unresolvable_usage_unit_exception = {
  1. message : error_message option;
}

Cost Explorer was unable to identify the usage unit. Provide UsageType/UsageTypeGroup filter selections that contain matching units, for example: hours.

type nonrec total_running_normalized_units = string
type nonrec total_running_hours = string
type nonrec numeric_operator =
  1. | BETWEEN
  2. | LESS_THAN
  3. | GREATER_THAN
  4. | LESS_THAN_OR_EQUAL
  5. | GREATER_THAN_OR_EQUAL
  6. | EQUAL
type nonrec generic_double = float
type nonrec total_impact_filter = {
  1. end_value : generic_double option;
    (*

    The upper bound dollar value that's used in the filter.

    *)
  2. start_value : generic_double;
    (*

    The lower bound dollar value that's used in the filter.

    *)
  3. numeric_operator : numeric_operator;
    (*

    The comparing value that's used in the filter.

    *)
}

Filters cost anomalies based on the total impact.

type nonrec too_many_tags_exception = {
  1. resource_name : arn option;
  2. message : error_message option;
}

Can occur if you specify a number of tags for a resource greater than the maximum 50 user tags per resource.

type nonrec terminate_recommendation_detail = {
  1. currency_code : generic_string option;
    (*

    The currency code that Amazon Web Services used to calculate the costs for this instance.

    *)
  2. estimated_monthly_savings : generic_string option;
    (*

    The estimated savings that result from modification, on a monthly basis.

    *)
}

Details on termination recommendation.

type nonrec term_in_years =
  1. | THREE_YEARS
  2. | ONE_YEAR
type nonrec generic_boolean = bool
type nonrec ec2_resource_details = {
  1. vcpu : generic_string option;
    (*

    The number of VCPU cores in the Amazon Web Services instance type.

    *)
  2. storage : generic_string option;
    (*

    The disk storage of the Amazon Web Services instance. This doesn't include EBS storage.

    *)
  3. network_performance : generic_string option;
    (*

    The network performance capacity of the Amazon Web Services instance.

    *)
  4. memory : generic_string option;
    (*

    The memory capacity of the Amazon Web Services instance.

    *)
  5. sku : generic_string option;
    (*

    The SKU of the product.

    *)
  6. region : generic_string option;
    (*

    The Amazon Web Services Region of the instance.

    *)
  7. platform : generic_string option;
    (*

    The platform of the Amazon Web Services instance. The platform is the specific combination of operating system, license model, and software on an instance.

    *)
  8. instance_type : generic_string option;
    (*

    The type of Amazon Web Services instance.

    *)
  9. hourly_on_demand_rate : generic_string option;
    (*

    The hourly public On-Demand rate for the instance type.

    *)
}

Details on the Amazon EC2 Resource.

type nonrec resource_details = {
  1. ec2_resource_details : ec2_resource_details option;
    (*

    Details for the Amazon EC2 resource.

    *)
}

Details for the resource.

type nonrec ebs_resource_utilization = {
  1. ebs_write_bytes_per_second : generic_string option;
    (*

    The maximum size of write operations per second.

    *)
  2. ebs_read_bytes_per_second : generic_string option;
    (*

    The maximum size of read operations per second

    *)
  3. ebs_write_ops_per_second : generic_string option;
    (*

    The maximum number of write operations per second.

    *)
  4. ebs_read_ops_per_second : generic_string option;
    (*

    The maximum number of read operations per second.

    *)
}

The EBS field that contains a list of EBS metrics that are associated with the current instance.

type nonrec disk_resource_utilization = {
  1. disk_write_bytes_per_second : generic_string option;
    (*

    The maximum write throughput operations per second.

    *)
  2. disk_read_bytes_per_second : generic_string option;
    (*

    The maximum read throughput operations per second.

    *)
  3. disk_write_ops_per_second : generic_string option;
    (*

    The maximum number of write operations per second.

    *)
  4. disk_read_ops_per_second : generic_string option;
    (*

    The maximum number of read operations per second.

    *)
}

The field that contains a list of disk (local storage) metrics that are associated with the current instance.

type nonrec network_resource_utilization = {
  1. network_packets_out_per_second : generic_string option;
    (*

    The network outbound packets that are measured in packets per second.

    *)
  2. network_packets_in_per_second : generic_string option;
    (*

    The network inbound packets that are measured in packets per second.

    *)
  3. network_out_bytes_per_second : generic_string option;
    (*

    The network outbound throughput utilization measured in Bytes per second (Bps).

    *)
  4. network_in_bytes_per_second : generic_string option;
    (*

    The network inbound throughput utilization measured in Bytes per second (Bps).

    *)
}

The network field that contains a list of network metrics that are associated with the current instance.

type nonrec ec2_resource_utilization = {
  1. network_resource_utilization : network_resource_utilization option;
    (*

    The network field that contains a list of network metrics that are associated with the current instance.

    *)
  2. disk_resource_utilization : disk_resource_utilization option;
    (*

    The field that contains a list of disk (local storage) metrics that are associated with the current instance.

    *)
  3. ebs_resource_utilization : ebs_resource_utilization option;
    (*

    The EBS field that contains a list of EBS metrics that are associated with the current instance.

    *)
  4. max_storage_utilization_percentage : generic_string option;
    (*

    The maximum observed or expected storage utilization of the instance. This doesn't include EBS storage.

    *)
  5. max_memory_utilization_percentage : generic_string option;
    (*

    The maximum observed or expected memory utilization of the instance.

    *)
  6. max_cpu_utilization_percentage : generic_string option;
    (*

    The maximum observed or expected CPU utilization of the instance.

    *)
}

Utilization metrics for the instance.

type nonrec resource_utilization = {
  1. ec2_resource_utilization : ec2_resource_utilization option;
    (*

    The utilization of current Amazon EC2 instance.

    *)
}

Resource utilization of current resource.

type nonrec platform_difference =
  1. | VIRTUALIZATION_TYPE
  2. | INSTANCE_STORE_AVAILABILITY
  3. | STORAGE_INTERFACE
  4. | NETWORK_INTERFACE
  5. | HYPERVISOR
type nonrec platform_differences = platform_difference list
type nonrec target_instance = {
  1. platform_differences : platform_differences option;
    (*

    Explains the actions that you might need to take to successfully migrate your workloads from the current instance type to the recommended instance type.

    *)
  2. expected_resource_utilization : resource_utilization option;
    (*

    The expected utilization metrics for target instance type.

    *)
  3. resource_details : resource_details option;
    (*

    Details on the target instance type.

    *)
  4. default_target_instance : generic_boolean option;
    (*

    Determines whether this recommendation is the defaulted Amazon Web Services recommendation.

    *)
  5. currency_code : generic_string option;
    (*

    The currency code that Amazon Web Services used to calculate the costs for this instance.

    *)
  6. estimated_monthly_savings : generic_string option;
    (*

    The estimated savings that result from modification, on a monthly basis.

    *)
  7. estimated_monthly_cost : generic_string option;
    (*

    The expected cost to operate this instance type on a monthly basis.

    *)
}

Details on recommended instance.

type nonrec target_instances_list = target_instance list
type nonrec tag_values_list = tag_values list
type nonrec tag_resource_response = unit
type nonrec resource_tag_value = string
type nonrec resource_tag = {
  1. value : resource_tag_value;
    (*

    The value that's associated with the tag.

    *)
  2. key : resource_tag_key;
    (*

    The key that's associated with the tag.

    *)
}

The tag structure that contains a tag key and value.

Tagging is supported only for the following Cost Explorer resource types: AnomalyMonitor, AnomalySubscription, CostCategory.

type nonrec resource_tag_list = resource_tag list
type nonrec tag_resource_request = {
  1. resource_tags : resource_tag_list;
    (*

    A list of tag key-value pairs to be added to the resource.

    Each tag consists of a key and a value, and each key must be unique for the resource. The following restrictions apply to resource tags:

    • Although the maximum number of array members is 200, you can assign a maximum of 50 user-tags to one resource. The remaining are reserved for Amazon Web Services use
    • The maximum length of a key is 128 characters
    • The maximum length of a value is 256 characters
    • Keys and values can only contain alphanumeric characters, spaces, and any of the following: _.:/=+@-
    • Keys and values are case sensitive
    • Keys and values are trimmed for any leading or trailing whitespaces
    • Don’t use aws: as a prefix for your keys. This prefix is reserved for Amazon Web Services use
    *)
  2. resource_arn : arn;
    (*

    The Amazon Resource Name (ARN) of the resource. For a list of supported resources, see ResourceTag.

    *)
}
type nonrec entity = string
type nonrec tag_list = entity list
type nonrec supported_savings_plans_type =
  1. | DATABASE_SP
  2. | SAGEMAKER_SP
  3. | EC2_INSTANCE_SP
  4. | COMPUTE_SP
type nonrec recommendation_id = string
type nonrec start_savings_plans_purchase_recommendation_generation_response = {
  1. estimated_completion_time : zoned_date_time option;
    (*

    The estimated time for when the recommendation generation will complete.

    *)
  2. generation_started_time : zoned_date_time option;
    (*

    The start time of the recommendation generation.

    *)
  3. recommendation_id : recommendation_id option;
    (*

    The ID for this specific recommendation.

    *)
}
type nonrec start_savings_plans_purchase_recommendation_generation_request = unit
type nonrec generation_exists_exception = {
  1. message : error_message option;
}

A request to generate a recommendation or analysis is already in progress.

type nonrec data_unavailable_exception = {
  1. message : error_message option;
}

The requested data is unavailable.

type nonrec cost_allocation_tag_backfill_status =
  1. | FAILED
  2. | PROCESSING
  3. | SUCCEEDED
type nonrec cost_allocation_tag_backfill_request = {
  1. last_updated_at : zoned_date_time option;
    (*

    The time when the backfill status was last updated.

    *)
  2. backfill_status : cost_allocation_tag_backfill_status option;
    (*

    The status of the cost allocation tag backfill request.

    *)
  3. completed_at : zoned_date_time option;
    (*

    The backfill completion time.

    *)
  4. requested_at : zoned_date_time option;
    (*

    The time when the backfill was requested.

    *)
  5. backfill_from : zoned_date_time option;
    (*

    The date the backfill starts from.

    *)
}

The cost allocation tag backfill request structure that contains metadata and details of a certain backfill.

type nonrec start_cost_allocation_tag_backfill_response = {
  1. backfill_request : cost_allocation_tag_backfill_request option;
    (*

    An object containing detailed metadata of your new backfill request.

    *)
}
type nonrec start_cost_allocation_tag_backfill_request = {
  1. backfill_from : zoned_date_time;
    (*

    The date you want the backfill to start from. The date can only be a first day of the month (a billing start date). Dates can't precede the previous twelve months, or in the future.

    *)
}
type nonrec backfill_limit_exceeded_exception = {
  1. message : error_message option;
}

A request to backfill is already in progress. Once the previous request is complete, you can create another request.

type nonrec analysis_id = string
type nonrec start_commitment_purchase_analysis_response = {
  1. estimated_completion_time : zoned_date_time;
    (*

    The estimated time for when the analysis will complete.

    *)
  2. analysis_started_time : zoned_date_time;
    (*

    The start time of the analysis.

    *)
  3. analysis_id : analysis_id;
    (*

    The analysis ID that's associated with the commitment purchase analysis.

    *)
}
type nonrec account_scope =
  1. | LINKED
  2. | PAYER
type nonrec account_id = string
type nonrec analysis_type =
  1. | TARGET_AVERAGE_COVERAGE
  2. | CUSTOM_COMMITMENT
  3. | MAX_SAVINGS
type nonrec payment_option =
  1. | HEAVY_UTILIZATION
  2. | MEDIUM_UTILIZATION
  3. | LIGHT_UTILIZATION
  4. | ALL_UPFRONT
  5. | PARTIAL_UPFRONT
  6. | NO_UPFRONT
type nonrec savings_plans_commitment = float
type nonrec savings_plans = {
  1. offering_id : generic_string option;
    (*

    The unique ID that's used to distinguish Savings Plans commitments from one another.

    *)
  2. savings_plans_commitment : savings_plans_commitment option;
    (*

    The Savings Plans commitment.

    *)
  3. term_in_years : term_in_years option;
    (*

    The term that you want the Savings Plans commitment for.

    *)
  4. instance_family : generic_string option;
    (*

    The instance family of the Savings Plans commitment.

    *)
  5. region : generic_string option;
    (*

    The Region associated with the Savings Plans commitment.

    *)
  6. savings_plans_type : supported_savings_plans_type option;
    (*

    The Savings Plans type.

    *)
  7. payment_option : payment_option option;
    (*

    The payment option for the Savings Plans commitment.

    *)
}

The Savings Plans commitment details.

type nonrec savings_plans_to_add = savings_plans list
type nonrec savings_plans_id = string
type nonrec savings_plans_to_exclude = savings_plans_id list
type nonrec savings_plans_target_coverage = int
type nonrec savings_plans_purchase_analysis_configuration = {
  1. savings_plans_target_coverage : savings_plans_target_coverage option;
    (*

    Specifies the target Savings Plans coverage as a percentage from 10 to 100. This field is required when AnalysisType is TARGET_AVERAGE_COVERAGE. It defines the target average hourly coverage that the recommended Savings Plans commitment should achieve over the lookback period.

    *)
  2. look_back_time_period : date_interval;
    (*

    The time period associated with the analysis.

    *)
  3. savings_plans_to_exclude : savings_plans_to_exclude option;
    (*

    Savings Plans to exclude from the analysis.

    *)
  4. savings_plans_to_add : savings_plans_to_add;
    (*

    Savings Plans to include in the analysis.

    *)
  5. analysis_type : analysis_type;
    (*

    The type of analysis.

    *)
  6. account_id : account_id option;
    (*

    The account that the analysis is for.

    *)
  7. account_scope : account_scope option;
    (*

    The account scope that you want your analysis for.

    *)
}

The configuration for the Savings Plans purchase analysis.

type nonrec commitment_purchase_analysis_configuration = {
  1. savings_plans_purchase_analysis_configuration : savings_plans_purchase_analysis_configuration option;
    (*

    The configuration for the Savings Plans purchase analysis.

    *)
}

The configuration for the commitment purchase analysis.

type nonrec start_commitment_purchase_analysis_request = {
  1. commitment_purchase_analysis_configuration : commitment_purchase_analysis_configuration;
    (*

    The configuration for the commitment purchase analysis.

    *)
}
type nonrec sort_order =
  1. | DESCENDING
  2. | ASCENDING
type nonrec sort_definition_key = string
type nonrec sort_definition = {
  1. sort_order : sort_order option;
    (*

    The order that's used to sort the data.

    *)
  2. key : sort_definition_key;
    (*

    The key that's used to sort the data.

    *)
}

The details for how to sort the data.

type nonrec sort_definitions = sort_definition list
type nonrec offering_class =
  1. | CONVERTIBLE
  2. | STANDARD
type nonrec ec2_specification = {
  1. offering_class : offering_class option;
    (*

    Indicates whether you want a recommendation for standard or convertible reservations.

    *)
}

The Amazon EC2 hardware specifications that you want Amazon Web Services to provide recommendations for.

type nonrec service_specification = {
  1. ec2_specification : ec2_specification option;
    (*

    The Amazon EC2 hardware specifications that you want Amazon Web Services to provide recommendations for.

    *)
}

Hardware specifications for the service that you want recommendations for.

type nonrec search_string = string
type nonrec savings_plans_utilization = {
  1. utilization_percentage : generic_string option;
    (*

    The amount of UsedCommitment divided by the TotalCommitment for your Savings Plans.

    *)
  2. unused_commitment : generic_string option;
    (*

    The amount of your Savings Plans commitment that wasn't consumed from Savings Plans eligible usage in a specific period.

    *)
  3. used_commitment : generic_string option;
    (*

    The amount of your Savings Plans commitment that was consumed from Savings Plans eligible usage in a specific period.

    *)
  4. total_commitment : generic_string option;
    (*

    The total amount of Savings Plans commitment that's been purchased in an account (or set of accounts).

    *)
}

The measurement of how well you're using your existing Savings Plans.

type nonrec savings_plans_savings = {
  1. on_demand_cost_equivalent : generic_string option;
    (*

    How much the amount that the usage would have cost if it was accrued at the On-Demand rate.

    *)
  2. net_savings : generic_string option;
    (*

    The savings amount that you're accumulating for the usage that's covered by a Savings Plans, when compared to the On-Demand equivalent of the same usage.

    *)
}

The amount of savings that you're accumulating, against the public On-Demand rate of the usage accrued in an account.

type nonrec savings_plans_amortized_commitment = {
  1. total_amortized_commitment : generic_string option;
    (*

    The total amortized amount of your Savings Plans commitment, regardless of your Savings Plans purchase method.

    *)
  2. amortized_upfront_commitment : generic_string option;
    (*

    The amortized amount of your Savings Plans commitment that was purchased with an Upfront or PartialUpfront Savings Plans.

    *)
  3. amortized_recurring_commitment : generic_string option;
    (*

    The amortized amount of your Savings Plans commitment that was purchased with either a Partial or a NoUpfront.

    *)
}

The amortized amount of Savings Plans purchased in a specific account during a specific time interval.

type nonrec savings_plans_utilization_by_time = {
  1. amortized_commitment : savings_plans_amortized_commitment option;
    (*

    The total amortized commitment for a Savings Plans. This includes the sum of the upfront and recurring Savings Plans fees.

    *)
  2. savings : savings_plans_savings option;
    (*

    The amount that's saved by using existing Savings Plans. Savings returns both net savings from Savings Plans and also the onDemandCostEquivalent of the Savings Plans when considering the utilization rate.

    *)
  3. utilization : savings_plans_utilization;
    (*

    A ratio of your effectiveness of using existing Savings Plans to apply to workloads that are Savings Plans eligible.

    *)
  4. time_period : date_interval;
}

The amount of Savings Plans utilization (in hours).

type nonrec savings_plans_utilizations_by_time = savings_plans_utilization_by_time list
type nonrec savings_plan_arn = string
type nonrec savings_plans_utilization_detail = {
  1. amortized_commitment : savings_plans_amortized_commitment option;
    (*

    The total amortized commitment for a Savings Plans. Includes the sum of the upfront and recurring Savings Plans fees.

    *)
  2. savings : savings_plans_savings option;
    (*

    The amount saved by using existing Savings Plans. Savings returns both net savings from savings plans and also the onDemandCostEquivalent of the Savings Plans when considering the utilization rate.

    *)
  3. utilization : savings_plans_utilization option;
    (*

    A ratio of your effectiveness of using existing Savings Plans to apply to workloads that are Savings Plans eligible.

    *)
  4. attributes : attributes option;
    (*

    The attribute that applies to a specific Dimension.

    *)
  5. savings_plan_arn : savings_plan_arn option;
    (*

    The unique Amazon Resource Name (ARN) for a particular Savings Plan.

    *)
}

A single daily or monthly Savings Plans utilization rate and details for your account. A management account in an organization have access to member accounts. You can use GetDimensionValues to determine the possible dimension values.

type nonrec savings_plans_utilization_details = savings_plans_utilization_detail list
type nonrec savings_plans_utilization_aggregates = {
  1. amortized_commitment : savings_plans_amortized_commitment option;
    (*

    The total amortized commitment for a Savings Plans. This includes the sum of the upfront and recurring Savings Plans fees.

    *)
  2. savings : savings_plans_savings option;
    (*

    The amount that's saved by using existing Savings Plans. Savings returns both net savings from Savings Plans and also the onDemandCostEquivalent of the Savings Plans when considering the utilization rate.

    *)
  3. utilization : savings_plans_utilization;
    (*

    A ratio of your effectiveness of using existing Savings Plans to apply to workloads that are Savings Plans eligible.

    *)
}

The aggregated utilization metrics for your Savings Plans usage.

type nonrec savings_plans_purchase_recommendation_summary = {
  1. estimated_on_demand_cost_with_current_commitment : generic_string option;
    (*

    The estimated On-Demand costs you expect with no additional commitment. It's based on your usage of the selected time period and the Savings Plans you own.

    *)
  2. estimated_monthly_savings_amount : generic_string option;
    (*

    The estimated monthly savings amount that's based on the recommended Savings Plans purchase.

    *)
  3. estimated_savings_percentage : generic_string option;
    (*

    The estimated savings relative to the total cost of On-Demand usage, over the lookback period. This is calculated as estimatedSavingsAmount/ CurrentOnDemandSpend*100.

    *)
  4. hourly_commitment_to_purchase : generic_string option;
    (*

    The recommended hourly commitment that's based on the recommendation parameters.

    *)
  5. daily_commitment_to_purchase : generic_string option;
    (*

    The recommended Savings Plans cost on a daily (24 hourly) basis.

    *)
  6. total_recommendation_count : generic_string option;
    (*

    The aggregate number of Savings Plans recommendations that exist for your account.

    *)
  7. estimated_savings_amount : generic_string option;
    (*

    The estimated total savings over the lookback period, based on the purchase of the recommended Savings Plans.

    *)
  8. current_on_demand_spend : generic_string option;
    (*

    The current total on demand spend of the applicable usage types over the lookback period.

    *)
  9. estimated_total_cost : generic_string option;
    (*

    The estimated total cost of the usage after purchasing the recommended Savings Plans. This is a sum of the cost of Savings Plans during this term, and the remaining On-Demand usage.

    *)
  10. currency_code : generic_string option;
    (*

    The currency code that Amazon Web Services used to generate the recommendations and present potential savings.

    *)
  11. estimated_ro_i : generic_string option;
    (*

    The estimated return on investment that's based on the recommended Savings Plans and estimated savings.

    *)
}

Summary metrics for your Savings Plans Purchase Recommendations.

type nonrec savings_plans_purchase_recommendation_metadata = {
  1. additional_metadata : generic_string option;
    (*

    Additional metadata that might be applicable to the recommendation.

    *)
  2. generation_timestamp : generic_string option;
    (*

    The timestamp that shows when the recommendations were generated.

    *)
  3. recommendation_id : generic_string option;
    (*

    The unique identifier for the recommendation set.

    *)
}

Metadata about your Savings Plans Purchase Recommendations.

type nonrec savings_plans_details = {
  1. offering_id : generic_string option;
    (*

    The unique ID that's used to distinguish Savings Plans from one another.

    *)
  2. instance_family : generic_string option;
    (*

    A group of instance types that Savings Plans applies to.

    *)
  3. region : generic_string option;
    (*

    A collection of Amazon Web Services resources in a geographic area. Each Amazon Web Services Region is isolated and independent of the other Regions.

    *)
}

The attribute details on a specific Savings Plan.

type nonrec recommendation_detail_id = string
type nonrec savings_plans_purchase_recommendation_detail = {
  1. recommendation_detail_id : recommendation_detail_id option;
    (*

    Contains detailed information about a specific Savings Plan recommendation.

    *)
  2. current_average_hourly_on_demand_spend : generic_string option;
    (*

    The average value of hourly On-Demand spend over the lookback period of the applicable usage type.

    *)
  3. current_maximum_hourly_on_demand_spend : generic_string option;
    (*

    The highest value of hourly On-Demand spend over the lookback period of the applicable usage type.

    *)
  4. current_minimum_hourly_on_demand_spend : generic_string option;
    (*

    The lowest value of hourly On-Demand spend over the lookback period of the applicable usage type.

    *)
  5. estimated_monthly_savings_amount : generic_string option;
    (*

    The estimated monthly savings amount based on the recommended Savings Plans.

    *)
  6. estimated_average_utilization : generic_string option;
    (*

    The estimated utilization of the recommended Savings Plans.

    *)
  7. hourly_commitment_to_purchase : generic_string option;
    (*

    The recommended hourly commitment level for the Savings Plans type and the configuration that's based on the usage during the lookback period.

    *)
  8. estimated_savings_percentage : generic_string option;
    (*

    The estimated savings percentage relative to the total cost of applicable On-Demand usage over the lookback period.

    *)
  9. estimated_savings_amount : generic_string option;
    (*

    The estimated savings amount that's based on the recommended Savings Plans over the length of the lookback period.

    *)
  10. estimated_on_demand_cost_with_current_commitment : generic_string option;
    (*

    The estimated On-Demand costs you expect with no additional commitment, based on your usage of the selected time period and the Savings Plans you own.

    *)
  11. estimated_on_demand_cost : generic_string option;
    (*

    The remaining On-Demand cost estimated to not be covered by the recommended Savings Plans, over the length of the lookback period.

    *)
  12. estimated_sp_cost : generic_string option;
    (*

    The cost of the recommended Savings Plans over the length of the lookback period.

    *)
  13. currency_code : generic_string option;
    (*

    The currency code that Amazon Web Services used to generate the recommendations and present potential savings.

    *)
  14. estimated_ro_i : generic_string option;
    (*

    The estimated return on investment that's based on the recommended Savings Plans that you purchased. This is calculated as estimatedSavingsAmount/ estimatedSPCost*100.

    *)
  15. upfront_cost : generic_string option;
    (*

    The upfront cost of the recommended Savings Plans, based on the selected payment option.

    *)
  16. account_id : generic_string option;
    (*

    The AccountID the recommendation is generated for.

    *)
  17. savings_plans_details : savings_plans_details option;
    (*

    Details for your recommended Savings Plans.

    *)
}

Details for your recommended Savings Plans.

type nonrec savings_plans_purchase_recommendation_detail_list = savings_plans_purchase_recommendation_detail list
type nonrec lookback_period_in_days =
  1. | SIXTY_DAYS
  2. | THIRTY_DAYS
  3. | SEVEN_DAYS
type nonrec savings_plans_purchase_recommendation = {
  1. savings_plans_purchase_recommendation_summary : savings_plans_purchase_recommendation_summary option;
    (*

    Summary metrics for your Savings Plans Recommendations.

    *)
  2. savings_plans_purchase_recommendation_details : savings_plans_purchase_recommendation_detail_list option;
    (*

    Details for the Savings Plans that we recommend that you purchase to cover existing Savings Plans eligible workloads.

    *)
  3. lookback_period_in_days : lookback_period_in_days option;
    (*

    The lookback period in days that's used to generate the recommendation.

    *)
  4. payment_option : payment_option option;
    (*

    The payment option that's used to generate the recommendation.

    *)
  5. term_in_years : term_in_years option;
    (*

    The Savings Plans recommendation term in years. It's used to generate the recommendation.

    *)
  6. savings_plans_type : supported_savings_plans_type option;
    (*

    The requested Savings Plans recommendation type.

    *)
  7. account_scope : account_scope option;
    (*

    The account scope that you want your recommendations for. Amazon Web Services calculates recommendations that include the management account and member accounts if the value is set to PAYER. If the value is LINKED, recommendations are calculated for individual member accounts only.

    *)
}

Contains your request parameters, Savings Plan Recommendations Summary, and Details.

type nonrec recommendation_detail_hourly_metrics = {
  1. estimated_new_commitment_utilization : generic_string option;
    (*

    The estimated utilization for the recommended Savings Plan.

    *)
  2. estimated_coverage : generic_string option;
    (*

    The estimated coverage amount based on the recommended Savings Plan.

    *)
  3. current_coverage : generic_string option;
    (*

    The current amount of Savings Plans eligible usage that the Savings Plan covered.

    *)
  4. estimated_on_demand_cost : generic_string option;
    (*

    The remaining On-Demand cost estimated to not be covered by the recommended Savings Plan, over the length of the lookback period.

    *)
  5. start_time : zoned_date_time option;
}

Contains the hourly metrics for the given recommendation over the lookback period.

type nonrec metrics_over_lookback_period = recommendation_detail_hourly_metrics list
type nonrec savings_plans_purchase_analysis_details = {
  1. metrics_over_lookback_period : metrics_over_lookback_period option;
    (*

    The related hourly cost, coverage, and utilization metrics over the lookback period.

    *)
  2. additional_metadata : generic_string option;
    (*

    Additional metadata that might be applicable to the commitment.

    *)
  3. upfront_cost : generic_string option;
    (*

    The upfront cost of the Savings Plan based on the selected payment option.

    *)
  4. latest_usage_timestamp : generic_string option;
    (*

    The date and time of the last hour that went into the analysis.

    *)
  5. estimated_commitment_cost : generic_string option;
    (*

    The estimated cost of the Savings Plan over the length of the lookback period.

    *)
  6. estimated_savings_percentage : generic_string option;
    (*

    The estimated savings percentage relative to the total cost over the cost calculation lookback period.

    *)
  7. estimated_savings_amount : generic_string option;
    (*

    The estimated savings amount that's based on the Savings Plan over the length of the lookback period.

    *)
  8. estimated_ro_i : generic_string option;
    (*

    The estimated return on investment that's based on the Savings Plan and estimated savings. This is calculated as estimatedSavingsAmount/estimatedSPCost*100.

    *)
  9. estimated_on_demand_cost_with_current_commitment : generic_string option;
    (*

    The estimated On-Demand cost you expect with no additional commitment based on your usage of the selected time period and the Savings Plan you own.

    *)
  10. estimated_on_demand_cost : generic_string option;
    (*

    The remaining On-Demand cost estimated to not be covered by the Savings Plan over the length of the lookback period.

    *)
  11. estimated_monthly_savings_amount : generic_string option;
    (*

    The estimated monthly savings amount based on the Savings Plan.

    *)
  12. estimated_average_utilization : generic_string option;
    (*

    The estimated utilization of the Savings Plan.

    *)
  13. estimated_average_coverage : generic_string option;
    (*

    The estimated coverage of the Savings Plan.

    *)
  14. hourly_commitment_to_purchase : generic_string option;
    (*

    The recommended or custom hourly commitment.

    *)
  15. existing_hourly_commitment : generic_string option;
    (*

    The existing hourly commitment for the Savings Plan type.

    *)
  16. current_on_demand_spend : generic_string option;
    (*

    The current total On-Demand spend over the lookback period.

    *)
  17. current_minimum_hourly_on_demand_spend : generic_string option;
    (*

    The lowest value of hourly On-Demand spend over the lookback period.

    *)
  18. current_maximum_hourly_on_demand_spend : generic_string option;
    (*

    The highest value of hourly On-Demand spend over the lookback period.

    *)
  19. current_average_hourly_on_demand_spend : generic_string option;
    (*

    The average value of hourly On-Demand spend over the lookback period.

    *)
  20. current_average_coverage : generic_string option;
    (*

    The average value of hourly coverage over the lookback period.

    *)
  21. lookback_period_in_hours : generic_string option;
    (*

    The lookback period in hours that's used to generate the analysis.

    *)
  22. currency_code : generic_string option;
    (*

    The currency code used for the analysis.

    *)
}

Details about the Savings Plans purchase analysis.

type nonrec savings_plans_data_type =
  1. | SAVINGS
  2. | AMORTIZED_COMMITMENT
  3. | UTILIZATION
  4. | ATTRIBUTES
type nonrec savings_plans_data_types = savings_plans_data_type list
type nonrec savings_plans_coverage_data = {
  1. coverage_percentage : generic_string option;
    (*

    The percentage of your existing Savings Plans covered usage, divided by all of your eligible Savings Plans usage in an account (or set of accounts).

    *)
  2. total_cost : generic_string option;
    (*

    The total cost of your Amazon Web Services usage, regardless of your purchase option.

    *)
  3. on_demand_cost : generic_string option;
    (*

    The cost of your Amazon Web Services usage at the public On-Demand rate.

    *)
  4. spend_covered_by_savings_plans : generic_string option;
    (*

    The amount of your Amazon Web Services usage that's covered by a Savings Plans.

    *)
}

Specific coverage percentage, On-Demand costs, and spend covered by Savings Plans, and total Savings Plans costs for an account.

type nonrec savings_plans_coverage = {
  1. time_period : date_interval option;
  2. coverage : savings_plans_coverage_data option;
    (*

    The amount of Savings Plans eligible usage that the Savings Plans covered.

    *)
  3. attributes : attributes option;
    (*

    The attribute that applies to a specific Dimension.

    *)
}

The amount of Savings Plans eligible usage that's covered by Savings Plans. All calculations consider the On-Demand equivalent of your Savings Plans usage.

type nonrec savings_plans_coverages = savings_plans_coverage list
type nonrec root_cause_impact = {
  1. contribution : generic_double;
    (*

    The dollar amount that this root cause contributed to the anomaly's TotalImpact.

    *)
}

The dollar value of the root cause.

type nonrec root_cause = {
  1. impact : root_cause_impact option;
    (*

    The dollar impact for the root cause.

    *)
  2. usage_type : generic_string option;
    (*

    The UsageType value that's associated with the cost anomaly.

    *)
  3. linked_account_name : generic_string option;
    (*

    The member account name value that's associated with the cost anomaly.

    *)
  4. linked_account : generic_string option;
    (*

    The member account value that's associated with the cost anomaly.

    *)
  5. region : generic_string option;
    (*

    The Amazon Web Services Region that's associated with the cost anomaly.

    *)
  6. service : generic_string option;
    (*

    The Amazon Web Services service name that's associated with the cost anomaly.

    *)
}

The combination of Amazon Web Services service, linked account, linked account name, Region, and usage type where a cost anomaly is observed, along with the dollar and percentage amount of the anomaly impact. The linked account name will only be available when the account name can be identified.

type nonrec root_causes = root_cause list
type nonrec rightsizing_type =
  1. | MODIFY
  2. | TERMINATE
type nonrec rightsizing_recommendation_summary = {
  1. savings_percentage : generic_string option;
    (*

    The savings percentage based on the recommended modifications. It's relative to the total On-Demand costs that are associated with these instances.

    *)
  2. savings_currency_code : generic_string option;
    (*

    The currency code that Amazon Web Services used to calculate the savings.

    *)
  3. estimated_total_monthly_savings_amount : generic_string option;
    (*

    The estimated total savings resulting from modifications, on a monthly basis.

    *)
  4. total_recommendation_count : generic_string option;
    (*

    The total number of instance recommendations.

    *)
}

The summary of rightsizing recommendations

type nonrec rightsizing_recommendation_metadata = {
  1. additional_metadata : generic_string option;
    (*

    Additional metadata that might be applicable to the recommendation.

    *)
  2. lookback_period_in_days : lookback_period_in_days option;
    (*

    The number of days of previous usage that Amazon Web Services considers when making the recommendation.

    *)
  3. generation_timestamp : generic_string option;
    (*

    The timestamp for when Amazon Web Services made the recommendation.

    *)
  4. recommendation_id : generic_string option;
    (*

    The ID for the recommendation.

    *)
}

Metadata for a recommendation set.

type nonrec current_instance = {
  1. currency_code : generic_string option;
    (*

    The currency code that Amazon Web Services used to calculate the costs for this instance.

    *)
  2. monthly_cost : generic_string option;
    (*

    The current On-Demand cost of operating this instance on a monthly basis.

    *)
  3. total_running_hours_in_lookback_period : generic_string option;
    (*

    The total number of hours that the instance ran during the lookback period.

    *)
  4. on_demand_hours_in_lookback_period : generic_string option;
    (*

    The number of hours during the lookback period that's billed at On-Demand rates.

    *)
  5. savings_plans_covered_hours_in_lookback_period : generic_string option;
    (*

    The number of hours during the lookback period that's covered by Savings Plans.

    *)
  6. reservation_covered_hours_in_lookback_period : generic_string option;
    (*

    The number of hours during the lookback period that's covered by reservations.

    *)
  7. resource_utilization : resource_utilization option;
    (*

    Utilization information of the current instance during the lookback period.

    *)
  8. resource_details : resource_details option;
    (*

    Details about the resource and utilization.

    *)
  9. tags : tag_values_list option;
    (*

    Cost allocation resource tags that are applied to the instance.

    *)
  10. instance_name : generic_string option;
    (*

    The name that you given an instance. This field shows as blank if you haven't given the instance a name.

    *)
  11. resource_id : generic_string option;
    (*

    Resource ID of the current instance.

    *)
}

Context about the current instance.

type nonrec modify_recommendation_detail = {
  1. target_instances : target_instances_list option;
    (*

    Determines whether this instance type is the Amazon Web Services default recommendation.

    *)
}

Details for the modification recommendation.

type nonrec finding_reason_code =
  1. | DISK_THROUGHPUT_UNDER_PROVISIONED
  2. | DISK_THROUGHPUT_OVER_PROVISIONED
  3. | DISK_IOPS_UNDER_PROVISIONED
  4. | DISK_IOPS_OVER_PROVISIONED
  5. | NETWORK_PPS_UNDER_PROVISIONED
  6. | NETWORK_PPS_OVER_PROVISIONED
  7. | NETWORK_BANDWIDTH_UNDER_PROVISIONED
  8. | NETWORK_BANDWIDTH_OVER_PROVISIONED
  9. | EBS_IOPS_UNDER_PROVISIONED
  10. | EBS_IOPS_OVER_PROVISIONED
  11. | EBS_THROUGHPUT_UNDER_PROVISIONED
  12. | EBS_THROUGHPUT_OVER_PROVISIONED
  13. | MEMORY_UNDER_PROVISIONED
  14. | MEMORY_OVER_PROVISIONED
  15. | CPU_UNDER_PROVISIONED
  16. | CPU_OVER_PROVISIONED
type nonrec finding_reason_codes = finding_reason_code list
type nonrec rightsizing_recommendation = {
  1. finding_reason_codes : finding_reason_codes option;
    (*

    The list of possible reasons why the recommendation is generated, such as under- or over-utilization of specific metrics (for example, CPU, Memory, Network).

    *)
  2. terminate_recommendation_detail : terminate_recommendation_detail option;
    (*

    The details for termination recommendations.

    *)
  3. modify_recommendation_detail : modify_recommendation_detail option;
    (*

    The details for the modification recommendations.

    *)
  4. rightsizing_type : rightsizing_type option;
    (*

    A recommendation to either terminate or modify the resource.

    *)
  5. current_instance : current_instance option;
    (*

    Context regarding the current instance.

    *)
  6. account_id : generic_string option;
    (*

    The account that this recommendation is for.

    *)
}

Recommendations to rightsize resources.

type nonrec rightsizing_recommendation_list = rightsizing_recommendation list
type nonrec recommendation_target =
  1. | CROSS_INSTANCE_FAMILY
  2. | SAME_INSTANCE_FAMILY
type nonrec rightsizing_recommendation_configuration = {
  1. benefits_considered : generic_boolean;
    (*

    The option to consider RI or Savings Plans discount benefits in your savings calculation. The default value is TRUE.

    *)
  2. recommendation_target : recommendation_target;
    (*

    The option to see recommendations within the same instance family or recommendations for instances across other families. The default value is SAME_INSTANCE_FAMILY.

    *)
}

You can use RightsizingRecommendationConfiguration to customize recommendations across two attributes. You can choose to view recommendations for instances within the same instance families or across different instance families. You can also choose to view your estimated savings that are associated with recommendations with consideration of existing Savings Plans or Reserved Instance (RI) benefits, or neither.

type nonrec metric_amount = string
type nonrec metric_unit = string
type nonrec metric_value = {
  1. unit_ : metric_unit option;
    (*

    The unit that the metric is given in.

    *)
  2. amount : metric_amount option;
    (*

    The actual number that represents the metric.

    *)
}

The aggregated value for a metric.

type nonrec metric_name = string
type nonrec metrics = (metric_name * metric_value) list
type nonrec key = string
type nonrec keys = key list
type nonrec group = {
  1. metrics : metrics option;
    (*

    The metrics that are included in this group.

    *)
  2. keys : keys option;
    (*

    The keys that are included in this group.

    *)
}

One level of grouped data in the results.

type nonrec groups = group list
type nonrec estimated = bool
type nonrec result_by_time = {
  1. estimated : estimated option;
    (*

    Determines whether the result is estimated.

    *)
  2. groups : groups option;
    (*

    The groups that this time period includes.

    *)
  3. total : metrics option;
    (*

    The total amount of cost or usage accrued during the time period.

    *)
  4. time_period : date_interval option;
    (*

    The time period that the result covers.

    *)
}

The result that's associated with a time period.

type nonrec results_by_time = result_by_time list
type nonrec resource_type = string
type nonrec resource_types_filter_input = resource_type list
type nonrec resource_types = resource_type list
type nonrec reserved_normalized_units = string
type nonrec reserved_hours = string
type nonrec dynamo_db_capacity_details = {
  1. region : generic_string option;
    (*

    The Amazon Web Services Region of the recommended reservation.

    *)
  2. capacity_units : generic_string option;
    (*

    The capacity unit of the recommended reservation.

    *)
}

The DynamoDB reservations that Amazon Web Services recommends that you purchase.

type nonrec reserved_capacity_details = {
  1. dynamo_db_capacity_details : dynamo_db_capacity_details option;
    (*

    The DynamoDB reservations that Amazon Web Services recommends that you purchase.

    *)
}

Details about the reservations that Amazon Web Services recommends that you purchase.

type nonrec ec2_instance_details = {
  1. size_flex_eligible : generic_boolean option;
    (*

    Determines whether the recommended reservation is size flexible.

    *)
  2. current_generation : generic_boolean option;
    (*

    Determines whether the recommendation is for a current-generation instance.

    *)
  3. tenancy : generic_string option;
    (*

    Determines whether the recommended reservation is dedicated or shared.

    *)
  4. platform : generic_string option;
    (*

    The platform of the recommended reservation. The platform is the specific combination of operating system, license model, and software on an instance.

    *)
  5. availability_zone : generic_string option;
    (*

    The Availability Zone of the recommended reservation.

    *)
  6. region : generic_string option;
    (*

    The Amazon Web Services Region of the recommended reservation.

    *)
  7. instance_type : generic_string option;
    (*

    The type of instance that Amazon Web Services recommends.

    *)
  8. family : generic_string option;
    (*

    The instance family of the recommended reservation.

    *)
}

Details about the Amazon EC2 reservations that Amazon Web Services recommends that you purchase.

type nonrec rds_instance_details = {
  1. deployment_model : generic_string option;
    (*

    Determines whether the recommendation is for a reservation for RDS Custom.

    *)
  2. size_flex_eligible : generic_boolean option;
    (*

    Determines whether the recommended reservation is size flexible.

    *)
  3. current_generation : generic_boolean option;
    (*

    Determines whether the recommendation is for a current-generation instance.

    *)
  4. license_model : generic_string option;
    (*

    The license model that the recommended reservation supports.

    *)
  5. deployment_option : generic_string option;
    (*

    Determines whether the recommendation is for a reservation in a single Availability Zone or a reservation with a backup in a second Availability Zone.

    *)
  6. database_edition : generic_string option;
    (*

    The database edition that the recommended reservation supports.

    *)
  7. database_engine : generic_string option;
    (*

    The database engine that the recommended reservation supports.

    *)
  8. region : generic_string option;
    (*

    The Amazon Web Services Region of the recommended reservation.

    *)
  9. instance_type : generic_string option;
    (*

    The type of instance that Amazon Web Services recommends.

    *)
  10. family : generic_string option;
    (*

    The instance family of the recommended reservation.

    *)
}

Details about the Amazon RDS reservations that Amazon Web Services recommends that you purchase.

type nonrec redshift_instance_details = {
  1. size_flex_eligible : generic_boolean option;
    (*

    Determines whether the recommended reservation is size flexible.

    *)
  2. current_generation : generic_boolean option;
    (*

    Determines whether the recommendation is for a current-generation instance.

    *)
  3. region : generic_string option;
    (*

    The Amazon Web Services Region of the recommended reservation.

    *)
  4. node_type : generic_string option;
    (*

    The type of node that Amazon Web Services recommends.

    *)
  5. family : generic_string option;
    (*

    The instance family of the recommended reservation.

    *)
}

Details about the Amazon Redshift reservations that Amazon Web Services recommends that you purchase.

type nonrec elasti_cache_instance_details = {
  1. size_flex_eligible : generic_boolean option;
    (*

    Determines whether the recommended reservation is size flexible.

    *)
  2. current_generation : generic_boolean option;
    (*

    Determines whether the recommendation is for a current generation instance.

    *)
  3. product_description : generic_string option;
    (*

    The description of the recommended reservation.

    *)
  4. region : generic_string option;
    (*

    The Amazon Web Services Region of the recommended reservation.

    *)
  5. node_type : generic_string option;
    (*

    The type of node that Amazon Web Services recommends.

    *)
  6. family : generic_string option;
    (*

    The instance family of the recommended reservation.

    *)
}

Details about the Amazon ElastiCache reservations that Amazon Web Services recommends that you purchase.

type nonrec es_instance_details = {
  1. size_flex_eligible : generic_boolean option;
    (*

    Determines whether the recommended reservation is size flexible.

    *)
  2. current_generation : generic_boolean option;
    (*

    Determines whether the recommendation is for a current-generation instance.

    *)
  3. region : generic_string option;
    (*

    The Amazon Web Services Region of the recommended reservation.

    *)
  4. instance_size : generic_string option;
    (*

    The size of instance that Amazon Web Services recommends.

    *)
  5. instance_class : generic_string option;
    (*

    The class of instance that Amazon Web Services recommends.

    *)
}

Details about the Amazon OpenSearch Service reservations that Amazon Web Services recommends that you purchase.

type nonrec memory_db_instance_details = {
  1. size_flex_eligible : generic_boolean option;
    (*

    Determines whether the recommended reservation is size flexible.

    *)
  2. current_generation : generic_boolean option;
    (*

    Determines whether the recommendation is for a current generation instance.

    *)
  3. region : generic_string option;
    (*

    The Amazon Web Services Region of the recommended reservation.

    *)
  4. node_type : generic_string option;
    (*

    The node type of the recommended reservation.

    *)
  5. family : generic_string option;
    (*

    The instance family of the recommended reservation.

    *)
}

Details about the MemoryDB reservations that Amazon Web Services recommends that you purchase.

type nonrec instance_details = {
  1. memory_db_instance_details : memory_db_instance_details option;
    (*

    The MemoryDB reservations that Amazon Web Services recommends that you purchase.

    *)
  2. es_instance_details : es_instance_details option;
    (*

    The Amazon OpenSearch Service reservations that Amazon Web Services recommends that you purchase.

    *)
  3. elasti_cache_instance_details : elasti_cache_instance_details option;
    (*

    The ElastiCache reservations that Amazon Web Services recommends that you purchase.

    *)
  4. redshift_instance_details : redshift_instance_details option;
    (*

    The Amazon Redshift reservations that Amazon Web Services recommends that you purchase.

    *)
  5. rds_instance_details : rds_instance_details option;
    (*

    The Amazon RDS reservations that Amazon Web Services recommends that you purchase.

    *)
  6. ec2_instance_details : ec2_instance_details option;
    (*

    The Amazon EC2 reservations that Amazon Web Services recommends that you purchase.

    *)
}

Details about the reservations that Amazon Web Services recommends that you purchase.

type nonrec reservation_purchase_recommendation_detail = {
  1. average_number_of_capacity_units_used_per_hour : generic_string option;
    (*

    The average number of provisioned capacity units that you used in an hour during the historical period. Amazon Web Services uses this to calculate your recommended reservation purchases.

    *)
  2. maximum_number_of_capacity_units_used_per_hour : generic_string option;
    (*

    The maximum number of provisioned capacity units that you used in an hour during the historical period. Amazon Web Services uses this to calculate your recommended reservation purchases.

    *)
  3. minimum_number_of_capacity_units_used_per_hour : generic_string option;
    (*

    The minimum number of provisioned capacity units that you used in an hour during the historical period. Amazon Web Services uses this to calculate your recommended reservation purchases.

    *)
  4. recommended_number_of_capacity_units_to_purchase : generic_string option;
    (*

    The number of reserved capacity units that Amazon Web Services recommends that you purchase.

    *)
  5. reserved_capacity_details : reserved_capacity_details option;
    (*

    Details about the reservations that Amazon Web Services recommends that you purchase.

    *)
  6. recurring_standard_monthly_cost : generic_string option;
    (*

    How much purchasing this instance costs you on a monthly basis.

    *)
  7. upfront_cost : generic_string option;
    (*

    How much purchasing this instance costs you upfront.

    *)
  8. estimated_reservation_cost_for_lookback_period : generic_string option;
    (*

    How much Amazon Web Services estimates that you might spend for all usage during the specified historical period if you had a reservation.

    *)
  9. estimated_monthly_on_demand_cost : generic_string option;
    (*

    How much Amazon Web Services estimates that you spend on On-Demand Instances in a month.

    *)
  10. estimated_monthly_savings_percentage : generic_string option;
    (*

    How much Amazon Web Services estimates that this specific recommendation might save you in a month, as a percentage of your overall costs.

    *)
  11. estimated_monthly_savings_amount : generic_string option;
    (*

    How much Amazon Web Services estimates that this specific recommendation might save you in a month.

    *)
  12. currency_code : generic_string option;
    (*

    The currency code that Amazon Web Services used to calculate the costs for this instance.

    *)
  13. estimated_break_even_in_months : generic_string option;
    (*

    How long Amazon Web Services estimates that it takes for this instance to start saving you money, in months.

    *)
  14. average_utilization : generic_string option;
    (*

    The average utilization of your instances. Amazon Web Services uses this to calculate your recommended reservation purchases.

    *)
  15. average_normalized_units_used_per_hour : generic_string option;
    (*

    The average number of normalized units that you used in an hour during the historical period. Amazon Web Services uses this to calculate your recommended reservation purchases.

    *)
  16. average_number_of_instances_used_per_hour : generic_string option;
    (*

    The average number of instances that you used in an hour during the historical period. Amazon Web Services uses this to calculate your recommended reservation purchases.

    *)
  17. maximum_normalized_units_used_per_hour : generic_string option;
    (*

    The maximum number of normalized units that you used in an hour during the historical period. Amazon Web Services uses this to calculate your recommended reservation purchases.

    *)
  18. maximum_number_of_instances_used_per_hour : generic_string option;
    (*

    The maximum number of instances that you used in an hour during the historical period. Amazon Web Services uses this to calculate your recommended reservation purchases.

    *)
  19. minimum_normalized_units_used_per_hour : generic_string option;
    (*

    The minimum number of normalized units that you used in an hour during the historical period. Amazon Web Services uses this to calculate your recommended reservation purchases.

    *)
  20. minimum_number_of_instances_used_per_hour : generic_string option;
    (*

    The minimum number of instances that you used in an hour during the historical period. Amazon Web Services uses this to calculate your recommended reservation purchases.

    *)
  21. recommended_normalized_units_to_purchase : generic_string option;
    (*

    The number of normalized units that Amazon Web Services recommends that you purchase.

    *)
  22. recommended_number_of_instances_to_purchase : generic_string option;
    (*

    The number of instances that Amazon Web Services recommends that you purchase.

    *)
  23. instance_details : instance_details option;
    (*

    Details about the reservations that Amazon Web Services recommends that you purchase.

    *)
  24. account_id : generic_string option;
    (*

    The account that this Reserved Instance (RI) recommendation is for.

    *)
}

Details about your recommended reservation purchase.

type nonrec reservation_purchase_recommendation_details = reservation_purchase_recommendation_detail list
type nonrec reservation_purchase_recommendation_summary = {
  1. currency_code : generic_string option;
    (*

    The currency code used for this recommendation.

    *)
  2. total_estimated_monthly_savings_percentage : generic_string option;
    (*

    The total amount that Amazon Web Services estimates that this recommendation could save you in a month, as a percentage of your costs.

    *)
  3. total_estimated_monthly_savings_amount : generic_string option;
    (*

    The total amount that Amazon Web Services estimates that this recommendation could save you in a month.

    *)
}

A summary about this recommendation, such as the currency code, the amount that Amazon Web Services estimates that you could save, and the total amount of reservation to purchase.

type nonrec reservation_purchase_recommendation = {
  1. recommendation_summary : reservation_purchase_recommendation_summary option;
    (*

    A summary about the recommended purchase.

    *)
  2. recommendation_details : reservation_purchase_recommendation_details option;
    (*

    Details about the recommended purchases.

    *)
  3. service_specification : service_specification option;
    (*

    Hardware specifications for the service that you want recommendations for.

    *)
  4. payment_option : payment_option option;
    (*

    The payment option for the reservation (for example, AllUpfront or NoUpfront).

    *)
  5. term_in_years : term_in_years option;
    (*

    The term of the reservation that you want recommendations for, in years.

    *)
  6. lookback_period_in_days : lookback_period_in_days option;
    (*

    How many days of previous usage that Amazon Web Services considers when making this recommendation.

    *)
  7. account_scope : account_scope option;
    (*

    The account scope that Amazon Web Services recommends that you purchase this instance for. For example, you can purchase this reservation for an entire organization in Amazon Web Services Organizations.

    *)
}

A specific reservation that Amazon Web Services recommends for purchase.

type nonrec reservation_purchase_recommendations = reservation_purchase_recommendation list
type nonrec reservation_purchase_recommendation_metadata = {
  1. additional_metadata : generic_string option;
    (*

    Additional metadata that might be applicable to the recommendation.

    *)
  2. generation_timestamp : generic_string option;
    (*

    The timestamp for when Amazon Web Services made the recommendation.

    *)
  3. recommendation_id : generic_string option;
    (*

    The ID for the recommendation.

    *)
}

Information about a recommendation, such as the timestamp for when Amazon Web Services made a specific recommendation.

type nonrec on_demand_hours = string
type nonrec coverage_hours_percentage = string
type nonrec coverage_hours = {
  1. coverage_hours_percentage : coverage_hours_percentage option;
    (*

    The percentage of instance hours that a reservation covered.

    *)
  2. total_running_hours : total_running_hours option;
    (*

    The total instance usage, in hours.

    *)
  3. reserved_hours : reserved_hours option;
    (*

    The number of instance running hours that reservations covered.

    *)
  4. on_demand_hours : on_demand_hours option;
    (*

    The number of instance running hours that On-Demand Instances covered.

    *)
}

How long a running instance either used a reservation or was On-Demand.

type nonrec on_demand_normalized_units = string
type nonrec coverage_normalized_units_percentage = string
type nonrec coverage_normalized_units = {
  1. coverage_normalized_units_percentage : coverage_normalized_units_percentage option;
    (*

    The percentage of your used instance normalized units that a reservation covers.

    *)
  2. total_running_normalized_units : total_running_normalized_units option;
    (*

    The total number of normalized units that you used.

    *)
  3. reserved_normalized_units : reserved_normalized_units option;
    (*

    The number of normalized units that a reservation covers.

    *)
  4. on_demand_normalized_units : on_demand_normalized_units option;
    (*

    The number of normalized units that are covered by On-Demand Instances instead of a reservation.

    *)
}

The amount of instance usage, in normalized units. You can use normalized units to see your EC2 usage for multiple sizes of instances in a uniform way. For example, suppose that you run an xlarge instance and a 2xlarge instance. If you run both instances for the same amount of time, the 2xlarge instance uses twice as much of your reservation as the xlarge instance, even though both instances show only one instance-hour. When you use normalized units instead of instance-hours, the xlarge instance used 8 normalized units, and the 2xlarge instance used 16 normalized units.

For more information, see Modifying Reserved Instances in the Amazon Elastic Compute Cloud User Guide for Linux Instances.

type nonrec on_demand_cost = string
type nonrec coverage_cost = {
  1. on_demand_cost : on_demand_cost option;
    (*

    How much an On-Demand Instance costs.

    *)
}

How much it costs to run an instance.

type nonrec coverage = {
  1. coverage_cost : coverage_cost option;
    (*

    The amount of cost that the reservation covered.

    *)
  2. coverage_normalized_units : coverage_normalized_units option;
    (*

    The amount of instance usage that the reservation covered, in normalized units.

    *)
  3. coverage_hours : coverage_hours option;
    (*

    The amount of instance usage that the reservation covered, in hours.

    *)
}

The amount of instance usage that a reservation covered.

type nonrec reservation_coverage_group = {
  1. coverage : coverage option;
    (*

    How much instance usage this group of reservations covered.

    *)
  2. attributes : attributes option;
    (*

    The attributes for this group of reservations.

    *)
}

A group of reservations that share a set of attributes.

type nonrec reservation_coverage_groups = reservation_coverage_group list
type nonrec request_changed_exception = {
  1. message : error_message option;
}

Your request parameters changed between pages. Try again with the old parameters or without a pagination token.

type nonrec recommendations_page_size = int
type nonrec recommendation_id_list = recommendation_id list
type nonrec recommendation_detail_data = {
  1. metrics_over_lookback_period : metrics_over_lookback_period option;
    (*

    The related hourly cost, coverage, and utilization metrics over the lookback period.

    *)
  2. estimated_average_coverage : generic_string option;
    (*

    The estimated coverage of the recommended Savings Plan.

    *)
  3. current_average_coverage : generic_string option;
    (*

    The average value of hourly coverage over the lookback period.

    *)
  4. upfront_cost : generic_string option;
    (*

    The upfront cost of the recommended Savings Plan, based on the selected payment option.

    *)
  5. hourly_commitment_to_purchase : generic_string option;
    (*

    The recommended hourly commitment level for the Savings Plan type and the configuration that's based on the usage during the lookback period.

    *)
  6. existing_hourly_commitment : generic_string option;
    (*

    The existing hourly commitment for the Savings Plan type.

    *)
  7. estimated_savings_percentage : generic_string option;
    (*

    The estimated savings percentage relative to the total cost of applicable On-Demand usage over the lookback period.

    *)
  8. estimated_savings_amount : generic_string option;
    (*

    The estimated savings amount that's based on the recommended Savings Plan over the length of the lookback period.

    *)
  9. estimated_sp_cost : generic_string option;
    (*

    The cost of the recommended Savings Plan over the length of the lookback period.

    *)
  10. estimated_ro_i : generic_string option;
    (*

    The estimated return on investment that's based on the recommended Savings Plan that you purchased. This is calculated as estimatedSavingsAmount/estimatedSPCost*100.

    *)
  11. estimated_on_demand_cost_with_current_commitment : generic_string option;
    (*

    The estimated On-Demand costs you expect with no additional commitment, based on your usage of the selected time period and the Savings Plan you own.

    *)
  12. estimated_on_demand_cost : generic_string option;
    (*

    The remaining On-Demand cost estimated to not be covered by the recommended Savings Plan, over the length of the lookback period.

    *)
  13. estimated_monthly_savings_amount : generic_string option;
    (*

    The estimated monthly savings amount based on the recommended Savings Plan.

    *)
  14. estimated_average_utilization : generic_string option;
    (*

    The estimated utilization of the recommended Savings Plan.

    *)
  15. current_minimum_hourly_on_demand_spend : generic_string option;
    (*

    The lowest value of hourly On-Demand spend over the lookback period of the applicable usage type.

    *)
  16. current_maximum_hourly_on_demand_spend : generic_string option;
    (*

    The highest value of hourly On-Demand spend over the lookback period of the applicable usage type.

    *)
  17. current_average_hourly_on_demand_spend : generic_string option;
    (*

    The average value of hourly On-Demand spend over the lookback period of the applicable usage type.

    *)
  18. latest_usage_timestamp : zoned_date_time option;
  19. generation_timestamp : zoned_date_time option;
  20. offering_id : generic_string option;
    (*

    The unique ID that's used to distinguish Savings Plans from one another.

    *)
  21. region : generic_string option;
    (*

    The region the recommendation is generated for.

    *)
  22. instance_family : generic_string option;
    (*

    The instance family of the recommended Savings Plan.

    *)
  23. currency_code : generic_string option;
    (*

    The currency code that Amazon Web Services used to generate the recommendation and present potential savings.

    *)
  24. account_id : generic_string option;
    (*

    The AccountID that the recommendation is generated for.

    *)
  25. payment_option : payment_option option;
    (*

    The payment option for the commitment (for example, All Upfront or No Upfront).

    *)
  26. term_in_years : term_in_years option;
    (*

    The term of the commitment in years.

    *)
  27. savings_plans_type : supported_savings_plans_type option;
    (*

    The requested Savings Plan recommendation type.

    *)
  28. lookback_period_in_days : lookback_period_in_days option;
    (*

    How many days of previous usage that Amazon Web Services considers when making this recommendation.

    *)
  29. account_scope : account_scope option;
    (*

    The account scope that you want your recommendations for. Amazon Web Services calculates recommendations including the management account and member accounts if the value is set to PAYER. If the value is LINKED, recommendations are calculated for individual member accounts only.

    *)
}

The details and metrics for the given recommendation.

type nonrec provide_anomaly_feedback_response = {
  1. anomaly_id : generic_string;
    (*

    The ID of the modified cost anomaly.

    *)
}
type nonrec anomaly_feedback_type =
  1. | PLANNED_ACTIVITY
  2. | NO
  3. | YES
type nonrec provide_anomaly_feedback_request = {
  1. feedback : anomaly_feedback_type;
    (*

    Describes whether the cost anomaly was a planned activity or you considered it an anomaly.

    *)
  2. anomaly_id : generic_string;
    (*

    A cost anomaly ID.

    *)
}
type nonrec prediction_interval_level = int
type nonrec page_size = int
type nonrec non_negative_long = Smaws_Lib.CoreTypes.Int64.t
type nonrec non_negative_integer = int
type nonrec next_page_token = string
type nonrec monitor_type =
  1. | CUSTOM
  2. | DIMENSIONAL
type nonrec monitor_dimension =
  1. | COST_CATEGORY
  2. | TAG
  3. | LINKED_ACCOUNT
  4. | SERVICE
type nonrec metric_names = metric_name list
type nonrec metric =
  1. | NORMALIZED_USAGE_AMOUNT
  2. | USAGE_QUANTITY
  3. | NET_AMORTIZED_COST
  4. | NET_UNBLENDED_COST
  5. | AMORTIZED_COST
  6. | UNBLENDED_COST
  7. | BLENDED_COST
type nonrec max_results = int
type nonrec list_tags_for_resource_response = {
  1. resource_tags : resource_tag_list option;
    (*

    A list of tag key value pairs that are associated with the resource.

    *)
}
type nonrec list_tags_for_resource_request = {
  1. resource_arn : arn;
    (*

    The Amazon Resource Name (ARN) of the resource. For a list of supported resources, see ResourceTag.

    *)
}
type nonrec generation_status =
  1. | FAILED
  2. | PROCESSING
  3. | SUCCEEDED
type nonrec generation_summary = {
  1. estimated_completion_time : zoned_date_time option;
    (*

    Indicates the estimated time for when the recommendation generation will complete.

    *)
  2. generation_completion_time : zoned_date_time option;
    (*

    Indicates the completion time of the recommendation generation.

    *)
  3. generation_started_time : zoned_date_time option;
    (*

    Indicates the start time of the recommendation generation.

    *)
  4. generation_status : generation_status option;
    (*

    Indicates whether the recommendation generation succeeded, is processing, or failed.

    *)
  5. recommendation_id : recommendation_id option;
    (*

    Indicates the ID for this specific recommendation.

    *)
}

The summary of the Savings Plans recommendation generation.

type nonrec generation_summary_list = generation_summary list
type nonrec list_savings_plans_purchase_recommendation_generation_response = {
  1. next_page_token : next_page_token option;
    (*

    The token to retrieve the next set of results.

    *)
  2. generation_summary_list : generation_summary_list option;
    (*

    The list of historical recommendation generations.

    *)
}
type nonrec list_savings_plans_purchase_recommendation_generation_request = {
  1. next_page_token : next_page_token option;
    (*

    The token to retrieve the next set of results.

    *)
  2. page_size : recommendations_page_size option;
    (*

    The number of recommendations that you want returned in a single response object.

    *)
  3. recommendation_ids : recommendation_id_list option;
    (*

    The IDs for each specific recommendation.

    *)
  4. generation_status : generation_status option;
    (*

    The status of the recommendation generation.

    *)
}
type nonrec invalid_next_token_exception = {
  1. message : error_message option;
}

The pagination token is invalid. Try again without a pagination token.

type nonrec generic_arn = string
type nonrec cost_category_resource_association = {
  1. cost_category_arn : arn option;
    (*

    The unique identifier for your cost category.

    *)
  2. cost_category_name : cost_category_name option;
  3. resource_arn : generic_arn option;
    (*

    The unique identifier for an associated resource.

    *)
}

A reference to a cost category association that contains information on an associated resource.

type nonrec cost_category_resource_associations = cost_category_resource_association list
type nonrec list_cost_category_resource_associations_response = {
  1. next_token : next_page_token option;
    (*

    The token to retrieve the next set of results. Amazon Web Services provides the token when the response from a previous call has more results than the maximum page size.

    *)
  2. cost_category_resource_associations : cost_category_resource_associations option;
    (*

    A reference to a cost category association that contains information on an associated resource.

    *)
}
type nonrec cost_category_max_results = int
type nonrec list_cost_category_resource_associations_request = {
  1. max_results : cost_category_max_results option;
    (*

    The number of entries a paginated response contains.

    *)
  2. next_token : next_page_token option;
    (*

    The token to retrieve the next set of results. Amazon Web Services provides the token when the response from a previous call has more results than the maximum page size.

    *)
  3. cost_category_arn : arn option;
    (*

    The unique identifier for your cost category.

    *)
}
type nonrec cost_category_status_component =
  1. | COST_EXPLORER
type nonrec cost_category_status =
  1. | APPLIED
  2. | PROCESSING
type nonrec cost_category_processing_status = {
  1. status : cost_category_status option;
    (*

    The process status for a specific cost category.

    *)
  2. component : cost_category_status_component option;
    (*

    The Cost Management product name of the applied status.

    *)
}

The list of processing statuses for Cost Management products for a specific cost category.

type nonrec cost_category_processing_status_list = cost_category_processing_status list
type nonrec cost_category_values_list = cost_category_value list
type nonrec cost_category_reference = {
  1. supported_resource_types : resource_types option;
    (*

    The resource types supported by a specific cost category.

    *)
  2. default_value : cost_category_value option;
  3. values : cost_category_values_list option;
    (*

    A list of unique cost category values in a specific cost category.

    *)
  4. processing_status : cost_category_processing_status_list option;
    (*

    The list of processing statuses for Cost Management products for a specific cost category.

    *)
  5. number_of_rules : non_negative_integer option;
    (*

    The number of rules that are associated with a specific cost category.

    *)
  6. effective_end : zoned_date_time option;
    (*

    The cost category's effective end date.

    *)
  7. effective_start : zoned_date_time option;
    (*

    The cost category's effective start date.

    *)
  8. name : cost_category_name option;
  9. cost_category_arn : arn option;
    (*

    The unique identifier for your cost category.

    *)
}

A reference to a cost category containing only enough information to identify the Cost Category.

You can use this information to retrieve the full cost category information using DescribeCostCategory.

type nonrec cost_category_references_list = cost_category_reference list
type nonrec list_cost_category_definitions_response = {
  1. next_token : next_page_token option;
    (*

    The token to retrieve the next set of results. Amazon Web Services provides the token when the response from a previous call has more results than the maximum page size.

    *)
  2. cost_category_references : cost_category_references_list option;
    (*

    A reference to a cost category that contains enough information to identify the Cost Category.

    *)
}
type nonrec list_cost_category_definitions_request = {
  1. supported_resource_types : resource_types_filter_input option;
    (*

    Filter cost category definitions that are supported by given resource types based on the latest version. If the filter is present, the result only includes Cost Categories that supports input resource type. If the filter isn't provided, no filtering is applied. The valid values are billing:rispgroupsharing and billing:billingview.

    *)
  2. max_results : cost_category_max_results option;
    (*

    The number of entries a paginated response contains.

    *)
  3. next_token : next_page_token option;
    (*

    The token to retrieve the next set of results. Amazon Web Services provides the token when the response from a previous call has more results than the maximum page size.

    *)
  4. effective_on : zoned_date_time option;
    (*

    The date when the cost category was effective.

    *)
}
type nonrec cost_allocation_tag_type =
  1. | USER_DEFINED
  2. | AWS_GENERATED
type nonrec cost_allocation_tag = {
  1. last_used_date : zoned_date_time option;
    (*

    The last month that the tag was used on an Amazon Web Services resource.

    *)
  2. last_updated_date : zoned_date_time option;
    (*

    The last date that the tag was either activated or deactivated.

    *)
  3. status : cost_allocation_tag_status;
    (*

    The status of a cost allocation tag.

    *)
  4. type_ : cost_allocation_tag_type;
    (*

    The type of cost allocation tag. You can use AWSGenerated or UserDefined type tags. AWSGenerated type tags are tags that Amazon Web Services defines and applies to support Amazon Web Services resources for cost allocation purposes. UserDefined type tags are tags that you define, create, and apply to resources.

    *)
  5. tag_key : tag_key;
    (*

    The key for the cost allocation tag.

    *)
}

The cost allocation tag structure. This includes detailed metadata for the CostAllocationTag object.

type nonrec cost_allocation_tag_list = cost_allocation_tag list
type nonrec list_cost_allocation_tags_response = {
  1. next_token : next_page_token option;
    (*

    The token to retrieve the next set of results. Amazon Web Services provides the token when the response from a previous call has more results than the maximum page size.

    *)
  2. cost_allocation_tags : cost_allocation_tag_list option;
    (*

    A list of cost allocation tags that includes the detailed metadata for each one.

    *)
}
type nonrec cost_allocation_tag_key_list = tag_key list
type nonrec cost_allocation_tags_max_results = int
type nonrec list_cost_allocation_tags_request = {
  1. max_results : cost_allocation_tags_max_results option;
    (*

    The maximum number of objects that are returned for this request. By default, the request returns 100 results.

    *)
  2. next_token : next_page_token option;
    (*

    The token to retrieve the next set of results. Amazon Web Services provides the token when the response from a previous call has more results than the maximum page size.

    *)
  3. type_ : cost_allocation_tag_type option;
    (*

    The type of CostAllocationTag object that are returned for this request. The AWSGenerated type tags are tags that Amazon Web Services defines and applies to support Amazon Web Services resources for cost allocation purposes. The UserDefined type tags are tags that you define, create, and apply to resources.

    *)
  4. tag_keys : cost_allocation_tag_key_list option;
    (*

    The list of cost allocation tag keys that are returned for this request.

    *)
  5. status : cost_allocation_tag_status option;
    (*

    The status of cost allocation tag keys that are returned for this request.

    *)
}
type nonrec cost_allocation_tag_backfill_request_list = cost_allocation_tag_backfill_request list
type nonrec list_cost_allocation_tag_backfill_history_response = {
  1. next_token : next_page_token option;
    (*

    The token to retrieve the next set of results. Amazon Web Services provides the token when the response from a previous call has more results than the maximum page size.

    *)
  2. backfill_requests : cost_allocation_tag_backfill_request_list option;
    (*

    The list of historical cost allocation tag backfill requests.

    *)
}
type nonrec list_cost_allocation_tag_backfill_history_request = {
  1. max_results : cost_allocation_tags_max_results option;
    (*

    The maximum number of objects that are returned for this request.

    *)
  2. next_token : next_page_token option;
    (*

    The token to retrieve the next set of results. Amazon Web Services provides the token when the response from a previous call has more results than the maximum page size.

    *)
}
type nonrec analysis_status =
  1. | FAILED
  2. | PROCESSING
  3. | SUCCEEDED
type nonrec error_code =
  1. | INVALID_ACCOUNT_ID
  2. | INVALID_SAVINGS_PLANS_TO_EXCLUDE
  3. | INVALID_SAVINGS_PLANS_TO_ADD
  4. | INTERNAL_FAILURE
  5. | NO_USAGE_FOUND
type nonrec analysis_summary = {
  1. commitment_purchase_analysis_configuration : commitment_purchase_analysis_configuration option;
    (*

    The configuration for the commitment purchase analysis.

    *)
  2. analysis_id : analysis_id option;
    (*

    The analysis ID that's associated with the commitment purchase analysis.

    *)
  3. error_code : error_code option;
    (*

    The error code used for the analysis.

    *)
  4. analysis_status : analysis_status option;
    (*

    The status of the analysis.

    *)
  5. analysis_started_time : zoned_date_time option;
    (*

    The start time of the analysis.

    *)
  6. analysis_completion_time : zoned_date_time option;
    (*

    The completion time of the analysis.

    *)
  7. estimated_completion_time : zoned_date_time option;
    (*

    The estimated time for when the analysis will complete.

    *)
}

A summary of the analysis.

type nonrec analysis_summary_list = analysis_summary list
type nonrec list_commitment_purchase_analyses_response = {
  1. next_page_token : next_page_token option;
    (*

    The token to retrieve the next set of results.

    *)
  2. analysis_summary_list : analysis_summary_list option;
    (*

    The list of analyses.

    *)
}
type nonrec analyses_page_size = int
type nonrec analysis_ids = analysis_id list
type nonrec list_commitment_purchase_analyses_request = {
  1. analysis_ids : analysis_ids option;
    (*

    The analysis IDs associated with the commitment purchase analyses.

    *)
  2. page_size : analyses_page_size option;
    (*

    The number of analyses that you want returned in a single response object.

    *)
  3. next_page_token : next_page_token option;
    (*

    The token to retrieve the next set of results.

    *)
  4. analysis_status : analysis_status option;
    (*

    The status of the analysis.

    *)
}
type nonrec impact = {
  1. total_impact_percentage : nullable_non_negative_double option;
    (*

    The cumulative percentage difference between the total actual spend and total expected spend. It is calculated as (TotalImpact / TotalExpectedSpend) * 100. When TotalExpectedSpend is zero, this field is omitted. Expected spend can be zero in situations such as when you start to use a service for the first time.

    *)
  2. total_expected_spend : nullable_non_negative_double option;
    (*

    The cumulative dollar amount that was expected to be spent during the anomaly. It is calculated using advanced machine learning models to determine the typical spending pattern based on historical data for a customer.

    *)
  3. total_actual_spend : nullable_non_negative_double option;
    (*

    The cumulative dollar amount that was actually spent during the anomaly.

    *)
  4. total_impact : generic_double option;
    (*

    The cumulative dollar difference between the total actual spend and total expected spend. It is calculated as TotalActualSpend - TotalExpectedSpend.

    *)
  5. max_impact : generic_double;
    (*

    The maximum dollar value that's observed for an anomaly.

    *)
}

The dollar value of the anomaly.

type nonrec group_definition_type =
  1. | COST_CATEGORY
  2. | TAG
  3. | DIMENSION
type nonrec group_definition_key = string
type nonrec group_definition = {
  1. key : group_definition_key option;
    (*

    The string that represents a key for a specified group.

    *)
  2. type_ : group_definition_type option;
    (*

    The string that represents the type of group.

    *)
}

Represents a group when you specify a group by criteria or in the response to a query with a specific grouping.

type nonrec group_definitions = group_definition list
type nonrec granularity =
  1. | HOURLY
  2. | MONTHLY
  3. | DAILY
type nonrec forecast_result = {
  1. prediction_interval_upper_bound : generic_string option;
    (*

    The upper limit for the prediction interval.

    *)
  2. prediction_interval_lower_bound : generic_string option;
    (*

    The lower limit for the prediction interval.

    *)
  3. mean_value : generic_string option;
    (*

    The mean value of the forecast.

    *)
  4. time_period : date_interval option;
    (*

    The period of time that the forecast covers.

    *)
}

The forecast that's created for your query.

type nonrec forecast_results_by_time = forecast_result list
type nonrec get_usage_forecast_response = {
  1. forecast_results_by_time : forecast_results_by_time option;
    (*

    The forecasts for your query, in order. For DAILY forecasts, this is a list of days. For MONTHLY forecasts, this is a list of months.

    *)
  2. total : metric_value option;
    (*

    How much you're forecasted to use over the forecast period.

    *)
}
type nonrec billing_view_arn = string
type nonrec get_usage_forecast_request = {
  1. prediction_interval_level : prediction_interval_level option;
    (*

    Amazon Web Services Cost Explorer always returns the mean forecast as a single point. You can request a prediction interval around the mean by specifying a confidence level. The higher the confidence level, the more confident Cost Explorer is about the actual value falling in the prediction interval. Higher confidence levels result in wider prediction intervals.

    *)
  2. billing_view_arn : billing_view_arn 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.

    *)
  3. filter : expression option;
    (*

    The filters that you want to use to filter your forecast. The GetUsageForecast API supports filtering by the following dimensions:

    • AZ
    • INSTANCE_TYPE
    • LINKED_ACCOUNT
    • LINKED_ACCOUNT_NAME
    • OPERATION
    • PURCHASE_TYPE
    • REGION
    • SERVICE
    • USAGE_TYPE
    • USAGE_TYPE_GROUP
    • RECORD_TYPE
    • OPERATING_SYSTEM
    • TENANCY
    • SCOPE
    • PLATFORM
    • SUBSCRIPTION_ID
    • LEGAL_ENTITY_NAME
    • DEPLOYMENT_OPTION
    • DATABASE_ENGINE
    • INSTANCE_TYPE_FAMILY
    • BILLING_ENTITY
    • RESERVATION_ID
    • SAVINGS_PLAN_ARN
    *)
  4. granularity : granularity;
    (*

    How granular you want the forecast to be. You can get 3 months of DAILY forecasts or 18 months of MONTHLY forecasts.

    The GetUsageForecast operation supports only DAILY and MONTHLY granularities.

    *)
  5. metric : metric;
    (*

    Which metric Cost Explorer uses to create your forecast.

    Valid values for a GetUsageForecast call are the following:

    • USAGE_QUANTITY
    • NORMALIZED_USAGE_AMOUNT
    *)
  6. time_period : date_interval;
    (*

    The start and end dates of the period that you want to retrieve usage forecast for. The start date is included in the period, but the end date isn't included in the period. For example, if start is 2017-01-01 and end is 2017-05-01, then the cost and usage data is retrieved from 2017-01-01 up to and including 2017-04-30 but not including 2017-05-01. The start date must be equal to or later than the current date to avoid a validation error.

    *)
}
type nonrec billing_view_health_status_exception = {
  1. message : error_message option;
}

The billing view status must be HEALTHY to perform this action. Try again when the status is HEALTHY.

type nonrec get_tags_response = {
  1. total_size : page_size;
    (*

    The total number of query results.

    *)
  2. return_size : page_size;
    (*

    The number of query results that Amazon Web Services returns at a time.

    *)
  3. tags : tag_list;
    (*

    The tags that match your request.

    *)
  4. next_page_token : next_page_token option;
    (*

    The token for the next set of retrievable results. Amazon Web Services provides the token when the response from a previous call has more results than the maximum page size.

    *)
}
type nonrec get_tags_request = {
  1. next_page_token : next_page_token option;
    (*

    The token to retrieve the next set of results. Amazon Web Services provides the token when the response from a previous call has more results than the maximum page size.

    *)
  2. max_results : max_results option;
    (*

    This field is only used when SortBy is provided in the request. The maximum number of objects that are returned for this request. If MaxResults isn't specified with SortBy, the request returns 1000 results as the default value for this parameter.

    For GetTags, MaxResults has an upper quota of 1000.

    *)
  3. billing_view_arn : billing_view_arn 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.

    *)
  4. sort_by : sort_definitions option;
    (*

    The value that you want to sort the data by.

    The key represents cost and usage metrics. The following values are supported:

    • BlendedCost
    • UnblendedCost
    • AmortizedCost
    • NetAmortizedCost
    • NetUnblendedCost
    • UsageQuantity
    • NormalizedUsageAmount

    The supported values for SortOrder are ASCENDING and DESCENDING.

    When you use SortBy, NextPageToken and SearchString aren't supported.

    *)
  5. filter : expression option;
  6. tag_key : tag_key option;
    (*

    The key of the tag that you want to return values for.

    *)
  7. time_period : date_interval;
    (*

    The start and end dates for retrieving the dimension values. The start date is inclusive, but the end date is exclusive. For example, if start is 2017-01-01 and end is 2017-05-01, then the cost and usage data is retrieved from 2017-01-01 up to and including 2017-04-30 but not including 2017-05-01.

    *)
  8. search_string : search_string option;
    (*

    The value that you want to search for.

    *)
}
type nonrec bill_expiration_exception = {
  1. message : error_message option;
}

The requested report expired. Update the date interval and try again.

type nonrec get_savings_plans_utilization_response = {
  1. total : savings_plans_utilization_aggregates;
    (*

    The total amount of cost/commitment that you used your Savings Plans, regardless of date ranges.

    *)
  2. savings_plans_utilizations_by_time : savings_plans_utilizations_by_time option;
    (*

    The amount of cost/commitment that you used your Savings Plans. You can use it to specify date ranges.

    *)
}
type nonrec get_savings_plans_utilization_request = {
  1. sort_by : sort_definition option;
    (*

    The value that you want to sort the data by.

    The following values are supported for Key:

    • UtilizationPercentage
    • TotalCommitment
    • UsedCommitment
    • UnusedCommitment
    • NetSavings

    The supported values for SortOrder are ASCENDING and DESCENDING.

    *)
  2. filter : expression option;
    (*

    Filters Savings Plans utilization coverage data for active Savings Plans dimensions. You can filter data with the following dimensions:

    • LINKED_ACCOUNT
    • SAVINGS_PLAN_ARN
    • SAVINGS_PLANS_TYPE
    • REGION
    • PAYMENT_OPTION
    • INSTANCE_TYPE_FAMILY

    GetSavingsPlansUtilization uses the same Expression object as the other operations, but only AND is supported among each dimension.

    *)
  3. granularity : granularity option;
    (*

    The granularity of the Amazon Web Services utillization data for your Savings Plans.

    The GetSavingsPlansUtilization operation supports only DAILY and MONTHLY granularities.

    *)
  4. time_period : date_interval;
    (*

    The time period that you want the usage and costs for. The Start date must be within 13 months. The End date must be after the Start date, and before the current date. Future dates can't be used as an End date.

    *)
}
type nonrec get_savings_plans_utilization_details_response = {
  1. next_token : next_page_token option;
    (*

    The token to retrieve the next set of results. Amazon Web Services provides the token when the response from a previous call has more results than the maximum page size.

    *)
  2. time_period : date_interval;
  3. total : savings_plans_utilization_aggregates option;
    (*

    The total Savings Plans utilization, regardless of time period.

    *)
  4. savings_plans_utilization_details : savings_plans_utilization_details;
    (*

    Retrieves a single daily or monthly Savings Plans utilization rate and details for your account.

    *)
}
type nonrec get_savings_plans_utilization_details_request = {
  1. sort_by : sort_definition option;
    (*

    The value that you want to sort the data by.

    The following values are supported for Key:

    • UtilizationPercentage
    • TotalCommitment
    • UsedCommitment
    • UnusedCommitment
    • NetSavings
    • AmortizedRecurringCommitment
    • AmortizedUpfrontCommitment

    The supported values for SortOrder are ASCENDING and DESCENDING.

    *)
  2. max_results : max_results option;
    (*

    The number of items to be returned in a response. The default is 20, with a minimum value of 1.

    *)
  3. next_token : next_page_token option;
    (*

    The token to retrieve the next set of results. Amazon Web Services provides the token when the response from a previous call has more results than the maximum page size.

    *)
  4. data_type : savings_plans_data_types option;
    (*

    The data type.

    *)
  5. filter : expression option;
    (*

    Filters Savings Plans utilization coverage data for active Savings Plans dimensions. You can filter data with the following dimensions:

    • LINKED_ACCOUNT
    • SAVINGS_PLAN_ARN
    • REGION
    • PAYMENT_OPTION
    • INSTANCE_TYPE_FAMILY

    GetSavingsPlansUtilizationDetails uses the same Expression object as the other operations, but only AND is supported among each dimension.

    *)
  6. time_period : date_interval;
    (*

    The time period that you want the usage and costs for. The Start date must be within 13 months. The End date must be after the Start date, and before the current date. Future dates can't be used as an End date.

    *)
}
type nonrec get_savings_plans_purchase_recommendation_response = {
  1. next_page_token : next_page_token option;
    (*

    The token for the next set of retrievable results. Amazon Web Services provides the token when the response from a previous call has more results than the maximum page size.

    *)
  2. savings_plans_purchase_recommendation : savings_plans_purchase_recommendation option;
    (*

    Contains your request parameters, Savings Plan Recommendations Summary, and Details.

    *)
  3. metadata : savings_plans_purchase_recommendation_metadata option;
    (*

    Information that regards this specific recommendation set.

    *)
}
type nonrec get_savings_plans_purchase_recommendation_request = {
  1. filter : expression option;
    (*

    You can filter your recommendations by Account ID with the LINKED_ACCOUNT dimension. To filter your recommendations by Account ID, specify Key as LINKED_ACCOUNT and Value as the comma-separated Acount ID(s) that you want to see Savings Plans purchase recommendations for.

    For GetSavingsPlansPurchaseRecommendation, the Filter doesn't include CostCategories or Tags. It only includes Dimensions. With Dimensions, Key must be LINKED_ACCOUNT and Value can be a single Account ID or multiple comma-separated Account IDs that you want to see Savings Plans Purchase Recommendations for. AND and OR operators are not supported.

    *)
  2. lookback_period_in_days : lookback_period_in_days;
    (*

    The lookback period that's used to generate the recommendation.

    *)
  3. page_size : recommendations_page_size option;
    (*

    The number of recommendations that you want returned in a single response object.

    *)
  4. next_page_token : next_page_token option;
    (*

    The token to retrieve the next set of results. Amazon Web Services provides the token when the response from a previous call has more results than the maximum page size.

    *)
  5. account_scope : account_scope option;
    (*

    The account scope that you want your recommendations for. Amazon Web Services calculates recommendations including the management account and member accounts if the value is set to PAYER. If the value is LINKED, recommendations are calculated for individual member accounts only.

    *)
  6. payment_option : payment_option;
    (*

    The payment option that's used to generate these recommendations.

    *)
  7. term_in_years : term_in_years;
    (*

    The savings plan recommendation term that's used to generate these recommendations.

    *)
  8. savings_plans_type : supported_savings_plans_type;
    (*

    The Savings Plans recommendation type that's requested.

    *)
}
type nonrec get_savings_plans_coverage_response = {
  1. next_token : next_page_token option;
    (*

    The token to retrieve the next set of results. Amazon Web Services provides the token when the response from a previous call has more results than the maximum page size.

    *)
  2. savings_plans_coverages : savings_plans_coverages;
    (*

    The amount of spend that your Savings Plans covered.

    *)
}
type nonrec get_savings_plans_coverage_request = {
  1. sort_by : sort_definition option;
    (*

    The value that you want to sort the data by.

    The following values are supported for Key:

    • SpendCoveredBySavingsPlan
    • OnDemandCost
    • CoveragePercentage
    • TotalCost
    • InstanceFamily
    • Region
    • Service

    The supported values for SortOrder are ASCENDING and DESCENDING.

    *)
  2. max_results : max_results option;
    (*

    The number of items to be returned in a response. The default is 20, with a minimum value of 1.

    *)
  3. next_token : next_page_token option;
    (*

    The token to retrieve the next set of results. Amazon Web Services provides the token when the response from a previous call has more results than the maximum page size.

    *)
  4. metrics : metric_names option;
    (*

    The measurement that you want your Savings Plans coverage reported in. The only valid value is SpendCoveredBySavingsPlans.

    *)
  5. filter : expression option;
    (*

    Filters Savings Plans coverage data by dimensions. You can filter data for Savings Plans usage with the following dimensions:

    • LINKED_ACCOUNT
    • REGION
    • SERVICE
    • INSTANCE_FAMILY

    GetSavingsPlansCoverage uses the same Expression object as the other operations, but only AND is supported among each dimension. If there are multiple values for a dimension, they are OR'd together.

    Cost category is also supported.

    *)
  6. granularity : granularity option;
    (*

    The granularity of the Amazon Web Services cost data for your Savings Plans. Granularity can't be set if GroupBy is set.

    The GetSavingsPlansCoverage operation supports only DAILY and MONTHLY granularities.

    *)
  7. group_by : group_definitions option;
    (*

    You can group the data using the attributes INSTANCE_FAMILY, REGION, or SERVICE.

    *)
  8. time_period : date_interval;
    (*

    The time period that you want the usage and costs for. The Start date must be within 13 months. The End date must be after the Start date, and before the current date. Future dates can't be used as an End date.

    *)
}
type nonrec get_savings_plan_purchase_recommendation_details_response = {
  1. recommendation_detail_data : recommendation_detail_data option;
    (*

    Contains detailed information about a specific Savings Plan recommendation.

    *)
  2. recommendation_detail_id : recommendation_detail_id option;
    (*

    The ID that is associated with the Savings Plan recommendation.

    *)
}
type nonrec get_savings_plan_purchase_recommendation_details_request = {
  1. recommendation_detail_id : recommendation_detail_id;
    (*

    The ID that is associated with the Savings Plan recommendation.

    *)
}
type nonrec get_rightsizing_recommendation_response = {
  1. configuration : rightsizing_recommendation_configuration option;
    (*

    You can use Configuration to customize recommendations across two attributes. You can choose to view recommendations for instances within the same instance families or across different instance families. You can also choose to view your estimated savings that are associated with recommendations with consideration of existing Savings Plans or RI benefits, or neither.

    *)
  2. next_page_token : next_page_token option;
    (*

    The token to retrieve the next set of results.

    *)
  3. rightsizing_recommendations : rightsizing_recommendation_list option;
    (*

    Recommendations to rightsize resources.

    *)
  4. summary : rightsizing_recommendation_summary option;
    (*

    Summary of this recommendation set.

    *)
  5. metadata : rightsizing_recommendation_metadata option;
    (*

    Information regarding this specific recommendation set.

    *)
}
type nonrec get_rightsizing_recommendation_request = {
  1. next_page_token : next_page_token option;
    (*

    The pagination token that indicates the next set of results that you want to retrieve.

    *)
  2. page_size : recommendations_page_size option;
    (*

    The number of recommendations that you want returned in a single response object.

    *)
  3. service : generic_string;
    (*

    The specific service that you want recommendations for. The only valid value for GetRightsizingRecommendation is "AmazonEC2".

    *)
  4. configuration : rightsizing_recommendation_configuration option;
    (*

    You can use Configuration to customize recommendations across two attributes. You can choose to view recommendations for instances within the same instance families or across different instance families. You can also choose to view your estimated savings that are associated with recommendations with consideration of existing Savings Plans or RI benefits, or neither.

    *)
  5. filter : expression option;
}
type nonrec get_reservation_utilization_response = {
  1. next_page_token : next_page_token option;
    (*

    The token for the next set of retrievable results. Amazon Web Services provides the token when the response from a previous call has more results than the maximum page size.

    *)
  2. total : reservation_aggregates option;
    (*

    The total amount of time that you used your Reserved Instances (RIs).

    *)
  3. utilizations_by_time : utilizations_by_time;
    (*

    The amount of time that you used your Reserved Instances (RIs).

    *)
}
type nonrec get_reservation_utilization_request = {
  1. max_results : max_results option;
    (*

    The maximum number of objects that you returned for this request. If more objects are available, in the response, Amazon Web Services provides a NextPageToken value that you can use in a subsequent call to get the next batch of objects.

    *)
  2. next_page_token : next_page_token option;
    (*

    The token to retrieve the next set of results. Amazon Web Services provides the token when the response from a previous call has more results than the maximum page size.

    *)
  3. sort_by : sort_definition option;
    (*

    The value that you want to sort the data by.

    The following values are supported for Key:

    • UtilizationPercentage
    • UtilizationPercentageInUnits
    • PurchasedHours
    • PurchasedUnits
    • TotalActualHours
    • TotalActualUnits
    • UnusedHours
    • UnusedUnits
    • OnDemandCostOfRIHoursUsed
    • NetRISavings
    • TotalPotentialRISavings
    • AmortizedUpfrontFee
    • AmortizedRecurringFee
    • TotalAmortizedFee
    • RICostForUnusedHours
    • RealizedSavings
    • UnrealizedSavings

    The supported values for SortOrder are ASCENDING and DESCENDING.

    *)
  4. filter : expression option;
    (*

    Filters utilization data by dimensions. You can filter by the following dimensions:

    • AZ
    • CACHE_ENGINE
    • DEPLOYMENT_OPTION
    • INSTANCE_TYPE
    • LINKED_ACCOUNT
    • OPERATING_SYSTEM
    • PLATFORM
    • REGION
    • SERVICE

      If not specified, the SERVICE filter defaults to Amazon Elastic Compute Cloud - Compute. Supported values for SERVICE are Amazon Elastic Compute Cloud - Compute, Amazon Relational Database Service, Amazon ElastiCache, Amazon Redshift, and Amazon Elasticsearch Service. The value for the SERVICE filter should not exceed "1".

    • SCOPE
    • TENANCY

    GetReservationUtilization uses the same Expression object as the other operations, but only AND is supported among each dimension, and nesting is supported up to only one level deep. If there are multiple values for a dimension, they are OR'd together.

    *)
  5. granularity : granularity option;
    (*

    If GroupBy is set, Granularity can't be set. If Granularity isn't set, the response object doesn't include Granularity, either MONTHLY or DAILY. If both GroupBy and Granularity aren't set, GetReservationUtilization defaults to DAILY.

    The GetReservationUtilization operation supports only DAILY and MONTHLY granularities.

    *)
  6. group_by : group_definitions option;
    (*

    Groups only by SUBSCRIPTION_ID. Metadata is included.

    *)
  7. time_period : date_interval;
    (*

    Sets the start and end dates for retrieving Reserved Instance (RI) utilization. The start date is inclusive, but the end date is exclusive. For example, if start is 2017-01-01 and end is 2017-05-01, then the cost and usage data is retrieved from 2017-01-01 up to and including 2017-04-30 but not including 2017-05-01.

    *)
}
type nonrec get_reservation_purchase_recommendation_response = {
  1. next_page_token : next_page_token option;
    (*

    The pagination token for the next set of retrievable results.

    *)
  2. recommendations : reservation_purchase_recommendations option;
    (*

    Recommendations for reservations to purchase.

    *)
  3. metadata : reservation_purchase_recommendation_metadata option;
    (*

    Information about this specific recommendation call, such as the time stamp for when Cost Explorer generated this recommendation.

    *)
}
type nonrec get_reservation_purchase_recommendation_request = {
  1. next_page_token : next_page_token option;
    (*

    The pagination token that indicates the next set of results that you want to retrieve.

    *)
  2. page_size : recommendations_page_size option;
    (*

    The number of recommendations that you want returned in a single response object.

    *)
  3. service_specification : service_specification option;
    (*

    The hardware specifications for the service instances that you want recommendations for, such as standard or convertible Amazon EC2 instances.

    *)
  4. payment_option : payment_option option;
    (*

    The reservation purchase option that you want recommendations for.

    *)
  5. term_in_years : term_in_years option;
    (*

    The reservation term that you want recommendations for.

    *)
  6. lookback_period_in_days : lookback_period_in_days option;
    (*

    The number of previous days that you want Amazon Web Services to consider when it calculates your recommendations.

    *)
  7. account_scope : account_scope option;
    (*

    The account scope that you want your recommendations for. Amazon Web Services calculates recommendations including the management account and member accounts if the value is set to PAYER. If the value is LINKED, recommendations are calculated for individual member accounts only.

    *)
  8. filter : expression option;
  9. service : generic_string;
    (*

    The specific service that you want recommendations for.

    *)
  10. account_id : generic_string option;
    (*

    The account ID that's associated with the recommendation.

    *)
}
type nonrec coverage_by_time = {
  1. total : coverage option;
    (*

    The total reservation coverage, in hours.

    *)
  2. groups : reservation_coverage_groups option;
    (*

    The groups of instances that the reservation covered.

    *)
  3. time_period : date_interval option;
    (*

    The period that this coverage was used over.

    *)
}

Reservation coverage for a specified period, in hours.

type nonrec coverages_by_time = coverage_by_time list
type nonrec get_reservation_coverage_response = {
  1. next_page_token : next_page_token option;
    (*

    The token for the next set of retrievable results. Amazon Web Services provides the token when the response from a previous call has more results than the maximum page size.

    *)
  2. total : coverage option;
    (*

    The total amount of instance usage that a reservation covered.

    *)
  3. coverages_by_time : coverages_by_time;
    (*

    The amount of time that your reservations covered.

    *)
}
type nonrec get_reservation_coverage_request = {
  1. max_results : max_results option;
    (*

    The maximum number of objects that you returned for this request. If more objects are available, in the response, Amazon Web Services provides a NextPageToken value that you can use in a subsequent call to get the next batch of objects.

    *)
  2. sort_by : sort_definition option;
    (*

    The value by which you want to sort the data.

    The following values are supported for Key:

    • OnDemandCost
    • CoverageHoursPercentage
    • OnDemandHours
    • ReservedHours
    • TotalRunningHours
    • CoverageNormalizedUnitsPercentage
    • OnDemandNormalizedUnits
    • ReservedNormalizedUnits
    • TotalRunningNormalizedUnits
    • Time

    Supported values for SortOrder are ASCENDING or DESCENDING.

    *)
  3. next_page_token : next_page_token option;
    (*

    The token to retrieve the next set of results. Amazon Web Services provides the token when the response from a previous call has more results than the maximum page size.

    *)
  4. metrics : metric_names option;
    (*

    The measurement that you want your reservation coverage reported in.

    Valid values are Hour, Unit, and Cost. You can use multiple values in a request.

    *)
  5. filter : expression option;
    (*

    Filters utilization data by dimensions. You can filter by the following dimensions:

    • AZ
    • CACHE_ENGINE
    • DATABASE_ENGINE
    • DEPLOYMENT_OPTION
    • INSTANCE_TYPE
    • LINKED_ACCOUNT
    • OPERATING_SYSTEM
    • PLATFORM
    • REGION
    • SERVICE
    • TAG
    • TENANCY

    GetReservationCoverage uses the same Expression object as the other operations, but only AND is supported among each dimension. You can nest only one level deep. If there are multiple values for a dimension, they are OR'd together.

    If you don't provide a SERVICE filter, Cost Explorer defaults to EC2.

    Cost category is also supported.

    *)
  6. granularity : granularity option;
    (*

    The granularity of the Amazon Web Services cost data for the reservation. Valid values are MONTHLY and DAILY.

    If GroupBy is set, Granularity can't be set. If Granularity isn't set, the response object doesn't include Granularity, either MONTHLY or DAILY.

    The GetReservationCoverage operation supports only DAILY and MONTHLY granularities.

    *)
  7. group_by : group_definitions option;
    (*

    You can group the data by the following attributes:

    • AZ
    • CACHE_ENGINE
    • DATABASE_ENGINE
    • DEPLOYMENT_OPTION
    • INSTANCE_TYPE
    • INVOICING_ENTITY
    • LINKED_ACCOUNT
    • OPERATING_SYSTEM
    • PLATFORM
    • REGION
    • TENANCY
    *)
  8. time_period : date_interval;
    (*

    The start and end dates of the period that you want to retrieve data about reservation coverage for. You can retrieve data for a maximum of 13 months: the last 12 months and the current month. The start date is inclusive, but the end date is exclusive. For example, if start is 2017-01-01 and end is 2017-05-01, then the cost and usage data is retrieved from 2017-01-01 up to and including 2017-04-30 but not including 2017-05-01.

    *)
}

You can use the following request parameters to query for how much of your instance usage a reservation covered.

type nonrec dimension_values_with_attributes = {
  1. attributes : attributes option;
    (*

    The attribute that applies to a specific Dimension.

    *)
  2. value : value option;
    (*

    The value of a dimension with a specific attribute.

    *)
}

The metadata of a specific type that you can use to filter and group your results. You can use GetDimensionValues to find specific values.

type nonrec dimension_values_with_attributes_list = dimension_values_with_attributes list
type nonrec get_dimension_values_response = {
  1. next_page_token : next_page_token option;
    (*

    The token for the next set of retrievable results. Amazon Web Services provides the token when the response from a previous call has more results than the maximum page size.

    *)
  2. total_size : page_size;
    (*

    The total number of search results.

    *)
  3. return_size : page_size;
    (*

    The number of results that Amazon Web Services returned at one time.

    *)
  4. dimension_values : dimension_values_with_attributes_list;
    (*

    The filters that you used to filter your request. Some dimensions are available only for a specific context.

    If you set the context to COST_AND_USAGE, you can use the following dimensions for searching:

    • AZ - The Availability Zone. An example is us-east-1a.
    • DATABASE_ENGINE - The Amazon Relational Database Service database. Examples are Aurora or MySQL.
    • INSTANCE_TYPE - The type of Amazon EC2 instance. An example is m4.xlarge.
    • LEGAL_ENTITY_NAME - The name of the organization that sells you Amazon Web Services services, such as Amazon Web Services.
    • LINKED_ACCOUNT - The description in the attribute map that includes the full name of the member account. The value field contains the Amazon Web Services ID of the member account.
    • OPERATING_SYSTEM - The operating system. Examples are Windows or Linux.
    • OPERATION - The action performed. Examples include RunInstance and CreateBucket.
    • PLATFORM - The Amazon EC2 operating system. Examples are Windows or Linux.
    • PURCHASE_TYPE - The reservation type of the purchase to which this usage is related. Examples include On-Demand Instances and Standard Reserved Instances.
    • SERVICE - The Amazon Web Services service such as Amazon DynamoDB.
    • USAGE_TYPE - The type of usage. An example is DataTransfer-In-Bytes. The response for the GetDimensionValues operation includes a unit attribute. Examples include GB and Hrs.
    • USAGE_TYPE_GROUP - The grouping of common usage types. An example is Amazon EC2: CloudWatch – Alarms. The response for this operation includes a unit attribute.
    • RECORD_TYPE - The different types of charges such as RI fees, usage costs, tax refunds, and credits.
    • RESOURCE_ID - The unique identifier of the resource. ResourceId is an opt-in feature only available for last 14 days for EC2-Compute Service. You can opt-in by enabling Hourly and Resource Level Data in Cost Management Console preferences.

    If you set the context to RESERVATIONS, you can use the following dimensions for searching:

    • AZ - The Availability Zone. An example is us-east-1a.
    • CACHE_ENGINE - The Amazon ElastiCache operating system. Examples are Windows or Linux.
    • DEPLOYMENT_OPTION - The scope of Amazon Relational Database Service deployments. Valid values are SingleAZ and MultiAZ.
    • INSTANCE_TYPE - The type of Amazon EC2 instance. An example is m4.xlarge.
    • LINKED_ACCOUNT - The description in the attribute map that includes the full name of the member account. The value field contains the Amazon Web Services ID of the member account.
    • PLATFORM - The Amazon EC2 operating system. Examples are Windows or Linux.
    • REGION - The Amazon Web Services Region.
    • SCOPE (Utilization only) - The scope of a Reserved Instance (RI). Values are regional or a single Availability Zone.
    • TAG (Coverage only) - The tags that are associated with a Reserved Instance (RI).
    • TENANCY - The tenancy of a resource. Examples are shared or dedicated.

    If you set the context to SAVINGS_PLANS, you can use the following dimensions for searching:

    • SAVINGS_PLANS_TYPE - Type of Savings Plans (EC2 Instance or Compute)
    • PAYMENT_OPTION - Payment option for the given Savings Plans (for example, All Upfront)
    • REGION - The Amazon Web Services Region.
    • INSTANCE_TYPE_FAMILY - The family of instances (For example, m5)
    • LINKED_ACCOUNT - The description in the attribute map that includes the full name of the member account. The value field contains the Amazon Web Services ID of the member account.
    • SAVINGS_PLAN_ARN - The unique identifier for your Savings Plan
    *)
}
type nonrec context =
  1. | SAVINGS_PLANS
  2. | RESERVATIONS
  3. | COST_AND_USAGE
type nonrec get_dimension_values_request = {
  1. next_page_token : next_page_token option;
    (*

    The token to retrieve the next set of results. Amazon Web Services provides the token when the response from a previous call has more results than the maximum page size.

    *)
  2. max_results : max_results option;
    (*

    This field is only used when SortBy is provided in the request. The maximum number of objects that are returned for this request. If MaxResults isn't specified with SortBy, the request returns 1000 results as the default value for this parameter.

    For GetDimensionValues, MaxResults has an upper limit of 1000.

    *)
  3. billing_view_arn : billing_view_arn 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.

    *)
  4. sort_by : sort_definitions option;
    (*

    The value that you want to sort the data by.

    The key represents cost and usage metrics. The following values are supported:

    • BlendedCost
    • UnblendedCost
    • AmortizedCost
    • NetAmortizedCost
    • NetUnblendedCost
    • UsageQuantity
    • NormalizedUsageAmount

    The supported values for the SortOrder key are ASCENDING or DESCENDING.

    When you specify a SortBy paramater, the context must be COST_AND_USAGE. Further, when using SortBy, NextPageToken and SearchString aren't supported.

    *)
  5. filter : expression option;
  6. context : context option;
    (*

    The context for the call to GetDimensionValues. This can be RESERVATIONS or COST_AND_USAGE. The default value is COST_AND_USAGE. If the context is set to RESERVATIONS, the resulting dimension values can be used in the GetReservationUtilization operation. If the context is set to COST_AND_USAGE, the resulting dimension values can be used in the GetCostAndUsage operation.

    If you set the context to COST_AND_USAGE, you can use the following dimensions for searching:

    • AZ - The Availability Zone. An example is us-east-1a.
    • BILLING_ENTITY - The Amazon Web Services seller that your account is with. Possible values are the following:

      • Amazon Web Services(Amazon Web Services): The entity that sells Amazon Web Services services.
      • AISPL (Amazon Internet Services Pvt. Ltd.): The local Indian entity that's an acting reseller for Amazon Web Services services in India.
      • Amazon Web Services Marketplace: The entity that supports the sale of solutions that are built on Amazon Web Services by third-party software providers.
    • CACHE_ENGINE - The Amazon ElastiCache operating system. Examples are Windows or Linux.
    • DEPLOYMENT_OPTION - The scope of Amazon Relational Database Service deployments. Valid values are SingleAZ and MultiAZ.
    • DATABASE_ENGINE - The Amazon Relational Database Service database. Examples are Aurora or MySQL.
    • INSTANCE_TYPE - The type of Amazon EC2 instance. An example is m4.xlarge.
    • INSTANCE_TYPE_FAMILY - A family of instance types optimized to fit different use cases. Examples are Compute Optimized (for example, C4, C5, C6g, and C7g), Memory Optimization (for example, R4, R5n, R5b, and R6g).
    • INVOICING_ENTITY - The name of the entity that issues the Amazon Web Services invoice.
    • LEGAL_ENTITY_NAME - The name of the organization that sells you Amazon Web Services services, such as Amazon Web Services.
    • LINKED_ACCOUNT - The description in the attribute map that includes the full name of the member account. The value field contains the Amazon Web Services ID of the member account.
    • OPERATING_SYSTEM - The operating system. Examples are Windows or Linux.
    • OPERATION - The action performed. Examples include RunInstance and CreateBucket.
    • PLATFORM - The Amazon EC2 operating system. Examples are Windows or Linux.
    • PURCHASE_TYPE - The reservation type of the purchase that this usage is related to. Examples include On-Demand Instances and Standard Reserved Instances.
    • RESERVATION_ID - The unique identifier for an Amazon Web Services Reservation Instance.
    • SAVINGS_PLAN_ARN - The unique identifier for your Savings Plans.
    • SAVINGS_PLANS_TYPE - Type of Savings Plans (EC2 Instance or Compute).
    • SERVICE - The Amazon Web Services service such as Amazon DynamoDB.
    • TENANCY - The tenancy of a resource. Examples are shared or dedicated.
    • USAGE_TYPE - The type of usage. An example is DataTransfer-In-Bytes. The response for the GetDimensionValues operation includes a unit attribute. Examples include GB and Hrs.
    • USAGE_TYPE_GROUP - The grouping of common usage types. An example is Amazon EC2: CloudWatch – Alarms. The response for this operation includes a unit attribute.
    • REGION - The Amazon Web Services Region.
    • RECORD_TYPE - The different types of charges such as Reserved Instance (RI) fees, usage costs, tax refunds, and credits.
    • RESOURCE_ID - The unique identifier of the resource. ResourceId is an opt-in feature only available for last 14 days for EC2-Compute Service.

    If you set the context to RESERVATIONS, you can use the following dimensions for searching:

    • AZ - The Availability Zone. An example is us-east-1a.
    • CACHE_ENGINE - The Amazon ElastiCache operating system. Examples are Windows or Linux.
    • DEPLOYMENT_OPTION - The scope of Amazon Relational Database Service deployments. Valid values are SingleAZ and MultiAZ.
    • INSTANCE_TYPE - The type of Amazon EC2 instance. An example is m4.xlarge.
    • LINKED_ACCOUNT - The description in the attribute map that includes the full name of the member account. The value field contains the Amazon Web Services ID of the member account.
    • PLATFORM - The Amazon EC2 operating system. Examples are Windows or Linux.
    • REGION - The Amazon Web Services Region.
    • SCOPE (Utilization only) - The scope of a Reserved Instance (RI). Values are regional or a single Availability Zone.
    • TAG (Coverage only) - The tags that are associated with a Reserved Instance (RI).
    • TENANCY - The tenancy of a resource. Examples are shared or dedicated.

    If you set the context to SAVINGS_PLANS, you can use the following dimensions for searching:

    • SAVINGS_PLANS_TYPE - Type of Savings Plans (EC2 Instance or Compute)
    • PAYMENT_OPTION - The payment option for the given Savings Plans (for example, All Upfront)
    • REGION - The Amazon Web Services Region.
    • INSTANCE_TYPE_FAMILY - The family of instances (For example, m5)
    • LINKED_ACCOUNT - The description in the attribute map that includes the full name of the member account. The value field contains the Amazon Web Services ID of the member account.
    • SAVINGS_PLAN_ARN - The unique identifier for your Savings Plans.
    *)
  7. dimension : dimension;
    (*

    The name of the dimension. Each Dimension is available for a different Context. For more information, see Context. LINK_ACCOUNT_NAME and SERVICE_CODE can only be used in CostCategoryRule.

    *)
  8. time_period : date_interval;
    (*

    The start date and end date for retrieving the dimension values. The start date is inclusive, but the end date is exclusive. For example, if start is 2017-01-01 and end is 2017-05-01, then the cost and usage data is retrieved from 2017-01-01 up to and including 2017-04-30 but not including 2017-05-01.

    *)
  9. search_string : search_string option;
    (*

    The value that you want to search the filter values for.

    *)
}
type nonrec get_cost_forecast_response = {
  1. forecast_results_by_time : forecast_results_by_time option;
    (*

    The forecasts for your query, in order. For DAILY forecasts, this is a list of days. For MONTHLY forecasts, this is a list of months.

    *)
  2. total : metric_value option;
    (*

    How much you are forecasted to spend over the forecast period, in USD.

    *)
}
type nonrec get_cost_forecast_request = {
  1. prediction_interval_level : prediction_interval_level option;
    (*

    Cost Explorer always returns the mean forecast as a single point. You can request a prediction interval around the mean by specifying a confidence level. The higher the confidence level, the more confident Cost Explorer is about the actual value falling in the prediction interval. Higher confidence levels result in wider prediction intervals.

    *)
  2. billing_view_arn : billing_view_arn 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.

    *)
  3. filter : expression option;
    (*

    The filters that you want to use to filter your forecast. The GetCostForecast API supports filtering by the following dimensions:

    • AZ
    • INSTANCE_TYPE
    • LINKED_ACCOUNT
    • OPERATION
    • PURCHASE_TYPE
    • REGION
    • SERVICE
    • USAGE_TYPE
    • USAGE_TYPE_GROUP
    • RECORD_TYPE
    • OPERATING_SYSTEM
    • TENANCY
    • SCOPE
    • PLATFORM
    • SUBSCRIPTION_ID
    • LEGAL_ENTITY_NAME
    • DEPLOYMENT_OPTION
    • DATABASE_ENGINE
    • INSTANCE_TYPE_FAMILY
    • BILLING_ENTITY
    • RESERVATION_ID
    • SAVINGS_PLAN_ARN
    *)
  4. granularity : granularity;
    (*

    How granular you want the forecast to be. You can get 3 months of DAILY forecasts or 18 months of MONTHLY forecasts.

    The GetCostForecast operation supports only DAILY and MONTHLY granularities.

    *)
  5. metric : metric;
    (*

    Which metric Cost Explorer uses to create your forecast. For more information about blended and unblended rates, see Why does the "blended" annotation appear on some line items in my bill?.

    Valid values for a GetCostForecast call are the following:

    • AMORTIZED_COST
    • BLENDED_COST
    • NET_AMORTIZED_COST
    • NET_UNBLENDED_COST
    • UNBLENDED_COST
    *)
  6. time_period : date_interval;
    (*

    The period of time that you want the forecast to cover. The start date must be equal to or no later than the current date to avoid a validation error.

    *)
}
type nonrec comparison_metric_value = {
  1. unit_ : generic_string option;
    (*

    The unit of measurement applicable to all numeric values in this comparison.

    *)
  2. difference : generic_string option;
    (*

    The calculated difference between ComparisonTimePeriodAmount and BaselineTimePeriodAmount.

    *)
  3. comparison_time_period_amount : generic_string option;
    (*

    The numeric value for the comparison time period measurement.

    *)
  4. baseline_time_period_amount : generic_string option;
    (*

    The numeric value for the baseline time period measurement.

    *)
}

Contains cost or usage metric values for comparing two time periods. Each value includes amounts for the baseline and comparison time periods, their difference, and the unit of measurement.

type nonrec comparison_metrics = (metric_name * comparison_metric_value) list
type nonrec cost_driver = {
  1. metrics : comparison_metrics option;
    (*

    A mapping of metric names to their comparison values, measuring the impact of this cost driver.

    *)
  2. name : generic_string option;
    (*

    The specific identifier of the cost driver.

    *)
  3. type_ : generic_string option;
    (*

    The category or classification of the cost driver.

    Values include: BUNDLED_DISCOUNT, CREDIT, OUT_OF_CYCLE_CHARGE, REFUND, RECURRING_RESERVATION_FEE, RESERVATION_USAGE, RI_VOLUME_DISCOUNT, SAVINGS_PLAN_USAGE, SAVINGS_PLAN_RECURRING_FEE, SUPPORT_FEE, TAX, UPFRONT_RESERVATION_FEE, USAGE_CHANGE, COMMITMENT

    *)
}

Represents factors that contribute to cost variations between the baseline and comparison time periods, including the type of driver, an identifier of the driver, and associated metrics.

type nonrec cost_drivers = cost_driver list
type nonrec cost_comparison_driver = {
  1. cost_drivers : cost_drivers option;
    (*

    An array of cost drivers, each representing a cost difference between the baseline and comparison time periods. Each entry also includes a metric delta (for example, usage change) that contributed to the cost variance, along with the identifier and type of change.

    *)
  2. metrics : comparison_metrics option;
    (*

    A mapping of metric names to their comparison values.

    *)
  3. cost_selector : expression option;
}

Represents a collection of cost drivers and their associated metrics for cost comparison analysis.

type nonrec cost_comparison_drivers = cost_comparison_driver list
type nonrec get_cost_comparison_drivers_response = {
  1. next_page_token : next_page_token option;
    (*

    The token to retrieve the next set of paginated results.

    *)
  2. cost_comparison_drivers : cost_comparison_drivers option;
    (*

    An array of comparison results showing factors that drive significant cost differences between BaselineTimePeriod and ComparisonTimePeriod.

    *)
}
type nonrec cost_comparison_drivers_max_results = int
type nonrec get_cost_comparison_drivers_request = {
  1. next_page_token : next_page_token option;
    (*

    The token to retrieve the next set of paginated results.

    *)
  2. max_results : cost_comparison_drivers_max_results option;
    (*

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

    *)
  3. group_by : group_definitions option;
    (*

    You can group results using the attributes DIMENSION, TAG, and COST_CATEGORY. Note that SERVICE and USAGE_TYPE dimensions are automatically included in the cost comparison drivers analysis.

    *)
  4. filter : expression option;
  5. metric_for_comparison : metric_name;
    (*

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

    *)
  6. comparison_time_period : date_interval;
    (*

    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.

    *)
  7. baseline_time_period : date_interval;
    (*

    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.

    *)
  8. billing_view_arn : billing_view_arn 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.

    *)
}
type nonrec cost_category_names_list = cost_category_name list
type nonrec get_cost_categories_response = {
  1. total_size : page_size;
    (*

    The total number of objects.

    *)
  2. return_size : page_size;
    (*

    The number of objects that are returned.

    *)
  3. cost_category_values : cost_category_values_list option;
    (*

    The cost category values.

    If the CostCategoryName key isn't specified in the request, the CostCategoryValues fields aren't returned.

    *)
  4. cost_category_names : cost_category_names_list option;
    (*

    The names of the cost categories.

    *)
  5. next_page_token : next_page_token option;
    (*

    If the number of objects that are still available for retrieval exceeds the quota, Amazon Web Services returns a NextPageToken value in the response. To retrieve the next batch of objects, provide the marker from the prior call in your next request.

    *)
}
type nonrec get_cost_categories_request = {
  1. next_page_token : next_page_token option;
    (*

    If the number of objects that are still available for retrieval exceeds the quota, Amazon Web Services returns a NextPageToken value in the response. To retrieve the next batch of objects, provide the NextPageToken from the previous call in your next request.

    *)
  2. max_results : max_results option;
    (*

    This field is only used when the SortBy value is provided in the request.

    The maximum number of objects that are returned for this request. If MaxResults isn't specified with the SortBy value, the request returns 1000 results as the default value for this parameter.

    For GetCostCategories, MaxResults has an upper quota of 1000.

    *)
  3. billing_view_arn : billing_view_arn 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.

    *)
  4. sort_by : sort_definitions option;
    (*

    The value that you sort the data by.

    The key represents the cost and usage metrics. The following values are supported:

    • BlendedCost
    • UnblendedCost
    • AmortizedCost
    • NetAmortizedCost
    • NetUnblendedCost
    • UsageQuantity
    • NormalizedUsageAmount

    The supported key values for the SortOrder value are ASCENDING and DESCENDING.

    When you use the SortBy value, the NextPageToken and SearchString key values aren't supported.

    *)
  5. filter : expression option;
  6. cost_category_name : cost_category_name option;
  7. time_period : date_interval;
  8. search_string : search_string option;
    (*

    The value that you want to search the filter values for.

    If you don't specify a CostCategoryName, SearchString is used to filter cost category names that match the SearchString pattern. If you specify a CostCategoryName, SearchString is used to filter cost category values that match the SearchString pattern.

    *)
}
type nonrec get_cost_and_usage_with_resources_response = {
  1. dimension_value_attributes : dimension_values_with_attributes_list option;
    (*

    The attributes that apply to a specific dimension value. For example, if the value is a linked account, the attribute is that account name.

    *)
  2. results_by_time : results_by_time option;
    (*

    The time period that's covered by the results in the response.

    *)
  3. group_definitions : group_definitions option;
    (*

    The groups that are specified by the Filter or GroupBy parameters in the request.

    *)
  4. next_page_token : next_page_token option;
    (*

    The token for the next set of retrievable results. Amazon Web Services provides the token when the response from a previous call has more results than the maximum page size.

    *)
}
type nonrec get_cost_and_usage_with_resources_request = {
  1. next_page_token : next_page_token option;
    (*

    The token to retrieve the next set of results. Amazon Web Services provides the token when the response from a previous call has more results than the maximum page size.

    *)
  2. billing_view_arn : billing_view_arn 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.

    *)
  3. group_by : group_definitions option;
    (*

    You can group Amazon Web Services costs using up to two different groups: DIMENSION, TAG, COST_CATEGORY.

    *)
  4. metrics : metric_names option;
    (*

    Which metrics are returned in the query. For more information about blended and unblended rates, see Why does the "blended" annotation appear on some line items in my bill?.

    Valid values are AmortizedCost, BlendedCost, NetAmortizedCost, NetUnblendedCost, NormalizedUsageAmount, UnblendedCost, and UsageQuantity.

    If you return the UsageQuantity metric, the service aggregates all usage numbers without taking the units into account. For example, if you aggregate usageQuantity across all of Amazon EC2, the results aren't meaningful because Amazon EC2 compute hours and data transfer are measured in different units (for example, hour or GB). To get more meaningful UsageQuantity metrics, filter by UsageType or UsageTypeGroups.

    Metrics is required for GetCostAndUsageWithResources requests.

    *)
  5. filter : expression;
    (*

    Filters Amazon Web Services costs by different dimensions. For example, you can specify SERVICE and LINKED_ACCOUNT and get the costs that are associated with that account's usage of that service. You can nest Expression objects to define any combination of dimension filters. For more information, see Expression.

    The GetCostAndUsageWithResources operation requires that you either group by or filter by a ResourceId. It requires the Expression "SERVICE = Amazon Elastic Compute Cloud - Compute" in the filter.

    Valid values for MatchOptions for Dimensions are EQUALS and CASE_SENSITIVE.

    Valid values for MatchOptions for CostCategories and Tags are EQUALS, ABSENT, and CASE_SENSITIVE. Default values are EQUALS and CASE_SENSITIVE.

    *)
  6. granularity : granularity;
    (*

    Sets the Amazon Web Services cost granularity to MONTHLY, DAILY, or HOURLY. If Granularity isn't set, the response object doesn't include the Granularity, MONTHLY, DAILY, or HOURLY.

    *)
  7. time_period : date_interval;
    (*

    Sets the start and end dates for retrieving Amazon Web Services costs. The range must be within the last 14 days (the start date cannot be earlier than 14 days ago). The start date is inclusive, but the end date is exclusive. For example, if start is 2017-01-01 and end is 2017-05-01, then the cost and usage data is retrieved from 2017-01-01 up to and including 2017-04-30 but not including 2017-05-01.

    *)
}
type nonrec get_cost_and_usage_response = {
  1. dimension_value_attributes : dimension_values_with_attributes_list option;
    (*

    The attributes that apply to a specific dimension value. For example, if the value is a linked account, the attribute is that account name.

    *)
  2. results_by_time : results_by_time option;
    (*

    The time period that's covered by the results in the response.

    *)
  3. group_definitions : group_definitions option;
    (*

    The groups that are specified by the Filter or GroupBy parameters in the request.

    *)
  4. next_page_token : next_page_token option;
    (*

    The token for the next set of retrievable results. Amazon Web Services provides the token when the response from a previous call has more results than the maximum page size.

    *)
}
type nonrec get_cost_and_usage_request = {
  1. next_page_token : next_page_token option;
    (*

    The token to retrieve the next set of results. Amazon Web Services provides the token when the response from a previous call has more results than the maximum page size.

    *)
  2. billing_view_arn : billing_view_arn 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.

    *)
  3. group_by : group_definitions option;
    (*

    You can group Amazon Web Services costs using up to two different groups, either dimensions, tag keys, cost categories, or any two group by types.

    Valid values for the DIMENSION type are AZ, INSTANCE_TYPE, LEGAL_ENTITY_NAME, INVOICING_ENTITY, LINKED_ACCOUNT, OPERATION, PLATFORM, PURCHASE_TYPE, SERVICE, TENANCY, RECORD_TYPE, and USAGE_TYPE.

    When you group by the TAG type and include a valid tag key, you get all tag values, including empty strings.

    *)
  4. metrics : metric_names;
    (*

    Which metrics are returned in the query. For more information about blended and unblended rates, see Why does the "blended" annotation appear on some line items in my bill?.

    Valid values are AmortizedCost, BlendedCost, NetAmortizedCost, NetUnblendedCost, NormalizedUsageAmount, UnblendedCost, and UsageQuantity.

    If you return the UsageQuantity metric, the service aggregates all usage numbers without taking into account the units. For example, if you aggregate usageQuantity across all of Amazon EC2, the results aren't meaningful because Amazon EC2 compute hours and data transfer are measured in different units (for example, hours and GB). To get more meaningful UsageQuantity metrics, filter by UsageType or UsageTypeGroups.

    Metrics is required for GetCostAndUsage requests.

    *)
  5. filter : expression option;
    (*

    Filters Amazon Web Services costs by different dimensions. For example, you can specify SERVICE and LINKED_ACCOUNT and get the costs that are associated with that account's usage of that service. You can nest Expression objects to define any combination of dimension filters. For more information, see Expression.

    Valid values for MatchOptions for Dimensions are EQUALS and CASE_SENSITIVE.

    Valid values for MatchOptions for CostCategories and Tags are EQUALS, ABSENT, and CASE_SENSITIVE. Default values are EQUALS and CASE_SENSITIVE.

    *)
  6. granularity : granularity;
    (*

    Sets the Amazon Web Services cost granularity to MONTHLY or DAILY, or HOURLY. If Granularity isn't set, the response object doesn't include the Granularity, either MONTHLY or DAILY, or HOURLY.

    *)
  7. time_period : date_interval;
    (*

    Sets the start date and end date for retrieving Amazon Web Services costs. The start date is inclusive, but the end date is exclusive. For example, if start is 2017-01-01 and end is 2017-05-01, then the cost and usage data is retrieved from 2017-01-01 up to and including 2017-04-30 but not including 2017-05-01.

    *)
}
type nonrec cost_and_usage_comparison = {
  1. metrics : comparison_metrics option;
    (*

    A mapping of metric names to their comparison values.

    *)
  2. cost_and_usage_selector : expression option;
}

Represents a comparison of cost and usage metrics between two time periods.

type nonrec cost_and_usage_comparisons = cost_and_usage_comparison list
type nonrec get_cost_and_usage_comparisons_response = {
  1. next_page_token : next_page_token option;
    (*

    The token to retrieve the next set of paginated results.

    *)
  2. total_cost_and_usage : comparison_metrics option;
    (*

    A summary of the total cost and usage, comparing amounts between BaselineTimePeriod and ComparisonTimePeriod and their differences. This total represents the aggregate total across all paginated results, if the response spans multiple pages.

    *)
  3. cost_and_usage_comparisons : cost_and_usage_comparisons option;
    (*

    An array of comparison results showing cost and usage metrics between BaselineTimePeriod and ComparisonTimePeriod.

    *)
}
type nonrec cost_and_usage_comparisons_max_results = int
type nonrec get_cost_and_usage_comparisons_request = {
  1. next_page_token : next_page_token option;
    (*

    The token to retrieve the next set of paginated results.

    *)
  2. max_results : cost_and_usage_comparisons_max_results option;
    (*

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

    *)
  3. group_by : group_definitions option;
    (*

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

    *)
  4. filter : expression option;
  5. metric_for_comparison : metric_name;
    (*

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

    *)
  6. comparison_time_period : date_interval;
    (*

    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.

    *)
  7. baseline_time_period : date_interval;
    (*

    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.

    *)
  8. billing_view_arn : billing_view_arn 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.

    *)
}
type nonrec analysis_details = {
  1. savings_plans_purchase_analysis_details : savings_plans_purchase_analysis_details option;
    (*

    Details about the Savings Plans purchase analysis.

    *)
}

Details about the analysis.

type nonrec get_commitment_purchase_analysis_response = {
  1. commitment_purchase_analysis_configuration : commitment_purchase_analysis_configuration;
    (*

    The configuration for the commitment purchase analysis.

    *)
  2. analysis_details : analysis_details option;
    (*

    Details about the analysis.

    *)
  3. error_code : error_code option;
    (*

    The error code used for the analysis.

    *)
  4. analysis_status : analysis_status;
    (*

    The status of the analysis.

    *)
  5. analysis_id : analysis_id;
    (*

    The analysis ID that's associated with the commitment purchase analysis.

    *)
  6. analysis_started_time : zoned_date_time;
    (*

    The start time of the analysis.

    *)
  7. analysis_completion_time : zoned_date_time option;
    (*

    The completion time of the analysis.

    *)
  8. estimated_completion_time : zoned_date_time;
    (*

    The estimated time for when the analysis will complete.

    *)
}
type nonrec get_commitment_purchase_analysis_request = {
  1. analysis_id : analysis_id;
    (*

    The analysis ID that's associated with the commitment purchase analysis.

    *)
}
type nonrec analysis_not_found_exception = {
  1. message : error_message option;
}

The requested analysis can't be found.

type nonrec approximate_usage_records_per_service = (generic_string * non_negative_long) list
type nonrec get_approximate_usage_records_response = {
  1. lookback_period : date_interval option;
    (*

    The lookback period that's used for the estimation.

    *)
  2. total_records : non_negative_long option;
    (*

    The total number of usage records for all services in the services list.

    *)
  3. services : approximate_usage_records_per_service option;
    (*

    The service metadata for the service or services in the response.

    *)
}
type nonrec approximation_dimension =
  1. | RESOURCE
  2. | SERVICE
type nonrec get_approximate_usage_records_request = {
  1. approximation_dimension : approximation_dimension;
    (*

    The service to evaluate for the usage records. You can choose resource-level data at daily granularity, or hourly granularity with or without resource-level data.

    *)
  2. services : usage_services option;
    (*

    The service metadata for the service or services you want to query. If not specified, all elements are returned.

    *)
  3. granularity : granularity;
    (*

    How granular you want the data to be. You can enable data at hourly or daily granularity.

    *)
}
type nonrec anomaly_subscription = {
  1. threshold_expression : expression option;
    (*

    An Expression object used to specify the anomalies that you want to generate alerts for. This supports dimensions and nested expressions. The supported dimensions are ANOMALY_TOTAL_IMPACT_ABSOLUTE and ANOMALY_TOTAL_IMPACT_PERCENTAGE, corresponding to an anomaly’s TotalImpact and TotalImpactPercentage, respectively (see Impact for more details). The supported nested expression types are AND and OR. The match option GREATER_THAN_OR_EQUAL is required. Values must be numbers between 0 and 10,000,000,000 in string format.

    One of Threshold or ThresholdExpression is required for this resource. You cannot specify both.

    The following are examples of valid ThresholdExpressions:

    • Absolute threshold: { "Dimensions": { "Key": "ANOMALY_TOTAL_IMPACT_ABSOLUTE", "MatchOptions": [ "GREATER_THAN_OR_EQUAL" ], "Values": [ "100" ] } }
    • Percentage threshold: { "Dimensions": { "Key": "ANOMALY_TOTAL_IMPACT_PERCENTAGE", "MatchOptions": [ "GREATER_THAN_OR_EQUAL" ], "Values": [ "100" ] } }
    • AND two thresholds together: { "And": [ { "Dimensions": { "Key": "ANOMALY_TOTAL_IMPACT_ABSOLUTE", "MatchOptions": [ "GREATER_THAN_OR_EQUAL" ], "Values": [ "100" ] } }, { "Dimensions": { "Key": "ANOMALY_TOTAL_IMPACT_PERCENTAGE", "MatchOptions": [ "GREATER_THAN_OR_EQUAL" ], "Values": [ "100" ] } } ] }
    • OR two thresholds together: { "Or": [ { "Dimensions": { "Key": "ANOMALY_TOTAL_IMPACT_ABSOLUTE", "MatchOptions": [ "GREATER_THAN_OR_EQUAL" ], "Values": [ "100" ] } }, { "Dimensions": { "Key": "ANOMALY_TOTAL_IMPACT_PERCENTAGE", "MatchOptions": [ "GREATER_THAN_OR_EQUAL" ], "Values": [ "100" ] } } ] }
    *)
  2. subscription_name : generic_string;
    (*

    The name for the subscription.

    *)
  3. frequency : anomaly_subscription_frequency;
    (*

    The frequency that anomaly notifications are sent. Notifications are sent either over email (for DAILY and WEEKLY frequencies) or SNS (for IMMEDIATE frequency). For more information, see Creating an Amazon SNS topic for anomaly notifications.

    *)
  4. threshold : nullable_non_negative_double option;
    (*

    (deprecated)

    An absolute dollar value that must be exceeded by the anomaly's total impact (see Impact for more details) for an anomaly notification to be generated.

    This field has been deprecated. To specify a threshold, use ThresholdExpression. Continued use of Threshold will be treated as shorthand syntax for a ThresholdExpression.

    One of Threshold or ThresholdExpression is required for this resource. You cannot specify both.

    *)
  5. subscribers : subscribers;
    (*

    A list of subscribers to notify.

    *)
  6. monitor_arn_list : monitor_arn_list;
    (*

    A list of cost anomaly monitors.

    *)
  7. account_id : generic_string option;
    (*

    Your unique account identifier.

    *)
  8. subscription_arn : generic_string option;
    (*

    The AnomalySubscription Amazon Resource Name (ARN).

    *)
}

An AnomalySubscription resource (also referred to as an alert subscription) sends notifications about specific anomalies that meet an alerting criteria defined by you.

You can specify the frequency of the alerts and the subscribers to notify.

Anomaly subscriptions can be associated with one or more AnomalyMonitor resources, and they only send notifications about anomalies detected by those associated monitors. You can also configure a threshold to further control which anomalies are included in the notifications.

Anomalies that don’t exceed the chosen threshold and therefore don’t trigger notifications from an anomaly subscription will still be available on the console and from the GetAnomalies API.

type nonrec anomaly_subscriptions = anomaly_subscription list
type nonrec get_anomaly_subscriptions_response = {
  1. next_page_token : next_page_token option;
    (*

    The token to retrieve the next set of results. Amazon Web Services provides the token when the response from a previous call has more results than the maximum page size.

    *)
  2. anomaly_subscriptions : anomaly_subscriptions;
    (*

    A list of cost anomaly subscriptions that includes the detailed metadata for each one.

    *)
}
type nonrec get_anomaly_subscriptions_request = {
  1. max_results : page_size option;
    (*

    The number of entries a paginated response contains.

    *)
  2. next_page_token : next_page_token option;
    (*

    The token to retrieve the next set of results. Amazon Web Services provides the token when the response from a previous call has more results than the maximum page size.

    *)
  3. monitor_arn : generic_string option;
    (*

    Cost anomaly monitor ARNs.

    *)
  4. subscription_arn_list : values option;
    (*

    A list of cost anomaly subscription ARNs.

    *)
}
type nonrec anomaly_monitor = {
  1. dimensional_value_count : non_negative_integer option;
    (*

    The value for evaluated dimensions.

    *)
  2. monitor_specification : expression option;
    (*

    An Expression object used to control what costs the monitor analyzes for anomalies.

    For Amazon Web Services managed monitors:

    • If MonitorDimension is SERVICE or LINKED_ACCOUNT, do not specify this field
    • If MonitorDimension is TAG, set this field to { "Tags": { "Key": "your tag key" } }
    • If MonitorDimension is COST_CATEGORY, set this field to { "CostCategories": { "Key": "your cost category key" } }

    For customer managed monitors:

    • To track linked accounts, set this field to { "Dimensions": { "Key": "LINKED_ACCOUNT", "Values": [ "your list of up to 10 account IDs" ] } }
    • To track cost allocation tags, set this field to { "Tags": { "Key": "your tag key", "Values": [ "your list of up to 10 tag values" ] } }
    • To track cost categories, set this field to{ "CostCategories": { "Key": "your cost category key", "Values": [ "your cost category value" ] } }
    *)
  3. monitor_dimension : monitor_dimension option;
    (*

    For customer managed monitors, do not specify this field.

    For Amazon Web Services managed monitors, this field controls which cost dimension is automatically analyzed by the monitor. For TAG and COST_CATEGORY dimensions, you must also specify MonitorSpecification to configure the specific tag or cost category key to analyze.

    *)
  4. monitor_type : monitor_type;
    (*

    The type of the monitor.

    Set this to DIMENSIONAL for an Amazon Web Services managed monitor. Amazon Web Services managed monitors automatically track up to the top 5,000 values by cost within a dimension of your choosing. Each dimension value is evaluated independently. If you start incurring cost in a new value of your chosen dimension, it will automatically be analyzed by an Amazon Web Services managed monitor.

    Set this to CUSTOM for a customer managed monitor. Customer managed monitors let you select specific dimension values that get monitored in aggregate.

    For more information about monitor types, see Monitor types in the Billing and Cost Management User Guide.

    *)
  5. last_evaluated_date : year_month_day option;
    (*

    The date when the monitor last evaluated for anomalies.

    *)
  6. last_updated_date : year_month_day option;
    (*

    The date when the monitor was last updated.

    *)
  7. creation_date : year_month_day option;
    (*

    The date when the monitor was created.

    *)
  8. monitor_name : generic_string;
    (*

    The name of the monitor.

    *)
  9. monitor_arn : generic_string option;
    (*

    The Amazon Resource Name (ARN) value.

    *)
}

This object continuously inspects your account's cost data for anomalies. It's based on MonitorType and MonitorSpecification. The content consists of detailed metadata and the current status of the monitor object.

type nonrec anomaly_monitors = anomaly_monitor list
type nonrec get_anomaly_monitors_response = {
  1. next_page_token : next_page_token option;
    (*

    The token to retrieve the next set of results. Amazon Web Services provides the token when the response from a previous call has more results than the maximum page size.

    *)
  2. anomaly_monitors : anomaly_monitors;
    (*

    A list of cost anomaly monitors that includes the detailed metadata for each monitor.

    *)
}
type nonrec get_anomaly_monitors_request = {
  1. max_results : page_size option;
    (*

    The number of entries that a paginated response contains.

    *)
  2. next_page_token : next_page_token option;
    (*

    The token to retrieve the next set of results. Amazon Web Services provides the token when the response from a previous call has more results than the maximum page size.

    *)
  3. monitor_arn_list : values option;
    (*

    A list of cost anomaly monitor ARNs.

    *)
}
type nonrec anomaly_score = {
  1. current_score : generic_double;
    (*

    The last observed score.

    *)
  2. max_score : generic_double;
    (*

    The maximum score that's observed during the AnomalyDateInterval.

    *)
}

Quantifies the anomaly. The higher score means that it's more anomalous.

type nonrec anomaly = {
  1. feedback : anomaly_feedback_type option;
    (*

    The feedback value.

    *)
  2. monitor_arn : generic_string;
    (*

    The Amazon Resource Name (ARN) for the cost monitor that generated this anomaly.

    *)
  3. impact : impact;
    (*

    The dollar impact for the anomaly.

    *)
  4. anomaly_score : anomaly_score;
    (*

    The latest and maximum score for the anomaly.

    *)
  5. root_causes : root_causes option;
    (*

    The list of identified root causes for the anomaly.

    *)
  6. dimension_value : generic_string option;
    (*

    The dimension for the anomaly (for example, an Amazon Web Services service in a service monitor).

    *)
  7. anomaly_end_date : year_month_day option;
    (*

    The last day the anomaly is detected.

    *)
  8. anomaly_start_date : year_month_day option;
    (*

    The first day the anomaly is detected.

    *)
  9. anomaly_id : generic_string;
    (*

    The unique identifier for the anomaly.

    *)
}

An unusual cost pattern. This consists of the detailed metadata and the current status of the anomaly object.

type nonrec anomalies = anomaly list
type nonrec get_anomalies_response = {
  1. next_page_token : next_page_token option;
    (*

    The token to retrieve the next set of results. Amazon Web Services provides the token when the response from a previous call has more results than the maximum page size.

    *)
  2. anomalies : anomalies;
    (*

    A list of cost anomalies.

    *)
}
type nonrec anomaly_date_interval = {
  1. end_date : year_month_day option;
    (*

    The last date an anomaly was observed.

    *)
  2. start_date : year_month_day;
    (*

    The first date an anomaly was observed.

    *)
}

The time period for an anomaly.

type nonrec get_anomalies_request = {
  1. max_results : page_size option;
    (*

    The number of entries a paginated response contains.

    *)
  2. next_page_token : next_page_token option;
    (*

    The token to retrieve the next set of results. Amazon Web Services provides the token when the response from a previous call has more results than the maximum page size.

    *)
  3. total_impact : total_impact_filter option;
    (*

    Filters anomaly results by the total impact field on the anomaly object. For example, you can filter anomalies GREATER_THAN 200.00 to retrieve anomalies, with an estimated dollar impact greater than 200.

    *)
  4. feedback : anomaly_feedback_type option;
    (*

    Filters anomaly results by the feedback field on the anomaly object.

    *)
  5. date_interval : anomaly_date_interval;
    (*

    Assigns the start and end dates for retrieving cost anomalies. The returned anomaly object will have an AnomalyEndDate in the specified time range.

    *)
  6. monitor_arn : generic_string option;
    (*

    Retrieves all of the cost anomalies detected for a specific cost anomaly monitor Amazon Resource Name (ARN).

    *)
}
type nonrec cost_category = {
  1. default_value : cost_category_value option;
  2. processing_status : cost_category_processing_status_list option;
    (*

    The list of processing statuses for Cost Management products for a specific cost category.

    *)
  3. split_charge_rules : cost_category_split_charge_rules_list option;
    (*

    The split charge rules that are used to allocate your charges between your cost category values.

    *)
  4. rules : cost_category_rules_list;
    (*

    The rules are processed in order. If there are multiple rules that match the line item, then the first rule to match is used to determine that cost category value.

    *)
  5. rule_version : cost_category_rule_version;
  6. name : cost_category_name;
  7. effective_end : zoned_date_time option;
    (*

    The effective end date of your cost category.

    *)
  8. effective_start : zoned_date_time;
    (*

    The effective start date of your cost category.

    *)
  9. cost_category_arn : arn;
    (*

    The unique identifier for your cost category.

    *)
}

The structure of Cost Categories. This includes detailed metadata and the set of rules for the CostCategory object.

type nonrec describe_cost_category_definition_response = {
  1. cost_category : cost_category option;
}
type nonrec describe_cost_category_definition_request = {
  1. effective_on : zoned_date_time option;
    (*

    The date when the cost category was effective.

    *)
  2. cost_category_arn : arn;
    (*

    The unique identifier for your cost category.

    *)
}
type nonrec delete_cost_category_definition_response = {
  1. effective_end : zoned_date_time option;
    (*

    The effective end date of the cost category as a result of deleting it. No costs after this date is categorized by the deleted cost category.

    *)
  2. cost_category_arn : arn option;
    (*

    The unique identifier for your cost category.

    *)
}
type nonrec delete_cost_category_definition_request = {
  1. cost_category_arn : arn;
    (*

    The unique identifier for your cost category.

    *)
}
type nonrec delete_anomaly_subscription_response = unit
type nonrec delete_anomaly_subscription_request = {
  1. subscription_arn : generic_string;
    (*

    The unique identifier of the cost anomaly subscription that you want to delete.

    *)
}
type nonrec delete_anomaly_monitor_response = unit
type nonrec delete_anomaly_monitor_request = {
  1. monitor_arn : generic_string;
    (*

    The unique identifier of the cost anomaly monitor that you want to delete.

    *)
}
type nonrec create_cost_category_definition_response = {
  1. effective_start : zoned_date_time option;
    (*

    The cost category's effective start date. It can only be a billing start date (first day of the month).

    *)
  2. cost_category_arn : arn option;
    (*

    The unique identifier for your newly created cost category.

    *)
}
type nonrec create_cost_category_definition_request = {
  1. resource_tags : resource_tag_list option;
    (*

    An optional list of tags to associate with the specified CostCategory. You can use resource tags to control access to your cost category using IAM policies.

    Each tag consists of a key and a value, and each key must be unique for the resource. The following restrictions apply to resource tags:

    • Although the maximum number of array members is 200, you can assign a maximum of 50 user-tags to one resource. The remaining are reserved for Amazon Web Services use
    • The maximum length of a key is 128 characters
    • The maximum length of a value is 256 characters
    • Keys and values can only contain alphanumeric characters, spaces, and any of the following: _.:/=+@-
    • Keys and values are case sensitive
    • Keys and values are trimmed for any leading or trailing whitespaces
    • Don’t use aws: as a prefix for your keys. This prefix is reserved for Amazon Web Services use
    *)
  2. split_charge_rules : cost_category_split_charge_rules_list option;
    (*

    The split charge rules used to allocate your charges between your cost category values.

    *)
  3. default_value : cost_category_value option;
  4. rules : cost_category_rules_list;
    (*

    The cost category rules used to categorize costs. For more information, see CostCategoryRule.

    *)
  5. rule_version : cost_category_rule_version;
  6. effective_start : zoned_date_time option;
    (*

    The cost category's effective start date. It can only be a billing start date (first day of the month). If the date isn't provided, it's the first day of the current month. Dates can't be before the previous twelve months, or in the future.

    *)
  7. name : cost_category_name;
}
type nonrec create_anomaly_subscription_response = {
  1. subscription_arn : generic_string;
    (*

    The unique identifier of your newly created cost anomaly subscription.

    *)
}
type nonrec create_anomaly_subscription_request = {
  1. resource_tags : resource_tag_list option;
    (*

    An optional list of tags to associate with the specified AnomalySubscription. You can use resource tags to control access to your subscription using IAM policies.

    Each tag consists of a key and a value, and each key must be unique for the resource. The following restrictions apply to resource tags:

    • Although the maximum number of array members is 200, you can assign a maximum of 50 user-tags to one resource. The remaining are reserved for Amazon Web Services use
    • The maximum length of a key is 128 characters
    • The maximum length of a value is 256 characters
    • Keys and values can only contain alphanumeric characters, spaces, and any of the following: _.:/=+@-
    • Keys and values are case sensitive
    • Keys and values are trimmed for any leading or trailing whitespaces
    • Don’t use aws: as a prefix for your keys. This prefix is reserved for Amazon Web Services use
    *)
  2. anomaly_subscription : anomaly_subscription;
    (*

    The cost anomaly subscription object that you want to create.

    *)
}
type nonrec create_anomaly_monitor_response = {
  1. monitor_arn : generic_string;
    (*

    The unique identifier of your newly created cost anomaly detection monitor.

    *)
}
type nonrec create_anomaly_monitor_request = {
  1. resource_tags : resource_tag_list option;
    (*

    An optional list of tags to associate with the specified AnomalyMonitor. You can use resource tags to control access to your monitor using IAM policies.

    Each tag consists of a key and a value, and each key must be unique for the resource. The following restrictions apply to resource tags:

    • Although the maximum number of array members is 200, you can assign a maximum of 50 user-tags to one resource. The remaining are reserved for Amazon Web Services use
    • The maximum length of a key is 128 characters
    • The maximum length of a value is 256 characters
    • Keys and values can only contain alphanumeric characters, spaces, and any of the following: _.:/=+@-
    • Keys and values are case sensitive
    • Keys and values are trimmed for any leading or trailing whitespaces
    • Don’t use aws: as a prefix for your keys. This prefix is reserved for Amazon Web Services use
    *)
  2. anomaly_monitor : anomaly_monitor;
    (*

    The cost anomaly detection monitor object that you want to create.

    *)
}