

# CostDriver


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.

## Contents


 ** Metrics **   <a name="awscostmanagement-Type-CostDriver-Metrics"></a>
A mapping of metric names to their comparison values, measuring the impact of this cost driver.  
Type: String to [ComparisonMetricValue](API_ComparisonMetricValue.md) object map  
Key Length Constraints: Minimum length of 0. Maximum length of 1024.  
Key Pattern: `[\S\s]*`   
Required: No

 ** Name **   <a name="awscostmanagement-Type-CostDriver-Name"></a>
The specific identifier of the cost driver.  
Type: String  
Length Constraints: Minimum length of 0. Maximum length of 1024.  
Pattern: `[\S\s]*`   
Required: No

 ** Type **   <a name="awscostmanagement-Type-CostDriver-Type"></a>
The category or classification of the cost driver.  
Values include: BUNDLED\$1DISCOUNT, CREDIT, OUT\$1OF\$1CYCLE\$1CHARGE, REFUND, RECURRING\$1RESERVATION\$1FEE, RESERVATION\$1USAGE, RI\$1VOLUME\$1DISCOUNT, SAVINGS\$1PLAN\$1USAGE, SAVINGS\$1PLAN\$1RECURRING\$1FEE, SUPPORT\$1FEE, TAX, UPFRONT\$1RESERVATION\$1FEE, USAGE\$1CHANGE, COMMITMENT  
Type: String  
Length Constraints: Minimum length of 0. Maximum length of 1024.  
Pattern: `[\S\s]*`   
Required: No

## See Also


For more information about using this API in one of the language-specific AWS SDKs, see the following:
+  [AWS SDK for C\$1\$1](https://docs.aws.amazon.com/goto/SdkForCpp/ce-2017-10-25/CostDriver) 
+  [AWS SDK for Java V2](https://docs.aws.amazon.com/goto/SdkForJavaV2/ce-2017-10-25/CostDriver) 
+  [AWS SDK for Ruby V3](https://docs.aws.amazon.com/goto/SdkForRubyV3/ce-2017-10-25/CostDriver) 